]> ncurses.scripts.mit.edu Git - ncurses.git/blob - Ada95/configure.in
ncurses 5.8 - patch 20110305
[ncurses.git] / Ada95 / configure.in
1 dnl***************************************************************************
2 dnl Copyright (c) 2010 Free Software Foundation, Inc.                        *
3 dnl                                                                          *
4 dnl Permission is hereby granted, free of charge, to any person obtaining a  *
5 dnl copy of this software and associated documentation files (the            *
6 dnl "Software"), to deal in the Software without restriction, including      *
7 dnl without limitation the rights to use, copy, modify, merge, publish,      *
8 dnl distribute, distribute with modifications, sublicense, and/or sell       *
9 dnl copies of the Software, and to permit persons to whom the Software is    *
10 dnl furnished to do so, subject to the following conditions:                 *
11 dnl                                                                          *
12 dnl The above copyright notice and this permission notice shall be included  *
13 dnl in all copies or substantial portions of the Software.                   *
14 dnl                                                                          *
15 dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS  *
16 dnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF               *
17 dnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.   *
18 dnl IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,   *
19 dnl DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR    *
20 dnl OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR    *
21 dnl THE USE OR OTHER DEALINGS IN THE SOFTWARE.                               *
22 dnl                                                                          *
23 dnl Except as contained in this notice, the name(s) of the above copyright   *
24 dnl holders shall not be used in advertising or otherwise to promote the     *
25 dnl sale, use or other dealings in this Software without prior written       *
26 dnl authorization.                                                           *
27 dnl***************************************************************************
28 dnl
29 dnl Author: Thomas E. Dickey
30 dnl
31 dnl $Id: configure.in,v 1.21 2010/11/06 22:11:21 tom Exp $
32 dnl Process this file with autoconf to produce a configure script.
33 dnl
34 dnl See http://invisible-island.net/autoconf/ for additional information.
35 dnl
36 dnl ---------------------------------------------------------------------------
37 AC_PREREQ(2.13.20020210)
38 AC_REVISION($Revision: 1.21 $)
39 AC_INIT(gen/gen.c)
40 AC_CONFIG_HEADER(include/ncurses_cfg.h:include/ncurses_cfg.hin)
41
42 CF_TOP_BUILDDIR
43
44 CF_CHECK_CACHE([AC_CANONICAL_SYSTEM])
45 AC_ARG_WITH(system-type,
46 [  --with-system-type=XXX  test: override derived host system-type],
47 [AC_MSG_WARN(overriding system type to $withval)
48  cf_cv_system_name=$withval])
49
50 ###     Save the given $CFLAGS to allow user-override.
51 cf_user_CFLAGS="$CFLAGS"
52
53 ###     Default install-location
54 CF_CFG_DEFAULTS
55
56 ###     Checks for programs.
57 AC_PROG_CC
58 CF_GCC_VERSION
59
60 AC_PROG_CPP
61 AC_PROG_GCC_TRADITIONAL
62 CF_PROG_CC_C_O(CC)
63 AC_ISC_POSIX
64 CF_ANSI_CC_REQD
65 CF_PROG_EXT
66
67 AC_ARG_PROGRAM
68
69 CF_PROG_AWK
70 CF_PROG_EGREP
71 AC_PROG_INSTALL
72 CF_PROG_LN_S
73
74 AC_SYS_LONG_FILE_NAMES
75
76 # if we find pkg-config, check if we should install the ".pc" files.
77 CF_PKG_CONFIG
78
79 if test "$PKG_CONFIG" != no ; then
80         AC_MSG_CHECKING(if we should install .pc files for $PKG_CONFIG)
81
82         # Leave this as something that can be overridden in the environment.
83         if test -z "$PKG_CONFIG_LIBDIR" ; then
84                 PKG_CONFIG_LIBDIR=`echo "$PKG_CONFIG" | sed -e 's,/[[^/]]*/[[^/]]*$,,'`/lib/pkgconfig
85         fi
86         PKG_CONFIG_LIBDIR=`echo "$PKG_CONFIG_LIBDIR" | sed -e 's/^://' -e 's/:.*//'`
87         if test -n "$PKG_CONFIG_LIBDIR" && test -d "$PKG_CONFIG_LIBDIR" ; then
88                 AC_ARG_ENABLE(pc-files,
89                         [  --enable-pc-files       generate and install .pc files for pkg-config],
90                         [enable_pc_files=$enableval],
91                         [enable_pc_files=no])
92                 AC_MSG_RESULT($enable_pc_files)
93         else
94                 AC_MSG_RESULT(no)
95                 AC_MSG_WARN(did not find library $PKG_CONFIG_LIBDIR)
96                 enable_pc_files=no
97         fi
98 fi
99 AC_SUBST(PKG_CONFIG_LIBDIR)
100
101 AC_MSG_CHECKING(if you want to build test-programs)
102 AC_ARG_WITH(tests,
103         [  --without-tests         suppress build with test-programs],
104         [cf_with_tests=$withval],
105         [cf_with_tests=yes])
106 AC_MSG_RESULT($cf_with_tests)
107
108 AC_MSG_CHECKING(if we should assume mixed-case filenames)
109 AC_ARG_ENABLE(mixed-case,
110         [  --enable-mixed-case     tic should assume mixed-case filenames],
111         [enable_mixedcase=$enableval],
112         [enable_mixedcase=auto])
113 AC_MSG_RESULT($enable_mixedcase)
114 if test "$enable_mixedcase" = "auto" ; then
115     CF_MIXEDCASE_FILENAMES
116 else
117     cf_cv_mixedcase=$enable_mixedcase
118     if test "$enable_mixedcase" = "yes" ; then
119         AC_DEFINE(MIXEDCASE_FILENAMES)
120     fi
121 fi
122
123 # do this after mixed-case option (tags/TAGS is not as important as tic).
124 AC_PROG_MAKE_SET
125 CF_MAKE_TAGS
126 CF_MAKEFLAGS
127
128 dnl These are standard among *NIX systems, but not when cross-compiling
129 AC_CHECK_TOOL(RANLIB, ranlib, ':')
130 AC_CHECK_TOOL(LD, ld, ld)
131 AC_CHECK_TOOL(AR, ar, ar)
132 CF_AR_FLAGS
133
134 dnl Special option for use by system-builders: the install-prefix is used to
135 dnl adjust the location into which the actual install is done, so that an
136 dnl archive can be built without modifying the host system's configuration.
137 AC_MSG_CHECKING(if you have specified an install-prefix)
138 AC_ARG_WITH(install-prefix,
139         [  --with-install-prefix   prefixes actual install-location ($DESTDIR)],
140         [case "$withval" in #(vi
141         yes|no) #(vi
142                 ;;
143         *)      DESTDIR="$withval"
144                 ;;
145         esac])
146 AC_MSG_RESULT($DESTDIR)
147 AC_SUBST(DESTDIR)
148
149 ###############################################################################
150 CF_HELP_MESSAGE(Build-Tools Needed to Compile Temporary Applications for Cross-compiling:)
151 # If we're cross-compiling, allow the user to override the tools and their
152 # options.  The configure script is oriented toward identifying the host
153 # compiler, etc., but we need a build compiler to generate parts of the source.
154 CF_BUILD_CC
155
156 ###############################################################################
157 CF_HELP_MESSAGE(Options to Specify the Libraries Built/Used:)
158
159 ### Options to allow the user to specify the set of libraries which are used.
160 ### Use "--without-normal --with-shared" to allow the default model to be
161 ### shared, for example.
162 cf_list_models=""
163 AC_MSG_CHECKING(for specified models)
164 test -z "$cf_list_models" && cf_list_models=normal
165 AC_MSG_RESULT($cf_list_models)
166
167 ### Use the first model as the default, and save its suffix for use in building
168 ### up test-applications.
169 AC_MSG_CHECKING(for default model)
170 DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
171 AC_MSG_RESULT($DFT_LWR_MODEL)
172
173 CF_UPPER(DFT_UPR_MODEL,$DFT_LWR_MODEL)dnl
174
175 AC_SUBST(DFT_LWR_MODEL)dnl      the default model ("normal")
176 AC_SUBST(DFT_UPR_MODEL)dnl      the default model ("NORMAL")
177
178 CF_NCURSES_ADDON
179
180 CF_LIB_PREFIX(cf_prefix)
181 LIB_PREFIX=$cf_prefix
182 AC_SUBST(LIB_PREFIX)
183
184 LIB_SUFFIX=
185 AC_SUBST(LIB_SUFFIX)
186
187 ###############################################################################
188
189 dnl Not all ports of gcc support the -g option
190
191 if test X"$CC_G_OPT" = X"" ; then
192         CC_G_OPT='-g'
193         test -n "$GCC" && test "${ac_cv_prog_cc_g}" != yes && CC_G_OPT=''
194 fi
195 AC_SUBST(CC_G_OPT)
196
197 AC_MSG_CHECKING(for default loader flags)
198 case $DFT_LWR_MODEL in
199 normal)  LD_MODEL=''   ;;
200 debug)   LD_MODEL=$CC_G_OPT ;;
201 profile) LD_MODEL='-pg';;
202 shared)  LD_MODEL=''   ;;
203 esac
204 AC_SUBST(LD_MODEL)dnl           the type of link (e.g., -g or -pg)
205 AC_MSG_RESULT($LD_MODEL)
206
207 CF_SHARED_OPTS
208
209 ###############################################################################
210 CF_HELP_MESSAGE(Fine-Tuning Your Configuration:)
211
212 CF_PATHSEP
213
214 ###   use option --enable-broken-linker to force on use of broken-linker support
215 AC_MSG_CHECKING(if you want broken-linker support code)
216 AC_ARG_ENABLE(broken_linker,
217         [  --enable-broken_linker  compile with broken-linker support code],
218         [with_broken_linker=$enableval],
219         [with_broken_linker=${BROKEN_LINKER:-no}])
220 AC_MSG_RESULT($with_broken_linker)
221
222 BROKEN_LINKER=0
223 if test "$with_broken_linker" = yes ; then
224         AC_DEFINE(BROKEN_LINKER)
225         BROKEN_LINKER=1
226 elif test "$DFT_LWR_MODEL" = shared ; then
227         case $cf_cv_system_name in #(vi
228         cygwin*)
229                 AC_DEFINE(BROKEN_LINKER)
230                 BROKEN_LINKER=1
231                 CF_VERBOSE(cygwin linker is broken anyway)
232                 ;;
233         esac
234 fi
235 AC_SUBST(BROKEN_LINKER)
236
237 # Check to define _XOPEN_SOURCE "automatically"
238 CF_XOPEN_SOURCE
239
240 CF_LARGEFILE
241
242 ### Enable compiling-in rcs id's
243 AC_MSG_CHECKING(if RCS identifiers should be compiled-in)
244 AC_ARG_WITH(rcs-ids,
245         [  --with-rcs-ids          compile-in RCS identifiers],
246         [with_rcs_ids=$withval],
247         [with_rcs_ids=no])
248 AC_MSG_RESULT($with_rcs_ids)
249 test "$with_rcs_ids" = yes && AC_DEFINE(USE_RCS_IDS)
250
251 ###############################################################################
252 CF_HELP_MESSAGE(Extensions:)
253
254 ### Note that some functions (such as const) are normally disabled anyway.
255 AC_MSG_CHECKING(if you want to build with function extensions)
256 AC_ARG_ENABLE(ext-funcs,
257         [  --disable-ext-funcs     disable function-extensions],
258         [with_ext_funcs=$enableval],
259         [with_ext_funcs=yes])
260 AC_MSG_RESULT($with_ext_funcs)
261 if test "$with_ext_funcs" = yes ; then
262         NCURSES_EXT_FUNCS=1
263         AC_DEFINE(HAVE_USE_DEFAULT_COLORS)
264         AC_DEFINE(NCURSES_EXT_FUNCS)
265 else
266         NCURSES_EXT_FUNCS=0
267 fi
268 AC_SUBST(NCURSES_EXT_FUNCS)
269
270 ###   use option --enable-const to turn on use of const beyond that in XSI.
271 AC_MSG_CHECKING(for extended use of const keyword)
272 AC_ARG_ENABLE(const,
273         [  --enable-const          compile with extra/non-standard const],
274         [with_ext_const=$enableval],
275         [with_ext_const=no])
276 AC_MSG_RESULT($with_ext_const)
277 NCURSES_CONST='/*nothing*/'
278 if test "$with_ext_const" = yes ; then
279         NCURSES_CONST=const
280 fi
281 AC_SUBST(NCURSES_CONST)
282
283 ###############################################################################
284 # These options are relatively safe to experiment with.
285 CF_HELP_MESSAGE(Development Code:)
286 AC_MSG_CHECKING(if you want all development code)
287 AC_ARG_WITH(develop,
288         [  --without-develop       disable development options],
289         [with_develop=$withval],
290         [with_develop=no])
291 AC_MSG_RESULT($with_develop)
292
293 ###############################################################################
294 # These are just experimental, probably should not be in a package:
295 CF_HELP_MESSAGE(Experimental Code:)
296
297 # This is still experimental (20080329), but should ultimately be moved to
298 # the script-block --with-normal, etc.
299 CF_WITH_PTHREAD
300
301 AC_MSG_CHECKING(if you want to use weak-symbols for pthreads)
302 AC_ARG_ENABLE(weak-symbols,
303     [  --enable-weak-symbols   enable weak-symbols for pthreads],
304     [use_weak_symbols=$withval],
305     [use_weak_symbols=no])
306 AC_MSG_RESULT($use_weak_symbols)
307 if test "$use_weak_symbols" = yes ; then
308     CF_WEAK_SYMBOLS
309 else
310     cf_cv_weak_symbols=no
311 fi
312
313 if test $cf_cv_weak_symbols = yes ; then
314     AC_DEFINE(USE_WEAK_SYMBOLS)
315 fi
316
317 PTHREAD=
318 if test "$with_pthread" = "yes" ; then
319     AC_DEFINE(USE_PTHREADS)
320     enable_reentrant=yes
321     if test $cf_cv_weak_symbols = yes ; then
322         PTHREAD=-lpthread
323     fi
324 fi
325 AC_SUBST(PTHREAD)
326
327 # Reentrant code has to be opaque; there's little advantage to making ncurses
328 # opaque outside of that, so there is no --enable-opaque option.  We can use
329 # this option without --with-pthreads, but this will be always set for
330 # pthreads.
331 AC_MSG_CHECKING(if you want experimental reentrant code)
332 AC_ARG_ENABLE(reentrant,
333         [  --enable-reentrant      compile with experimental reentrant code],
334         [with_reentrant=$enableval],
335         [with_reentrant=no])
336 AC_MSG_RESULT($with_reentrant)
337 if test "$with_reentrant" = yes ; then
338         cf_cv_enable_reentrant=1
339         if test $cf_cv_weak_symbols = yes ; then
340                 CF_REMOVE_LIB(LIBS,$LIBS,pthread)
341         else
342                 LIB_SUFFIX="t${LIB_SUFFIX}"
343         fi
344         AC_DEFINE(USE_REENTRANT)
345 else
346         cf_cv_enable_reentrant=0
347 fi
348 AC_SUBST(cf_cv_enable_reentrant)
349
350 ### Allow using a different wrap-prefix
351 if test "$cf_cv_enable_reentrant" != 0 || test "$BROKEN_LINKER" = 1 ; then
352         AC_MSG_CHECKING(for prefix used to wrap public variables)
353         AC_ARG_WITH(wrap-prefix,
354                 [  --with-wrap-prefix=XXX  override prefix used for public variables],
355                 [NCURSES_WRAP_PREFIX=$withval],
356                 [NCURSES_WRAP_PREFIX=_nc_])
357         AC_MSG_RESULT($NCURSES_WRAP_PREFIX)
358 else
359         NCURSES_WRAP_PREFIX=_nc_
360 fi
361 AC_SUBST(NCURSES_WRAP_PREFIX)
362 AC_DEFINE_UNQUOTED(NCURSES_WRAP_PREFIX,"$NCURSES_WRAP_PREFIX")
363
364 ###############################################################################
365 CF_HELP_MESSAGE(Testing/development Options:)
366
367 ###     use option --disable-echo to suppress full display compiling commands
368 AC_MSG_CHECKING(if you want to display full commands during build)
369 AC_ARG_ENABLE(echo,
370         [  --enable-echo           build: display "compiling" commands (default)],
371         [with_echo=$enableval],
372         [with_echo=yes])
373 if test "$with_echo" = yes; then
374         ECHO_LINK=
375 else
376         ECHO_LINK='@ echo linking $@ ... ;'
377 fi
378 AC_MSG_RESULT($with_echo)
379 AC_SUBST(ECHO_LINK)
380
381 ###     use option --enable-warnings to turn on all gcc warnings
382 AC_MSG_CHECKING(if you want to see compiler warnings)
383 AC_ARG_ENABLE(warnings,
384         [  --enable-warnings       build: turn on GCC compiler warnings],
385         [with_warnings=$enableval])
386 AC_MSG_RESULT($with_warnings)
387
388 if test "x$with_warnings" = "xyes"; then
389         ADAFLAGS="$ADAFLAGS -gnatg"
390         CF_GCC_WARNINGS(Wdeclaration-after-statement Wextra Wno-unknown-pragmas Wswitch-enum)
391 fi
392 CF_GCC_ATTRIBUTES
393
394 ###     use option --enable-assertions to turn on generation of assertion code
395 AC_MSG_CHECKING(if you want to enable runtime assertions)
396 AC_ARG_ENABLE(assertions,
397         [  --enable-assertions     test: turn on generation of assertion code],
398         [with_assertions=$enableval],
399         [with_assertions=no])
400 AC_MSG_RESULT($with_assertions)
401 if test -n "$GCC"
402 then
403         if test "$with_assertions" = no
404         then
405                 AC_DEFINE(NDEBUG)
406                 CPPFLAGS="$CPPFLAGS -DNDEBUG"
407         else
408                 ADAFLAGS="$ADAFLAGS -gnata"
409         fi
410 fi
411
412 ###     use option --disable-leaks to suppress "permanent" leaks, for testing
413 AC_DEFINE(HAVE_NC_ALLOC_H)
414
415 ###     use option --enable-expanded to generate certain macros as functions
416 AC_ARG_ENABLE(expanded,
417         [  --enable-expanded       test: generate functions for certain macros],
418         [test "$enableval" = yes && AC_DEFINE(NCURSES_EXPANDED)])
419
420 ###     use option --disable-macros to suppress macros in favor of functions
421 AC_ARG_ENABLE(macros,
422         [  --disable-macros        test: use functions rather than macros],
423         [test "$enableval" = no && AC_DEFINE(NCURSES_NOMACROS)])
424
425 # Normally we only add trace() to the debug-library.  Allow this to be
426 # extended to all models of the ncurses library:
427 cf_all_traces=no
428 case "$CFLAGS $CPPFLAGS" in
429 *-DTRACE*)
430         cf_all_traces=yes
431         ;;
432 esac
433
434 AC_MSG_CHECKING(whether to add trace feature to all models)
435 AC_ARG_WITH(trace,
436 [  --with-trace            test: add trace() function to all models of ncurses],
437 [cf_with_trace=$withval],
438 [cf_with_trace=$cf_all_traces])
439 AC_MSG_RESULT($cf_with_trace)
440
441 if test "$cf_with_trace" = yes ; then
442         ADA_TRACE=TRUE
443         CF_ADD_CFLAGS(-DTRACE)
444 else
445         ADA_TRACE=FALSE
446 fi
447
448 AC_SUBST(ADA_TRACE)
449
450 ###     Checks for libraries.
451 case $cf_cv_system_name in #(vi
452 *mingw32*) #(vi
453         ;;
454 *)
455 AC_CHECK_FUNC(gettimeofday,
456         AC_DEFINE(HAVE_GETTIMEOFDAY),[
457
458 AC_CHECK_LIB(bsd, gettimeofday,
459         AC_DEFINE(HAVE_GETTIMEOFDAY)
460         LIBS="$LIBS -lbsd")])dnl CLIX: bzero, select, gettimeofday
461         ;;
462 esac
463
464 ###     Checks for header files.
465 AC_STDC_HEADERS
466 AC_HEADER_DIRENT
467 AC_HEADER_TIME
468
469 ###     checks for compiler characteristics
470 AC_LANG_C
471 AC_C_CONST
472
473 ###     Checks for external-data
474 CF_LINK_DATAONLY
475
476 ###     Checks for library functions.
477 CF_MKSTEMP
478
479 AC_TYPE_SIGNAL
480
481 dnl We'll do our own -g libraries, unless the user's overridden via $CFLAGS
482 if test -z "$cf_user_CFLAGS" && test "$with_no_leaks" = no ; then
483         CF_STRIP_G_OPT(CFLAGS)
484         CF_STRIP_G_OPT(CXXFLAGS)
485 fi
486
487 CF_HELP_MESSAGE(Ada95 Binding Options:)
488
489 dnl Check for availability of GNU Ada Translator (GNAT).
490 dnl At the moment we support no other Ada95 compiler.
491 if test "$cf_with_ada" != "no" ; then
492         CF_PROG_GNAT
493         if test "$cf_cv_prog_gnat_correct" = yes; then
494                 CF_ADD_ADAFLAGS(-O3 -gnatpn)
495
496                 CF_GNAT_PRAGMA_UNREF
497
498                 CF_WITH_ADA_COMPILER
499
500                 cf_ada_package=terminal_interface
501                 AC_SUBST(cf_ada_package)
502
503                 CF_WITH_ADA_INCLUDE
504                 CF_WITH_ADA_OBJECTS
505                 CF_WITH_ADA_SHAREDLIB
506         fi
507 fi
508
509 ################################################################################
510
511 # not needed
512 TINFO_ARGS2=
513 AC_SUBST(TINFO_ARGS2)
514
515 ### Construct the list of include-directories to be generated
516 CF_INCLUDE_DIRS
517 CF_ADA_INCLUDE_DIRS
518
519 ### Build up pieces for makefile rules
520 AC_MSG_CHECKING(default library suffix)
521 CF_LIB_TYPE($DFT_LWR_MODEL,DFT_ARG_SUFFIX)dnl
522 AC_SUBST(DFT_ARG_SUFFIX)dnl the string to append to "-lncurses" ("")
523 AC_MSG_RESULT($DFT_ARG_SUFFIX)
524
525 AC_MSG_CHECKING(default library-dependency suffix)
526 CF_LIB_SUFFIX($DFT_LWR_MODEL,DFT_LIB_SUFFIX,DFT_DEP_SUFFIX)dnl
527 AC_SUBST(DFT_DEP_SUFFIX)dnl the corresponding library-suffix (".a")
528 AC_MSG_RESULT($DFT_DEP_SUFFIX)
529
530 AC_MSG_CHECKING(default object directory)
531 CF_OBJ_SUBDIR($DFT_LWR_MODEL,DFT_OBJ_SUBDIR)dnl
532 AC_SUBST(DFT_OBJ_SUBDIR)dnl the default object-directory ("obj")
533 AC_MSG_RESULT($DFT_OBJ_SUBDIR)
534
535 ### Set up low-level terminfo dependencies for makefiles.
536
537 if test "$DFT_LWR_MODEL" = shared ; then
538         case $cf_cv_system_name in #(vi
539         cygwin*)
540                 # "lib" files have ".dll.a" suffix, "cyg" files have ".dll"
541                 ;;
542         esac
543 fi
544
545 ### Construct the list of subdirectories for which we'll customize makefiles
546 ### with the appropriate compile-rules.
547
548 SUB_MAKEFILES="gen/adacurses${DFT_ARG_SUFFIX}-config:gen/adacurses-config.in"
549
550 AC_DEFINE_UNQUOTED(NCURSES_PATHSEP,'$PATH_SEPARATOR')
551
552 ### Now that we're done running tests, add the compiler-warnings, if any
553 CF_ADD_CFLAGS($EXTRA_CFLAGS)
554
555 ################################################################################
556
557 if test x"$enable_pc_files" = xyes ; then \
558 SUB_MAKEFILES="$SUB_MAKEFILES misc/gen-pkgconfig:misc/gen-pkgconfig.in"
559 MAKE_PC_FILES=
560 else
561 MAKE_PC_FILES="#"
562 fi
563 AC_SUBST(MAKE_PC_FILES)
564 AC_SUBST(cross_compiling)
565
566 ################################################################################
567
568 TEST_ARG2=
569 AC_SUBST(TEST_ARG2)
570
571 TEST_LIBS2=
572 AC_SUBST(TEST_LIBS2)
573
574 dnl for separate build, this is good enough for "sh $(top_srcdir)/misc/shlib"
575 NCURSES_SHLIB2="sh -c"
576 AC_SUBST(NCURSES_SHLIB2)
577
578 ADA_SUBDIRS="include gen src"
579 if test "x$cf_with_tests" != "xno" ; then
580         ADA_SUBDIRS="$ADA_SUBDIRS samples"
581 fi
582 for cf_dir in $ADA_SUBDIRS
583 do
584         SUB_MAKEFILES="$SUB_MAKEFILES $cf_dir/Makefile"
585 done
586 AC_SUBST(ADA_SUBDIRS)
587
588 NCURSES_TREE="#"
589 AC_SUBST(NCURSES_TREE)
590
591 EXTERNAL_TREE=
592 AC_SUBST(EXTERNAL_TREE)
593
594 AC_OUTPUT( \
595         $SUB_MAKEFILES \
596         Makefile,[
597 if test -z "$USE_OLD_MAKERULES" ; then
598         $AWK -f $srcdir/mk-1st.awk <$srcdir/src/modules >>src/Makefile
599 fi
600 ],[
601 ### Special initialization commands, used to pass information from the
602 ### configuration-run into config.status
603
604 AWK="$AWK"
605 DFT_ARG_SUFFIX="$DFT_ARG_SUFFIX"
606 DFT_LWR_MODEL="$DFT_LWR_MODEL"
607 ECHO_LINK="$ECHO_LINK"
608 LIB_NAME="$LIB_NAME"
609 LIB_SUFFIX="$LIB_SUFFIX"
610 LN_S="$LN_S"
611 NCURSES_MAJOR="$NCURSES_MAJOR"
612 NCURSES_MINOR="$NCURSES_MINOR"
613 NCURSES_PATCH="$NCURSES_PATCH"
614 USE_OLD_MAKERULES="$USE_OLD_MAKERULES"
615 cf_cv_abi_version="$cf_cv_abi_version"
616 cf_cv_rel_version="$cf_cv_rel_version"
617 cf_cv_rm_so_locs="$cf_cv_rm_so_locs"
618 cf_cv_shared_soname='$cf_cv_shared_soname'
619 cf_cv_shlib_version="$cf_cv_shlib_version"
620 cf_cv_shlib_version_infix="$cf_cv_shlib_version_infix"
621 cf_cv_system_name="$cf_cv_system_name"
622 host="$host"
623 target="$target"
624
625 ],cat)dnl
626 ${MAKE:-make} preinstall