• Home
  • Raw
  • Download

Lines Matching +full:gas +full:- +full:preprocessor

3 # Guess values for system-dependent variables and create Makefiles.
6 # Copyright 2003-2022,2023 Thomas E. Dickey
26 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30 set -o posix
42 rm -f conf$$ conf$$.exe conf$$.file
44 if ln -s conf$$.file conf$$ 2>/dev/null; then
47 if test -f conf$$.exe; then
49 as_ln_s='cp -p'
51 as_ln_s='ln -s'
56 as_ln_s='cp -p'
58 rm -f conf$$ conf$$.exe conf$$.file
60 as_executable_p="test -f"
91 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
103 SHELL=${CONFIG_SHELL-/bin/sh}
199 if test -n "$ac_prev"; then
211 -bindir | --bindir | --bindi | --bind | --bin | --bi)
213 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
216 -build | --build | --buil | --bui | --bu)
218 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
221 -cache-file | --cache-file | --cache-fil | --cache-fi \
222 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
224 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
225 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
228 --config-cache | -C)
231 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
233 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
234 | --da=*)
237 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
238 | --dataroo | --dataro | --datar)
240 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
241 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
244 -disable-* | --disable-*)
245 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
247 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
250 ac_feature=`echo "$ac_feature" | sed 's/-/_/g'`
253 -enable-* | --enable-*)
254 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
256 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
259 ac_feature=`echo "$ac_feature" | sed 's/-/_/g'`
266 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
267 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
268 | --exec | --exe | --ex)
270 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
271 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
272 | --exec=* | --exe=* | --ex=*)
275 -gas | --gas | --ga | --g)
276 # Obsolete; use --with-gas.
279 -help | --help | --hel | --he | -h)
281 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
283 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
286 -host | --host | --hos | --ho)
288 -host=* | --host=* | --hos=* | --ho=*)
291 -includedir | --includedir | --includedi | --included | --include \
292 | --includ | --inclu | --incl | --inc)
294 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
295 | --includ=* | --inclu=* | --incl=* | --inc=*)
298 -infodir | --infodir | --infodi | --infod | --info | --inf)
300 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
303 -libdir | --libdir | --libdi | --libd)
305 -libdir=* | --libdir=* | --libdi=* | --libd=*)
308 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
309 | --libexe | --libex | --libe)
311 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
312 | --libexe=* | --libex=* | --libe=*)
315 -localstatedir | --localstatedir | --localstatedi | --localstated \
316 | --localstate | --localstat | --localsta | --localst \
317 | --locals | --local | --loca | --loc | --lo)
319 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
320 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
321 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
324 -runstatedir | --runstatedir | --runstatedi | --runstated \
325 | --runstate | --runstat | --runsta | --runst \
326 | --runs | --run | --ru)
328 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
329 | --runstate=* | --runstat=* | --runsta=* | --runst=* \
330 | --runs=* | --run=* | --ru=*)
333 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
335 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
338 -nfp | --nfp | --nf)
339 # Obsolete; use --without-fp.
342 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
343 | --no-cr | --no-c)
346 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
347 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
350 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
351 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
352 | --oldin | --oldi | --old | --ol | --o)
354 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
355 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
356 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
359 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
361 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
364 -program-prefix | --program-prefix | --program-prefi | --program-pref \
365 | --program-pre | --program-pr | --program-p)
367 -program-prefix=* | --program-prefix=* | --program-prefi=* \
368 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
371 -program-suffix | --program-suffix | --program-suffi | --program-suff \
372 | --program-suf | --program-su | --program-s)
374 -program-suffix=* | --program-suffix=* | --program-suffi=* \
375 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
378 -program-transform-name | --program-transform-name \
379 | --program-transform-nam | --program-transform-na \
380 | --program-transform-n | --program-transform- \
381 | --program-transform | --program-transfor \
382 | --program-transfo | --program-transf \
383 | --program-trans | --program-tran \
384 | --progr-tra | --program-tr | --program-t)
386 -program-transform-name=* | --program-transform-name=* \
387 | --program-transform-nam=* | --program-transform-na=* \
388 | --program-transform-n=* | --program-transform-=* \
389 | --program-transform=* | --program-transfor=* \
390 | --program-transfo=* | --program-transf=* \
391 | --program-trans=* | --program-tran=* \
392 | --progr-tra=* | --program-tr=* | --program-t=*)
395 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
396 | -silent | --silent | --silen | --sile | --sil)
399 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
401 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
402 | --sbi=* | --sb=*)
405 -sharedstatedir | --sharedstatedir | --sharedstatedi \
406 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
407 | --sharedst | --shareds | --shared | --share | --shar \
408 | --sha | --sh)
410 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
411 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
412 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
413 | --sha=* | --sh=*)
416 -site | --site | --sit)
418 -site=* | --site=* | --sit=*)
421 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
423 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
426 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
427 | --syscon | --sysco | --sysc | --sys | --sy)
429 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
430 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
433 -target | --target | --targe | --targ | --tar | --ta | --t)
435 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
438 -v | -verbose | --verbose | --verbos | --verbo | --verb)
441 -version | --version | --versio | --versi | --vers | -V)
444 -with-* | --with-*)
445 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
447 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
450 ac_package=`echo "$ac_package" | sed 's/-/_/g'`
457 -without-* | --without-*)
458 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
460 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
463 ac_package=`echo "$ac_package" | sed 's/-/_/g'`
466 --x)
467 # Obsolete; use --with-x.
470 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
471 | --x-incl | --x-inc | --x-in | --x-i)
473 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
474 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
477 -x-libraries | --x-libraries | --x-librarie | --x-librari \
478 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
480 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
481 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
484 -*) { echo "$as_me: error: unrecognized option: $ac_option
485 Try \`$0 --help' for more information." >&2
501 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
502 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
510 if test -n "$ac_prev"; then
511 ac_option=--`echo "$ac_prev" | sed 's/_/-/g'`
522 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
534 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
540 # used to hold the argument of --host etc.
549 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
557 test -n "$host_alias" && ac_tool_prefix=$host_alias-
562 if test -z "$srcdir"; then
569 if test ! -r "$srcdir/$ac_unique_file"; then
575 if test ! -r "$srcdir/$ac_unique_file"; then
619 # Report the --help message.
635 -h, --help display this help and exit
636 --help=short display options specific to this package
637 --help=recursive display the short help of all the included packages
638 -V, --version display version information and exit
639 -q, --quiet, --silent do not print \`checking...' messages
640 --cache-file=FILE cache test results in FILE [disabled]
641 -C, --config-cache alias for \`--cache-file=config.cache'
642 -n, --no-create do not create output files
643 --srcdir=DIR find the sources in DIR [configure dir or \`..']
649 --prefix=PREFIX install architecture-independent files in PREFIX
651 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
656 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
657 for instance \`--prefix=\$HOME'.
662 --bindir=DIR user executables [EPREFIX/bin]
663 --sbindir=DIR system admin executables [EPREFIX/sbin]
664 --libexecdir=DIR program executables [EPREFIX/libexec]
665 --datarootdir=DIR read-only architecture-independent data [PREFIX/share]
666 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
667 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
668 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
669 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
670 --runstatedir=DIR extra definition of runtime data [LOCALSTATEDIR/run]
671 --libdir=DIR object code libraries [EPREFIX/lib]
672 --includedir=DIR C header files [PREFIX/include]
673 --oldincludedir=DIR C header files for non-gcc [/usr/include]
674 --infodir=DIR info documentation [DATAROOTDIR/info]
675 --mandir=DIR man documentation [DATAROOTDIR/man]
681 --program-prefix=PREFIX prepend PREFIX to installed program names
682 --program-suffix=SUFFIX append SUFFIX to installed program names
683 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
686 --build=BUILD configure for building on BUILD [guessed]
687 --host=HOST build programs to run on HOST [BUILD]
688 --target=TARGET configure for building compilers for TARGET [HOST]
692 if test -n "$ac_init_help"; then
697 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
698 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
701 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
702 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
705 --with-system-type=XXX test: override derived host system-type
706 --disable-stripping do not strip (debug info) installed executables
707 --with-strip-program=XX specify program to use when stripping in install
708 --with-pkg-config[=CMD] enable/disable use of pkg-config and its name CMD
709 --with-pkg-config-libdir[=XXX] use given directory for installing pc-files
710 --without-tests suppress build with test-programs
711 --enable-mixed-case tic should assume mixed-case filenames
712 --with-install-prefix prefixes actual install-location ($DESTDIR)
713 Build-Tools Needed to Compile Temporary Applications for Cross-compiling:
714 --with-build-cc=XXX the build C compiler ($BUILD_CC)
715 --with-build-cpp=XXX the build C preprocessor ($BUILD_CPP)
716 --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS)
717 --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS)
718 --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS)
719 --with-build-libs=XXX the build libraries (${BUILD_LIBS})
721 --with-shared generate shared C-objects (needed for --with-ada-sharedlib)
722 --with-curses-dir=DIR directory in which (n)curses is installed
723 --enable-widec compile with wide-char/UTF-8 code
724 --with-lib-prefix override library-prefix
725 --with-shlib-version[={rel|abi}] use release or ABI version in shared library file names
726 --enable-rpath-link link sample programs with rpath option
727 Fine-Tuning Your Configuration:
728 --enable-broken_linker compile with broken-linker support code
729 --disable-largefile omit support for large files
730 --with-rcs-ids compile-in RCS identifiers
732 --disable-ext-funcs disable function-extensions
733 --enable-const compile with extra/non-standard const
735 --without-develop disable development options
737 --with-pthread use POSIX thread library
738 --enable-weak-symbols enable weak-symbols for pthreads
739 --enable-reentrant compile with experimental reentrant code
740 --with-wrap-prefix=XXX override prefix used for public variables
742 --disable-echo do not display "compiling" commands
743 --enable-warnings test: turn on gcc compiler warnings
744 --enable-stdnoreturn enable C11 _Noreturn feature for diagnostics
745 --enable-assertions test: turn on generation of assertion code
746 --enable-expanded test: generate functions for certain macros
747 --disable-macros test: use functions rather than macros
748 --with-trace test: add trace() function to all models of ncurses
749 --disable-gnat-projects test: disable GNAT projects even if usable
751 --with-ada-compiler[=CMD] use CMD as Ada95 compiler (default: gnatmake)
752 --with-ada-include=DIR find Ada95 includes in DIR (default: PREFIX/share/ada/adainclude)
753 --with-ada-objects=DIR find Ada95 objects in DIR (default: PREFIX/lib/ada/adalib)
754 --with-ada-sharedlib build Ada95 shared library; requires GNAT project support
755 --with-ada-libname[=XXX] use XXX as Ada95 library name
760 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
762 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
764 CPP C preprocessor
773 # If there are subdirs, report their specific --help.
782 .) # No --srcdir option. We are building in place.
791 if test -f "$ac_sub_srcdir/configure.gnu"; then
793 $SHELL "$ac_sub_srcdir/configure.gnu" --help=recursive
794 elif test -f "$ac_sub_srcdir/configure"; then
796 $SHELL "$ac_sub_srcdir/configure" --help=recursive
797 elif test -f "$ac_sub_srcdir/configure.ac" ||
798 test -f "$ac_sub_srcdir/configure.in"; then
800 "$ac_configure" --help
808 test -n "$ac_init_help" && exit 0
812 Copyright 2003-2022,2023 Thomas E. Dickey
833 ## ---------- ##
835 ## ---------- ##
837 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
838 uname -m = `(uname -m) 2>/dev/null || echo unknown`
839 uname -r = `(uname -r) 2>/dev/null || echo unknown`
840 uname -s = `(uname -s) 2>/dev/null || echo unknown`
841 uname -v = `(uname -v) 2>/dev/null || echo unknown`
843 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
844 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
847 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
860 ## ------------ ##
862 ## ------------ ##
867 # Strip out --no-create and --no-recursion so they do not pile up.
868 # Also quote any args containing shell meta-characters.
874 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
875 | --no-cr | --no-c) ;;
876 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
877 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
894 echo "## ----------------- ##" >&5
896 echo "## ----------------- ##" >&5
903 sed -n \
908 sed -n \
914 if test -s conftest.log; then
916 echo "## ------------ ##" >&5
918 echo "## ------------ ##" >&5
926 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
935 rm -rf conftest* confdefs.h
941 if test -z "$CONFIG_SITE"; then
949 if test -r "$ac_site_file"; then
957 if test -r "$cache_file"; then
960 if test -f "$cache_file"; then
978 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1027 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
1028 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
1032 case `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in
1033 *c*,-n*) ECHO_N=
1034 ECHO_C= # newlines do not sed ;-) only broken shells would use this case anyway
1037 *c*,* ) ECHO_N=-n
1059 rm -f conftest.sh
1069 if test -f "$ac_dir/install-sh"; then
1071 ac_install_sh="$ac_aux_dir/install-sh -c"
1073 elif test -f "$ac_dir/install.sh"; then
1075 ac_install_sh="$ac_aux_dir/install.sh -c"
1077 elif test -f "$ac_dir/shtool"; then
1079 ac_install_sh="$ac_aux_dir/shtool install -c"
1083 if test -z "$ac_aux_dir"; then
1084 …{ { echo "$as_me:1084: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/.…
1085 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1104 test -z "$ac_cv_build_alias" &&
1106 test -z "$ac_cv_build_alias" &&
1119 build_cpu=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1120 build_vendor=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1121 build_os=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1129 test -z "$ac_cv_host_alias" &&
1140 host_cpu=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1141 host_vendor=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1142 host_os=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1144 if test -f "$srcdir/config.guess" || test -f "$ac_aux_dir/config.guess" ; then
1162 target_cpu=`echo "$ac_cv_target" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1163 target_vendor=`echo "$ac_cv_target" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1164 target_os=`echo "$ac_cv_target" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1168 test -n "$target_alias" &&
1171 program_prefix=${target_alias}-
1174 system_name="`(uname -s -r) 2>/dev/null`"
1175 if test -z "$system_name" ; then
1179 test -n "$system_name" &&
1190 test -z "$system_name" && system_name="$cf_cv_system_name"
1191 test -n "$cf_cv_system_name" && echo "$as_me:1191: result: Configuring for $cf_cv_system_name" >&5
1202 # Check whether --with-system-type or --without-system-type was given.
1212 ### Save the given $CFLAGS to allow user-override.
1215 ### Default install-location
1225 if test -n "$GREP"; then
1232 test -z "$ac_dir" && ac_dir=.
1242 if test -n "$GREP"; then
1250 test -n "$GREP" && break
1252 test -n "$GREP" || GREP=": "
1259 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
1260 then ac_cv_path_FGREP="$GREP -F"
1280 test -z "$ac_dir" && ac_dir=.
1293 if test -n "$FGREP"; then
1301 test -n "$FGREP" && break
1303 test -n "$FGREP" || FGREP=": "
1318 # non-vendor systems don't have a conflict
1319 (openbsd*|freebsd*|mirbsd*|linux*|cygwin*|msys*|k*bsd*-gnu|mingw*)
1330 echo "$as_me:1330: checking for default include-directory" >&5
1331 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1332 test -n "$verbose" && echo 1>&6
1344 if test -f "$cf_dir/curses.h" ; then
1345 if ( ${FGREP-fgrep} NCURSES_VERSION "$cf_dir/curses.h" >/dev/null 2>&1 ) ; then
1347 test -n "$verbose" && echo $ECHO_N " found " 1>&6
1351 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1361 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
1362 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
1365 if test -n "$ac_tool_prefix"; then
1375 if test -n "$CC"; then
1382 test -z "$ac_dir" && ac_dir=.
1392 if test -n "$CC"; then
1400 test -n "$CC" && break
1403 if test -z "$CC"; then
1414 if test -n "$ac_ct_CC"; then
1421 test -z "$ac_dir" && ac_dir=.
1431 if test -n "$ac_ct_CC"; then
1439 test -n "$ac_ct_CC" && break
1445 test -z "$CC" && { { echo "$as_me:1445: error: no acceptable cc found in \$PATH" >&5
1453 { (eval echo "$as_me:1453: \"$ac_compiler --version </dev/null >&5\"") >&5
1454 (eval $ac_compiler --version </dev/null >&5) 2>&5
1458 { (eval echo "$as_me:1458: \"$ac_compiler -v </dev/null >&5\"") >&5
1459 (eval $ac_compiler -v </dev/null >&5) 2>&5
1463 { (eval echo "$as_me:1463: \"$ac_compiler -V </dev/null >&5\"") >&5
1464 (eval $ac_compiler -V </dev/null >&5) 2>&5
1483 # Try to create an executable without -o first, disregard a.out.
1488 ac_link_default=`echo "$ac_link" | sed 's/ -o *"conftest[^"]*"//'`
1506 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1543 If you meant to cross compile, use \`--host'." >&5
1545 If you meant to cross compile, use \`--host'." >&2;}
1553 rm -f a.out a.exe "conftest$ac_cv_exeext"
1588 rm -f "conftest$ac_cv_exeext"
1592 rm -f "conftest.$ac_ext"
1612 rm -f conftest.o conftest.obj
1633 rm -f "conftest.$ac_cv_objext" "conftest.$ac_ext"
1659 rm -f "conftest.$ac_objext"
1665 { ac_try='test -s "conftest.$ac_objext"'
1677 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
1686 CFLAGS="-g"
1687 echo "$as_me:1687: checking whether $CC accepts -g" >&5
1688 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1704 rm -f "conftest.$ac_objext"
1710 { ac_try='test -s "conftest.$ac_objext"'
1722 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
1730 CFLAGS="-g -O2"
1732 CFLAGS="-g"
1736 CFLAGS="-O2"
1750 rm -f "conftest.$ac_objext"
1756 { ac_try='test -s "conftest.$ac_objext"'
1784 rm -f "conftest.$ac_objext"
1790 { ac_try='test -s "conftest.$ac_objext"'
1802 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
1815 rm -f "conftest.$ac_objext"
1821 { ac_try='test -s "conftest.$ac_objext"'
1832 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
1834 rm -rf conftest*
1835 if test -n "$ac_declaration"; then
1845 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
1848 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
1849 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
1857 …GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^[^(]*([^)][^)]*) //' -e 's/^[^0-9…
1858 test -z "$GCC_VERSION" && GCC_VERSION=unknown
1871 CFLAGS="$CFLAGS -no-gcc"
1889 rm -f "conftest.$ac_objext"
1895 { ac_try='test -s "conftest.$ac_objext"'
1902 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
1908 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
1939 rm -f "conftest.$ac_objext"
1945 { ac_try='test -s "conftest.$ac_objext"'
1957 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
1967 (c[1-9][0-9]|*/c[1-9][0-9])
1970 CFLAGS="$CFLAGS -std=`echo "$CC" | sed -e 's%.*/%%'`"
1977 …G_VERSION="`$CC --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(CLANG[^)]*) //' -e 's/^.*(Debian[^…
1978 test -z "$CLANG_VERSION" && CLANG_VERSION=unknown
1983 -Qunused-arguments \
1984 -Wno-error=implicit-function-declaration
2004 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
2010 { ac_try='test -s "conftest$ac_exeext"'
2024 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
2029 test -n "$verbose" && echo " adding option $cf_clang_opt" 1>&6
2031 echo "${as_me:-configure}:2031: testing adding option $cf_clang_opt ..." 1>&5
2033 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2084 # Don't try gcc -ansi; that turns off useful extensions and
2086 # AIX -qlanglvl=ansi
2087 # Ultrix and OSF/1 -std1
2088 # HP-UX 10.20 and later -Ae
2089 # HP-UX older versions -Aa -D_HPUX_SOURCE
2090 # SVR4 -Xc -D__EXTENSIONS__
2091 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2094 rm -f "conftest.$ac_objext"
2100 { ac_try='test -s "conftest.$ac_objext"'
2112 rm -f "conftest.$ac_objext"
2114 rm -f "conftest.$ac_ext" "conftest.$ac_objext"
2135 (*-[IUD]*)
2155 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2157 (-D*)
2158 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2161 && test -z "${cf_tst_cflags}" \
2166 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2172 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2184 (-D*)
2185 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2188 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2189 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2194 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2202 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2210 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2213 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
2216 && test -z "${cf_tst_cflags}" \
2222 if test -n "$cf_new_cflags" ; then
2224 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2229 if test -n "$cf_new_cppflags" ; then
2231 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2236 if test -n "$cf_new_extra_cppflags" ; then
2238 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2254 (*[\ \ ]-*)
2260 cf_prog=`echo "$CC" | sed -e 's/ / /g' -e 's/[ ]* / /g' -e 's/[ ]*[ ]-[^ ].*//'`
2261 cf_flags=`echo "$CC" | sed -e "s%^$cf_prog%%"`
2266 (x-[IUDfgOW]*)
2278 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2280 (-D*)
2281 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2284 && test -z "${cf_tst_cflags}" \
2289 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2295 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2307 (-D*)
2308 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2311 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2312 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2317 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2325 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2333 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2336 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
2339 && test -z "${cf_tst_cflags}" \
2345 if test -n "$cf_new_cflags" ; then
2347 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2352 if test -n "$cf_new_cppflags" ; then
2354 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2359 if test -n "$cf_new_extra_cppflags" ; then
2361 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2372 test -n "$verbose" && echo " resulting CC: '$CC'" 1>&6
2374 echo "${as_me:-configure}:2374: testing resulting CC: '$CC' ..." 1>&5
2376 test -n "$verbose" && echo " resulting CFLAGS: '$CFLAGS'" 1>&6
2378 echo "${as_me:-configure}:2378: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5
2380 test -n "$verbose" && echo " resulting CPPFLAGS: '$CPPFLAGS'" 1>&6
2382 echo "${as_me:-configure}:2382: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5
2396 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
2397 then ac_cv_path_EGREP="$GREP -E"
2417 test -z "$ac_dir" && ac_dir=.
2430 if test -n "$EGREP"; then
2438 test -n "$EGREP" && break
2440 test -n "$EGREP" || EGREP=": "
2453 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
2454 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
2457 echo "$as_me:2457: checking how to run the C preprocessor" >&5
2458 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2460 if test -n "$CPP" && test -d "$CPP"; then
2463 if test -z "$CPP"; then
2468 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2474 # with a fresh cross-compiler works.
2475 # On the NeXT, cc -E runs the code through the compiler's parser,
2486 $EGREP -v '^ *\+' conftest.er1 >conftest.err
2487 rm -f conftest.er1
2491 if test -s conftest.err; then
2499 if test -z "$ac_cpp_err"; then
2507 rm -f conftest.err "conftest.$ac_ext"
2509 # OK, works on sane cases. Now check whether non-existent headers
2519 $EGREP -v '^ *\+' conftest.er1 >conftest.err
2520 rm -f conftest.er1
2524 if test -s conftest.err; then
2532 if test -z "$ac_cpp_err"; then
2542 rm -f conftest.err "conftest.$ac_ext"
2546 rm -f conftest.err "conftest.$ac_ext"
2565 # with a fresh cross-compiler works.
2566 # On the NeXT, cc -E runs the code through the compiler's parser,
2577 $EGREP -v '^ *\+' conftest.er1 >conftest.err
2578 rm -f conftest.er1
2582 if test -s conftest.err; then
2590 if test -z "$ac_cpp_err"; then
2598 rm -f conftest.err "conftest.$ac_ext"
2600 # OK, works on sane cases. Now check whether non-existent headers
2610 $EGREP -v '^ *\+' conftest.er1 >conftest.err
2611 rm -f conftest.er1
2615 if test -s conftest.err; then
2623 if test -z "$ac_cpp_err"; then
2633 rm -f conftest.err "conftest.$ac_ext"
2637 rm -f conftest.err "conftest.$ac_ext"
2641 { { echo "$as_me:2641: error: C preprocessor \"$CPP\" fails sanity check" >&5
2642 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2648 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
2649 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
2654 echo "$as_me:2654: checking whether $CC needs -traditional" >&5
2655 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2672 rm -rf conftest*
2685 rm -rf conftest*
2692 CC="$CC -traditional"
2696 echo "$as_me:2696: checking whether $CC understands -c and -o together" >&5
2697 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
2705 ${cf_cv_main_return:-return}(0);
2709 # existing .o file with -o, though they will create one.
2710 ac_try='$CC $CFLAGS $CPPFLAGS -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2716 test -f conftest2.$ac_objext && { (eval echo "$as_me:2716: \"$ac_try\"") >&5
2726 rm -rf ./conftest*
2747 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2759 if test -n "$AWK"; then
2766 test -z "$ac_dir" && ac_dir=.
2776 if test -n "$AWK"; then
2784 test -n "$AWK" && break
2787 test -z "$AWK" && { { echo "$as_me:2787: error: No awk program found" >&5
2796 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2797 then ac_cv_prog_egrep='grep -E'
2805 test -z "$EGREP" && { { echo "$as_me:2805: error: No egrep program found" >&5
2817 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2823 if test -z "$INSTALL"; then
2847 # program-specific install script used by HP pwplus--don't use.
2850 ac_cv_path_install="$ac_dir/$ac_prog -c"
2873 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2875 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2877 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2879 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2881 echo "$as_me:2881: checking whether ln -s works" >&5
2882 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2884 if test "$LN_S" = "ln -s"; then
2892 echo "$as_me:2892: checking if $LN_S -f options work" >&5
2893 echo $ECHO_N "checking if $LN_S -f options work... $ECHO_C" >&6
2895 rm -f conf$$.src conf$$dst
2898 if $LN_S -f conf$$.src conf$$.dst 2>/dev/null; then
2903 rm -f conf$$.dst conf$$src
2907 test "$cf_prog_ln_sf" = yes && LN_S="$LN_S -f"
2917 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2923 if test -z "$INSTALL"; then
2947 # program-specific install script used by HP pwplus--don't use.
2950 ac_cv_path_install="$ac_dir/$ac_prog -c"
2973 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2975 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2977 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2979 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2985 cf_dir=`echo "$INSTALL" | sed -e 's%/[^/]*$%%'`
2986 test -z "$cf_dir" && cf_dir=.
2987 INSTALL="`cd \"$cf_dir\" && pwd`"/"`echo "$INSTALL" | sed -e 's%^.*/%%'`"
2994 # Check whether --enable-stripping or --disable-stripping was given.
3013 INSTALL_OPT_S="-s"
3019 echo "$as_me:3019: checking if install accepts -p option" >&5
3020 echo $ECHO_N "checking if install accepts -p option... $ECHO_C" >&6
3025 rm -rf ./conftest*
3029 if $INSTALL -p conftest.in conftest.out 2>/dev/null
3031 if test -f conftest.out/conftest.in
3033 test conftest.in -nt conftest.out/conftest.in 2>conftest.err && \
3034 test conftest.out/conftest.in -nt conftest.in 2>conftest.err
3035 if test -s conftest.err
3047 rm -rf ./conftest*
3068 …INSTALL_OPT_O="`id root|sed -e 's/uid=[0-9]*(/ -o /' -e 's/gid=[0-9]*(/ -g /' -e 's/ [^=[:space:]]…
3073 if test -n "$INSTALL_OPT_S"
3075 echo "$as_me:3075: checking if you want to specify strip-program" >&5
3076 echo $ECHO_N "checking if you want to specify strip-program... $ECHO_C" >&6
3078 # Check whether --with-strip-program or --without-strip-program was given.
3089 echo "$as_me:3089: checking if strip-program is supported with this installer" >&5
3090 echo $ECHO_N "checking if strip-program is supported with this installer... $ECHO_C" >&6
3091 cf_install_program=`echo "$INSTALL" | sed -e 's%[ ]*[ ]-.%%'`
3093 if test -f "$cf_install_program"
3095 check_install_version=`"$cf_install_program" --version 2>/dev/null | head -n 1 | grep coreutils`
3096 if test -n "$check_install_version"
3119 cat >install.tmp <<-CF_EOF
3127 test -n "$verbose" && echo " created $INSTALL" 1>&6
3129 echo "${as_me:-configure}:3129: testing created $INSTALL ..." 1>&5
3133 INSTALL_OPT_S="$INSTALL_OPT_S --strip-program=\"$with_strip_program\""
3155 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3161 test -d "$ac_dir" || continue
3162 test -w "$ac_dir" || continue # It is less confusing to not echo anything here.
3170 if test ! -f "$ac_tf1" || test "$ac_val" != 1; then
3172 rm -rf "$ac_xdir" 2>/dev/null
3175 rm -rf "$ac_xdir" 2>/dev/null
3188 # if we find pkg-config, check if we should install the ".pc" files.
3190 echo "$as_me:3190: checking if you want to use pkg-config" >&5
3191 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
3193 # Check whether --with-pkg-config or --without-pkg-config was given.
3209 if test -n "$ac_tool_prefix"; then
3210 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3211 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3226 test -z "$ac_dir" && ac_dir=.
3239 if test -n "$PKG_CONFIG"; then
3248 if test -z "$ac_cv_path_PKG_CONFIG"; then
3250 # Extract the first word of "pkg-config", so it can be a program name with args.
3251 set dummy pkg-config; ac_word=$2
3266 test -z "$ac_dir" && ac_dir=.
3274 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
3280 if test -n "$ac_pt_PKG_CONFIG"; then
3299 test -z "$PKG_CONFIG" && PKG_CONFIG=none
3313 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
3319 PKG_CONFIG=`echo "$PKG_CONFIG" | sed -e s%NONE%$cf_path_syntax%`
3324 PKG_CONFIG=`echo "$PKG_CONFIG" | sed -e s%NONE%$cf_path_syntax%`
3334 { echo "$as_me:3334: WARNING: pkg-config is not installed" >&5
3335 echo "$as_me: WARNING: pkg-config is not installed" >&2;}
3340 echo "$as_me:3340: checking for pkg-config library directory" >&5
3341 echo $ECHO_N "checking for pkg-config library directory... $ECHO_C" >&6
3350 if test -n "$PKG_CONFIG_PATH"; then
3351 cf_search_path=`echo "$PKG_CONFIG_PATH" | sed -e 's/:/ /g' -e 's,^[ ]*,,' -e 's,[ ]*$,,'`
3352 elif test -n "$PKG_CONFIG_LIBDIR"; then
3353 cf_search_path=`echo "$PKG_CONFIG_LIBDIR" | sed -e 's/:/ /g' -e 's,^[ ]*,,' -e 's,[ ]*$,,'`
3360 # Check whether --with-pkg-config-libdir or --without-pkg-config-libdir was given.
3365 test "x$PKG_CONFIG" != xnone && test -z "$cf_search_path" && cf_search_path=libdir
3391 echo "$as_me:3391: checking for search-list" >&5
3392 echo $ECHO_N "checking for search-list... $ECHO_C" >&6
3395 # works for pkg-config since version 0.24 (2009)
3398 `echo "$PKG_CONFIG" | sed -e 's,^.*/,,'` \
3399 pkg-config \
3402 cf_search_path=`"$PKG_CONFIG" --variable=pc_path "$cf_pkg_program" 2>/dev/null | tr : ' '`
3403 test -n "$cf_search_path" && break
3406 # works for pkg-config since import in 2005 of original 2001 HP code.
3407 test -z "$cf_search_path" && \
3409 "$PKG_CONFIG" --debug --exists no-such-package 2>&1 | $AWK "\
3410 /^Scanning directory (#[1-9][0-9]* )?'.*'$/{ \
3428 if test -n "$cf_search_path"
3435 if test -d "$cf_config"
3449 if test -z "$PKG_CONFIG_LIBDIR" && test -n "$cf_search_path"
3459 cf_libdir=`echo "$cf_libdir" | sed -e "s,^NONE,$cf_prefix,"`
3469 test -z "$cf_backup" && cf_backup=$cf_config
3473 test -z "$PKG_CONFIG_LIBDIR" && PKG_CONFIG_LIBDIR=$cf_backup
3479 echo "$as_me:3479: checking if you want to build test-programs" >&5
3480 echo $ECHO_N "checking if you want to build test-programs... $ECHO_C" >&6
3482 # Check whether --with-tests or --without-tests was given.
3492 echo "$as_me:3492: checking if we should assume mixed-case filenames" >&5
3493 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
3495 # Check whether --enable-mixed-case or --disable-mixed-case was given.
3506 echo "$as_me:3506: checking if filesystem supports mixed-case filenames" >&5
3507 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
3514 (*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*|darwin*)
3522 rm -f conftest CONFTEST
3524 if test -f CONFTEST ; then
3529 rm -f conftest CONFTEST
3550 # do this after mixed-case option (tags/TAGS is not as important as tic).
3551 echo "$as_me:3551: checking whether ${MAKE-make} sets \${MAKE}" >&5
3552 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3553 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3562 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3563 if test -n "$ac_maketemp"; then
3568 rm -f conftest.make
3577 SET_MAKE="MAKE=${MAKE-make}"
3580 echo "$as_me:3580: checking for \".PHONY\" make-support" >&5
3581 echo $ECHO_N "checking for \".PHONY\" make-support... $ECHO_C" >&6
3586 rm -rf conftest*
3606 ${MAKE:-make} always DATA=$cf_data
3607 ${MAKE:-make} once DATA=$cf_data
3608 ${MAKE:-make} -t always once
3609 if test -f always ; then
3611 elif test ! -f always.out ; then
3613 elif test ! -f once.out ; then
3615 elif ! cmp -s always.out once.out ; then
3624 rm -f ./*.out
3632 rm -rf conftest*
3651 if test -n "$CTAGS"; then
3658 test -z "$ac_dir" && ac_dir=.
3668 if test -n "$CTAGS"; then
3676 test -n "$CTAGS" && break
3688 if test -n "$ETAGS"; then
3695 test -z "$ac_dir" && ac_dir=.
3705 if test -n "$ETAGS"; then
3713 test -n "$ETAGS" && break
3716 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
3717 set dummy ${CTAGS:-ctags}; ac_word=$2
3723 if test -n "$MAKE_LOWER_TAGS"; then
3730 test -z "$ac_dir" && ac_dir=.
3737 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
3741 if test -n "$MAKE_LOWER_TAGS"; then
3750 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
3751 set dummy ${ETAGS:-etags}; ac_word=$2
3757 if test -n "$MAKE_UPPER_TAGS"; then
3764 test -z "$ac_dir" && ac_dir=.
3771 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
3775 if test -n "$MAKE_UPPER_TAGS"; then
3806 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
3813 …cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp 2>/dev/null | ${FGREP-fgrep} -v "ing directory" | …
3816 cf_result="`${MAKE:-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`"
3825 (.-)
3829 echo "${as_me:-configure}:3829: testing given option \"$cf_option\",no match \"$cf_result\" ..." 1>…
3834 rm -f cf_makeflags.tmp
3840 if test -n "$ac_tool_prefix"; then
3848 if test -n "$RANLIB"; then
3855 test -z "$ac_dir" && ac_dir=.
3865 if test -n "$RANLIB"; then
3874 if test -z "$ac_cv_prog_RANLIB"; then
3883 if test -n "$ac_ct_RANLIB"; then
3890 test -z "$ac_dir" && ac_dir=.
3897 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
3901 if test -n "$ac_ct_RANLIB"; then
3914 if test -n "$ac_tool_prefix"; then
3922 if test -n "$LD"; then
3929 test -z "$ac_dir" && ac_dir=.
3939 if test -n "$LD"; then
3948 if test -z "$ac_cv_prog_LD"; then
3957 if test -n "$ac_ct_LD"; then
3964 test -z "$ac_dir" && ac_dir=.
3971 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
3975 if test -n "$ac_ct_LD"; then
3988 if test -n "$ac_tool_prefix"; then
3996 if test -n "$AR"; then
4003 test -z "$ac_dir" && ac_dir=.
4013 if test -n "$AR"; then
4022 if test -z "$ac_cv_prog_AR"; then
4031 if test -n "$ac_ct_AR"; then
4038 test -z "$ac_dir" && ac_dir=.
4045 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4049 if test -n "$ac_ct_AR"; then
4062 if test -n "$ac_tool_prefix"; then
4070 if test -n "$AR"; then
4077 test -z "$ac_dir" && ac_dir=.
4087 if test -n "$AR"; then
4096 if test -z "$ac_cv_prog_AR"; then
4105 if test -n "$ac_ct_AR"; then
4112 test -z "$ac_dir" && ac_dir=.
4119 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4123 if test -n "$ac_ct_AR"; then
4143 (*-msvc*)
4145 cat >mk_static_lib.sh <<-EOF
4150 exec \$MSVC_BIN -out:"\$out" \$@
4157 for cf_ar_flags in -curvU -curv curv -crv crv -cqv cqv -rv rv
4162 cf_check_ar_flags=`echo "x$ARFLAGS" | sed -e "s/$cf_ar_flags\$//" -e "s/$cf_ar_flags / /"`
4169 rm -f "conftest.$ac_cv_objext"
4170 rm -f conftest.a
4183 if test -f conftest.a ; then
4188 test -n "$verbose" && echo " cannot compile test-program" 1>&6
4190 echo "${as_me:-configure}:4190: testing cannot compile test-program ..." 1>&5
4195 rm -f conftest.a "conftest.$ac_ext" "conftest.$ac_cv_objext"
4203 if test -n "$ARFLAGS" ; then
4204 if test -n "$cf_cv_ar_flags" ; then
4221 echo "$as_me:4221: checking if you have specified an install-prefix" >&5
4222 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
4224 # Check whether --with-install-prefix or --without-install-prefix was given.
4239 # If we're cross-compiling, allow the user to override the tools and their
4253 # Check whether --with-build-cc or --without-build-cc was given.
4267 if test -n "$BUILD_CC"; then
4274 test -z "$ac_dir" && ac_dir=.
4284 if test -n "$BUILD_CC"; then
4292 test -n "$BUILD_CC" && break
4294 test -n "$BUILD_CC" || BUILD_CC="none"
4302 echo "$as_me:4302: checking for native build C preprocessor" >&5
4303 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
4305 # Check whether --with-build-cpp or --without-build-cpp was given.
4310 BUILD_CPP='${BUILD_CC} -E'
4318 # Check whether --with-build-cflags or --without-build-cflags was given.
4326 echo "$as_me:4326: checking for native build C preprocessor-flags" >&5
4327 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
4329 # Check whether --with-build-cppflags or --without-build-cppflags was given.
4337 echo "$as_me:4337: checking for native build linker-flags" >&5
4338 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
4340 # Check whether --with-build-ldflags or --without-build-ldflags was given.
4348 echo "$as_me:4348: checking for native build linker-libraries" >&5
4349 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
4351 # Check whether --with-build-libs or --without-build-libs was given.
4365 echo "$as_me:4365: checking if the build-compiler \"$BUILD_CC\" works" >&5
4366 echo $ECHO_N "checking if the build-compiler \"$BUILD_CC\" works... $ECHO_C" >&6
4373 …ac_link='$BUILD_CC -o "conftest$ac_exeext" $BUILD_CFLAGS $cf_build_cppflags $BUILD_LDFLAGS "confte…
4384 ${cf_cv_main_return:-return}(argc < 0 || argv == 0 || argv[0] == 0);
4388 rm -f "conftest$ac_exeext"
4406 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
4417 { { echo "$as_me:4417: error: Cross-build requires two compilers.
4418 Use --with-build-cc to specify the native compiler." >&5
4419 echo "$as_me: error: Cross-build requires two compilers.
4420 Use --with-build-cc to specify the native compiler." >&2;}
4438 ### Use "--without-normal --with-shared" to allow the default model to be
4442 echo "$as_me:4442: checking if you want to build shared C-objects" >&5
4443 echo $ECHO_N "checking if you want to build shared C-objects... $ECHO_C" >&6
4445 # Check whether --with-shared or --without-shared was given.
4458 test -z "$cf_list_models" && cf_list_models=normal
4463 ### up test-applications.
4470 DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWX…
4472 echo "$as_me:4472: checking for specific curses-directory" >&5
4473 echo $ECHO_N "checking for specific curses-directory... $ECHO_C" >&6
4475 # Check whether --with-curses-dir or --without-curses-dir was given.
4485 if test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no"
4499 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
4505 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
4510 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
4519 if test -d "$cf_cv_curses_dir"
4522 if test -n "$cf_cv_curses_dir/include" ; then
4527 if test -d "$cf_add_incdir"
4530 if test -n "$CFLAGS$CPPFLAGS" ; then
4533 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
4545 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4546 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
4560 rm -f "conftest.$ac_objext"
4566 { ac_try='test -s "conftest.$ac_objext"'
4578 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
4585 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
4587 echo "${as_me:-configure}:4587: testing adding $cf_add_incdir to include-path ..." 1>&5
4589 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4591 cf_top_incdir=`echo "$cf_add_incdir" | sed -e 's%/include/.*$%/include%'`
4604 if test -n "$cf_cv_curses_dir/lib" ; then
4609 elif test -d "$cf_add_libdir"
4612 if test -n "$LDFLAGS$LIBS" ; then
4615 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
4621 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
4623 echo "${as_me:-configure}:4623: testing adding $cf_add_libdir to library-path ..." 1>&5
4625 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
4638 echo "$as_me:4638: checking pkg-config for $cf_ncuconfig_root" >&5
4639 echo $ECHO_N "checking pkg-config for $cf_ncuconfig_root... $ECHO_C" >&6
4640 if "$PKG_CONFIG" --exists $cf_ncuconfig_root ; then
4652 cf_pkg_cflags="`$PKG_CONFIG --cflags $cf_ncuconfig_root`"
4653 cf_pkg_libs="`$PKG_CONFIG --libs $cf_ncuconfig_root`"
4655 # while -W for passing linker flags is prevalent, it is not "standard".
4657 # incompatible _and_ non-standard -W option which gives an error. Work
4660 (x*c[89]9@@*-W*)
4672 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
4674 (-D*)
4675 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4678 && test -z "${cf_tst_cflags}" \
4683 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4689 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4701 (-D*)
4702 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4705 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4706 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4711 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
4719 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
4727 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4730 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
4733 && test -z "${cf_tst_cflags}" \
4739 if test -n "$cf_new_cflags" ; then
4741 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
4746 if test -n "$cf_new_cppflags" ; then
4748 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4753 if test -n "$cf_new_extra_cppflags" ; then
4755 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
4772 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
4779 #include <${cf_cv_ncurses_header:-curses.h}>
4788 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
4794 { ac_try='test -s "conftest$ac_exeext"'
4806 #include <${cf_cv_ncurses_header:-curses.h}>
4810 rm -f "conftest$ac_exeext"
4828 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
4835 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
4842 cf_temp=`echo "x$cf_pkg_cflags" | sed -e s/^x// -e 's/-W[^ ]*//g'`
4844 cf_temp=`echo "x$cf_pkg_libs" | sed -e s/^x// -e 's/-W[^ ]*//g'`
4853 (x-[DU]*)
4855 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
4858 …S" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]…
4864 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
4867 …S" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]…
4886 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
4888 (-D*)
4889 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4892 && test -z "${cf_tst_cflags}" \
4897 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4903 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4915 (-D*)
4916 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4919 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4920 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4925 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
4933 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
4941 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4944 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
4947 && test -z "${cf_tst_cflags}" \
4953 if test -n "$cf_new_cflags" ; then
4955 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
4960 if test -n "$cf_new_cppflags" ; then
4962 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4967 if test -n "$cf_new_extra_cppflags" ; then
4969 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
4988 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
4995 #include <${cf_cv_ncurses_header:-curses.h}>
5004 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
5010 { ac_try='test -s "conftest$ac_exeext"'
5022 #include <${cf_cv_ncurses_header:-curses.h}>
5026 rm -f "conftest$ac_exeext"
5044 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
5051 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
5076 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
5089 #include <${cf_cv_ncurses_header:-curses.h}>
5100 rm -f "conftest.$ac_objext"
5106 { ac_try='test -s "conftest.$ac_objext"'
5121 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
5170 …cf_ncurses_config="${cf_ncuconfig_root}${NCURSES_CONFIG_SUFFIX}-config"; echo "Looking for ${cf_nc…
5172 if test -n "$ac_tool_prefix"; then
5173 …g in ${cf_ncurses_config} ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}6-config ${cf_ncuconfig…
5182 if test -n "$NCURSES_CONFIG"; then
5189 test -z "$ac_dir" && ac_dir=.
5199 if test -n "$NCURSES_CONFIG"; then
5207 test -n "$NCURSES_CONFIG" && break
5210 if test -z "$NCURSES_CONFIG"; then
5212 …g in ${cf_ncurses_config} ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}6-config ${cf_ncuconfig…
5221 if test -n "$ac_ct_NCURSES_CONFIG"; then
5228 test -z "$ac_dir" && ac_dir=.
5238 if test -n "$ac_ct_NCURSES_CONFIG"; then
5246 test -n "$ac_ct_NCURSES_CONFIG" && break
5248 test -n "$ac_ct_NCURSES_CONFIG" || ac_ct_NCURSES_CONFIG="none"
5255 for cf_add_cflags in `$NCURSES_CONFIG --cflags`
5258 (x-[DU]*)
5260 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
5263 …S" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]…
5269 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
5272 …S" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]…
5291 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
5293 (-D*)
5294 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
5297 && test -z "${cf_tst_cflags}" \
5302 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
5308 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
5320 (-D*)
5321 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
5324 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
5325 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
5330 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
5338 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
5346 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
5349 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
5352 && test -z "${cf_tst_cflags}" \
5358 if test -n "$cf_new_cflags" ; then
5360 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
5365 if test -n "$cf_new_cppflags" ; then
5367 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
5372 if test -n "$cf_new_extra_cppflags" ; then
5374 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
5384 for cf_add_1lib in `$NCURSES_CONFIG --libs`; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
5393 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
5397 # even with config script, some packages use no-override for curses.h
5422 rm -f "conftest.$ac_objext"
5428 { ac_try='test -s "conftest.$ac_objext"'
5439 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
5447 { { echo "$as_me:5447: error: No curses header-files found" >&5
5448 echo "$as_me: error: No curses header-files found" >&2;}
5470 $EGREP -v '^ *\+' conftest.er1 >conftest.err
5471 rm -f conftest.er1
5475 if test -s conftest.err; then
5483 if test -z "$ac_cpp_err"; then
5490 rm -f conftest.err "conftest.$ac_ext"
5506 cf_nculib_ROOT=`echo "HAVE_LIB$cf_ncuconfig_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJK…
5512 cf_cv_ncurses_version="`$NCURSES_CONFIG --version`"
5518 test -n "$cf_cv_curses_dir" && \
5521 if test -n "$cf_cv_curses_dir/include/$cf_ncuhdr_root" ; then
5526 if test -d "$cf_add_incdir"
5529 if test -n "$CFLAGS$CPPFLAGS" ; then
5532 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
5544 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
5545 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
5559 rm -f "conftest.$ac_objext"
5565 { ac_try='test -s "conftest.$ac_objext"'
5577 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
5584 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
5586 echo "${as_me:-configure}:5586: testing adding $cf_add_incdir to include-path ..." 1>&5
5588 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
5590 cf_top_incdir=`echo "$cf_add_incdir" | sed -e 's%/include/.*$%/include%'`
5605 echo "$as_me:5605: checking for $cf_ncuhdr_root header in include-path" >&5
5606 echo $ECHO_N "checking for $cf_ncuhdr_root header in include-path... $ECHO_C" >&6
5640 rm -f "conftest.$ac_objext"
5646 { ac_try='test -s "conftest.$ac_objext"'
5659 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
5672 echo "$as_me:5672: checking for $cf_ncuhdr_root include-path" >&5
5673 echo $ECHO_N "checking for $cf_ncuhdr_root include-path... $ECHO_C" >&6
5678 test -n "$verbose" && echo
5682 # collect the current set of include-directories from compiler flags
5684 if test -n "${CFLAGS}${CPPFLAGS}" ; then
5688 (-I*)
5689 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
5692 test -d "$cf_header_path" && \
5694 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
5695 test -d "$cf_header_path/include" && cf_search="$cf_search $cf_header_path/include"
5696 …test -d "$cf_header_path/include/$cf_ncuhdr_root" && cf_search="$cf_search $cf_header_path/i…
5697 …test -d "$cf_header_path/include/$cf_ncuhdr_root/include" && cf_search="$cf_search $cf_header_p…
5698 …test -d "$cf_header_path/$cf_ncuhdr_root/include" && cf_search="$cf_search $cf_header_path/$…
5699 …test -d "$cf_header_path/$cf_ncuhdr_root/include/$cf_ncuhdr_root" && cf_search="$cf_search $cf_…
5713 test -d "$prefix" && \
5715 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
5716 test -d "$prefix/include" && cf_search="$cf_search $prefix/include"
5717 …test -d "$prefix/include/$cf_ncuhdr_root" && cf_search="$cf_search $prefix/include/$cf_ncuhd…
5718 …test -d "$prefix/include/$cf_ncuhdr_root/include" && cf_search="$cf_search $prefix/include/$cf_…
5719 …test -d "$prefix/$cf_ncuhdr_root/include" && cf_search="$cf_search $prefix/$cf_ncuhdr_root/i…
5720 …test -d "$prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root" && cf_search="$cf_search $prefix/$cf_…
5733 test -d "$cf_subdir_prefix" && \
5734 { test -z "$prefix" || test "x$prefix" = xNONE || test "x$cf_subdir_prefix" != "x$prefix"; } && {
5735 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
5736 test -d "$cf_subdir_prefix/include" && cf_search="$cf_search $cf_subdir_prefix/include"
5737 …test -d "$cf_subdir_prefix/include/$cf_ncuhdr_root" && cf_search="$cf_search $cf_subdir_pref…
5738 …test -d "$cf_subdir_prefix/include/$cf_ncuhdr_root/include" && cf_search="$cf_search $cf_subdir…
5739 …test -d "$cf_subdir_prefix/$cf_ncuhdr_root/include" && cf_search="$cf_search $cf_subdir_pref…
5740 …test -d "$cf_subdir_prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root" && cf_search="$cf_search $c…
5747 test -d "$includedir" && {
5748 test -d "$includedir" && cf_search="$cf_search $includedir"
5749 test -d "$includedir/$cf_ncuhdr_root" && cf_search="$cf_search $includedir/$cf_ncuhdr_root"
5754 test -d "$oldincludedir" && {
5755 test -d "$oldincludedir" && cf_search="$cf_search $oldincludedir"
5756 test -d "$oldincludedir/$cf_ncuhdr_root" && cf_search="$cf_search $oldincludedir/$cf_ncuhdr_root"
5761 test -n "$verbose" && echo "search path $cf_search"
5766 if test -n "$cf_incdir" ; then
5771 if test -d "$cf_add_incdir"
5774 if test -n "$CFLAGS$CPPFLAGS" ; then
5777 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
5789 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
5790 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
5804 rm -f "conftest.$ac_objext"
5810 { ac_try='test -s "conftest.$ac_objext"'
5822 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
5829 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
5831 echo "${as_me:-configure}:5831: testing adding $cf_add_incdir to include-path ..." 1>&5
5833 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
5835 cf_top_incdir=`echo "$cf_add_incdir" | sed -e 's%/include/.*$%/include%'`
5877 rm -f "conftest.$ac_objext"
5883 { ac_try='test -s "conftest.$ac_objext"'
5896 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
5900 test -n "$verbose" && echo $ECHO_N " ... found $ECHO_C" 1>&6
5903 test -n "$verbose" && echo " ... tested $cf_incdir/$cf_header" 1>&6
5916 cf_1st_incdir=`echo "$cf_cv_ncurses_h2" | sed -e 's%/[^/]*$%%'`
5922 if test -n "$cf_1st_incdir" ; then
5927 if test -d "$cf_add_incdir"
5930 if test -n "$CFLAGS$CPPFLAGS" ; then
5933 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
5945 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
5946 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
5960 rm -f "conftest.$ac_objext"
5966 { ac_try='test -s "conftest.$ac_objext"'
5978 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
5985 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
5987 echo "${as_me:-configure}:5987: testing adding $cf_add_incdir to include-path ..." 1>&5
5989 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
5991 cf_top_incdir=`echo "$cf_add_incdir" | sed -e 's%/include/.*$%/include%'`
6043 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
6056 #include <${cf_cv_ncurses_header:-curses.h}>
6067 rm -f "conftest.$ac_objext"
6073 { ac_try='test -s "conftest.$ac_objext"'
6088 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
6139 rm -f "$cf_tempfile"
6142 # This will not work if the preprocessor splits the line after the
6145 #include <${cf_cv_ncurses_header:-curses.h}>
6162 if test -f conftest.out ; then
6163 cf_out=`sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%' conftest.out`
6164 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
6165 rm -f conftest.out
6175 #include <${cf_cv_ncurses_header:-curses.h}>
6193 ${cf_cv_main_return:-return}(0);
6196 rm -f "conftest$ac_exeext"
6214 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
6216 rm -f "$cf_tempfile"
6232 echo "$as_me:6232: checking for Gpm_Open in -lgpm" >&5
6233 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
6238 LIBS="-lgpm $LIBS"
6258 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
6264 { ac_try='test -s "conftest$ac_exeext"'
6276 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
6282 echo "$as_me:6282: checking for initscr in -lgpm" >&5
6283 echo $ECHO_N "checking for initscr in -lgpm... $ECHO_C" >&6
6288 LIBS="-lgpm $LIBS"
6308 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
6314 { ac_try='test -s "conftest$ac_exeext"'
6326 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
6334 cf_ncurses_LIBS="-lgpm"
6344 echo "$as_me:6344: checking for tgoto in -lmytinfo" >&5
6345 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
6350 LIBS="-lmytinfo $LIBS"
6370 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
6376 { ac_try='test -s "conftest$ac_exeext"'
6388 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
6394 cf_ncurses_LIBS="-lmytinfo $cf_ncurses_LIBS"
6413 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
6417 if test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no"
6423 for cf_add_1lib in -l$cf_nculib_root; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
6432 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
6449 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
6476 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
6482 { ac_try='test -s "conftest$ac_exeext"'
6494 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
6503 echo "$as_me:6503: checking for initscr in -l$cf_nculib_root" >&5
6504 echo $ECHO_N "checking for initscr in -l$cf_nculib_root... $ECHO_C" >&6
6505 LIBS="-l$cf_nculib_root $LIBS"
6509 #include <${cf_cv_ncurses_header:-curses.h}>
6518 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
6524 { ac_try='test -s "conftest$ac_exeext"'
6542 if test -n "${LDFLAGS}${LIBS}" ; then
6546 (-L*)
6547 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
6550 test -d "$cf_library_path" && \
6552 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
6553 test -d "$cf_library_path/lib" && cf_search="$cf_search $cf_library_path/lib"
6554 …test -d "$cf_library_path/lib/$cf_nculib_root" && cf_search="$cf_search $cf_library_path/lib…
6555 …test -d "$cf_library_path/lib/$cf_nculib_root/lib" && cf_search="$cf_search $cf_library_path/li…
6556 …test -d "$cf_library_path/$cf_nculib_root/lib" && cf_search="$cf_search $cf_library_path/$cf…
6557 …test -d "$cf_library_path/$cf_nculib_root/lib/$cf_nculib_root" && cf_search="$cf_search $cf_lib…
6569 test -d "$prefix" && \
6571 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
6572 test -d "$prefix/lib" && cf_search="$cf_search $prefix/lib"
6573 test -d "$prefix/lib/$cf_nculib_root" && cf_search="$cf_search $prefix/lib/$cf_nculib_root"
6574 …test -d "$prefix/lib/$cf_nculib_root/lib" && cf_search="$cf_search $prefix/lib/$cf_nculib_root/…
6575 test -d "$prefix/$cf_nculib_root/lib" && cf_search="$cf_search $prefix/$cf_nculib_root/lib"
6576 …test -d "$prefix/$cf_nculib_root/lib/$cf_nculib_root" && cf_search="$cf_search $prefix/$cf_ncul…
6589 test -d "$cf_subdir_prefix" && \
6590 { test -z "$prefix" || test "x$prefix" = xNONE || test "x$cf_subdir_prefix" != "x$prefix"; } && {
6591 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
6592 test -d "$cf_subdir_prefix/lib" && cf_search="$cf_search $cf_subdir_prefix/lib"
6593 …test -d "$cf_subdir_prefix/lib/$cf_nculib_root" && cf_search="$cf_search $cf_subdir_prefix/l…
6594 …test -d "$cf_subdir_prefix/lib/$cf_nculib_root/lib" && cf_search="$cf_search $cf_subdir_prefix/…
6595 …test -d "$cf_subdir_prefix/$cf_nculib_root/lib" && cf_search="$cf_search $cf_subdir_prefix/$…
6596 …test -d "$cf_subdir_prefix/$cf_nculib_root/lib/$cf_nculib_root" && cf_search="$cf_search $cf_su…
6605 echo "$as_me:6605: checking for -l$cf_nculib_root in $cf_libdir" >&5
6606 echo $ECHO_N "checking for -l$cf_nculib_root in $cf_libdir... $ECHO_C" >&6
6607 LIBS="-L$cf_libdir -l$cf_nculib_root $cf_save_LIBS"
6611 #include <${cf_cv_ncurses_header:-curses.h}>
6620 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
6626 { ac_try='test -s "conftest$ac_exeext"'
6643 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
6647 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
6661 if test -n "$cf_ncurses_LIBS" ; then
6666 q=`echo "$LIBS" | sed -e "s%$p %%" -e "s%$p$%%"`
6674 #include <${cf_cv_ncurses_header:-curses.h}>
6683 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
6689 { ac_try='test -s "conftest$ac_exeext"'
6704 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
6707 cf_nculib_ROOT=`echo "HAVE_LIB$cf_nculib_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMN…
6718 echo "$as_me:6718: checking if you want wide-character code" >&5
6719 echo $ECHO_N "checking if you want wide-character code... $ECHO_C" >&6
6721 # Check whether --enable-widec or --disable-widec was given.
6748 $EGREP -v '^ *\+' conftest.er1 >conftest.err
6749 rm -f conftest.er1
6753 if test -s conftest.err; then
6761 if test -z "$ac_cpp_err"; then
6768 rm -f conftest.err "conftest.$ac_ext"
6804 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
6810 { ac_try='test -s "conftest$ac_exeext"'
6826 echo "${as_me:-configure}:6826: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5
6843 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
6849 { ac_try='test -s "conftest$ac_exeext"'
6864 LIBS="-lutf8 $cf_save_LIBS"
6879 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
6885 { ac_try='test -s "conftest$ac_exeext"'
6895 cf_cv_library_file_utf8="-lutf8"
6904 test -n "$verbose" && echo " find linkage for utf8 library" 1>&6
6906 echo "${as_me:-configure}:6906: testing find linkage for utf8 library ..." 1>&5
6908 echo "${as_me:-configure}:6908: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5
6915 # collect the current set of include-directories from compiler flags
6917 if test -n "${CFLAGS}${CPPFLAGS}" ; then
6921 (-I*)
6922 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
6925 test -d "$cf_header_path" && \
6927 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
6928 test -d "$cf_header_path/include" && cf_search="$cf_search $cf_header_path/include"
6929 test -d "$cf_header_path/include/utf8" && cf_search="$cf_search $cf_header_path/include/utf8"
6930 …test -d "$cf_header_path/include/utf8/include" && cf_search="$cf_search $cf_header_path/include…
6931 test -d "$cf_header_path/utf8/include" && cf_search="$cf_search $cf_header_path/utf8/include"
6932 …test -d "$cf_header_path/utf8/include/utf8" && cf_search="$cf_search $cf_header_path/utf8/inclu…
6946 test -d "$prefix" && \
6948 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
6949 test -d "$prefix/include" && cf_search="$cf_search $prefix/include"
6950 test -d "$prefix/include/utf8" && cf_search="$cf_search $prefix/include/utf8"
6951 test -d "$prefix/include/utf8/include" && cf_search="$cf_search $prefix/include/utf8/include"
6952 test -d "$prefix/utf8/include" && cf_search="$cf_search $prefix/utf8/include"
6953 test -d "$prefix/utf8/include/utf8" && cf_search="$cf_search $prefix/utf8/include/utf8"
6966 test -d "$cf_subdir_prefix" && \
6967 { test -z "$prefix" || test "x$prefix" = xNONE || test "x$cf_subdir_prefix" != "x$prefix"; } && {
6968 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
6969 test -d "$cf_subdir_prefix/include" && cf_search="$cf_search $cf_subdir_prefix/include"
6970 …test -d "$cf_subdir_prefix/include/utf8" && cf_search="$cf_search $cf_subdir_prefix/include/…
6971 …test -d "$cf_subdir_prefix/include/utf8/include" && cf_search="$cf_search $cf_subdir_prefix/inc…
6972 …test -d "$cf_subdir_prefix/utf8/include" && cf_search="$cf_search $cf_subdir_prefix/utf8/inc…
6973 …test -d "$cf_subdir_prefix/utf8/include/utf8" && cf_search="$cf_search $cf_subdir_prefix/utf8/i…
6980 test -d "$includedir" && {
6981 test -d "$includedir" && cf_search="$cf_search $includedir"
6982 test -d "$includedir/utf8" && cf_search="$cf_search $includedir/utf8"
6987 test -d "$oldincludedir" && {
6988 test -d "$oldincludedir" && cf_search="$cf_search $oldincludedir"
6989 test -d "$oldincludedir/utf8" && cf_search="$cf_search $oldincludedir/utf8"
6996 if test -d "$cf_cv_header_path_utf8" ; then
6997 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6
6999 echo "${as_me:-configure}:6999: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5
7003 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
7004 CPPFLAGS="${CPPFLAGS}-I$cf_cv_header_path_utf8"
7019 rm -f "conftest.$ac_objext"
7025 { ac_try='test -s "conftest.$ac_objext"'
7032 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6
7034 echo "${as_me:-configure}:7034: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5
7046 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
7052 echo "${as_me:-configure}:7052: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5
7061 if test -n "${LDFLAGS}${LIBS}" ; then
7065 (-L*)
7066 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
7069 test -d "$cf_library_path" && \
7071 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
7072 test -d "$cf_library_path/lib" && cf_search="$cf_search $cf_library_path/lib"
7073 test -d "$cf_library_path/lib/utf8" && cf_search="$cf_search $cf_library_path/lib/utf8"
7074 test -d "$cf_library_path/lib/utf8/lib" && cf_search="$cf_search $cf_library_path/lib/utf8/lib"
7075 test -d "$cf_library_path/utf8/lib" && cf_search="$cf_search $cf_library_path/utf8/lib"
7076 …test -d "$cf_library_path/utf8/lib/utf8" && cf_search="$cf_search $cf_library_path/utf8/lib/utf…
7088 test -d "$prefix" && \
7090 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
7091 test -d "$prefix/lib" && cf_search="$cf_search $prefix/lib"
7092 test -d "$prefix/lib/utf8" && cf_search="$cf_search $prefix/lib/utf8"
7093 test -d "$prefix/lib/utf8/lib" && cf_search="$cf_search $prefix/lib/utf8/lib"
7094 test -d "$prefix/utf8/lib" && cf_search="$cf_search $prefix/utf8/lib"
7095 test -d "$prefix/utf8/lib/utf8" && cf_search="$cf_search $prefix/utf8/lib/utf8"
7108 test -d "$cf_subdir_prefix" && \
7109 { test -z "$prefix" || test "x$prefix" = xNONE || test "x$cf_subdir_prefix" != "x$prefix"; } && {
7110 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
7111 test -d "$cf_subdir_prefix/lib" && cf_search="$cf_search $cf_subdir_prefix/lib"
7112 test -d "$cf_subdir_prefix/lib/utf8" && cf_search="$cf_search $cf_subdir_prefix/lib/utf8"
7113 …test -d "$cf_subdir_prefix/lib/utf8/lib" && cf_search="$cf_search $cf_subdir_prefix/lib/utf8/li…
7114 test -d "$cf_subdir_prefix/utf8/lib" && cf_search="$cf_search $cf_subdir_prefix/utf8/lib"
7115 …test -d "$cf_subdir_prefix/utf8/lib/utf8" && cf_search="$cf_search $cf_subdir_prefix/utf8/lib/u…
7124 if test -d "$cf_cv_library_path_utf8" ; then
7125 test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6
7127 echo "${as_me:-configure}:7127: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5
7130 LIBS="-lutf8 $cf_save_LIBS"
7131 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8"
7145 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7151 { ac_try='test -s "conftest$ac_exeext"'
7158 test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6
7160 echo "${as_me:-configure}:7160: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5
7163 cf_cv_library_file_utf8="-lutf8"
7174 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7186 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7189 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7194 cf_cv_utf8_lib=add-on
7200 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7207 if test "$cf_cv_utf8_lib" = "add-on" ; then
7213 if test -n "$cf_cv_header_path_utf8" ; then
7218 if test -d "$cf_add_incdir"
7221 if test -n "$CFLAGS$CPPFLAGS" ; then
7224 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
7236 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
7237 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
7251 rm -f "conftest.$ac_objext"
7257 { ac_try='test -s "conftest.$ac_objext"'
7269 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
7276 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
7278 echo "${as_me:-configure}:7278: testing adding $cf_add_incdir to include-path ..." 1>&5
7280 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
7282 cf_top_incdir=`echo "$cf_add_incdir" | sed -e 's%/include/.*$%/include%'`
7295 if test -n "$cf_cv_library_path_utf8" ; then
7300 elif test -d "$cf_add_libdir"
7303 if test -n "$LDFLAGS$LIBS" ; then
7306 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
7312 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
7314 echo "${as_me:-configure}:7314: testing adding $cf_add_libdir to library-path ..." 1>&5
7316 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
7334 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7344 echo "$as_me:7344: checking pkg-config for $cf_ncuconfig_root" >&5
7345 echo $ECHO_N "checking pkg-config for $cf_ncuconfig_root... $ECHO_C" >&6
7346 if "$PKG_CONFIG" --exists $cf_ncuconfig_root ; then
7358 cf_pkg_cflags="`$PKG_CONFIG --cflags $cf_ncuconfig_root`"
7359 cf_pkg_libs="`$PKG_CONFIG --libs $cf_ncuconfig_root`"
7361 # while -W for passing linker flags is prevalent, it is not "standard".
7363 # incompatible _and_ non-standard -W option which gives an error. Work
7366 (x*c[89]9@@*-W*)
7378 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
7380 (-D*)
7381 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
7384 && test -z "${cf_tst_cflags}" \
7389 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
7395 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
7407 (-D*)
7408 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
7411 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
7412 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
7417 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
7425 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
7433 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
7436 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
7439 && test -z "${cf_tst_cflags}" \
7445 if test -n "$cf_new_cflags" ; then
7447 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
7452 if test -n "$cf_new_cppflags" ; then
7454 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
7459 if test -n "$cf_new_extra_cppflags" ; then
7461 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
7478 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7485 #include <${cf_cv_ncurses_header:-curses.h}>
7494 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7500 { ac_try='test -s "conftest$ac_exeext"'
7512 #include <${cf_cv_ncurses_header:-curses.h}>
7516 rm -f "conftest$ac_exeext"
7534 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
7541 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7548 cf_temp=`echo "x$cf_pkg_cflags" | sed -e s/^x// -e 's/-W[^ ]*//g'`
7550 cf_temp=`echo "x$cf_pkg_libs" | sed -e s/^x// -e 's/-W[^ ]*//g'`
7559 (x-[DU]*)
7561 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
7564 …S" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]…
7570 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
7573 …S" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]…
7592 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
7594 (-D*)
7595 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
7598 && test -z "${cf_tst_cflags}" \
7603 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
7609 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
7621 (-D*)
7622 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
7625 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
7626 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
7631 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
7639 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
7647 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
7650 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
7653 && test -z "${cf_tst_cflags}" \
7659 if test -n "$cf_new_cflags" ; then
7661 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
7666 if test -n "$cf_new_cppflags" ; then
7668 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
7673 if test -n "$cf_new_extra_cppflags" ; then
7675 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
7694 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7701 #include <${cf_cv_ncurses_header:-curses.h}>
7710 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7716 { ac_try='test -s "conftest$ac_exeext"'
7728 #include <${cf_cv_ncurses_header:-curses.h}>
7732 rm -f "conftest$ac_exeext"
7750 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
7757 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7782 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
7795 #include <${cf_cv_ncurses_header:-curses.h}>
7806 rm -f "conftest.$ac_objext"
7812 { ac_try='test -s "conftest.$ac_objext"'
7827 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
7876 …cf_ncurses_config="${cf_ncuconfig_root}${NCURSES_CONFIG_SUFFIX}-config"; echo "Looking for ${cf_nc…
7878 if test -n "$ac_tool_prefix"; then
7879 …g in ${cf_ncurses_config} ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}6-config ${cf_ncuconfig…
7888 if test -n "$NCURSES_CONFIG"; then
7895 test -z "$ac_dir" && ac_dir=.
7905 if test -n "$NCURSES_CONFIG"; then
7913 test -n "$NCURSES_CONFIG" && break
7916 if test -z "$NCURSES_CONFIG"; then
7918 …g in ${cf_ncurses_config} ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}6-config ${cf_ncuconfig…
7927 if test -n "$ac_ct_NCURSES_CONFIG"; then
7934 test -z "$ac_dir" && ac_dir=.
7944 if test -n "$ac_ct_NCURSES_CONFIG"; then
7952 test -n "$ac_ct_NCURSES_CONFIG" && break
7954 test -n "$ac_ct_NCURSES_CONFIG" || ac_ct_NCURSES_CONFIG="none"
7961 for cf_add_cflags in `$NCURSES_CONFIG --cflags`
7964 (x-[DU]*)
7966 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
7969 …S" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]…
7975 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
7978 …S" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]…
7997 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
7999 (-D*)
8000 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8003 && test -z "${cf_tst_cflags}" \
8008 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8014 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8026 (-D*)
8027 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8030 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8031 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8036 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
8044 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
8052 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8055 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
8058 && test -z "${cf_tst_cflags}" \
8064 if test -n "$cf_new_cflags" ; then
8066 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
8071 if test -n "$cf_new_cppflags" ; then
8073 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
8078 if test -n "$cf_new_extra_cppflags" ; then
8080 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
8090 for cf_add_1lib in `$NCURSES_CONFIG --libs`; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
8099 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
8103 # even with config script, some packages use no-override for curses.h
8128 rm -f "conftest.$ac_objext"
8134 { ac_try='test -s "conftest.$ac_objext"'
8145 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
8153 { { echo "$as_me:8153: error: No curses header-files found" >&5
8154 echo "$as_me: error: No curses header-files found" >&2;}
8176 $EGREP -v '^ *\+' conftest.er1 >conftest.err
8177 rm -f conftest.er1
8181 if test -s conftest.err; then
8189 if test -z "$ac_cpp_err"; then
8196 rm -f conftest.err "conftest.$ac_ext"
8212 cf_nculib_ROOT=`echo "HAVE_LIB$cf_ncuconfig_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJK…
8218 cf_cv_ncurses_version="`$NCURSES_CONFIG --version`"
8224 test -n "$cf_cv_curses_dir" && \
8227 if test -n "$cf_cv_curses_dir/include/$cf_ncuhdr_root" ; then
8232 if test -d "$cf_add_incdir"
8235 if test -n "$CFLAGS$CPPFLAGS" ; then
8238 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
8250 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
8251 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
8265 rm -f "conftest.$ac_objext"
8271 { ac_try='test -s "conftest.$ac_objext"'
8283 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
8290 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
8292 echo "${as_me:-configure}:8292: testing adding $cf_add_incdir to include-path ..." 1>&5
8294 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
8296 cf_top_incdir=`echo "$cf_add_incdir" | sed -e 's%/include/.*$%/include%'`
8311 echo "$as_me:8311: checking for $cf_ncuhdr_root header in include-path" >&5
8312 echo $ECHO_N "checking for $cf_ncuhdr_root header in include-path... $ECHO_C" >&6
8354 rm -f "conftest.$ac_objext"
8360 { ac_try='test -s "conftest.$ac_objext"'
8373 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
8386 echo "$as_me:8386: checking for $cf_ncuhdr_root include-path" >&5
8387 echo $ECHO_N "checking for $cf_ncuhdr_root include-path... $ECHO_C" >&6
8392 test -n "$verbose" && echo
8396 # collect the current set of include-directories from compiler flags
8398 if test -n "${CFLAGS}${CPPFLAGS}" ; then
8402 (-I*)
8403 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
8406 test -d "$cf_header_path" && \
8408 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
8409 test -d "$cf_header_path/include" && cf_search="$cf_search $cf_header_path/include"
8410 …test -d "$cf_header_path/include/$cf_ncuhdr_root" && cf_search="$cf_search $cf_header_path/i…
8411 …test -d "$cf_header_path/include/$cf_ncuhdr_root/include" && cf_search="$cf_search $cf_header_p…
8412 …test -d "$cf_header_path/$cf_ncuhdr_root/include" && cf_search="$cf_search $cf_header_path/$…
8413 …test -d "$cf_header_path/$cf_ncuhdr_root/include/$cf_ncuhdr_root" && cf_search="$cf_search $cf_…
8427 test -d "$prefix" && \
8429 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
8430 test -d "$prefix/include" && cf_search="$cf_search $prefix/include"
8431 …test -d "$prefix/include/$cf_ncuhdr_root" && cf_search="$cf_search $prefix/include/$cf_ncuhd…
8432 …test -d "$prefix/include/$cf_ncuhdr_root/include" && cf_search="$cf_search $prefix/include/$cf_…
8433 …test -d "$prefix/$cf_ncuhdr_root/include" && cf_search="$cf_search $prefix/$cf_ncuhdr_root/i…
8434 …test -d "$prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root" && cf_search="$cf_search $prefix/$cf_…
8447 test -d "$cf_subdir_prefix" && \
8448 { test -z "$prefix" || test "x$prefix" = xNONE || test "x$cf_subdir_prefix" != "x$prefix"; } && {
8449 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
8450 test -d "$cf_subdir_prefix/include" && cf_search="$cf_search $cf_subdir_prefix/include"
8451 …test -d "$cf_subdir_prefix/include/$cf_ncuhdr_root" && cf_search="$cf_search $cf_subdir_pref…
8452 …test -d "$cf_subdir_prefix/include/$cf_ncuhdr_root/include" && cf_search="$cf_search $cf_subdir…
8453 …test -d "$cf_subdir_prefix/$cf_ncuhdr_root/include" && cf_search="$cf_search $cf_subdir_pref…
8454 …test -d "$cf_subdir_prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root" && cf_search="$cf_search $c…
8461 test -d "$includedir" && {
8462 test -d "$includedir" && cf_search="$cf_search $includedir"
8463 test -d "$includedir/$cf_ncuhdr_root" && cf_search="$cf_search $includedir/$cf_ncuhdr_root"
8468 test -d "$oldincludedir" && {
8469 test -d "$oldincludedir" && cf_search="$cf_search $oldincludedir"
8470 test -d "$oldincludedir/$cf_ncuhdr_root" && cf_search="$cf_search $oldincludedir/$cf_ncuhdr_root"
8475 test -n "$verbose" && echo "search path $cf_search"
8480 if test -n "$cf_incdir" ; then
8485 if test -d "$cf_add_incdir"
8488 if test -n "$CFLAGS$CPPFLAGS" ; then
8491 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
8503 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
8504 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
8518 rm -f "conftest.$ac_objext"
8524 { ac_try='test -s "conftest.$ac_objext"'
8536 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
8543 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
8545 echo "${as_me:-configure}:8545: testing adding $cf_add_incdir to include-path ..." 1>&5
8547 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
8549 cf_top_incdir=`echo "$cf_add_incdir" | sed -e 's%/include/.*$%/include%'`
8591 rm -f "conftest.$ac_objext"
8597 { ac_try='test -s "conftest.$ac_objext"'
8610 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
8614 test -n "$verbose" && echo $ECHO_N " ... found $ECHO_C" 1>&6
8617 test -n "$verbose" && echo " ... tested $cf_incdir/$cf_header" 1>&6
8630 cf_1st_incdir=`echo "$cf_cv_ncurses_h2" | sed -e 's%/[^/]*$%%'`
8636 if test -n "$cf_1st_incdir" ; then
8641 if test -d "$cf_add_incdir"
8644 if test -n "$CFLAGS$CPPFLAGS" ; then
8647 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
8659 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
8660 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
8674 rm -f "conftest.$ac_objext"
8680 { ac_try='test -s "conftest.$ac_objext"'
8692 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
8699 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
8701 echo "${as_me:-configure}:8701: testing adding $cf_add_incdir to include-path ..." 1>&5
8703 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
8705 cf_top_incdir=`echo "$cf_add_incdir" | sed -e 's%/include/.*$%/include%'`
8757 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
8770 #include <${cf_cv_ncurses_header:-curses.h}>
8781 rm -f "conftest.$ac_objext"
8787 { ac_try='test -s "conftest.$ac_objext"'
8802 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
8853 rm -f "$cf_tempfile"
8856 # This will not work if the preprocessor splits the line after the
8859 #include <${cf_cv_ncurses_header:-curses.h}>
8876 if test -f conftest.out ; then
8877 cf_out=`sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%' conftest.out`
8878 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
8879 rm -f conftest.out
8889 #include <${cf_cv_ncurses_header:-curses.h}>
8907 ${cf_cv_main_return:-return}(0);
8910 rm -f "conftest$ac_exeext"
8928 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
8930 rm -f "$cf_tempfile"
8946 echo "$as_me:8946: checking for Gpm_Open in -lgpm" >&5
8947 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
8952 LIBS="-lgpm $LIBS"
8972 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
8978 { ac_try='test -s "conftest$ac_exeext"'
8990 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
8996 echo "$as_me:8996: checking for initscr in -lgpm" >&5
8997 echo $ECHO_N "checking for initscr in -lgpm... $ECHO_C" >&6
9002 LIBS="-lgpm $LIBS"
9022 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
9028 { ac_try='test -s "conftest$ac_exeext"'
9040 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
9048 cf_ncurses_LIBS="-lgpm"
9058 echo "$as_me:9058: checking for tgoto in -lmytinfo" >&5
9059 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
9064 LIBS="-lmytinfo $LIBS"
9084 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
9090 { ac_try='test -s "conftest$ac_exeext"'
9102 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
9108 cf_ncurses_LIBS="-lmytinfo $cf_ncurses_LIBS"
9127 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
9131 if test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no"
9137 for cf_add_1lib in -l$cf_nculib_root; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
9146 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
9163 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
9190 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
9196 { ac_try='test -s "conftest$ac_exeext"'
9208 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
9217 echo "$as_me:9217: checking for initscr in -l$cf_nculib_root" >&5
9218 echo $ECHO_N "checking for initscr in -l$cf_nculib_root... $ECHO_C" >&6
9219 LIBS="-l$cf_nculib_root $LIBS"
9223 #include <${cf_cv_ncurses_header:-curses.h}>
9232 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
9238 { ac_try='test -s "conftest$ac_exeext"'
9256 if test -n "${LDFLAGS}${LIBS}" ; then
9260 (-L*)
9261 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
9264 test -d "$cf_library_path" && \
9266 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
9267 test -d "$cf_library_path/lib" && cf_search="$cf_search $cf_library_path/lib"
9268 …test -d "$cf_library_path/lib/$cf_nculib_root" && cf_search="$cf_search $cf_library_path/lib…
9269 …test -d "$cf_library_path/lib/$cf_nculib_root/lib" && cf_search="$cf_search $cf_library_path/li…
9270 …test -d "$cf_library_path/$cf_nculib_root/lib" && cf_search="$cf_search $cf_library_path/$cf…
9271 …test -d "$cf_library_path/$cf_nculib_root/lib/$cf_nculib_root" && cf_search="$cf_search $cf_lib…
9283 test -d "$prefix" && \
9285 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
9286 test -d "$prefix/lib" && cf_search="$cf_search $prefix/lib"
9287 test -d "$prefix/lib/$cf_nculib_root" && cf_search="$cf_search $prefix/lib/$cf_nculib_root"
9288 …test -d "$prefix/lib/$cf_nculib_root/lib" && cf_search="$cf_search $prefix/lib/$cf_nculib_root/…
9289 test -d "$prefix/$cf_nculib_root/lib" && cf_search="$cf_search $prefix/$cf_nculib_root/lib"
9290 …test -d "$prefix/$cf_nculib_root/lib/$cf_nculib_root" && cf_search="$cf_search $prefix/$cf_ncul…
9303 test -d "$cf_subdir_prefix" && \
9304 { test -z "$prefix" || test "x$prefix" = xNONE || test "x$cf_subdir_prefix" != "x$prefix"; } && {
9305 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
9306 test -d "$cf_subdir_prefix/lib" && cf_search="$cf_search $cf_subdir_prefix/lib"
9307 …test -d "$cf_subdir_prefix/lib/$cf_nculib_root" && cf_search="$cf_search $cf_subdir_prefix/l…
9308 …test -d "$cf_subdir_prefix/lib/$cf_nculib_root/lib" && cf_search="$cf_search $cf_subdir_prefix/…
9309 …test -d "$cf_subdir_prefix/$cf_nculib_root/lib" && cf_search="$cf_search $cf_subdir_prefix/$…
9310 …test -d "$cf_subdir_prefix/$cf_nculib_root/lib/$cf_nculib_root" && cf_search="$cf_search $cf_su…
9319 echo "$as_me:9319: checking for -l$cf_nculib_root in $cf_libdir" >&5
9320 echo $ECHO_N "checking for -l$cf_nculib_root in $cf_libdir... $ECHO_C" >&6
9321 LIBS="-L$cf_libdir -l$cf_nculib_root $cf_save_LIBS"
9325 #include <${cf_cv_ncurses_header:-curses.h}>
9334 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
9340 { ac_try='test -s "conftest$ac_exeext"'
9357 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
9361 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
9375 if test -n "$cf_ncurses_LIBS" ; then
9380 q=`echo "$LIBS" | sed -e "s%$p %%" -e "s%$p$%%"`
9388 #include <${cf_cv_ncurses_header:-curses.h}>
9397 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
9403 { ac_try='test -s "conftest$ac_exeext"'
9418 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
9421 cf_nculib_ROOT=`echo "HAVE_LIB$cf_nculib_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMN…
9438 echo "$as_me:9438: checking pkg-config for $cf_ncuconfig_root" >&5
9439 echo $ECHO_N "checking pkg-config for $cf_ncuconfig_root... $ECHO_C" >&6
9440 if "$PKG_CONFIG" --exists $cf_ncuconfig_root ; then
9452 cf_pkg_cflags="`$PKG_CONFIG --cflags $cf_ncuconfig_root`"
9453 cf_pkg_libs="`$PKG_CONFIG --libs $cf_ncuconfig_root`"
9455 # while -W for passing linker flags is prevalent, it is not "standard".
9457 # incompatible _and_ non-standard -W option which gives an error. Work
9460 (x*c[89]9@@*-W*)
9472 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
9474 (-D*)
9475 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
9478 && test -z "${cf_tst_cflags}" \
9483 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9489 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9501 (-D*)
9502 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
9505 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
9506 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
9511 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
9519 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
9527 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9530 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
9533 && test -z "${cf_tst_cflags}" \
9539 if test -n "$cf_new_cflags" ; then
9541 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
9546 if test -n "$cf_new_cppflags" ; then
9548 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
9553 if test -n "$cf_new_extra_cppflags" ; then
9555 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
9572 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
9579 #include <${cf_cv_ncurses_header:-curses.h}>
9588 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
9594 { ac_try='test -s "conftest$ac_exeext"'
9606 #include <${cf_cv_ncurses_header:-curses.h}>
9610 rm -f "conftest$ac_exeext"
9628 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
9635 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
9642 cf_temp=`echo "x$cf_pkg_cflags" | sed -e s/^x// -e 's/-W[^ ]*//g'`
9644 cf_temp=`echo "x$cf_pkg_libs" | sed -e s/^x// -e 's/-W[^ ]*//g'`
9653 (x-[DU]*)
9655 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
9658 …S" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]…
9664 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
9667 …S" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]…
9686 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
9688 (-D*)
9689 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
9692 && test -z "${cf_tst_cflags}" \
9697 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9703 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9715 (-D*)
9716 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
9719 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
9720 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
9725 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
9733 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
9741 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9744 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
9747 && test -z "${cf_tst_cflags}" \
9753 if test -n "$cf_new_cflags" ; then
9755 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
9760 if test -n "$cf_new_cppflags" ; then
9762 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
9767 if test -n "$cf_new_extra_cppflags" ; then
9769 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
9788 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
9795 #include <${cf_cv_ncurses_header:-curses.h}>
9804 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
9810 { ac_try='test -s "conftest$ac_exeext"'
9822 #include <${cf_cv_ncurses_header:-curses.h}>
9826 rm -f "conftest$ac_exeext"
9844 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
9851 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
9876 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
9889 #include <${cf_cv_ncurses_header:-curses.h}>
9900 rm -f "conftest.$ac_objext"
9906 { ac_try='test -s "conftest.$ac_objext"'
9921 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
9970 …cf_ncurses_config="${cf_ncuconfig_root}${NCURSES_CONFIG_SUFFIX}-config"; echo "Looking for ${cf_nc…
9972 if test -n "$ac_tool_prefix"; then
9973 …g in ${cf_ncurses_config} ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}6-config ${cf_ncuconfig…
9982 if test -n "$NCURSES_CONFIG"; then
9989 test -z "$ac_dir" && ac_dir=.
9999 if test -n "$NCURSES_CONFIG"; then
10007 test -n "$NCURSES_CONFIG" && break
10010 if test -z "$NCURSES_CONFIG"; then
10012 …g in ${cf_ncurses_config} ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}6-config ${cf_ncuconfig…
10021 if test -n "$ac_ct_NCURSES_CONFIG"; then
10028 test -z "$ac_dir" && ac_dir=.
10038 if test -n "$ac_ct_NCURSES_CONFIG"; then
10046 test -n "$ac_ct_NCURSES_CONFIG" && break
10048 test -n "$ac_ct_NCURSES_CONFIG" || ac_ct_NCURSES_CONFIG="none"
10055 for cf_add_cflags in `$NCURSES_CONFIG --cflags`
10058 (x-[DU]*)
10060 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
10063 …S" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]…
10069 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
10072 …S" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]…
10091 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10093 (-D*)
10094 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10097 && test -z "${cf_tst_cflags}" \
10102 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10108 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10120 (-D*)
10121 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10124 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10125 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10130 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
10138 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
10146 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10149 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
10152 && test -z "${cf_tst_cflags}" \
10158 if test -n "$cf_new_cflags" ; then
10160 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
10165 if test -n "$cf_new_cppflags" ; then
10167 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10172 if test -n "$cf_new_extra_cppflags" ; then
10174 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10184 for cf_add_1lib in `$NCURSES_CONFIG --libs`; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
10193 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
10197 # even with config script, some packages use no-override for curses.h
10222 rm -f "conftest.$ac_objext"
10228 { ac_try='test -s "conftest.$ac_objext"'
10239 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10247 { { echo "$as_me:10247: error: No curses header-files found" >&5
10248 echo "$as_me: error: No curses header-files found" >&2;}
10270 $EGREP -v '^ *\+' conftest.er1 >conftest.err
10271 rm -f conftest.er1
10275 if test -s conftest.err; then
10283 if test -z "$ac_cpp_err"; then
10290 rm -f conftest.err "conftest.$ac_ext"
10306 cf_nculib_ROOT=`echo "HAVE_LIB$cf_ncuconfig_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJK…
10312 cf_cv_ncurses_version="`$NCURSES_CONFIG --version`"
10318 test -n "$cf_cv_curses_dir" && \
10321 if test -n "$cf_cv_curses_dir/include/$cf_ncuhdr_root" ; then
10326 if test -d "$cf_add_incdir"
10329 if test -n "$CFLAGS$CPPFLAGS" ; then
10332 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
10344 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10345 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
10359 rm -f "conftest.$ac_objext"
10365 { ac_try='test -s "conftest.$ac_objext"'
10377 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10384 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
10386 echo "${as_me:-configure}:10386: testing adding $cf_add_incdir to include-path ..." 1>&5
10388 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
10390 cf_top_incdir=`echo "$cf_add_incdir" | sed -e 's%/include/.*$%/include%'`
10405 echo "$as_me:10405: checking for $cf_ncuhdr_root header in include-path" >&5
10406 echo $ECHO_N "checking for $cf_ncuhdr_root header in include-path... $ECHO_C" >&6
10440 rm -f "conftest.$ac_objext"
10446 { ac_try='test -s "conftest.$ac_objext"'
10459 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10472 echo "$as_me:10472: checking for $cf_ncuhdr_root include-path" >&5
10473 echo $ECHO_N "checking for $cf_ncuhdr_root include-path... $ECHO_C" >&6
10478 test -n "$verbose" && echo
10482 # collect the current set of include-directories from compiler flags
10484 if test -n "${CFLAGS}${CPPFLAGS}" ; then
10488 (-I*)
10489 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
10492 test -d "$cf_header_path" && \
10494 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
10495 test -d "$cf_header_path/include" && cf_search="$cf_search $cf_header_path/include"
10496 …test -d "$cf_header_path/include/$cf_ncuhdr_root" && cf_search="$cf_search $cf_header_path/i…
10497 …test -d "$cf_header_path/include/$cf_ncuhdr_root/include" && cf_search="$cf_search $cf_header_p…
10498 …test -d "$cf_header_path/$cf_ncuhdr_root/include" && cf_search="$cf_search $cf_header_path/$…
10499 …test -d "$cf_header_path/$cf_ncuhdr_root/include/$cf_ncuhdr_root" && cf_search="$cf_search $cf_…
10513 test -d "$prefix" && \
10515 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
10516 test -d "$prefix/include" && cf_search="$cf_search $prefix/include"
10517 …test -d "$prefix/include/$cf_ncuhdr_root" && cf_search="$cf_search $prefix/include/$cf_ncuhd…
10518 …test -d "$prefix/include/$cf_ncuhdr_root/include" && cf_search="$cf_search $prefix/include/$cf_…
10519 …test -d "$prefix/$cf_ncuhdr_root/include" && cf_search="$cf_search $prefix/$cf_ncuhdr_root/i…
10520 …test -d "$prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root" && cf_search="$cf_search $prefix/$cf_…
10533 test -d "$cf_subdir_prefix" && \
10534 { test -z "$prefix" || test "x$prefix" = xNONE || test "x$cf_subdir_prefix" != "x$prefix"; } && {
10535 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
10536 test -d "$cf_subdir_prefix/include" && cf_search="$cf_search $cf_subdir_prefix/include"
10537 …test -d "$cf_subdir_prefix/include/$cf_ncuhdr_root" && cf_search="$cf_search $cf_subdir_pref…
10538 …test -d "$cf_subdir_prefix/include/$cf_ncuhdr_root/include" && cf_search="$cf_search $cf_subdir…
10539 …test -d "$cf_subdir_prefix/$cf_ncuhdr_root/include" && cf_search="$cf_search $cf_subdir_pref…
10540 …test -d "$cf_subdir_prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root" && cf_search="$cf_search $c…
10547 test -d "$includedir" && {
10548 test -d "$includedir" && cf_search="$cf_search $includedir"
10549 test -d "$includedir/$cf_ncuhdr_root" && cf_search="$cf_search $includedir/$cf_ncuhdr_root"
10554 test -d "$oldincludedir" && {
10555 test -d "$oldincludedir" && cf_search="$cf_search $oldincludedir"
10556 test -d "$oldincludedir/$cf_ncuhdr_root" && cf_search="$cf_search $oldincludedir/$cf_ncuhdr_root"
10561 test -n "$verbose" && echo "search path $cf_search"
10566 if test -n "$cf_incdir" ; then
10571 if test -d "$cf_add_incdir"
10574 if test -n "$CFLAGS$CPPFLAGS" ; then
10577 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
10589 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10590 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
10604 rm -f "conftest.$ac_objext"
10610 { ac_try='test -s "conftest.$ac_objext"'
10622 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10629 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
10631 echo "${as_me:-configure}:10631: testing adding $cf_add_incdir to include-path ..." 1>&5
10633 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
10635 cf_top_incdir=`echo "$cf_add_incdir" | sed -e 's%/include/.*$%/include%'`
10677 rm -f "conftest.$ac_objext"
10683 { ac_try='test -s "conftest.$ac_objext"'
10696 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10700 test -n "$verbose" && echo $ECHO_N " ... found $ECHO_C" 1>&6
10703 test -n "$verbose" && echo " ... tested $cf_incdir/$cf_header" 1>&6
10716 cf_1st_incdir=`echo "$cf_cv_ncurses_h2" | sed -e 's%/[^/]*$%%'`
10722 if test -n "$cf_1st_incdir" ; then
10727 if test -d "$cf_add_incdir"
10730 if test -n "$CFLAGS$CPPFLAGS" ; then
10733 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
10745 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10746 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
10760 rm -f "conftest.$ac_objext"
10766 { ac_try='test -s "conftest.$ac_objext"'
10778 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10785 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
10787 echo "${as_me:-configure}:10787: testing adding $cf_add_incdir to include-path ..." 1>&5
10789 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
10791 cf_top_incdir=`echo "$cf_add_incdir" | sed -e 's%/include/.*$%/include%'`
10843 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
10856 #include <${cf_cv_ncurses_header:-curses.h}>
10867 rm -f "conftest.$ac_objext"
10873 { ac_try='test -s "conftest.$ac_objext"'
10888 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10939 rm -f "$cf_tempfile"
10942 # This will not work if the preprocessor splits the line after the
10945 #include <${cf_cv_ncurses_header:-curses.h}>
10962 if test -f conftest.out ; then
10963 cf_out=`sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%' conftest.out`
10964 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
10965 rm -f conftest.out
10975 #include <${cf_cv_ncurses_header:-curses.h}>
10993 ${cf_cv_main_return:-return}(0);
10996 rm -f "conftest$ac_exeext"
11014 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
11016 rm -f "$cf_tempfile"
11032 echo "$as_me:11032: checking for Gpm_Open in -lgpm" >&5
11033 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
11038 LIBS="-lgpm $LIBS"
11058 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
11064 { ac_try='test -s "conftest$ac_exeext"'
11076 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
11082 echo "$as_me:11082: checking for initscr in -lgpm" >&5
11083 echo $ECHO_N "checking for initscr in -lgpm... $ECHO_C" >&6
11088 LIBS="-lgpm $LIBS"
11108 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
11114 { ac_try='test -s "conftest$ac_exeext"'
11126 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
11134 cf_ncurses_LIBS="-lgpm"
11144 echo "$as_me:11144: checking for tgoto in -lmytinfo" >&5
11145 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
11150 LIBS="-lmytinfo $LIBS"
11170 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
11176 { ac_try='test -s "conftest$ac_exeext"'
11188 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
11194 cf_ncurses_LIBS="-lmytinfo $cf_ncurses_LIBS"
11213 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
11217 if test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no"
11223 for cf_add_1lib in -l$cf_nculib_root; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
11232 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
11249 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
11276 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
11282 { ac_try='test -s "conftest$ac_exeext"'
11294 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
11303 echo "$as_me:11303: checking for initscr in -l$cf_nculib_root" >&5
11304 echo $ECHO_N "checking for initscr in -l$cf_nculib_root... $ECHO_C" >&6
11305 LIBS="-l$cf_nculib_root $LIBS"
11309 #include <${cf_cv_ncurses_header:-curses.h}>
11318 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
11324 { ac_try='test -s "conftest$ac_exeext"'
11342 if test -n "${LDFLAGS}${LIBS}" ; then
11346 (-L*)
11347 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
11350 test -d "$cf_library_path" && \
11352 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
11353 test -d "$cf_library_path/lib" && cf_search="$cf_search $cf_library_path/lib"
11354 …test -d "$cf_library_path/lib/$cf_nculib_root" && cf_search="$cf_search $cf_library_path/lib…
11355 …test -d "$cf_library_path/lib/$cf_nculib_root/lib" && cf_search="$cf_search $cf_library_path/li…
11356 …test -d "$cf_library_path/$cf_nculib_root/lib" && cf_search="$cf_search $cf_library_path/$cf…
11357 …test -d "$cf_library_path/$cf_nculib_root/lib/$cf_nculib_root" && cf_search="$cf_search $cf_lib…
11369 test -d "$prefix" && \
11371 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
11372 test -d "$prefix/lib" && cf_search="$cf_search $prefix/lib"
11373 test -d "$prefix/lib/$cf_nculib_root" && cf_search="$cf_search $prefix/lib/$cf_nculib_root"
11374 …test -d "$prefix/lib/$cf_nculib_root/lib" && cf_search="$cf_search $prefix/lib/$cf_nculib_root/…
11375 test -d "$prefix/$cf_nculib_root/lib" && cf_search="$cf_search $prefix/$cf_nculib_root/lib"
11376 …test -d "$prefix/$cf_nculib_root/lib/$cf_nculib_root" && cf_search="$cf_search $prefix/$cf_ncul…
11389 test -d "$cf_subdir_prefix" && \
11390 { test -z "$prefix" || test "x$prefix" = xNONE || test "x$cf_subdir_prefix" != "x$prefix"; } && {
11391 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
11392 test -d "$cf_subdir_prefix/lib" && cf_search="$cf_search $cf_subdir_prefix/lib"
11393 …test -d "$cf_subdir_prefix/lib/$cf_nculib_root" && cf_search="$cf_search $cf_subdir_prefix/l…
11394 …test -d "$cf_subdir_prefix/lib/$cf_nculib_root/lib" && cf_search="$cf_search $cf_subdir_prefix/…
11395 …test -d "$cf_subdir_prefix/$cf_nculib_root/lib" && cf_search="$cf_search $cf_subdir_prefix/$…
11396 …test -d "$cf_subdir_prefix/$cf_nculib_root/lib/$cf_nculib_root" && cf_search="$cf_search $cf_su…
11405 echo "$as_me:11405: checking for -l$cf_nculib_root in $cf_libdir" >&5
11406 echo $ECHO_N "checking for -l$cf_nculib_root in $cf_libdir... $ECHO_C" >&6
11407 LIBS="-L$cf_libdir -l$cf_nculib_root $cf_save_LIBS"
11411 #include <${cf_cv_ncurses_header:-curses.h}>
11420 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
11426 { ac_try='test -s "conftest$ac_exeext"'
11443 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
11447 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
11461 if test -n "$cf_ncurses_LIBS" ; then
11466 q=`echo "$LIBS" | sed -e "s%$p %%" -e "s%$p$%%"`
11474 #include <${cf_cv_ncurses_header:-curses.h}>
11483 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
11489 { ac_try='test -s "conftest$ac_exeext"'
11504 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
11507 cf_nculib_ROOT=`echo "HAVE_LIB$cf_nculib_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMN…
11521 cf_version=`$PKG_CONFIG --modversion $NCURSES_CONFIG_PKG 2>/dev/null`
11523 NCURSES_MAJOR=`echo "$cf_version" | sed -e 's/\..*//'`
11524 NCURSES_MINOR=`echo "$cf_version" | sed -e 's/^[0-9][0-9]*\.//' -e 's/\..*//'`
11525 NCURSES_PATCH=`echo "$cf_version" | sed -e 's/^[0-9][0-9]*\.[0-9][0-9]*\.//'`
11527 cf_cv_abi_version=`$PKG_CONFIG --variable=abi_version $NCURSES_CONFIG_PKG 2>/dev/null`
11528 if test -z "$cf_cv_abi_version"
11530 cf_cv_abi_version=`$PKG_CONFIG --variable=major_version $NCURSES_CONFIG_PKG 2>/dev/null`
11535 cf_version=`$NCURSES_CONFIG --version 2>/dev/null`
11537 NCURSES_MAJOR=`echo "$cf_version" | sed -e 's/\..*//'`
11538 NCURSES_MINOR=`echo "$cf_version" | sed -e 's/^[0-9][0-9]*\.//' -e 's/\..*//'`
11539 NCURSES_PATCH=`echo "$cf_version" | sed -e 's/^[0-9][0-9]*\.[0-9][0-9]*\.//'`
11542 cf_cv_abi_version=`$NCURSES_CONFIG --abi-version 2>/dev/null`
11549 #include <${cf_cv_ncurses_header:-curses.h}>
11558 if test -f conftest.out ; then
11559 cf_result=`sed -e "s/^.*AUTOCONF_${cf_name}[ ][ ]*//" conftest.out`
11577 echo "$as_me:11577: checking if you want to have a library-prefix" >&5
11578 echo $ECHO_N "checking if you want to have a library-prefix... $ECHO_C" >&6
11580 # Check whether --with-lib-prefix or --without-lib-prefix was given.
11601 (*-msvc*)
11621 CC_G_OPT='-g'
11622 test -n "$GCC" && test "${ac_cv_prog_cc_g}" != yes && CC_G_OPT=''
11630 (profile) LD_MODEL='-pg';;
11644 LD_RPATH_OPT="-Wl,-rpath,"
11646 LD_RPATH_OPT="-rpath "
11649 (linux*|gnu*|k*bsd*-gnu|freebsd*)
11650 LD_RPATH_OPT="-Wl,-rpath,"
11652 (openbsd[2-9].*|mirbsd*)
11653 LD_RPATH_OPT="-Wl,-rpath,"
11656 LD_RPATH_OPT="-rpath "
11659 LD_RPATH_OPT="-Wl,-rpath,"
11662 LD_RPATH_OPT="-rpath "
11665 LD_RPATH_OPT="-R"
11674 (x-R*)
11691 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
11707 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
11713 { ac_try='test -s "conftest$ac_exeext"'
11725 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
11738 INSTALL_LIB="-m 644"
11752 # Check whether --with-shlib-version or --without-shlib-version was given.
11755 test -z "$withval" && withval=auto
11781 # Some less-capable ports of gcc support only -fpic
11801 for CC_SHARED_OPTS in -fPIC -fpic ''
11816 rm -f "conftest.$ac_objext"
11822 { ac_try='test -s "conftest.$ac_objext"'
11833 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11843 (aix4.3-9*|aix[5-7]*)
11845 CC_SHARED_OPTS='-Wl,-brtl'
11846 …MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -
11848 CC_SHARED_OPTS='-brtl'
11849 # as well as '-qpic=large -G' or perhaps "-bM:SRE -bnoentry -bexpall"
11850 … MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -G -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
11854 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -o $@ -Xlinker -soname=`basename $@` -nostart -e 0'
11864 cat >mk_shared_lib.sh <<-CF_EOF
11867 IMPORT_LIB=\`echo "\$1" | sed -e 's/cyg/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
11869 cat <<-EOF
11874 …exec \$* ${LDFLAGS} -shared -Wl,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_…
11886 cat >mk_shared_lib.sh <<-CF_EOF
11889 IMPORT_LIB=\`echo "\$1" | sed -e 's/msys-/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
11891 cat <<-EOF
11896 …exec \$* ${LDFLAGS} -shared -Wl,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_…
11901 cf_try_cflags="no-cpp-precomp"
11902 CC_SHARED_OPTS="-dynamic"
11903 …LAGS} ${CFLAGS} -dynamiclib -install_name ${libdir}/`basename $@` -compatibility_version ${ABI_VER…
11906 echo "$as_me:11906: checking if ld -search_paths_first works" >&5
11907 echo $ECHO_N "checking if ld -search_paths_first works... $ECHO_C" >&6
11913 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
11926 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
11932 { ac_try='test -s "conftest$ac_exeext"'
11944 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
11950 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
11962 …MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o…
11964 (hpux[7-8]*)
11965 # HP-UX 8.07 ld lacks "+b" option used for libdir search-list
11969 MK_SHARED_LIB='${LD} ${LDFLAGS} -b -o $@'
11970 INSTALL_LIB="-m 555"
11973 # (tested with gcc 2.7.2 -- I don't have c89)
11975 LD_SHARED_OPTS='-Xlinker +b -Xlinker ${libdir}'
11978 LD_SHARED_OPTS='-Wl,+b,${libdir}'
11980 MK_SHARED_LIB='${LD} ${LDFLAGS} +b ${libdir} -b -o $@'
11981 # HP-UX shared libraries must be executable, and should be
11983 INSTALL_LIB="-m 555"
11993 …MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-rpath,${RPATH_LIST} -Wl,-h,'$cf_shared_sona…
12001 CC_SHARED_OPTS='-KPIC'
12002 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -rdata_shared -soname `basename $@` -o $@'
12004 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,`basename $@` -o $@'
12008 (linux*|gnu*|k*bsd*-gnu)
12009 if test "$DFT_LWR_MODEL" = "shared" && test -n "$LD_RPATH_OPT" ; then
12024 …MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o…
12032 LOCAL_LDFLAGS="-link -dll"
12034 EXTRA_LDFLAGS="-link -dll $EXTRA_LDFLAGS"
12039 cat >mk_shared_lib.sh <<-CF_EOF
12042 IMPORT_LIB=\`echo "\$1" | sed -e 's/[0-9]*\.dll$/.dll.lib/'\`
12046 cat <<-EOF
12051 args=\$(echo \$* | sed -E "s#-l(\w*)#\1.dll.lib#g" | sed -E "s#-L(\w*)#-LIBPATH:\1#g")
12052 exec \$my_ld -DLL -IMPLIB:"\${IMPORT_LIB}" -OUT:"\${SHARED_LIB}" ${LDFLAGS} \$args
12056 cat >mk_prog.sh <<-CF_EOF
12065 while test \$# -gt 0; do
12067 -link)
12068 # ignore -link argument
12070 -M[TD] | -M[TD]d)
12071 # ignore runtime-library option
12073 -dll)
12076 -W* | -w*)
12079 -D*)
12082 -I*)
12085 -l*)
12086 libs+=("\`echo \"\$1\" | sed \"s/^-l//\"\`")
12088 -L*)
12089 ldopts+=("\`echo \"\$1\" | sed \"s/^-L/-LIBPATH:/\"\`")
12094 -Wl,*)
12095 for linkarg in \`echo '\$1' | sed -e 's/-Wl,//' -e 's/,/ /'\`; do
12102 -o)
12104 ldopts+=("-out:\$1")
12113 if [ "\$isdll" -ne 0 ]; then
12122 cat <<-EOF
12138 LOCAL_LDFLAGS="-Wl,--enable-auto-import"
12140 EXTRA_LDFLAGS="-Wl,--enable-auto-import $EXTRA_LDFLAGS"
12145 cat >mk_shared_lib.sh <<-CF_EOF
12148 IMPORT_LIB=\`echo "\$1" | sed -e 's/[0-9]*\.dll$/.dll.a/'\`
12150 cat <<-EOF
12155 …exec \$* ${LDFLAGS} -shared -Wl,--enable-auto-import,--out-implib=\${IMPORT_LIB} -Wl,--export-all-
12159 (openbsd[2-9].*|mirbsd*)
12160 if test "$DFT_LWR_MODEL" = "shared" && test -n "$LD_RPATH_OPT" ; then
12167 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
12176 …MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-Bshareable,-soname,'$cf_cv_shared_soname',-
12180 MK_SHARED_LIB='${LD} -Wshared -Weld=-export_all -o $@'
12184 MK_SHARED_LIB='${LD} -Wshared -Wxld=-export_all -o $@'
12186 (nto-qnx*|openbsd*|freebsd[12].*)
12187 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
12188 MK_SHARED_LIB='${LD} ${LDFLAGS} -Bshareable -o $@'
12192 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
12206 …MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o…
12209 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
12215 if test -f /usr/libexec/ld.elf_so; then
12229 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname' -o $@'
12231 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -o $@'
12238 …MK_SHARED_LIB='${LD} ${LDFLAGS} -set_version ${REL_VERSION}:${ABI_VERSION} -expect_unresolved "*"
12241 MK_SHARED_LIB="${MK_SHARED_LIB} -msym"
12244 MK_SHARED_LIB="${MK_SHARED_LIB}"' -o $@'
12245 if test "$DFT_LWR_MODEL" = "shared" && test -n "$LD_RPATH_OPT" ; then
12251 (sco3.2v5*) # also uw2* and UW7: hops 13-Apr-98
12254 CC_SHARED_OPTS='-belf -KPIC'
12256 MK_SHARED_LIB='${LD} ${LDFLAGS} -dy -G -h `basename $@ .${REL_VERSION}`.${ABI_VERSION} -o $@'
12268 CC_SHARED_OPTS='-KPIC'
12270 MK_SHARED_LIB='${LD} ${LDFLAGS} -assert pure-text -o $@'
12277 LOCAL_LDFLAGS="-R\$(LOCAL_LIBDIR):\${libdir}"
12281 EXTRA_LDFLAGS="-R\${libdir} $EXTRA_LDFLAGS"
12293 for cf_shared_opts in -xcode=pic32 -xcode=pic13 -KPIC -Kpic -O
12308 rm -f "conftest.$ac_objext"
12314 { ac_try='test -s "conftest.$ac_objext"'
12325 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12329 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -dy -G -Wl,-h,'$cf_cv_shared_soname' -o $@'
12331 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -dy -G -Wl,-h,'$cf_cv_shared_soname' -o $@'
12337 CC_SHARED_OPTS='-KPIC'
12339 MK_SHARED_LIB='${LD} ${LDFLAGS} -d y -G -o $@'
12347 # This works if the last tokens in $MK_SHARED_LIB are the -o target.
12351 (*'-o $@')
12355 { echo "$as_me:12355: WARNING: ignored --with-shlib-version" >&5
12356 echo "$as_me: WARNING: ignored --with-shlib-version" >&2;}
12362 if test -n "$cf_try_cflags"
12365 #line 12365 "${as_me:-configure}"
12370 return (argv[argc-1] == 0) ;
12376 CFLAGS="$cf_save_CFLAGS -$cf_opt"
12377 echo "$as_me:12377: checking if CFLAGS option -$cf_opt works" >&5
12378 echo $ECHO_N "checking if CFLAGS option -$cf_opt works... $ECHO_C" >&6
12395 # RPATH_LIST is a colon-separated list of directories
12396 test -n "$cf_ld_rpath_opt" && MK_SHARED_LIB="$MK_SHARED_LIB $cf_ld_rpath_opt\${RPATH_LIST}"
12397 test -z "$RPATH_LIST" && RPATH_LIST="\${libdir}"
12401 test -n "$verbose" && echo " CC_SHARED_OPTS: $CC_SHARED_OPTS" 1>&6
12403 echo "${as_me:-configure}:12403: testing CC_SHARED_OPTS: $CC_SHARED_OPTS ..." 1>&5
12405 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
12407 echo "${as_me:-configure}:12407: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
12411 if test -n "$LOCAL_LDFLAGS"
12416 # Check whether --enable-rpath-link or --disable-rpath-link was given.
12434 ### use option --enable-broken-linker to force on use of broken-linker support
12436 echo "$as_me:12436: checking if you want broken-linker support code" >&5
12437 echo $ECHO_N "checking if you want broken-linker support code... $ECHO_C" >&6
12439 # Check whether --enable-broken_linker or --disable-broken_linker was given.
12461 echo "$as_me:12461: checking if the POSIX test-macros are already defined" >&5
12462 echo $ECHO_N "checking if the POSIX test-macros are already defined... $ECHO_C" >&6
12475 #if defined(__POSIX_VISIBLE) && ((__POSIX_VISIBLE - 0L) > 0) \
12476 && defined(__XSI_VISIBLE) && ((__XSI_VISIBLE - 0L) > 0) \
12477 && defined(__BSD_VISIBLE) && ((__BSD_VISIBLE - 0L) > 0) \
12478 && defined(__ISO_C_VISIBLE) && ((__ISO_C_VISIBLE - 0L) > 0)
12486 rm -f "conftest.$ac_objext"
12492 { ac_try='test -s "conftest.$ac_objext"'
12504 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12517 (aix[4-7]*)
12518 cf_xopen_source="-D_ALL_SOURCE"
12520 (darwin[0-8].*)
12521 cf_xopen_source="-D_APPLE_C_SOURCE"
12524 cf_xopen_source="-D_DARWIN_C_SOURCE"
12533 …cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE…
12536 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
12539 cf_xopen_source="-D_HPUX_SOURCE"
12542 cf_xopen_source="-D_SGI_SOURCE"
12545 …abin32|linux*gnueabi|linux*gnueabihf|linux*gnux32|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin|msys|mingw…
12574 rm -f "conftest.$ac_objext"
12580 { ac_try='test -s "conftest.$ac_objext"'
12592 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12611 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
12612 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE"
12633 rm -f "conftest.$ac_objext"
12639 { ac_try='test -s "conftest.$ac_objext"'
12651 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12671 for cf_add_cflags in -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=$cf_gnu_xopen_source
12676 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
12678 (-D*)
12679 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
12682 && test -z "${cf_tst_cflags}" \
12687 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12693 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12705 (-D*)
12706 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
12709 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
12710 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
12715 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
12723 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
12731 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12734 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
12737 && test -z "${cf_tst_cflags}" \
12743 if test -n "$cf_new_cflags" ; then
12745 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
12750 if test -n "$cf_new_cppflags" ; then
12752 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
12757 if test -n "$cf_new_extra_cppflags" ; then
12759 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
12784 rm -f "conftest.$ac_objext"
12790 { ac_try='test -s "conftest.$ac_objext"'
12802 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12835 rm -f "conftest.$ac_objext"
12841 { ac_try='test -s "conftest.$ac_objext"'
12858 for cf_add_cflags in -D_GNU_SOURCE
12863 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
12865 (-D*)
12866 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
12869 && test -z "${cf_tst_cflags}" \
12874 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12880 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12892 (-D*)
12893 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
12896 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
12897 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
12902 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
12910 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
12918 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12921 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
12924 && test -z "${cf_tst_cflags}" \
12930 if test -n "$cf_new_cflags" ; then
12932 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
12937 if test -n "$cf_new_cppflags" ; then
12939 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
12944 if test -n "$cf_new_extra_cppflags" ; then
12946 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
12966 rm -f "conftest.$ac_objext"
12972 { ac_try='test -s "conftest.$ac_objext"'
12984 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12988 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13002 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13003 CPPFLAGS="${CPPFLAGS}-D_GNU_SOURCE"
13020 rm -f "conftest.$ac_objext"
13026 { ac_try='test -s "conftest.$ac_objext"'
13038 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13046 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13047 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE"
13057 cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this...
13071 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
13072 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
13075 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
13076 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
13084 echo "${as_me:-configure}:13084: testing if the symbol is already defined go no further ..." 1>&5
13101 rm -f "conftest.$ac_objext"
13107 { ac_try='test -s "conftest.$ac_objext"'
13120 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
13123 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
13146 rm -f "conftest.$ac_objext"
13152 { ac_try='test -s "conftest.$ac_objext"'
13162 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
13164 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13167 echo "${as_me:-configure}:13167: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
13172 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13175 echo "${as_me:-configure}:13175: testing if the second compile does not leave our definition intact…
13192 rm -f "conftest.$ac_objext"
13198 { ac_try='test -s "conftest.$ac_objext"'
13210 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13215 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13235 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
13237 (-D*)
13238 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
13241 && test -z "${cf_tst_cflags}" \
13246 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13252 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13264 (-D*)
13265 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
13268 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
13269 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
13274 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
13282 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
13290 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13293 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
13296 && test -z "${cf_tst_cflags}" \
13302 if test -n "$cf_new_cflags" ; then
13304 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
13309 if test -n "$cf_new_cppflags" ; then
13311 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13316 if test -n "$cf_new_extra_cppflags" ; then
13318 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
13329 …cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, bre…
13331 (openbsd[6-9]*)
13332 # OpenBSD 6.x has broken locale support, both compile-time and runtime.
13333 # see https://www.mail-archive.com/bugs@openbsd.org/msg13200.html
13337 cf_xopen_source="-D_BSD_SOURCE"
13340 (openbsd[4-5]*)
13342 cf_xopen_source="-D_BSD_SOURCE"
13349 cf_xopen_source="-D_OSF_SOURCE"
13351 (nto-qnx*)
13352 cf_xopen_source="-D_QNX_SOURCE"
13358 cf_xopen_source="-D__EXTENSIONS__"
13391 rm -f "conftest.$ac_objext"
13397 { ac_try='test -s "conftest.$ac_objext"'
13409 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13410 CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
13430 rm -f "conftest.$ac_objext"
13436 { ac_try='test -s "conftest.$ac_objext"'
13448 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13452 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13461 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
13462 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
13465 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
13466 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
13468 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
13473 (x-[DU]*)
13475 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
13478 …S" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]…
13484 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
13487 …S" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]…
13506 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
13508 (-D*)
13509 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
13512 && test -z "${cf_tst_cflags}" \
13517 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13523 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13535 (-D*)
13536 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
13539 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
13540 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
13545 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
13553 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
13561 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13564 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
13567 && test -z "${cf_tst_cflags}" \
13573 if test -n "$cf_new_cflags" ; then
13575 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
13580 if test -n "$cf_new_cppflags" ; then
13582 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13587 if test -n "$cf_new_extra_cppflags" ; then
13589 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
13608 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
13609 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
13612 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
13613 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
13621 echo "${as_me:-configure}:13621: testing if the symbol is already defined go no further ..." 1>&5
13638 rm -f "conftest.$ac_objext"
13644 { ac_try='test -s "conftest.$ac_objext"'
13657 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
13660 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
13683 rm -f "conftest.$ac_objext"
13689 { ac_try='test -s "conftest.$ac_objext"'
13699 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
13701 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13704 echo "${as_me:-configure}:13704: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
13709 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13712 echo "${as_me:-configure}:13712: testing if the second compile does not leave our definition intact…
13729 rm -f "conftest.$ac_objext"
13735 { ac_try='test -s "conftest.$ac_objext"'
13747 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13752 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13772 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
13774 (-D*)
13775 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
13778 && test -z "${cf_tst_cflags}" \
13783 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13789 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13801 (-D*)
13802 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
13805 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
13806 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
13811 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
13819 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
13827 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13830 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
13833 && test -z "${cf_tst_cflags}" \
13839 if test -n "$cf_new_cflags" ; then
13841 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
13846 if test -n "$cf_new_cppflags" ; then
13848 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13853 if test -n "$cf_new_extra_cppflags" ; then
13855 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
13864 # Some of these niche implementations use copy/paste, double-check...
13866 test -n "$verbose" && echo " checking if _POSIX_C_SOURCE interferes with _XOPEN_SOURCE" 1>&6
13868 echo "${as_me:-configure}:13868: testing checking if _POSIX_C_SOURCE interferes with _XOPEN_SOURCE …
13888 rm -f "conftest.$ac_objext"
13894 { ac_try='test -s "conftest.$ac_objext"'
13909 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13914 if test -n "$cf_xopen_source" ; then
13919 (x-[DU]*)
13921 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
13924 …S" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]…
13926 test -n "$verbose" && echo " removing old option $cf_add_cflags from CFLAGS" 1>&6
13928 echo "${as_me:-configure}:13928: testing removing old option $cf_add_cflags from CFLAGS ..." 1>&5
13933 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
13936 …S" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]…
13938 test -n "$verbose" && echo " removing old option $cf_add_cflags from CPPFLAGS" 1>&6
13940 echo "${as_me:-configure}:13940: testing removing old option $cf_add_cflags from CPPFLAGS ..." 1>&5
13958 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
13960 (-D*)
13961 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
13964 && test -z "${cf_tst_cflags}" \
13969 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13975 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13987 (-D*)
13988 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
13991 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
13992 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
13997 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
14005 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
14013 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14016 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
14019 && test -z "${cf_tst_cflags}" \
14025 if test -n "$cf_new_cflags" ; then
14026 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
14028 echo "${as_me:-configure}:14028: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
14030 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
14035 if test -n "$cf_new_cppflags" ; then
14036 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
14038 echo "${as_me:-configure}:14038: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
14040 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
14045 if test -n "$cf_new_extra_cppflags" ; then
14046 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
14048 echo "${as_me:-configure}:14048: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
14050 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
14059 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
14077 rm -f "conftest.$ac_objext"
14083 { ac_try='test -s "conftest.$ac_objext"'
14095 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14108 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
14109 #error (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
14115 rm -f "conftest.$ac_objext"
14121 { ac_try='test -s "conftest.$ac_objext"'
14133 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14165 rm -f "conftest.$ac_objext"
14171 { ac_try='test -s "conftest.$ac_objext"'
14183 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
14184 CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
14204 rm -f "conftest.$ac_objext"
14210 { ac_try='test -s "conftest.$ac_objext"'
14222 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14226 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14235 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
14236 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
14239 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
14240 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
14242 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
14247 (x-[DU]*)
14249 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
14252 …S" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]…
14258 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
14261 …S" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]…
14280 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
14282 (-D*)
14283 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
14286 && test -z "${cf_tst_cflags}" \
14291 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14297 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14309 (-D*)
14310 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
14313 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
14314 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
14319 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
14327 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
14335 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14338 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
14341 && test -z "${cf_tst_cflags}" \
14347 if test -n "$cf_new_cflags" ; then
14349 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
14354 if test -n "$cf_new_cppflags" ; then
14356 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
14361 if test -n "$cf_new_extra_cppflags" ; then
14363 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
14393 $EGREP -v '^ *\+' conftest.er1 >conftest.err
14394 rm -f conftest.er1
14398 if test -s conftest.err; then
14406 if test -z "$ac_cpp_err"; then
14413 rm -f conftest.err "conftest.$ac_ext"
14429 rm -rf conftest*
14447 rm -rf conftest*
14452 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14462 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14482 rm -f "conftest$ac_exeext"
14500 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
14531 rm -f "conftest.$ac_objext"
14537 { ac_try='test -s "conftest.$ac_objext"'
14549 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14581 rm -f "conftest.$ac_objext"
14587 { ac_try='test -s "conftest.$ac_objext"'
14599 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14604 # Check whether --enable-largefile or --disable-largefile was given.
14621 # so use the C compiler's -n32 option if that helps.
14626 /* Check that off_t can represent 2**63 - 1 correctly.
14630 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14633 ? 1 : -1];
14642 rm -f "conftest.$ac_objext"
14648 { ac_try='test -s "conftest.$ac_objext"'
14659 rm -f "conftest.$ac_objext"
14660 CC="$CC -n32"
14661 rm -f "conftest.$ac_objext"
14667 { ac_try='test -s "conftest.$ac_objext"'
14673 ac_cv_sys_largefile_CC=' -n32'; break
14678 rm -f "conftest.$ac_objext"
14682 rm -f "conftest.$ac_ext"
14702 /* Check that off_t can represent 2**63 - 1 correctly.
14706 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14709 ? 1 : -1];
14718 rm -f "conftest.$ac_objext"
14724 { ac_try='test -s "conftest.$ac_objext"'
14735 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14741 /* Check that off_t can represent 2**63 - 1 correctly.
14745 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14748 ? 1 : -1];
14757 rm -f "conftest.$ac_objext"
14763 { ac_try='test -s "conftest.$ac_objext"'
14774 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14787 rm -rf conftest*
14799 /* Check that off_t can represent 2**63 - 1 correctly.
14803 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14806 ? 1 : -1];
14815 rm -f "conftest.$ac_objext"
14821 { ac_try='test -s "conftest.$ac_objext"'
14832 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14838 /* Check that off_t can represent 2**63 - 1 correctly.
14842 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14845 ? 1 : -1];
14854 rm -f "conftest.$ac_objext"
14860 { ac_try='test -s "conftest.$ac_objext"'
14871 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14884 rm -rf conftest*
14910 rm -f "conftest.$ac_objext"
14916 { ac_try='test -s "conftest.$ac_objext"'
14927 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14944 rm -f "conftest.$ac_objext"
14950 { ac_try='test -s "conftest.$ac_objext"'
14961 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14974 rm -rf conftest*
14998 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
15004 { ac_try='test -s "conftest$ac_exeext"'
15016 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
15038 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
15039 CPPFLAGS="${CPPFLAGS}-D_LARGE_FILES"
15045 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
15046 CPPFLAGS="${CPPFLAGS}-D_LARGEFILE_SOURCE"
15052 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
15053 CPPFLAGS="${CPPFLAGS}-D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
15067 #pragma GCC diagnostic error "-Wincompatible-pointer-types"
15083 int z = x - y;
15090 rm -f "conftest.$ac_objext"
15096 { ac_try='test -s "conftest.$ac_objext"'
15108 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
15120 ### Enable compiling-in rcs id's
15121 echo "$as_me:15121: checking if RCS identifiers should be compiled-in" >&5
15122 echo $ECHO_N "checking if RCS identifiers should be compiled-in... $ECHO_C" >&6
15124 # Check whether --with-rcs-ids or --without-rcs-ids was given.
15144 # Check whether --enable-ext-funcs or --disable-ext-funcs was given.
15168 ### use option --enable-const to turn on use of const beyond that in XSI.
15172 # Check whether --enable-const or --disable-const was given.
15192 # Check whether --with-develop or --without-develop was given.
15206 # the script-block --with-normal, etc.
15211 # Check whether --with-pthread or --without-pthread was given.
15235 $EGREP -v '^ *\+' conftest.er1 >conftest.err
15236 rm -f conftest.er1
15240 if test -s conftest.err; then
15248 if test -z "$ac_cpp_err"; then
15255 rm -f conftest.err "conftest.$ac_ext"
15274 for cf_add_1lib in -l$cf_lib_pthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15283 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15304 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
15310 { ac_try='test -s "conftest$ac_exeext"'
15322 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
15334 for cf_add_1lib in -l$cf_lib_pthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15343 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15361 echo "$as_me:15361: checking if you want to use weak-symbols for pthreads" >&5
15362 echo $ECHO_N "checking if you want to use weak-symbols for pthreads... $ECHO_C" >&6
15364 # Check whether --enable-weak-symbols or --disable-weak-symbols was given.
15407 rm -f "conftest.$ac_objext"
15413 { ac_try='test -s "conftest.$ac_objext"'
15425 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
15452 PTHREAD=-lpthread
15466 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
15493 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
15499 { ac_try='test -s "conftest$ac_exeext"'
15511 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
15522 # opaque outside of that, so there is no --enable-opaque option. We can use
15523 # this option without --with-pthreads, but this will be always set for
15528 # Check whether --enable-reentrant or --disable-reentrant was given.
15542 LIBS=`echo "$LIBS" | sed -e 's/-lpthread[ ]//g' -e 's/-lpthread$//'`
15556 ### Allow using a different wrap-prefix
15561 # Check whether --with-wrap-prefix or --without-wrap-prefix was given.
15580 ### use option --disable-echo to suppress full display compiling commands
15585 # Check whether --enable-echo or --disable-echo was given.
15591 ECHO_LT='--silent'
15622 # Check whether --enable-stdnoreturn or --disable-stdnoreturn was given.
15661 rm -f "conftest.$ac_objext"
15667 { ac_try='test -s "conftest.$ac_objext"'
15679 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
15709 (*-Werror=*)
15714 (x-Werror=format*)
15716 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
15720 (x-Werror=*)
15722 test -n "$EXTRA_CFLAGS" && EXTRA_CFLAGS="$EXTRA_CFLAGS "
15728 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
15736 test -n "$verbose" && echo " repairing CFLAGS: $CFLAGS" 1>&6
15738 echo "${as_me:-configure}:15738: testing repairing CFLAGS: $CFLAGS ..." 1>&5
15741 test -n "$verbose" && echo " ... fixed $CFLAGS" 1>&6
15743 echo "${as_me:-configure}:15743: testing ... fixed $CFLAGS ..." 1>&5
15745 test -n "$verbose" && echo " ... extra $EXTRA_CFLAGS" 1>&6
15747 echo "${as_me:-configure}:15747: testing ... extra $EXTRA_CFLAGS ..." 1>&5
15757 (*-Werror=*)
15762 (x-Werror=format*)
15764 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
15768 (x-Werror=*)
15770 test -n "$EXTRA_CFLAGS" && EXTRA_CFLAGS="$EXTRA_CFLAGS "
15776 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
15784 test -n "$verbose" && echo " repairing CPPFLAGS: $CPPFLAGS" 1>&6
15786 echo "${as_me:-configure}:15786: testing repairing CPPFLAGS: $CPPFLAGS ..." 1>&5
15789 test -n "$verbose" && echo " ... fixed $CPPFLAGS" 1>&6
15791 echo "${as_me:-configure}:15791: testing ... fixed $CPPFLAGS ..." 1>&5
15793 test -n "$verbose" && echo " ... extra $EXTRA_CFLAGS" 1>&6
15795 echo "${as_me:-configure}:15795: testing ... extra $EXTRA_CFLAGS ..." 1>&5
15805 (*-Werror=*)
15810 (x-Werror=format*)
15812 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
15816 (x-Werror=*)
15818 test -n "$EXTRA_CFLAGS" && EXTRA_CFLAGS="$EXTRA_CFLAGS "
15824 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
15832 test -n "$verbose" && echo " repairing LDFLAGS: $LDFLAGS" 1>&6
15834 echo "${as_me:-configure}:15834: testing repairing LDFLAGS: $LDFLAGS ..." 1>&5
15837 test -n "$verbose" && echo " ... fixed $LDFLAGS" 1>&6
15839 echo "${as_me:-configure}:15839: testing ... fixed $LDFLAGS ..." 1>&5
15841 test -n "$verbose" && echo " ... extra $EXTRA_CFLAGS" 1>&6
15843 echo "${as_me:-configure}:15843: testing ... extra $EXTRA_CFLAGS ..." 1>&5
15853 # Check whether --enable-warnings or --disable-warnings was given.
15881 x-[IUD]*)
15905 rm -f "conftest.$ac_objext"
15911 { ac_try='test -s "conftest.$ac_objext"'
15918 echo "$as_me:15918: checking for X11/Xt const-feature" >&5
15919 echo $ECHO_N "checking for X11/Xt const-feature... $ECHO_C" >&6
15942 rm -f "conftest.$ac_objext"
15948 { ac_try='test -s "conftest.$ac_objext"'
15964 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
15977 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
15978 CPPFLAGS="${CPPFLAGS}-DXTSTRINGDEFINES"
15983 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
15984 CPPFLAGS="${CPPFLAGS}-D_CONST_X_STRING"
15993 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
15996 #line 15996 "${as_me:-configure}"
15997 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
16001 # The "-wdXXX" options suppress warnings:
16003 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential…
16004 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
16015 EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
16027 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
16033 test -n "$verbose" && echo "$as_me:16033: result: ... -$cf_opt" >&5
16034 echo "${ECHO_T}... -$cf_opt" >&6
16035 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
16045 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
16046 cf_gcc_warnings="Wignored-qualifiers Wlogical-op Wvarargs"
16049 Wbad-function-cast \
16050 Wcast-align \
16051 Wcast-qual \
16052 Wdeclaration-after-statement \
16055 Wmissing-declarations \
16056 Wmissing-prototypes \
16057 Wnested-externs \
16058 Wpointer-arith \
16060 Wstrict-prototypes \
16061 Wundef Wno-inline $cf_gcc_warnings $cf_warn_CONST Wno-unknown-pragmas Wswitch-enum
16063 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
16069 test -n "$verbose" && echo "$as_me:16069: result: ... -$cf_opt" >&5
16070 echo "${ECHO_T}... -$cf_opt" >&6
16075 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
16077 echo "${as_me:-configure}:16077: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
16082 (Wpointer-arith)
16085 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
16087 echo "${as_me:-configure}:16087: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
16093 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
16098 rm -rf ./conftest*
16123 #line 16123 "${as_me:-configure}"
16148 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ…
16178 test -n "$verbose" && echo "$as_me:16178: result: ... $cf_attribute" >&5
16232 ${FGREP-fgrep} define conftest.i >>confdefs.h
16234 rm -rf ./conftest*
16241 ADAFLAGS="$ADAFLAGS -gnatwa -gnatyg"
16245 ### use option --enable-assertions to turn on generation of assertion code
16249 # Check whether --enable-assertions or --disable-assertions was given.
16258 if test -n "$GCC"
16262 CPPFLAGS="$CPPFLAGS -DNDEBUG"
16265 ADAFLAGS="$ADAFLAGS -gnata"
16270 ### use option --disable-leaks to suppress "permanent" leaks, for testing
16276 ### use option --enable-expanded to generate certain macros as functions
16278 # Check whether --enable-expanded or --disable-expanded was given.
16288 ### use option --disable-macros to suppress macros in favor of functions
16290 # Check whether --enable-macros or --disable-macros was given.
16300 # Normally we only add trace() to the debug-library. Allow this to be
16304 (*-DTRACE*)
16312 # Check whether --with-trace or --without-trace was given.
16330 for cf_add_cflags in -DTRACE
16335 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
16337 (-D*)
16338 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
16341 && test -z "${cf_tst_cflags}" \
16346 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16352 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16364 (-D*)
16365 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
16368 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
16369 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
16374 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
16382 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
16390 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16393 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
16396 && test -z "${cf_tst_cflags}" \
16402 if test -n "$cf_new_cflags" ; then
16404 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
16409 if test -n "$cf_new_cppflags" ; then
16411 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
16416 if test -n "$cf_new_extra_cppflags" ; then
16418 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
16430 # Check whether --enable-gnat-projects or --disable-gnat-projects was given.
16474 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
16480 { ac_try='test -s "conftest$ac_exeext"'
16492 LIBS="$LIBS -lssp"
16510 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
16516 { ac_try='test -s "conftest$ac_exeext"'
16528 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
16532 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
16543 for cf_add_1lib in -lssp; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
16552 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
16580 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
16586 { ac_try='test -s "conftest$ac_exeext"'
16598 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
16621 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
16648 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
16654 { ac_try='test -s "conftest$ac_exeext"'
16666 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
16678 echo "$as_me:16678: checking for gettimeofday in -lbsd" >&5
16679 echo $ECHO_N "checking for gettimeofday in -lbsd... $ECHO_C" >&6
16684 LIBS="-lbsd $LIBS"
16704 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
16710 { ac_try='test -s "conftest$ac_exeext"'
16722 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
16736 for cf_add_1lib in -lbsd; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
16745 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
16778 rm -f "conftest.$ac_objext"
16784 { ac_try='test -s "conftest.$ac_objext"'
16796 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
16816 int _array_ [1 - 2 * !((sizeof (signed char)) >= 0)]
16821 rm -f "conftest.$ac_objext"
16827 { ac_try='test -s "conftest.$ac_objext"'
16842 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
16847 rm -f "conftest.$ac_objext"
16853 { ac_try='test -s "conftest.$ac_objext"'
16865 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
16870 ac_hi=-1 ac_mid=-1
16879 int _array_ [1 - 2 * !((sizeof (signed char)) >= $ac_mid)]
16884 rm -f "conftest.$ac_objext"
16890 { ac_try='test -s "conftest.$ac_objext"'
16900 ac_hi=`expr "$ac_mid" - 1`; ac_mid=`expr 2 '*' "$ac_mid"`
16902 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
16905 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
16908 ac_mid=`expr '(' "$ac_hi" - "$ac_lo" ')' / 2 + "$ac_lo"`
16916 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
16921 rm -f "conftest.$ac_objext"
16927 { ac_try='test -s "conftest.$ac_objext"'
16939 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
16964 rm -f "conftest$ac_exeext"
16981 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
16984 rm -f conftest.val
17018 rm -f "conftest.$ac_objext"
17024 { ac_try='test -s "conftest.$ac_objext"'
17036 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
17049 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
17051 echo "$as_me:17051: checking for opendir in -ldir" >&5
17052 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
17057 LIBS="-ldir $LIBS"
17077 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
17083 { ac_try='test -s "conftest$ac_exeext"'
17095 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
17101 LIBS="$LIBS -ldir"
17105 echo "$as_me:17105: checking for opendir in -lx" >&5
17106 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
17111 LIBS="-lx $LIBS"
17131 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
17137 { ac_try='test -s "conftest$ac_exeext"'
17149 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
17155 LIBS="$LIBS -lx"
17181 rm -f "conftest.$ac_objext"
17187 { ac_try='test -s "conftest.$ac_objext"'
17199 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
17214 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
17215 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
17219 echo "$as_me:17219: checking for an ANSI C-conforming const" >&5
17220 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
17244 an arm of an if-expression whose if-part is not a constant
17247 ccp = &g + (g ? g-g : 0);
17259 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17265 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17272 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17274 struct s *b; b->j = 5;
17276 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17286 rm -f "conftest.$ac_objext"
17292 { ac_try='test -s "conftest.$ac_objext"'
17304 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
17316 ### Checks for external-data
17318 echo "$as_me:17318: checking if data-only library module links" >&5
17319 echo $ECHO_N "checking if data-only library module links... $ECHO_C" >&6
17324 rm -f conftest.a
17337 rm -f conftest.$ac_ext data.o
17344 ${cf_cv_main_return:-return}(1); /* I'm told this linker is broken */
17364 rm -f conftest.$ac_ext func.o
17378 ${cf_cv_main_return:-return} (!testfunc());
17382 rm -f "conftest$ac_exeext"
17400 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
17438 $EGREP -v '^ *\+' conftest.er1 >conftest.err
17439 rm -f conftest.er1
17443 if test -s conftest.err; then
17451 if test -z "$ac_cpp_err"; then
17458 rm -f conftest.err "conftest.$ac_ext"
17476 rm -rf ./conftest*
17511 ${cf_cv_main_return:-return}(result);
17515 rm -f "conftest$ac_exeext"
17535 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
17551 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
17578 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
17584 { ac_try='test -s "conftest$ac_exeext"'
17596 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
17610 if test -z "$cf_user_CFLAGS" && test "$with_no_leaks" = no ; then
17611 …CFLAGS=`echo "${CFLAGS}" | sed -e 's%-g %%' -e 's%-g$%%' -e 's%[ ]% %g' -e 's% [ ]*% %g' -e 's%^ %…
17612 …CXXFLAGS=`echo "${CXXFLAGS}" | sed -e 's%-g %%' -e 's%-g$%%' -e 's%[ ]% %g' -e 's% [ ]*% %g' -e 's…
17621 cf_upper_prog_gnat=`echo "${cf_prog_gnat}" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQR…
17641 test -z "$ac_dir" && ac_dir=.
17649 test -z "$ac_cv_path_cf_TEMP_gnat" && ac_cv_path_cf_TEMP_gnat="no"
17655 if test -n "$cf_TEMP_gnat"; then
17675 cf_cv_gnat_version=`$cf_prog_gnat --version 2>&1 | \
17676 grep '[0-9].[0-9][0-9]*' |\
17677 sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
17682 test -z "$cf_cv_gnat_version" && cf_cv_gnat_version=no
17702 rm -rf ./conftest* ./*~conftest*
17718 …cf_gprconfig_value=`echo s| gprconfig --config=$cf_gprconfig_param 2>&5 | ${AWK:-awk} '/^\*/{print…
17719 test -n "$cf_gprconfig_value" && break
17723 …cf_gprconfig_value=`echo s| gprconfig --config=$cf_gprconfig_param 2>&5 | ${AWK:-awk} '/^\*/{print…
17725 if test -n "$cf_gprconfig_value"
17738 rm -rf ./conftest* ./*~conftest*
17750 cf_cv_gnat_version=`${cf_ada_make:-gnatmake} --version 2>&1 | \
17751 grep '[0-9].[0-9][0-9]*' |\
17752 sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
17757 test -z "$cf_cv_gnat_version" && cf_cv_gnat_version=no
17760 (3.1[1-9]*|3.[2-9]*|[4-9].*|[1-9][0-9].[0-9]*|20[0-9][0-9])
17777 if test -n "$M4_exists"; then
17784 test -z "$ac_dir" && ac_dir=.
17791 test -z "$ac_cv_prog_M4_exists" && ac_cv_prog_M4_exists="no"
17795 if test -n "$M4_exists"; then
17812 rm -rf ./conftest* ./*~conftest*
17835 rm -rf ./conftest* ./*~conftest*
17850 (*-g*)
17852 ADAFLAGS="$ADAFLAGS -g"
17857 (*-O*)
17858 cf_O_flag=`echo "$CFLAGS" |sed -e 's/^.*-O/-O/' -e 's/[ ].*//'`
17867 echo "$as_me:17867: checking if GNATPREP supports -T option" >&5
17868 echo $ECHO_N "checking if GNATPREP supports -T option... $ECHO_C" >&6
17874 gnatprep -T 2>/dev/null >/dev/null && cf_cv_gnatprep_opt_t=yes
17879 test "$cf_cv_gnatprep_opt_t" = yes && GNATPREP_OPTS="-T $GNATPREP_OPTS"
17884 (3.1[1-9]*|3.[2-9]*|[4-9].*|[1-9][0-9].[0-9]*|20[0-9][0-9])
17909 rm -rf ./conftest* ./*~conftest*
17915 pragma Warnings (Off); -- the next pragma exists since 3.11p
17948 rm -rf ./conftest* ./*~conftest*
17967 (3.[0-9]*)
17974 rm -rf ./conftest* ./*~conftest*
17978 rm -rf ./conftest* ./*~conftest*
18008 -Plibrary.gpr \
18009 -XBUILD_DIR="`cd ../conftest.bin;pwd`" \
18010 -XLIBRARY_DIR="`cd ../conftest.lib;pwd`" \
18011 -XSOURCE_DIR="`pwd`" \
18012 -XSONAME=libConfTest.so.1 \
18013 -XLIB_KIND=static 1>&5 2>&1 ) ; then
18018 if test -f conftest.lib/confpackage.ali
18022 rm -rf ./conftest* ./*~conftest*
18070 # Check whether --with-ada-compiler or --without-ada-compiler was given.
18086 # Check whether --with-ada-include or --without-ada-include was given.
18091 withval="${ADA_INCLUDE:-$prefix/share/ada/adainclude}"
18092 fi; if test -n "$prefix/share/ada/adainclude" ; then
18105 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
18111 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
18116 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
18134 # Check whether --with-ada-objects or --without-ada-objects was given.
18139 withval="${ADA_OBJECTS:-$prefix/lib/ada/adalib}"
18140 fi; if test -n "$prefix/lib/ada/adalib" ; then
18153 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
18159 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
18164 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
18182 # Check whether --with-ada-sharedlib or --without-ada-sharedlib was given.
18225 # Check whether --with-ada-libname or --without-ada-libname was given.
18259 ### Construct the list of include-directories to be generated
18262 CPPFLAGS="-I\${srcdir}/../include $CPPFLAGS"
18264 CPPFLAGS="-I../include $CPPFLAGS"
18266 CPPFLAGS="-I\${srcdir} $CPPFLAGS"
18268 CPPFLAGS="-I. $CPPFLAGS"
18270 ACPPFLAGS="-I. -I../include -I../../include $ACPPFLAGS"
18272 ACPPFLAGS="-I\${srcdir}/../../include $ACPPFLAGS"
18275 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
18279 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
18282 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
18297 test -n "$LIB_SUFFIX" && DFT_ARG_SUFFIX="${LIB_SUFFIX}${DFT_ARG_SUFFIX}"
18301 echo "$as_me:18301: checking default library-dependency suffix" >&5
18302 echo $ECHO_N "checking default library-dependency suffix... $ECHO_C" >&6
18311 (*-msvc*)
18322 (*-msvc*)
18333 (aix[5-7]*)
18337 (*-msvc*)
18369 (*-msvc*)
18379 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
18406 ### Set up low-level terminfo dependencies for makefiles.
18414 # "lib" files have ".dll.a" suffix, "msys-" files have ".dll"
18426 ### with the appropriate compile-rules.
18428 SUB_MAKEFILES="gen/adacurses${USE_ARG_SUFFIX}-config:gen/adacurses-config.in"
18440 NCURSES_SHLIB2="sh -c"
18455 # match layout used by make-tar.sh
18464 …_MAKEFILES src/library.gpr:src/library.gpr.in doc/adacurses${DFT_ARG_SUFFIX}-config.1:doc/MKada_co…
18469 # scripts and configure runs, see configure's option --config-cache.
18474 # the --recheck option to rerun configure.
18491 # `set' does not quote correctly, so add quotes (double-quote
18493 sed -n \
18499 sed -n \
18511 if cmp -s $cache_file confcache; then :; else
18512 if test -w $cache_file; then
18519 rm -f confcache
18540 DEFS=-DHAVE_CONFIG_H
18554 me=\`echo "\$0" | sed -e 's,.*\\/,,'\`
18557 SHELL=\${CONFIG_SHELL-$SHELL}
18566 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18569 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18570 set -o posix
18582 rm -f conf$$ conf$$.exe conf$$.file
18584 if ln -s conf$$.file conf$$ 2>/dev/null; then
18587 if test -f conf$$.exe; then
18589 as_ln_s='cp -p'
18591 as_ln_s='ln -s'
18596 as_ln_s='cp -p'
18598 rm -f conf$$ conf$$.exe conf$$.file
18600 as_executable_p="test -f"
18633 if test -n "$ac_config_files"; then
18637 if test -n "$ac_config_headers"; then
18641 if test -n "$ac_config_links"; then
18645 if test -n "$ac_config_commands"; then
18657 -h, --help print this help, then exit
18658 -V, --version print version number, then exit
18659 -d, --debug don't remove temporary files
18660 --recheck update $as_me by reconfiguring in the same conditions
18661 --file=FILE[:TEMPLATE]
18663 --header=FILE[:TEMPLATE]
18675 Report bugs to <dickey@invisible-island.net>."
18684 Copyright 2003-2022,2023 Thomas E. Dickey
18700 --*=*)
18707 -*);;
18717 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18718 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
18719 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
18722 --version | --vers* | -V )
18724 --he | --h)
18725 # Conflict between --help and --header
18727 Try \`$0 --help' for more information." >&5
18729 Try \`$0 --help' for more information." >&2;}
18731 --help | --hel | -h )
18733 --debug | --d* | -d )
18735 --file | --fil | --fi | --f )
18739 --header | --heade | --head | --hea )
18745 -*) { { echo "$as_me:18745: error: unrecognized option: $1
18746 Try \`$0 --help' for more information." >&5
18748 Try \`$0 --help' for more information." >&2;}
18760 ## ----------------------- ##
18762 ## ----------------------- ##
18770 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18777 # INIT-COMMANDS section.
18781 ### configuration-run into config.status
18816 …"doc/adacurses${DFT_ARG_SUFFIX}-config.1" ) CONFIG_FILES="$CONFIG_FILES doc/adacurses${DFT_ARG_SUF…
18839 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18846 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
18847 test -n "$tmp" && test -d "$tmp"
18850 tmp=$TMPDIR/cs$$-$RANDOM
18868 if test -n "\$CONFIG_FILES"; then
19054 # Split the substitutions into bite-sized pieces for seds with
19055 # small command number limits, like on Digital OSF/1 and HP-UX.
19063 if test "$ac_beg" -gt 1; then
19068 if test ! -s "$tmp"/subs.frag; then
19076 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat "$tmp"/subs.frag) >"$tmp"/subs-$ac_sed_frag.sed
19082 if test -s "$tmp"/subs.next; then
19084 if test ! -s "$tmp"/subs.edit; then
19086 if test ! -s "$tmp"/subs.edit; then
19087 if test "$ac_beg" -gt 1; then
19088 ac_end=`expr "$ac_end" - 1`
19095 if test -z "$ac_sed_cmds"; then
19096 ac_sed_cmds="sed -f \"$tmp\"/subs-$ac_sed_frag.sed"
19098 ac_sed_cmds="$ac_sed_cmds | sed -f \"$tmp\"/subs-$ac_sed_frag.sed"
19105 if test -z "$ac_sed_cmds"; then
19108 fi # test -n "$CONFIG_FILES"
19115 - | *:- | *:-:* ) # input from stdin
19148 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
19162 if test -z "$ac_dots"; then
19180 if test x"$ac_file" != x-; then
19183 rm -f "$ac_file"
19196 -) echo "$tmp"/stdin ;;
19198 # Absolute (can't be DOS-style, as IFS=:)
19199 test -f "$f" || { { echo "$as_me:19199: error: cannot find input file: $f" >&5
19204 if test -f "$f"; then
19207 elif test -f "$srcdir/$f"; then
19221 if test x"$ac_file" != x-; then
19225 if test -n "$ac_seen"; then
19227 if test -z "$ac_used"; then
19236 if test -n "$ac_seen"; then
19247 …ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${p…
19257 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19263 rm -f "$tmp"/stdin
19265 test -n "${FGREP}" || FGREP="grep -F"
19266 test -n "${EGREP}" || EGREP="grep -E"
19268 test -n "\${FGREP}" || FGREP="$FGREP"
19269 test -n "\${EGREP}" || EGREP="$EGREP"
19272 if test x"$ac_file" != x-; then
19277 ac_seen=`$FGREP -n '${'$ac_name'[:=].*}' "$ac_file"`
19278 if test -n "$ac_seen"; then
19280 if test -z "$ac_init"; then
19281 ac_seen=`echo "$ac_seen" |sed -e 's,^,'"$ac_file"':,'`
19289 $EGREP -n '@[a-z_][a-z_0-9]+@' "$ac_file" >"$tmp"/out
19290 $EGREP -n '@[A-Z_][A-Z_0-9]+@' "$ac_file" >>"$tmp"/out
19291 if test -s "$tmp"/out; then
19292 ac_seen=`sed -e 's,^,'"$ac_file"':,' < "$tmp"/out`
19301 rm -f "$tmp"/out
19333 - | *:- | *:-:* ) # input from stdin
19342 test x"$ac_file" != x- && { echo "$as_me:19342: creating $ac_file" >&5
19350 -) echo "$tmp"/stdin ;;
19352 # Absolute (can't be DOS-style, as IFS=:)
19353 test -f "$f" || { { echo "$as_me:19353: error: cannot find input file: $f" >&5
19358 if test -f "$f"; then
19361 elif test -f "$srcdir/$f"; then
19385 rm -f conftest.tail
19386 echo ' rm -f conftest.frag' >> "$CONFIG_STATUS"
19389 # Write chunks of a limited-size here document to conftest.frag.
19391 sed "${ac_max_here_lines}q" conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> "$CONFIG_STATUS"
19394 rm -f conftest.vals
19397 rm -f conftest.vals
19405 sed -f conftest.edit "$tmp"/in > "$tmp"/out
19406 rm -f "$tmp"/in
19408 rm -f conftest.edit conftest.frag
19415 if test x"$ac_file" = x-; then
19421 rm -f "$tmp"/in
19422 if test x"$ac_file" != x-; then
19423 if cmp -s "$ac_file" "$tmp/config.h" 2>/dev/null; then
19450 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
19456 rm -f "$ac_file"
19461 rm -f "$tmp"/config.h
19475 $AWK -v PACKAGE=$PACKAGE -f $srcdir/mk-pkg.awk </dev/null >> Makefile
19476 if test -z "$USE_OLD_MAKERULES" ; then
19477 $AWK -f $srcdir/mk-1st.awk <$srcdir/src/modules >>src/Makefile
19508 ${MAKE:-make} preinstall