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