• Home
  • Raw
  • Download

Lines Matching +full:ncurses +full:- +full:devel

2 # Guess values for system-dependent variables and create Makefiles.
5 # Copyright 2003-2022,2023 Thomas E. Dickey
25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29 set -o posix
41 rm -f conf$$ conf$$.exe conf$$.file
43 if ln -s conf$$.file conf$$ 2>/dev/null; then
46 if test -f conf$$.exe; then
48 as_ln_s='cp -p'
50 as_ln_s='ln -s'
55 as_ln_s='cp -p'
57 rm -f conf$$ conf$$.exe conf$$.file
59 as_executable_p="test -f"
90 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
102 SHELL=${CONFIG_SHELL-/bin/sh}
109 ac_unique_file="ncurses.c"
198 if test -n "$ac_prev"; then
210 -bindir | --bindir | --bindi | --bind | --bin | --bi)
212 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
215 -build | --build | --buil | --bui | --bu)
217 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
220 -cache-file | --cache-file | --cache-fil | --cache-fi \
221 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
223 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
224 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
227 --config-cache | -C)
230 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
232 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
233 | --da=*)
236 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
237 | --dataroo | --dataro | --datar)
239 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
240 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
243 -disable-* | --disable-*)
244 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
246 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
249 ac_feature=`echo "$ac_feature" | sed 's/-/_/g'`
252 -enable-* | --enable-*)
253 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
255 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
258 ac_feature=`echo "$ac_feature" | sed 's/-/_/g'`
265 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
266 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
267 | --exec | --exe | --ex)
269 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
270 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
271 | --exec=* | --exe=* | --ex=*)
274 -gas | --gas | --ga | --g)
275 # Obsolete; use --with-gas.
278 -help | --help | --hel | --he | -h)
280 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
282 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
285 -host | --host | --hos | --ho)
287 -host=* | --host=* | --hos=* | --ho=*)
290 -includedir | --includedir | --includedi | --included | --include \
291 | --includ | --inclu | --incl | --inc)
293 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
294 | --includ=* | --inclu=* | --incl=* | --inc=*)
297 -infodir | --infodir | --infodi | --infod | --info | --inf)
299 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
302 -libdir | --libdir | --libdi | --libd)
304 -libdir=* | --libdir=* | --libdi=* | --libd=*)
307 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
308 | --libexe | --libex | --libe)
310 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
311 | --libexe=* | --libex=* | --libe=*)
314 -localstatedir | --localstatedir | --localstatedi | --localstated \
315 | --localstate | --localstat | --localsta | --localst \
316 | --locals | --local | --loca | --loc | --lo)
318 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
319 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
320 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
323 -runstatedir | --runstatedir | --runstatedi | --runstated \
324 | --runstate | --runstat | --runsta | --runst \
325 | --runs | --run | --ru)
327 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
328 | --runstate=* | --runstat=* | --runsta=* | --runst=* \
329 | --runs=* | --run=* | --ru=*)
332 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
334 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
337 -nfp | --nfp | --nf)
338 # Obsolete; use --without-fp.
341 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
342 | --no-cr | --no-c)
345 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
346 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
349 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
350 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
351 | --oldin | --oldi | --old | --ol | --o)
353 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
354 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
355 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
358 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
360 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
363 -program-prefix | --program-prefix | --program-prefi | --program-pref \
364 | --program-pre | --program-pr | --program-p)
366 -program-prefix=* | --program-prefix=* | --program-prefi=* \
367 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
370 -program-suffix | --program-suffix | --program-suffi | --program-suff \
371 | --program-suf | --program-su | --program-s)
373 -program-suffix=* | --program-suffix=* | --program-suffi=* \
374 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
377 -program-transform-name | --program-transform-name \
378 | --program-transform-nam | --program-transform-na \
379 | --program-transform-n | --program-transform- \
380 | --program-transform | --program-transfor \
381 | --program-transfo | --program-transf \
382 | --program-trans | --program-tran \
383 | --progr-tra | --program-tr | --program-t)
385 -program-transform-name=* | --program-transform-name=* \
386 | --program-transform-nam=* | --program-transform-na=* \
387 | --program-transform-n=* | --program-transform-=* \
388 | --program-transform=* | --program-transfor=* \
389 | --program-transfo=* | --program-transf=* \
390 | --program-trans=* | --program-tran=* \
391 | --progr-tra=* | --program-tr=* | --program-t=*)
394 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
395 | -silent | --silent | --silen | --sile | --sil)
398 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
400 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
401 | --sbi=* | --sb=*)
404 -sharedstatedir | --sharedstatedir | --sharedstatedi \
405 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
406 | --sharedst | --shareds | --shared | --share | --shar \
407 | --sha | --sh)
409 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
410 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
411 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
412 | --sha=* | --sh=*)
415 -site | --site | --sit)
417 -site=* | --site=* | --sit=*)
420 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
422 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
425 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
426 | --syscon | --sysco | --sysc | --sys | --sy)
428 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
429 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
432 -target | --target | --targe | --targ | --tar | --ta | --t)
434 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
437 -v | -verbose | --verbose | --verbos | --verbo | --verb)
440 -version | --version | --versio | --versi | --vers | -V)
443 -with-* | --with-*)
444 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
446 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
449 ac_package=`echo "$ac_package" | sed 's/-/_/g'`
456 -without-* | --without-*)
457 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
459 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
462 ac_package=`echo "$ac_package" | sed 's/-/_/g'`
465 --x)
466 # Obsolete; use --with-x.
469 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
470 | --x-incl | --x-inc | --x-in | --x-i)
472 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
473 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
476 -x-libraries | --x-libraries | --x-librarie | --x-librari \
477 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
479 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
480 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
483 -*) { echo "$as_me: error: unrecognized option: $ac_option
484 Try \`$0 --help' for more information." >&2
500 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
501 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
509 if test -n "$ac_prev"; then
510 ac_option=--`echo "$ac_prev" | sed 's/_/-/g'`
521 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
533 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
539 # used to hold the argument of --host etc.
548 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
556 test -n "$host_alias" && ac_tool_prefix=$host_alias-
561 if test -z "$srcdir"; then
568 if test ! -r "$srcdir/$ac_unique_file"; then
574 if test ! -r "$srcdir/$ac_unique_file"; then
618 # Report the --help message.
634 -h, --help display this help and exit
635 --help=short display options specific to this package
636 --help=recursive display the short help of all the included packages
637 -V, --version display version information and exit
638 -q, --quiet, --silent do not print \`checking...' messages
639 --cache-file=FILE cache test results in FILE [disabled]
640 -C, --config-cache alias for \`--cache-file=config.cache'
641 -n, --no-create do not create output files
642 --srcdir=DIR find the sources in DIR [configure dir or \`..']
648 --prefix=PREFIX install architecture-independent files in PREFIX
650 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
655 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
656 for instance \`--prefix=\$HOME'.
661 --bindir=DIR user executables [EPREFIX/bin]
662 --sbindir=DIR system admin executables [EPREFIX/sbin]
663 --libexecdir=DIR program executables [EPREFIX/libexec]
664 --datarootdir=DIR read-only architecture-independent data [PREFIX/share]
665 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
666 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
667 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
668 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
669 --runstatedir=DIR extra definition of runtime data [LOCALSTATEDIR/run]
670 --libdir=DIR object code libraries [EPREFIX/lib]
671 --includedir=DIR C header files [PREFIX/include]
672 --oldincludedir=DIR C header files for non-gcc [/usr/include]
673 --infodir=DIR info documentation [DATAROOTDIR/info]
674 --mandir=DIR man documentation [DATAROOTDIR/man]
680 --program-prefix=PREFIX prepend PREFIX to installed program names
681 --program-suffix=SUFFIX append SUFFIX to installed program names
682 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
685 --x-includes=DIR X include files are in DIR
686 --x-libraries=DIR X library files are in DIR
689 --build=BUILD configure for building on BUILD [guessed]
690 --host=HOST build programs to run on HOST [BUILD]
694 if test -n "$ac_init_help"; then
699 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
700 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
703 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
704 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
707 --disable-stripping do not strip (debug info) installed executables
708 --with-strip-program=XX specify program to use when stripping in install
709 --enable-stdnoreturn enable C11 _Noreturn feature for diagnostics
710 --enable-string-hacks work around bogus compiler/loader warnings
711 --with-pkg-config[=CMD] enable/disable use of pkg-config and its name CMD
712 --disable-echo do not display "compiling" commands
713 Curses Version-dependent Options:
714 --with-ncurses-wrap-prefix naming-prefix for ncurses wrapped-variables
715 --disable-widec disable checks for wide-character functions
716 --with-curses-dir=DIR directory in which (n)curses is installed
717 --with-screen=XXX use specified curses-libraries
718 --with-ncursesw use wide ncurses-libraries
719 --with-ncurses use ncurses-libraries
720 --with-pdcurses compile/link with pdcurses X11 library
721 --with-curses-colr compile/link with HPUX 10.x color-curses
722 --with-curses-5lib compile/link with SunOS 5lib curses
723 --with-Xaw3d link with Xaw 3d library
724 --with-Xaw3dxft link with Xaw 3d xft library
725 --with-neXtaw link with neXT Athena library
726 --with-XawPlus link with Athena-Plus library
727 --with-x use the X Window System
728 --with-x11-rgb=FILE obtain X11 color definitions from FILE (default: EPREFIX/lib/X11/rgb.txt)
729 --with-form-libname[=XXX] override ifelse(,,form,) basename of library
730 --with-menu-libname[=XXX] override ifelse(,,menu,) basename of library
731 --with-panel-libname[=XXX] override ifelse(,,panel,) basename of library
732 --disable-panel disable checks for panel functions
733 --disable-menu disable checks for menu functions
734 --disable-form disable checks for form functions
736 --enable-warnings test: turn on gcc compiler warnings
737 --with-dmalloc test: use Gray Watson's dmalloc library
738 --with-dbmalloc test: use Conor Cahill's dbmalloc library
739 --with-valgrind test: use valgrind
740 --disable-leaks test: free permanent memory, analyze leaks
741 --disable-rpath-hack don't add rpath options for additional libraries
746 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
748 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
759 # If there are subdirs, report their specific --help.
768 .) # No --srcdir option. We are building in place.
777 if test -f "$ac_sub_srcdir/configure.gnu"; then
779 $SHELL "$ac_sub_srcdir/configure.gnu" --help=recursive
780 elif test -f "$ac_sub_srcdir/configure"; then
782 $SHELL "$ac_sub_srcdir/configure" --help=recursive
783 elif test -f "$ac_sub_srcdir/configure.ac" ||
784 test -f "$ac_sub_srcdir/configure.in"; then
786 "$ac_configure" --help
794 test -n "$ac_init_help" && exit 0
798 Copyright 2003-2022,2023 Thomas E. Dickey
819 ## ---------- ##
821 ## ---------- ##
823 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
824 uname -m = `(uname -m) 2>/dev/null || echo unknown`
825 uname -r = `(uname -r) 2>/dev/null || echo unknown`
826 uname -s = `(uname -s) 2>/dev/null || echo unknown`
827 uname -v = `(uname -v) 2>/dev/null || echo unknown`
829 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
830 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
833 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
846 ## ------------ ##
848 ## ------------ ##
853 # Strip out --no-create and --no-recursion so they do not pile up.
854 # Also quote any args containing shell meta-characters.
860 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
861 | --no-cr | --no-c) ;;
862 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
863 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
880 echo "## ----------------- ##" >&5
882 echo "## ----------------- ##" >&5
889 sed -n \
894 sed -n \
900 if test -s conftest.log; then
902 echo "## ------------ ##" >&5
904 echo "## ------------ ##" >&5
912 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
921 rm -rf conftest* confdefs.h
927 if test -z "$CONFIG_SITE"; then
935 if test -r "$ac_site_file"; then
943 if test -r "$cache_file"; then
946 if test -f "$cache_file"; then
964 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1013 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
1014 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
1018 case `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in
1019 *c*,-n*) ECHO_N=
1020 ECHO_C= # newlines do not sed ;-) only broken shells would use this case anyway
1023 *c*,* ) ECHO_N=-n
1045 rm -f conftest.sh
1049 test -f config.guess || ( test -f ../config.guess && cp ../config.guess ./ )
1051 test -f config.sub || ( test -f ../config.sub && cp ../config.sub ./ )
1055 if test -f "$ac_dir/install-sh"; then
1057 ac_install_sh="$ac_aux_dir/install-sh -c"
1059 elif test -f "$ac_dir/install.sh"; then
1061 ac_install_sh="$ac_aux_dir/install.sh -c"
1063 elif test -f "$ac_dir/shtool"; then
1065 ac_install_sh="$ac_aux_dir/shtool install -c"
1069 if test -z "$ac_aux_dir"; then
1070 …{ { echo "$as_me:1070: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/.…
1071 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1090 test -z "$ac_cv_build_alias" &&
1092 test -z "$ac_cv_build_alias" &&
1105 build_cpu=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1106 build_vendor=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1107 build_os=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1109 if test -f "$srcdir/config.guess" || test -f "$ac_aux_dir/config.guess" ; then
1116 test -z "$ac_cv_host_alias" &&
1127 host_cpu=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1128 host_vendor=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1129 host_os=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1133 system_name="`(uname -s -r) 2>/dev/null`"
1134 if test -z "$system_name" ; then
1138 test -n "$system_name" &&
1149 test -z "$system_name" && system_name="$cf_cv_system_name"
1150 test -n "$cf_cv_system_name" && echo "$as_me:1150: result: Configuring for $cf_cv_system_name" >&5
1171 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1174 echo "$as_me:1174: checking whether ${MAKE-make} sets \${MAKE}" >&5
1175 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1176 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1185 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1186 if test -n "$ac_maketemp"; then
1191 rm -f conftest.make
1200 SET_MAKE="MAKE=${MAKE-make}"
1205 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
1206 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
1209 if test -n "$ac_tool_prefix"; then
1217 if test -n "$CC"; then
1224 test -z "$ac_dir" && ac_dir=.
1234 if test -n "$CC"; then
1243 if test -z "$ac_cv_prog_CC"; then
1252 if test -n "$ac_ct_CC"; then
1259 test -z "$ac_dir" && ac_dir=.
1269 if test -n "$ac_ct_CC"; then
1282 if test -z "$CC"; then
1283 if test -n "$ac_tool_prefix"; then
1291 if test -n "$CC"; then
1298 test -z "$ac_dir" && ac_dir=.
1308 if test -n "$CC"; then
1317 if test -z "$ac_cv_prog_CC"; then
1326 if test -n "$ac_ct_CC"; then
1333 test -z "$ac_dir" && ac_dir=.
1343 if test -n "$ac_ct_CC"; then
1357 if test -z "$CC"; then
1365 if test -n "$CC"; then
1373 test -z "$ac_dir" && ac_dir=.
1401 if test -n "$CC"; then
1410 if test -z "$CC"; then
1411 if test -n "$ac_tool_prefix"; then
1421 if test -n "$CC"; then
1428 test -z "$ac_dir" && ac_dir=.
1438 if test -n "$CC"; then
1446 test -n "$CC" && break
1449 if test -z "$CC"; then
1460 if test -n "$ac_ct_CC"; then
1467 test -z "$ac_dir" && ac_dir=.
1477 if test -n "$ac_ct_CC"; then
1485 test -n "$ac_ct_CC" && break
1493 test -z "$CC" && { { echo "$as_me:1493: error: no acceptable cc found in \$PATH" >&5
1501 { (eval echo "$as_me:1501: \"$ac_compiler --version </dev/null >&5\"") >&5
1502 (eval $ac_compiler --version </dev/null >&5) 2>&5
1506 { (eval echo "$as_me:1506: \"$ac_compiler -v </dev/null >&5\"") >&5
1507 (eval $ac_compiler -v </dev/null >&5) 2>&5
1511 { (eval echo "$as_me:1511: \"$ac_compiler -V </dev/null >&5\"") >&5
1512 (eval $ac_compiler -V </dev/null >&5) 2>&5
1531 # Try to create an executable without -o first, disregard a.out.
1536 ac_link_default=`echo "$ac_link" | sed 's/ -o *"conftest[^"]*"//'`
1554 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1591 If you meant to cross compile, use \`--host'." >&5
1593 If you meant to cross compile, use \`--host'." >&2;}
1601 rm -f a.out a.exe "conftest$ac_cv_exeext"
1636 rm -f "conftest$ac_cv_exeext"
1640 rm -f "conftest.$ac_ext"
1660 rm -f conftest.o conftest.obj
1681 rm -f "conftest.$ac_cv_objext" "conftest.$ac_ext"
1707 rm -f "conftest.$ac_objext"
1713 { ac_try='test -s "conftest.$ac_objext"'
1725 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
1734 CFLAGS="-g"
1735 echo "$as_me:1735: checking whether $CC accepts -g" >&5
1736 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1752 rm -f "conftest.$ac_objext"
1758 { ac_try='test -s "conftest.$ac_objext"'
1770 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
1778 CFLAGS="-g -O2"
1780 CFLAGS="-g"
1784 CFLAGS="-O2"
1798 rm -f "conftest.$ac_objext"
1804 { ac_try='test -s "conftest.$ac_objext"'
1832 rm -f "conftest.$ac_objext"
1838 { ac_try='test -s "conftest.$ac_objext"'
1850 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
1863 rm -f "conftest.$ac_objext"
1869 { ac_try='test -s "conftest.$ac_objext"'
1880 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
1882 rm -rf conftest*
1883 if test -n "$ac_declaration"; then
1893 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
1896 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
1897 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
1905 …GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^[^(]*([^)][^)]*) //' -e 's/^[^0-9…
1906 test -z "$GCC_VERSION" && GCC_VERSION=unknown
1919 CFLAGS="$CFLAGS -no-gcc"
1937 rm -f "conftest.$ac_objext"
1943 { ac_try='test -s "conftest.$ac_objext"'
1950 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
1956 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
1987 rm -f "conftest.$ac_objext"
1993 { ac_try='test -s "conftest.$ac_objext"'
2005 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2015 (c[1-9][0-9]|*/c[1-9][0-9])
2018 CFLAGS="$CFLAGS -std=`echo "$CC" | sed -e 's%.*/%%'`"
2025 …G_VERSION="`$CC --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(CLANG[^)]*) //' -e 's/^.*(Debian[^…
2026 test -z "$CLANG_VERSION" && CLANG_VERSION=unknown
2031 -Qunused-arguments \
2032 -Wno-error=implicit-function-declaration
2052 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
2058 { ac_try='test -s "conftest$ac_exeext"'
2072 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
2077 test -n "$verbose" && echo " adding option $cf_clang_opt" 1>&6
2079 echo "${as_me:-configure}:2079: testing adding option $cf_clang_opt ..." 1>&5
2081 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2132 # Don't try gcc -ansi; that turns off useful extensions and
2134 # AIX -qlanglvl=ansi
2135 # Ultrix and OSF/1 -std1
2136 # HP-UX 10.20 and later -Ae
2137 # HP-UX older versions -Aa -D_HPUX_SOURCE
2138 # SVR4 -Xc -D__EXTENSIONS__
2139 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2142 rm -f "conftest.$ac_objext"
2148 { ac_try='test -s "conftest.$ac_objext"'
2160 rm -f "conftest.$ac_objext"
2162 rm -f "conftest.$ac_ext" "conftest.$ac_objext"
2183 (*-[IUD]*)
2203 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2205 (-D*)
2206 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2209 && test -z "${cf_tst_cflags}" \
2214 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2220 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2232 (-D*)
2233 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2236 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2237 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2242 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2250 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2258 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2261 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
2264 && test -z "${cf_tst_cflags}" \
2270 if test -n "$cf_new_cflags" ; then
2272 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2277 if test -n "$cf_new_cppflags" ; then
2279 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2284 if test -n "$cf_new_extra_cppflags" ; then
2286 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2302 (*[\ \ ]-*)
2308 cf_prog=`echo "$CC" | sed -e 's/ / /g' -e 's/[ ]* / /g' -e 's/[ ]*[ ]-[^ ].*//'`
2309 cf_flags=`echo "$CC" | sed -e "s%^$cf_prog%%"`
2314 (x-[IUDfgOW]*)
2326 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2328 (-D*)
2329 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2332 && test -z "${cf_tst_cflags}" \
2337 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2343 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2355 (-D*)
2356 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2359 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2360 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2365 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2373 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2381 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2384 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
2387 && test -z "${cf_tst_cflags}" \
2393 if test -n "$cf_new_cflags" ; then
2395 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2400 if test -n "$cf_new_cppflags" ; then
2402 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2407 if test -n "$cf_new_extra_cppflags" ; then
2409 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2420 test -n "$verbose" && echo " resulting CC: '$CC'" 1>&6
2422 echo "${as_me:-configure}:2422: testing resulting CC: '$CC' ..." 1>&5
2424 test -n "$verbose" && echo " resulting CFLAGS: '$CFLAGS'" 1>&6
2426 echo "${as_me:-configure}:2426: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5
2428 test -n "$verbose" && echo " resulting CPPFLAGS: '$CPPFLAGS'" 1>&6
2430 echo "${as_me:-configure}:2430: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5
2455 rm -f "conftest.$ac_objext"
2461 { ac_try='test -s "conftest.$ac_objext"'
2472 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2500 if test -n "$GREP"; then
2507 test -z "$ac_dir" && ac_dir=.
2517 if test -n "$GREP"; then
2525 test -n "$GREP" && break
2527 test -n "$GREP" || GREP=": "
2534 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
2535 then ac_cv_path_EGREP="$GREP -E"
2555 test -z "$ac_dir" && ac_dir=.
2568 if test -n "$EGREP"; then
2576 test -n "$EGREP" && break
2578 test -n "$EGREP" || EGREP=": "
2591 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
2592 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
2598 if test -n "$CPP" && test -d "$CPP"; then
2601 if test -z "$CPP"; then
2606 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2612 # with a fresh cross-compiler works.
2613 # On the NeXT, cc -E runs the code through the compiler's parser,
2624 $EGREP -v '^ *\+' conftest.er1 >conftest.err
2625 rm -f conftest.er1
2629 if test -s conftest.err; then
2637 if test -z "$ac_cpp_err"; then
2645 rm -f conftest.err "conftest.$ac_ext"
2647 # OK, works on sane cases. Now check whether non-existent headers
2657 $EGREP -v '^ *\+' conftest.er1 >conftest.err
2658 rm -f conftest.er1
2662 if test -s conftest.err; then
2670 if test -z "$ac_cpp_err"; then
2680 rm -f conftest.err "conftest.$ac_ext"
2684 rm -f conftest.err "conftest.$ac_ext"
2703 # with a fresh cross-compiler works.
2704 # On the NeXT, cc -E runs the code through the compiler's parser,
2715 $EGREP -v '^ *\+' conftest.er1 >conftest.err
2716 rm -f conftest.er1
2720 if test -s conftest.err; then
2728 if test -z "$ac_cpp_err"; then
2736 rm -f conftest.err "conftest.$ac_ext"
2738 # OK, works on sane cases. Now check whether non-existent headers
2748 $EGREP -v '^ *\+' conftest.er1 >conftest.err
2749 rm -f conftest.er1
2753 if test -s conftest.err; then
2761 if test -z "$ac_cpp_err"; then
2771 rm -f conftest.err "conftest.$ac_ext"
2775 rm -f conftest.err "conftest.$ac_ext"
2786 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
2787 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
2800 if test -n "$AWK"; then
2807 test -z "$ac_dir" && ac_dir=.
2817 if test -n "$AWK"; then
2825 test -n "$AWK" && break
2836 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2842 if test -z "$INSTALL"; then
2866 # program-specific install script used by HP pwplus--don't use.
2869 ac_cv_path_install="$ac_dir/$ac_prog -c"
2892 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2894 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2896 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2898 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2904 cf_dir=`echo "$INSTALL" | sed -e 's%/[^/]*$%%'`
2905 test -z "$cf_dir" && cf_dir=.
2906 INSTALL="`cd \"$cf_dir\" && pwd`"/"`echo "$INSTALL" | sed -e 's%^.*/%%'`"
2913 # Check whether --enable-stripping or --disable-stripping was given.
2932 INSTALL_OPT_S="-s"
2938 echo "$as_me:2938: checking if install accepts -p option" >&5
2939 echo $ECHO_N "checking if install accepts -p option... $ECHO_C" >&6
2944 rm -rf ./conftest*
2948 if $INSTALL -p conftest.in conftest.out 2>/dev/null
2950 if test -f conftest.out/conftest.in
2952 test conftest.in -nt conftest.out/conftest.in 2>conftest.err && \
2953 test conftest.out/conftest.in -nt conftest.in 2>conftest.err
2954 if test -s conftest.err
2966 rm -rf ./conftest*
2987 …INSTALL_OPT_O="`id root|sed -e 's/uid=[0-9]*(/ -o /' -e 's/gid=[0-9]*(/ -g /' -e 's/ [^=[:space:]]…
2992 if test -n "$INSTALL_OPT_S"
2994 echo "$as_me:2994: checking if you want to specify strip-program" >&5
2995 echo $ECHO_N "checking if you want to specify strip-program... $ECHO_C" >&6
2997 # Check whether --with-strip-program or --without-strip-program was given.
3008 echo "$as_me:3008: checking if strip-program is supported with this installer" >&5
3009 echo $ECHO_N "checking if strip-program is supported with this installer... $ECHO_C" >&6
3010 cf_install_program=`echo "$INSTALL" | sed -e 's%[ ]*[ ]-.%%'`
3012 if test -f "$cf_install_program"
3014 check_install_version=`"$cf_install_program" --version 2>/dev/null | head -n 1 | grep coreutils`
3015 if test -n "$check_install_version"
3038 cat >install.tmp <<-CF_EOF
3046 test -n "$verbose" && echo " created $INSTALL" 1>&6
3048 echo "${as_me:-configure}:3048: testing created $INSTALL ..." 1>&5
3052 INSTALL_OPT_S="$INSTALL_OPT_S --strip-program=\"$with_strip_program\""
3067 if test -n "$LINT"; then
3074 test -z "$ac_dir" && ac_dir=.
3084 if test -n "$LINT"; then
3092 test -n "$LINT" && break
3097 test -z "$LINT_OPTS" && LINT_OPTS="--enable=all"
3101 echo "$as_me:3101: checking for \".PHONY\" make-support" >&5
3102 echo $ECHO_N "checking for \".PHONY\" make-support... $ECHO_C" >&6
3107 rm -rf conftest*
3127 ${MAKE:-make} always DATA=$cf_data
3128 ${MAKE:-make} once DATA=$cf_data
3129 ${MAKE:-make} -t always once
3130 if test -f always ; then
3132 elif test ! -f always.out ; then
3134 elif test ! -f once.out ; then
3136 elif ! cmp -s always.out once.out ; then
3145 rm -f ./*.out
3153 rm -rf conftest*
3163 echo "$as_me:3163: checking if filesystem supports mixed-case filenames" >&5
3164 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
3171 (*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*|darwin*)
3179 rm -f conftest CONFTEST
3181 if test -f CONFTEST ; then
3186 rm -f conftest CONFTEST
3206 if test -n "$CTAGS"; then
3213 test -z "$ac_dir" && ac_dir=.
3223 if test -n "$CTAGS"; then
3231 test -n "$CTAGS" && break
3243 if test -n "$ETAGS"; then
3250 test -z "$ac_dir" && ac_dir=.
3260 if test -n "$ETAGS"; then
3268 test -n "$ETAGS" && break
3271 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
3272 set dummy ${CTAGS:-ctags}; ac_word=$2
3278 if test -n "$MAKE_LOWER_TAGS"; then
3285 test -z "$ac_dir" && ac_dir=.
3292 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
3296 if test -n "$MAKE_LOWER_TAGS"; then
3305 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
3306 set dummy ${ETAGS:-etags}; ac_word=$2
3312 if test -n "$MAKE_UPPER_TAGS"; then
3319 test -z "$ac_dir" && ac_dir=.
3326 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
3330 if test -n "$MAKE_UPPER_TAGS"; then
3354 echo "$as_me:3354: checking if -lm needed for math functions" >&5
3355 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
3376 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
3382 { ac_try='test -s "conftest$ac_exeext"'
3394 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
3403 LIBS="$LIBS -lm"
3404 echo "$as_me:3404: checking if -lm is available for math functions" >&5
3405 echo $ECHO_N "checking if -lm is available for math functions... $ECHO_C" >&6
3426 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
3432 { ac_try='test -s "conftest$ac_exeext"'
3444 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
3452 MATH_LIB=-lm
3469 CC_G_OPT="-g"
3473 DFT_OBJ_SUBDIR=`pwd|sed -e's:.*/::'`
3487 PACKAGE="ncurses-examples"
3488 PTHREAD="-lm"
3506 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3507 then ac_cv_path_FGREP="$GREP -F"
3527 test -z "$ac_dir" && ac_dir=.
3540 if test -n "$FGREP"; then
3548 test -n "$FGREP" && break
3550 test -n "$FGREP" || FGREP=": "
3564 # Check whether --enable-stdnoreturn or --disable-stdnoreturn was given.
3603 rm -f "conftest.$ac_objext"
3609 { ac_try='test -s "conftest.$ac_objext"'
3621 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3666 #line 3666 "${as_me:-configure}"
3691 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ…
3721 test -n "$verbose" && echo "$as_me:3721: result: ... $cf_attribute" >&5
3775 ${FGREP-fgrep} define conftest.i >>confdefs.h
3777 rm -rf ./conftest*
3783 # Check whether --enable-string-hacks or --disable-string-hacks was given.
3799 …{ echo "$as_me:3799: WARNING: enabling string-hacks to work around bogus compiler/loader warnings"…
3800 echo "$as_me: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&2;}
3810 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
3837 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
3843 { ac_try='test -s "conftest$ac_exeext"'
3855 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
3867 echo "$as_me:3867: checking for strlcat in -lbsd" >&5
3868 echo $ECHO_N "checking for strlcat in -lbsd... $ECHO_C" >&6
3873 LIBS="-lbsd $LIBS"
3893 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
3899 { ac_try='test -s "conftest$ac_exeext"'
3911 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
3921 for cf_add_1lib in -lbsd; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
3930 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
3950 $EGREP -v '^ *\+' conftest.er1 >conftest.err
3951 rm -f conftest.er1
3955 if test -s conftest.err; then
3963 if test -z "$ac_cpp_err"; then
3970 rm -f conftest.err "conftest.$ac_ext"
4002 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
4029 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
4035 { ac_try='test -s "conftest$ac_exeext"'
4047 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
4061 echo "$as_me:4061: checking if the POSIX test-macros are already defined" >&5
4062 echo $ECHO_N "checking if the POSIX test-macros are already defined... $ECHO_C" >&6
4075 #if defined(__POSIX_VISIBLE) && ((__POSIX_VISIBLE - 0L) > 0) \
4076 && defined(__XSI_VISIBLE) && ((__XSI_VISIBLE - 0L) > 0) \
4077 && defined(__BSD_VISIBLE) && ((__BSD_VISIBLE - 0L) > 0) \
4078 && defined(__ISO_C_VISIBLE) && ((__ISO_C_VISIBLE - 0L) > 0)
4086 rm -f "conftest.$ac_objext"
4092 { ac_try='test -s "conftest.$ac_objext"'
4104 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
4117 (aix[4-7]*)
4118 cf_xopen_source="-D_ALL_SOURCE"
4120 (darwin[0-8].*)
4121 cf_xopen_source="-D_APPLE_C_SOURCE"
4124 cf_xopen_source="-D_DARWIN_C_SOURCE"
4133 …cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE…
4136 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
4139 cf_xopen_source="-D_HPUX_SOURCE"
4142 cf_xopen_source="-D_SGI_SOURCE"
4145 …abin32|linux*gnueabi|linux*gnueabihf|linux*gnux32|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin|msys|mingw…
4174 rm -f "conftest.$ac_objext"
4180 { ac_try='test -s "conftest.$ac_objext"'
4192 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
4211 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4212 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE"
4233 rm -f "conftest.$ac_objext"
4239 { ac_try='test -s "conftest.$ac_objext"'
4251 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
4271 for cf_add_cflags in -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=$cf_gnu_xopen_source
4276 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
4278 (-D*)
4279 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4282 && test -z "${cf_tst_cflags}" \
4287 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4293 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4305 (-D*)
4306 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4309 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4310 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4315 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
4323 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
4331 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4334 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
4337 && test -z "${cf_tst_cflags}" \
4343 if test -n "$cf_new_cflags" ; then
4345 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
4350 if test -n "$cf_new_cppflags" ; then
4352 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4357 if test -n "$cf_new_extra_cppflags" ; then
4359 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
4384 rm -f "conftest.$ac_objext"
4390 { ac_try='test -s "conftest.$ac_objext"'
4402 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
4435 rm -f "conftest.$ac_objext"
4441 { ac_try='test -s "conftest.$ac_objext"'
4458 for cf_add_cflags in -D_GNU_SOURCE
4463 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
4465 (-D*)
4466 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4469 && test -z "${cf_tst_cflags}" \
4474 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4480 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4492 (-D*)
4493 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4496 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4497 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4502 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
4510 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
4518 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4521 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
4524 && test -z "${cf_tst_cflags}" \
4530 if test -n "$cf_new_cflags" ; then
4532 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
4537 if test -n "$cf_new_cppflags" ; then
4539 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4544 if test -n "$cf_new_extra_cppflags" ; then
4546 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
4566 rm -f "conftest.$ac_objext"
4572 { ac_try='test -s "conftest.$ac_objext"'
4584 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
4588 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
4602 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4603 CPPFLAGS="${CPPFLAGS}-D_GNU_SOURCE"
4620 rm -f "conftest.$ac_objext"
4626 { ac_try='test -s "conftest.$ac_objext"'
4638 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
4646 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4647 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE"
4657 cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this...
4671 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
4672 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
4675 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
4676 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
4684 echo "${as_me:-configure}:4684: testing if the symbol is already defined go no further ..." 1>&5
4701 rm -f "conftest.$ac_objext"
4707 { ac_try='test -s "conftest.$ac_objext"'
4720 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
4723 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
4746 rm -f "conftest.$ac_objext"
4752 { ac_try='test -s "conftest.$ac_objext"'
4762 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
4764 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
4767 echo "${as_me:-configure}:4767: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
4772 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4775 echo "${as_me:-configure}:4775: testing if the second compile does not leave our definition intact …
4792 rm -f "conftest.$ac_objext"
4798 { ac_try='test -s "conftest.$ac_objext"'
4810 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
4815 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
4835 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
4837 (-D*)
4838 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4841 && test -z "${cf_tst_cflags}" \
4846 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4852 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4864 (-D*)
4865 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4868 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4869 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4874 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
4882 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
4890 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4893 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
4896 && test -z "${cf_tst_cflags}" \
4902 if test -n "$cf_new_cflags" ; then
4904 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
4909 if test -n "$cf_new_cppflags" ; then
4911 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4916 if test -n "$cf_new_extra_cppflags" ; then
4918 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
4929 …cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, bre…
4931 (openbsd[6-9]*)
4932 # OpenBSD 6.x has broken locale support, both compile-time and runtime.
4933 # see https://www.mail-archive.com/bugs@openbsd.org/msg13200.html
4937 cf_xopen_source="-D_BSD_SOURCE"
4940 (openbsd[4-5]*)
4942 cf_xopen_source="-D_BSD_SOURCE"
4949 cf_xopen_source="-D_OSF_SOURCE"
4951 (nto-qnx*)
4952 cf_xopen_source="-D_QNX_SOURCE"
4958 cf_xopen_source="-D__EXTENSIONS__"
4991 rm -f "conftest.$ac_objext"
4997 { ac_try='test -s "conftest.$ac_objext"'
5009 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
5010 CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
5030 rm -f "conftest.$ac_objext"
5036 { ac_try='test -s "conftest.$ac_objext"'
5048 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
5052 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
5061 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
5062 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
5065 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
5066 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
5068 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
5073 (x-[DU]*)
5075 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
5078 …S" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]…
5084 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
5087 …S" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]…
5106 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
5108 (-D*)
5109 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
5112 && test -z "${cf_tst_cflags}" \
5117 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
5123 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
5135 (-D*)
5136 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
5139 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
5140 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
5145 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
5153 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
5161 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
5164 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
5167 && test -z "${cf_tst_cflags}" \
5173 if test -n "$cf_new_cflags" ; then
5175 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
5180 if test -n "$cf_new_cppflags" ; then
5182 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
5187 if test -n "$cf_new_extra_cppflags" ; then
5189 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
5208 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
5209 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
5212 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
5213 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
5221 echo "${as_me:-configure}:5221: testing if the symbol is already defined go no further ..." 1>&5
5238 rm -f "conftest.$ac_objext"
5244 { ac_try='test -s "conftest.$ac_objext"'
5257 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
5260 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
5283 rm -f "conftest.$ac_objext"
5289 { ac_try='test -s "conftest.$ac_objext"'
5299 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
5301 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
5304 echo "${as_me:-configure}:5304: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
5309 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
5312 echo "${as_me:-configure}:5312: testing if the second compile does not leave our definition intact …
5329 rm -f "conftest.$ac_objext"
5335 { ac_try='test -s "conftest.$ac_objext"'
5347 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
5352 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
5372 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
5374 (-D*)
5375 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
5378 && test -z "${cf_tst_cflags}" \
5383 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
5389 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
5401 (-D*)
5402 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
5405 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
5406 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
5411 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
5419 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
5427 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
5430 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
5433 && test -z "${cf_tst_cflags}" \
5439 if test -n "$cf_new_cflags" ; then
5441 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
5446 if test -n "$cf_new_cppflags" ; then
5448 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
5453 if test -n "$cf_new_extra_cppflags" ; then
5455 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
5464 # Some of these niche implementations use copy/paste, double-check...
5466 test -n "$verbose" && echo " checking if _POSIX_C_SOURCE interferes with _XOPEN_SOURCE" 1>&6
5468 echo "${as_me:-configure}:5468: testing checking if _POSIX_C_SOURCE interferes with _XOPEN_SOURCE .…
5488 rm -f "conftest.$ac_objext"
5494 { ac_try='test -s "conftest.$ac_objext"'
5509 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
5514 if test -n "$cf_xopen_source" ; then
5519 (x-[DU]*)
5521 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
5524 …S" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]…
5526 test -n "$verbose" && echo " removing old option $cf_add_cflags from CFLAGS" 1>&6
5528 echo "${as_me:-configure}:5528: testing removing old option $cf_add_cflags from CFLAGS ..." 1>&5
5533 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
5536 …S" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]…
5538 test -n "$verbose" && echo " removing old option $cf_add_cflags from CPPFLAGS" 1>&6
5540 echo "${as_me:-configure}:5540: testing removing old option $cf_add_cflags from CPPFLAGS ..." 1>&5
5558 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
5560 (-D*)
5561 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
5564 && test -z "${cf_tst_cflags}" \
5569 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
5575 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
5587 (-D*)
5588 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
5591 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
5592 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
5597 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
5605 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
5613 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
5616 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
5619 && test -z "${cf_tst_cflags}" \
5625 if test -n "$cf_new_cflags" ; then
5626 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
5628 echo "${as_me:-configure}:5628: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
5630 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
5635 if test -n "$cf_new_cppflags" ; then
5636 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
5638 echo "${as_me:-configure}:5638: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
5640 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
5645 if test -n "$cf_new_extra_cppflags" ; then
5646 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
5648 echo "${as_me:-configure}:5648: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
5650 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
5659 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
5677 rm -f "conftest.$ac_objext"
5683 { ac_try='test -s "conftest.$ac_objext"'
5695 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
5708 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
5709 #error (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
5715 rm -f "conftest.$ac_objext"
5721 { ac_try='test -s "conftest.$ac_objext"'
5733 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
5765 rm -f "conftest.$ac_objext"
5771 { ac_try='test -s "conftest.$ac_objext"'
5783 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
5784 CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
5804 rm -f "conftest.$ac_objext"
5810 { ac_try='test -s "conftest.$ac_objext"'
5822 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
5826 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
5835 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
5836 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
5839 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
5840 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
5842 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
5847 (x-[DU]*)
5849 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
5852 …S" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]…
5858 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
5861 …S" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]…
5880 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
5882 (-D*)
5883 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
5886 && test -z "${cf_tst_cflags}" \
5891 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
5897 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
5909 (-D*)
5910 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
5913 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
5914 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
5919 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
5927 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
5935 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
5938 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
5941 && test -z "${cf_tst_cflags}" \
5947 if test -n "$cf_new_cflags" ; then
5949 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
5954 if test -n "$cf_new_cppflags" ; then
5956 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
5961 if test -n "$cf_new_extra_cppflags" ; then
5963 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
5993 $EGREP -v '^ *\+' conftest.er1 >conftest.err
5994 rm -f conftest.er1
5998 if test -s conftest.err; then
6006 if test -z "$ac_cpp_err"; then
6013 rm -f conftest.err "conftest.$ac_ext"
6029 rm -rf conftest*
6047 rm -rf conftest*
6052 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6062 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6082 rm -f "conftest$ac_exeext"
6100 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
6131 rm -f "conftest.$ac_objext"
6137 { ac_try='test -s "conftest.$ac_objext"'
6149 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
6181 rm -f "conftest.$ac_objext"
6187 { ac_try='test -s "conftest.$ac_objext"'
6199 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
6239 rm -f "conftest.$ac_objext"
6245 { ac_try='test -s "conftest.$ac_objext"'
6257 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
6293 rm -f "conftest.$ac_objext"
6299 { ac_try='test -s "conftest.$ac_objext"'
6327 rm -f "conftest.$ac_objext"
6333 { ac_try='test -s "conftest.$ac_objext"'
6345 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
6348 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
6387 rm -f "conftest.$ac_objext"
6393 { ac_try='test -s "conftest.$ac_objext"'
6405 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
6407 cf_sigwinch="`expr "$cf_sigwinch" - 1`"
6415 CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch"
6440 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
6446 { ac_try='test -s "conftest$ac_exeext"'
6458 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
6471 echo "$as_me:6471: checking if you want to use pkg-config" >&5
6472 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
6474 # Check whether --with-pkg-config or --without-pkg-config was given.
6490 if test -n "$ac_tool_prefix"; then
6491 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6492 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6507 test -z "$ac_dir" && ac_dir=.
6520 if test -n "$PKG_CONFIG"; then
6529 if test -z "$ac_cv_path_PKG_CONFIG"; then
6531 # Extract the first word of "pkg-config", so it can be a program name with args.
6532 set dummy pkg-config; ac_word=$2
6547 test -z "$ac_dir" && ac_dir=.
6555 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
6561 if test -n "$ac_pt_PKG_CONFIG"; then
6580 test -z "$PKG_CONFIG" && PKG_CONFIG=none
6594 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
6600 PKG_CONFIG=`echo "$PKG_CONFIG" | sed -e s%NONE%$cf_path_syntax%`
6605 PKG_CONFIG=`echo "$PKG_CONFIG" | sed -e s%NONE%$cf_path_syntax%`
6615 { echo "$as_me:6615: WARNING: pkg-config is not installed" >&5
6616 echo "$as_me: WARNING: pkg-config is not installed" >&2;}
6622 # Check whether --enable-echo or --disable-echo was given.
6628 ECHO_LT='--silent'
6656 echo "$as_me:6656: checking for ncurses wrap-prefix" >&5
6657 echo $ECHO_N "checking for ncurses wrap-prefix... $ECHO_C" >&6
6659 # Check whether --with-ncurses-wrap-prefix or --without-ncurses-wrap-prefix was given.
6669 echo "$as_me:6669: checking if you want to check for wide-character functions" >&5
6670 echo $ECHO_N "checking if you want to check for wide-character functions... $ECHO_C" >&6
6672 # Check whether --enable-widec or --disable-widec was given.
6689 echo "$as_me:6689: checking for specific curses-directory" >&5
6690 echo $ECHO_N "checking for specific curses-directory... $ECHO_C" >&6
6692 # Check whether --with-curses-dir or --without-curses-dir was given.
6702 if test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no"
6716 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
6722 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
6727 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
6736 if test -d "$cf_cv_curses_dir"
6739 if test -n "$cf_cv_curses_dir/include" ; then
6744 if test -d "$cf_add_incdir"
6747 if test -n "$CFLAGS$CPPFLAGS" ; then
6750 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
6762 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
6763 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
6777 rm -f "conftest.$ac_objext"
6783 { ac_try='test -s "conftest.$ac_objext"'
6795 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
6802 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
6804 echo "${as_me:-configure}:6804: testing adding $cf_add_incdir to include-path ..." 1>&5
6806 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
6808 cf_top_incdir=`echo "$cf_add_incdir" | sed -e 's%/include/.*$%/include%'`
6821 if test -n "$cf_cv_curses_dir/lib" ; then
6826 elif test -d "$cf_add_libdir"
6829 if test -n "$LDFLAGS$LIBS" ; then
6832 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
6838 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
6840 echo "${as_me:-configure}:6840: testing adding $cf_add_libdir to library-path ..." 1>&5
6842 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
6856 # Check whether --with-screen or --without-screen was given.
6862 # Check whether --with-ncursesw or --without-ncursesw was given.
6868 # Check whether --with-ncurses or --without-ncurses was given.
6871 cf_cv_screen=ncurses
6874 # Check whether --with-pdcurses or --without-pdcurses was given.
6880 # Check whether --with-curses-colr or --without-curses-colr was given.
6886 # Check whether --with-curses-5lib or --without-curses-5lib was given.
6914 test -d /usr/include/curses_colr && \
6915 cf_cv_curses_incdir="-I/usr/include/curses_colr"
6921 test -d /usr/5lib && \
6922 test -d /usr/5include && \
6923 cf_cv_curses_incdir="-I/usr/5include"
6934 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
6947 ncurses.h \
6948 curses.h ncurses/ncurses.h ncurses/curses.h
6962 rm -f "conftest.$ac_objext"
6968 { ac_try='test -s "conftest.$ac_objext"'
6979 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
6987 { { echo "$as_me:6987: error: No curses header-files found" >&5
6988 echo "$as_me: error: No curses header-files found" >&2;}
7010 $EGREP -v '^ *\+' conftest.er1 >conftest.err
7011 rm -f conftest.er1
7015 if test -s conftest.err; then
7023 if test -z "$ac_cpp_err"; then
7030 rm -f conftest.err "conftest.$ac_ext"
7049 (*/ncurses.h|*/ncursesw.h)
7050 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
7057 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
7063 #include <${cf_cv_ncurses_header:-curses.h}>
7074 rm -f "conftest.$ac_objext"
7080 { ac_try='test -s "conftest.$ac_objext"'
7095 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
7116 (ncurses/term.h)
7132 echo "$as_me:7132: checking for ncurses version" >&5
7133 echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6
7140 rm -f "$cf_tempfile"
7146 #include <${cf_cv_ncurses_header:-curses.h}>
7163 if test -f conftest.out ; then
7164 cf_out=`sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%' conftest.out`
7165 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
7166 rm -f conftest.out
7176 #include <${cf_cv_ncurses_header:-curses.h}>
7191 #error expected ncurses header to define __NCURSES_H
7194 ${cf_cv_main_return:-return}(0);
7197 rm -f "conftest$ac_exeext"
7215 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
7217 rm -f "$cf_tempfile"
7224 #define NCURSES 1
7232 #include <${cf_cv_ncurses_header:-curses.h}>
7241 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7247 { ac_try='test -s "conftest$ac_exeext"'
7259 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7266 echo "$as_me:7266: checking for tgoto in -lmytinfo" >&5
7267 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
7272 LIBS="-lmytinfo $LIBS"
7292 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7298 { ac_try='test -s "conftest$ac_exeext"'
7310 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7320 for cf_add_1lib in -lmytinfo; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7329 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7343 echo "$as_me:7343: checking for initscr in -lcur_colr" >&5
7344 echo $ECHO_N "checking for initscr in -lcur_colr... $ECHO_C" >&6
7349 LIBS="-lcur_colr $LIBS"
7369 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7375 { ac_try='test -s "conftest$ac_exeext"'
7387 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7397 for cf_add_1lib in -lcur_colr; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7406 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7414 echo "$as_me:7414: checking for initscr in -lHcurses" >&5
7415 echo $ECHO_N "checking for initscr in -lHcurses... $ECHO_C" >&6
7420 LIBS="-lHcurses $LIBS"
7440 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7446 { ac_try='test -s "conftest$ac_exeext"'
7458 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7470 for cf_add_1lib in -lHcurses; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7479 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7483 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
7484 CPPFLAGS="${CPPFLAGS}-D__HP_CURSES -D_HP_CURSES"
7497 if test -d /lib64
7500 if test -n "/lib64" ; then
7505 elif test -d "$cf_add_libdir"
7508 if test -n "$LDFLAGS$LIBS" ; then
7511 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
7517 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
7519 echo "${as_me:-configure}:7519: testing adding $cf_add_libdir to library-path ..." 1>&5
7521 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
7529 if test -n "/lib" ; then
7534 elif test -d "$cf_add_libdir"
7537 if test -n "$LDFLAGS$LIBS" ; then
7540 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
7546 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
7548 echo "${as_me:-configure}:7548: testing adding $cf_add_libdir to library-path ..." 1>&5
7550 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
7560 if test -n "/lib" ; then
7565 elif test -d "$cf_add_libdir"
7568 if test -n "$LDFLAGS$LIBS" ; then
7571 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
7577 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
7579 echo "${as_me:-configure}:7579: testing adding $cf_add_libdir to library-path ..." 1>&5
7581 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
7593 if test -d /usr/5lib ; then
7595 if test -n "/usr/5lib" ; then
7600 elif test -d "$cf_add_libdir"
7603 if test -n "$LDFLAGS$LIBS" ; then
7606 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
7612 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
7614 echo "${as_me:-configure}:7614: testing adding $cf_add_libdir to library-path ..." 1>&5
7616 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
7625 for cf_add_1lib in -lcurses -ltermcap; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7634 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7647 if test ".${cf_cv_ncurses_version:-no}" != .no
7649 cf_check_list="ncurses curses cursesX"
7651 cf_check_list="cursesX curses ncurses"
7655 # because it may be needed to link the test-case for initscr.
7667 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
7694 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7700 { ac_try='test -s "conftest$ac_exeext"'
7712 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7723 echo "$as_me:7723: checking for tgoto in -l$cf_term_lib" >&5
7724 echo $ECHO_N "checking for tgoto in -l$cf_term_lib... $ECHO_C" >&6
7729 LIBS="-l$cf_term_lib $LIBS"
7749 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7755 { ac_try='test -s "conftest$ac_exeext"'
7767 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7786 …test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_sa…
7791 LIBS="-l$cf_curs_lib $cf_save_LIBS"
7798 #include <${cf_cv_ncurses_header:-curses.h}>
7807 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7813 { ac_try='test -s "conftest$ac_exeext"'
7825 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7837 #include <${cf_cv_ncurses_header:-curses.h}>
7846 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7852 { ac_try='test -s "conftest$ac_exeext"'
7863 LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
7867 #include <${cf_cv_ncurses_header:-curses.h}>
7876 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7882 { ac_try='test -s "conftest$ac_exeext"'
7894 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7897 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7929 $EGREP -v '^ *\+' conftest.er1 >conftest.err
7930 rm -f conftest.er1
7934 if test -s conftest.err; then
7942 if test -z "$ac_cpp_err"; then
7949 rm -f conftest.err "conftest.$ac_ext"
7985 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7991 { ac_try='test -s "conftest$ac_exeext"'
8007 echo "${as_me:-configure}:8007: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5
8024 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
8030 { ac_try='test -s "conftest$ac_exeext"'
8045 LIBS="-lutf8 $cf_save_LIBS"
8060 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
8066 { ac_try='test -s "conftest$ac_exeext"'
8076 cf_cv_library_file_utf8="-lutf8"
8085 test -n "$verbose" && echo " find linkage for utf8 library" 1>&6
8087 echo "${as_me:-configure}:8087: testing find linkage for utf8 library ..." 1>&5
8089 echo "${as_me:-configure}:8089: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5
8096 # collect the current set of include-directories from compiler flags
8098 if test -n "${CFLAGS}${CPPFLAGS}" ; then
8102 (-I*)
8103 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
8106 test -d "$cf_header_path" && \
8108 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
8109 test -d "$cf_header_path/include" && cf_search="$cf_search $cf_header_path/include"
8110 test -d "$cf_header_path/include/utf8" && cf_search="$cf_search $cf_header_path/include/utf8"
8111 …test -d "$cf_header_path/include/utf8/include" && cf_search="$cf_search $cf_header_path/include…
8112 test -d "$cf_header_path/utf8/include" && cf_search="$cf_search $cf_header_path/utf8/include"
8113 …test -d "$cf_header_path/utf8/include/utf8" && cf_search="$cf_search $cf_header_path/utf8/inclu…
8127 test -d "$prefix" && \
8129 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
8130 test -d "$prefix/include" && cf_search="$cf_search $prefix/include"
8131 test -d "$prefix/include/utf8" && cf_search="$cf_search $prefix/include/utf8"
8132 test -d "$prefix/include/utf8/include" && cf_search="$cf_search $prefix/include/utf8/include"
8133 test -d "$prefix/utf8/include" && cf_search="$cf_search $prefix/utf8/include"
8134 test -d "$prefix/utf8/include/utf8" && cf_search="$cf_search $prefix/utf8/include/utf8"
8147 test -d "$cf_subdir_prefix" && \
8148 { test -z "$prefix" || test "x$prefix" = xNONE || test "x$cf_subdir_prefix" != "x$prefix"; } && {
8149 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
8150 test -d "$cf_subdir_prefix/include" && cf_search="$cf_search $cf_subdir_prefix/include"
8151 …test -d "$cf_subdir_prefix/include/utf8" && cf_search="$cf_search $cf_subdir_prefix/include/…
8152 …test -d "$cf_subdir_prefix/include/utf8/include" && cf_search="$cf_search $cf_subdir_prefix/inc…
8153 …test -d "$cf_subdir_prefix/utf8/include" && cf_search="$cf_search $cf_subdir_prefix/utf8/inc…
8154 …test -d "$cf_subdir_prefix/utf8/include/utf8" && cf_search="$cf_search $cf_subdir_prefix/utf8/i…
8161 test -d "$includedir" && {
8162 test -d "$includedir" && cf_search="$cf_search $includedir"
8163 test -d "$includedir/utf8" && cf_search="$cf_search $includedir/utf8"
8168 test -d "$oldincludedir" && {
8169 test -d "$oldincludedir" && cf_search="$cf_search $oldincludedir"
8170 test -d "$oldincludedir/utf8" && cf_search="$cf_search $oldincludedir/utf8"
8177 if test -d "$cf_cv_header_path_utf8" ; then
8178 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6
8180 echo "${as_me:-configure}:8180: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5
8184 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
8185 CPPFLAGS="${CPPFLAGS}-I$cf_cv_header_path_utf8"
8200 rm -f "conftest.$ac_objext"
8206 { ac_try='test -s "conftest.$ac_objext"'
8213 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6
8215 echo "${as_me:-configure}:8215: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5
8227 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
8233 echo "${as_me:-configure}:8233: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5
8242 if test -n "${LDFLAGS}${LIBS}" ; then
8246 (-L*)
8247 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
8250 test -d "$cf_library_path" && \
8252 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
8253 test -d "$cf_library_path/lib" && cf_search="$cf_search $cf_library_path/lib"
8254 test -d "$cf_library_path/lib/utf8" && cf_search="$cf_search $cf_library_path/lib/utf8"
8255 test -d "$cf_library_path/lib/utf8/lib" && cf_search="$cf_search $cf_library_path/lib/utf8/lib"
8256 test -d "$cf_library_path/utf8/lib" && cf_search="$cf_search $cf_library_path/utf8/lib"
8257 …test -d "$cf_library_path/utf8/lib/utf8" && cf_search="$cf_search $cf_library_path/utf8/lib/utf…
8269 test -d "$prefix" && \
8271 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
8272 test -d "$prefix/lib" && cf_search="$cf_search $prefix/lib"
8273 test -d "$prefix/lib/utf8" && cf_search="$cf_search $prefix/lib/utf8"
8274 test -d "$prefix/lib/utf8/lib" && cf_search="$cf_search $prefix/lib/utf8/lib"
8275 test -d "$prefix/utf8/lib" && cf_search="$cf_search $prefix/utf8/lib"
8276 test -d "$prefix/utf8/lib/utf8" && cf_search="$cf_search $prefix/utf8/lib/utf8"
8289 test -d "$cf_subdir_prefix" && \
8290 { test -z "$prefix" || test "x$prefix" = xNONE || test "x$cf_subdir_prefix" != "x$prefix"; } && {
8291 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
8292 test -d "$cf_subdir_prefix/lib" && cf_search="$cf_search $cf_subdir_prefix/lib"
8293 test -d "$cf_subdir_prefix/lib/utf8" && cf_search="$cf_search $cf_subdir_prefix/lib/utf8"
8294 …test -d "$cf_subdir_prefix/lib/utf8/lib" && cf_search="$cf_search $cf_subdir_prefix/lib/utf8/li…
8295 test -d "$cf_subdir_prefix/utf8/lib" && cf_search="$cf_search $cf_subdir_prefix/utf8/lib"
8296 …test -d "$cf_subdir_prefix/utf8/lib/utf8" && cf_search="$cf_search $cf_subdir_prefix/utf8/lib/u…
8305 if test -d "$cf_cv_library_path_utf8" ; then
8306 test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6
8308 echo "${as_me:-configure}:8308: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5
8311 LIBS="-lutf8 $cf_save_LIBS"
8312 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8"
8326 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
8332 { ac_try='test -s "conftest$ac_exeext"'
8339 test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6
8341 echo "${as_me:-configure}:8341: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5
8344 cf_cv_library_file_utf8="-lutf8"
8355 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
8367 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
8370 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
8375 cf_cv_utf8_lib=add-on
8381 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
8386 # HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between
8387 # ncurses/ncursesw:
8388 if test "$cf_cv_utf8_lib" = "add-on" ; then
8394 if test -n "$cf_cv_header_path_utf8" ; then
8399 if test -d "$cf_add_incdir"
8402 if test -n "$CFLAGS$CPPFLAGS" ; then
8405 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
8417 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
8418 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
8432 rm -f "conftest.$ac_objext"
8438 { ac_try='test -s "conftest.$ac_objext"'
8450 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
8457 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
8459 echo "${as_me:-configure}:8459: testing adding $cf_add_incdir to include-path ..." 1>&5
8461 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
8463 cf_top_incdir=`echo "$cf_add_incdir" | sed -e 's%/include/.*$%/include%'`
8476 if test -n "$cf_cv_library_path_utf8" ; then
8481 elif test -d "$cf_add_libdir"
8484 if test -n "$LDFLAGS$LIBS" ; then
8487 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
8493 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
8495 echo "${as_me:-configure}:8495: testing adding $cf_add_libdir to library-path ..." 1>&5
8497 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
8515 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
8525 echo "$as_me:8525: checking pkg-config for $cf_ncuconfig_root" >&5
8526 echo $ECHO_N "checking pkg-config for $cf_ncuconfig_root... $ECHO_C" >&6
8527 if "$PKG_CONFIG" --exists $cf_ncuconfig_root ; then
8539 cf_pkg_cflags="`$PKG_CONFIG --cflags $cf_ncuconfig_root`"
8540 cf_pkg_libs="`$PKG_CONFIG --libs $cf_ncuconfig_root`"
8542 # while -W for passing linker flags is prevalent, it is not "standard".
8544 # incompatible _and_ non-standard -W option which gives an error. Work
8547 (x*c[89]9@@*-W*)
8559 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
8561 (-D*)
8562 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8565 && test -z "${cf_tst_cflags}" \
8570 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8576 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8588 (-D*)
8589 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8592 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8593 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8598 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
8606 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
8614 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8617 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
8620 && test -z "${cf_tst_cflags}" \
8626 if test -n "$cf_new_cflags" ; then
8628 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
8633 if test -n "$cf_new_cppflags" ; then
8635 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
8640 if test -n "$cf_new_extra_cppflags" ; then
8642 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
8659 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
8666 #include <${cf_cv_ncurses_header:-curses.h}>
8675 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
8681 { ac_try='test -s "conftest$ac_exeext"'
8693 #include <${cf_cv_ncurses_header:-curses.h}>
8697 rm -f "conftest$ac_exeext"
8715 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
8722 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
8729 cf_temp=`echo "x$cf_pkg_cflags" | sed -e s/^x// -e 's/-W[^ ]*//g'`
8731 cf_temp=`echo "x$cf_pkg_libs" | sed -e s/^x// -e 's/-W[^ ]*//g'`
8740 (x-[DU]*)
8742 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
8745 …S" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]…
8751 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
8754 …S" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]…
8773 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
8775 (-D*)
8776 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8779 && test -z "${cf_tst_cflags}" \
8784 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8790 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8802 (-D*)
8803 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8806 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8807 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8812 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
8820 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
8828 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8831 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
8834 && test -z "${cf_tst_cflags}" \
8840 if test -n "$cf_new_cflags" ; then
8842 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
8847 if test -n "$cf_new_cppflags" ; then
8849 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
8854 if test -n "$cf_new_extra_cppflags" ; then
8856 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
8875 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
8882 #include <${cf_cv_ncurses_header:-curses.h}>
8891 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
8897 { ac_try='test -s "conftest$ac_exeext"'
8909 #include <${cf_cv_ncurses_header:-curses.h}>
8913 rm -f "conftest$ac_exeext"
8931 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
8938 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
8950 #define NCURSES 1
8962 (*/ncurses.h|*/ncursesw.h)
8963 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
8970 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
8976 #include <${cf_cv_ncurses_header:-curses.h}>
8987 rm -f "conftest.$ac_objext"
8993 { ac_try='test -s "conftest.$ac_objext"'
9008 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
9029 (ncurses/term.h)
9057 …cf_ncurses_config="${cf_ncuconfig_root}${NCURSES_CONFIG_SUFFIX}-config"; echo "Looking for ${cf_nc…
9059 if test -n "$ac_tool_prefix"; then
9060 …g in ${cf_ncurses_config} ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}6-config ${cf_ncuconfig…
9069 if test -n "$NCURSES_CONFIG"; then
9076 test -z "$ac_dir" && ac_dir=.
9086 if test -n "$NCURSES_CONFIG"; then
9094 test -n "$NCURSES_CONFIG" && break
9097 if test -z "$NCURSES_CONFIG"; then
9099 …g in ${cf_ncurses_config} ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}6-config ${cf_ncuconfig…
9108 if test -n "$ac_ct_NCURSES_CONFIG"; then
9115 test -z "$ac_dir" && ac_dir=.
9125 if test -n "$ac_ct_NCURSES_CONFIG"; then
9133 test -n "$ac_ct_NCURSES_CONFIG" && break
9135 test -n "$ac_ct_NCURSES_CONFIG" || ac_ct_NCURSES_CONFIG="none"
9142 for cf_add_cflags in `$NCURSES_CONFIG --cflags`
9145 (x-[DU]*)
9147 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
9150 …S" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]…
9156 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
9159 …S" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]…
9178 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
9180 (-D*)
9181 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
9184 && test -z "${cf_tst_cflags}" \
9189 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9195 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9207 (-D*)
9208 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
9211 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
9212 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
9217 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
9225 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
9233 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9236 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
9239 && test -z "${cf_tst_cflags}" \
9245 if test -n "$cf_new_cflags" ; then
9247 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
9252 if test -n "$cf_new_cppflags" ; then
9254 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
9259 if test -n "$cf_new_extra_cppflags" ; then
9261 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
9271 for cf_add_1lib in `$NCURSES_CONFIG --libs`; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
9280 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
9284 # even with config script, some packages use no-override for curses.h
9294 ncurses.h $cf_cv_screen/ncurses.h \
9309 rm -f "conftest.$ac_objext"
9315 { ac_try='test -s "conftest.$ac_objext"'
9326 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
9334 { { echo "$as_me:9334: error: No curses header-files found" >&5
9335 echo "$as_me: error: No curses header-files found" >&2;}
9357 $EGREP -v '^ *\+' conftest.er1 >conftest.err
9358 rm -f conftest.er1
9362 if test -s conftest.err; then
9370 if test -z "$ac_cpp_err"; then
9377 rm -f conftest.err "conftest.$ac_ext"
9390 #define NCURSES 1
9393 cf_nculib_ROOT=`echo "HAVE_LIB$cf_ncuconfig_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJK…
9399 cf_cv_ncurses_version="`$NCURSES_CONFIG --version`"
9405 test -n "$cf_cv_curses_dir" && \
9408 if test -n "$cf_cv_curses_dir/include/$cf_ncuhdr_root" ; then
9413 if test -d "$cf_add_incdir"
9416 if test -n "$CFLAGS$CPPFLAGS" ; then
9419 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
9431 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
9432 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
9446 rm -f "conftest.$ac_objext"
9452 { ac_try='test -s "conftest.$ac_objext"'
9464 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
9471 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
9473 echo "${as_me:-configure}:9473: testing adding $cf_add_incdir to include-path ..." 1>&5
9475 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
9477 cf_top_incdir=`echo "$cf_add_incdir" | sed -e 's%/include/.*$%/include%'`
9492 echo "$as_me:9492: checking for $cf_ncuhdr_root header in include-path" >&5
9493 echo $ECHO_N "checking for $cf_ncuhdr_root header in include-path... $ECHO_C" >&6
9498 cf_header_list="$cf_ncuhdr_root/curses.h $cf_ncuhdr_root/ncurses.h"
9499 …{ test "$cf_ncuhdr_root" = ncurses || test "$cf_ncuhdr_root" = ncursesw; } && cf_header_list="$cf_…
9527 rm -f "conftest.$ac_objext"
9533 { ac_try='test -s "conftest.$ac_objext"'
9546 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
9559 echo "$as_me:9559: checking for $cf_ncuhdr_root include-path" >&5
9560 echo $ECHO_N "checking for $cf_ncuhdr_root include-path... $ECHO_C" >&6
9565 test -n "$verbose" && echo
9569 # collect the current set of include-directories from compiler flags
9571 if test -n "${CFLAGS}${CPPFLAGS}" ; then
9575 (-I*)
9576 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
9579 test -d "$cf_header_path" && \
9581 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
9582 test -d "$cf_header_path/include" && cf_search="$cf_search $cf_header_path/include"
9583 …test -d "$cf_header_path/include/$cf_ncuhdr_root" && cf_search="$cf_search $cf_header_path/i…
9584 …test -d "$cf_header_path/include/$cf_ncuhdr_root/include" && cf_search="$cf_search $cf_header_p…
9585 …test -d "$cf_header_path/$cf_ncuhdr_root/include" && cf_search="$cf_search $cf_header_path/$…
9586 …test -d "$cf_header_path/$cf_ncuhdr_root/include/$cf_ncuhdr_root" && cf_search="$cf_search $cf_…
9600 test -d "$prefix" && \
9602 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
9603 test -d "$prefix/include" && cf_search="$cf_search $prefix/include"
9604 …test -d "$prefix/include/$cf_ncuhdr_root" && cf_search="$cf_search $prefix/include/$cf_ncuhd…
9605 …test -d "$prefix/include/$cf_ncuhdr_root/include" && cf_search="$cf_search $prefix/include/$cf_…
9606 …test -d "$prefix/$cf_ncuhdr_root/include" && cf_search="$cf_search $prefix/$cf_ncuhdr_root/i…
9607 …test -d "$prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root" && cf_search="$cf_search $prefix/$cf_…
9620 test -d "$cf_subdir_prefix" && \
9621 { test -z "$prefix" || test "x$prefix" = xNONE || test "x$cf_subdir_prefix" != "x$prefix"; } && {
9622 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
9623 test -d "$cf_subdir_prefix/include" && cf_search="$cf_search $cf_subdir_prefix/include"
9624 …test -d "$cf_subdir_prefix/include/$cf_ncuhdr_root" && cf_search="$cf_search $cf_subdir_pref…
9625 …test -d "$cf_subdir_prefix/include/$cf_ncuhdr_root/include" && cf_search="$cf_search $cf_subdir…
9626 …test -d "$cf_subdir_prefix/$cf_ncuhdr_root/include" && cf_search="$cf_search $cf_subdir_pref…
9627 …test -d "$cf_subdir_prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root" && cf_search="$cf_search $c…
9634 test -d "$includedir" && {
9635 test -d "$includedir" && cf_search="$cf_search $includedir"
9636 test -d "$includedir/$cf_ncuhdr_root" && cf_search="$cf_search $includedir/$cf_ncuhdr_root"
9641 test -d "$oldincludedir" && {
9642 test -d "$oldincludedir" && cf_search="$cf_search $oldincludedir"
9643 test -d "$oldincludedir/$cf_ncuhdr_root" && cf_search="$cf_search $oldincludedir/$cf_ncuhdr_root"
9648 test -n "$verbose" && echo "search path $cf_search"
9653 if test -n "$cf_incdir" ; then
9658 if test -d "$cf_add_incdir"
9661 if test -n "$CFLAGS$CPPFLAGS" ; then
9664 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
9676 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
9677 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
9691 rm -f "conftest.$ac_objext"
9697 { ac_try='test -s "conftest.$ac_objext"'
9709 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
9716 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
9718 echo "${as_me:-configure}:9718: testing adding $cf_add_incdir to include-path ..." 1>&5
9720 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
9722 cf_top_incdir=`echo "$cf_add_incdir" | sed -e 's%/include/.*$%/include%'`
9736 ncurses.h \
9764 rm -f "conftest.$ac_objext"
9770 { ac_try='test -s "conftest.$ac_objext"'
9783 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
9787 test -n "$verbose" && echo $ECHO_N " ... found $ECHO_C" 1>&6
9790 test -n "$verbose" && echo " ... tested $cf_incdir/$cf_header" 1>&6
9803 cf_1st_incdir=`echo "$cf_cv_ncurses_h2" | sed -e 's%/[^/]*$%%'`
9809 if test -n "$cf_1st_incdir" ; then
9814 if test -d "$cf_add_incdir"
9817 if test -n "$CFLAGS$CPPFLAGS" ; then
9820 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
9832 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
9833 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
9847 rm -f "conftest.$ac_objext"
9853 { ac_try='test -s "conftest.$ac_objext"'
9865 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
9872 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
9874 echo "${as_me:-configure}:9874: testing adding $cf_add_incdir to include-path ..." 1>&5
9876 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
9878 cf_top_incdir=`echo "$cf_add_incdir" | sed -e 's%/include/.*$%/include%'`
9893 # Set definitions to allow ifdef'ing for ncurses.h
9896 (*ncurses.h)
9906 (ncurses/curses.h|ncurses/ncurses.h)
9913 (ncursesw/curses.h|ncursesw/ncurses.h)
9929 (*/ncurses.h|*/ncursesw.h)
9930 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
9937 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
9943 #include <${cf_cv_ncurses_header:-curses.h}>
9954 rm -f "conftest.$ac_objext"
9960 { ac_try='test -s "conftest.$ac_objext"'
9975 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
9996 (ncurses/term.h)
10015 #define NCURSES 1
10018 echo "$as_me:10018: checking for ncurses version" >&5
10019 echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6
10026 rm -f "$cf_tempfile"
10032 #include <${cf_cv_ncurses_header:-curses.h}>
10049 if test -f conftest.out ; then
10050 cf_out=`sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%' conftest.out`
10051 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
10052 rm -f conftest.out
10062 #include <${cf_cv_ncurses_header:-curses.h}>
10077 #error expected ncurses header to define __NCURSES_H
10080 ${cf_cv_main_return:-return}(0);
10083 rm -f "conftest$ac_exeext"
10101 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
10103 rm -f "$cf_tempfile"
10110 #define NCURSES 1
10115 # ncurses is in a nonstandard location via $LIBS, and we really want
10119 echo "$as_me:10119: checking for Gpm_Open in -lgpm" >&5
10120 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
10125 LIBS="-lgpm $LIBS"
10145 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
10151 { ac_try='test -s "conftest$ac_exeext"'
10163 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
10169 echo "$as_me:10169: checking for initscr in -lgpm" >&5
10170 echo $ECHO_N "checking for initscr in -lgpm... $ECHO_C" >&6
10175 LIBS="-lgpm $LIBS"
10195 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
10201 { ac_try='test -s "conftest$ac_exeext"'
10213 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
10221 cf_ncurses_LIBS="-lgpm"
10229 # version of ncurses (but it should do no harm, since it is static).
10230 if test "$cf_nculib_root" = ncurses ; then
10231 echo "$as_me:10231: checking for tgoto in -lmytinfo" >&5
10232 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
10237 LIBS="-lmytinfo $LIBS"
10257 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
10263 { ac_try='test -s "conftest$ac_exeext"'
10275 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
10281 cf_ncurses_LIBS="-lmytinfo $cf_ncurses_LIBS"
10300 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
10304 if test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no"
10310 for cf_add_1lib in -l$cf_nculib_root; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
10319 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
10336 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
10363 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
10369 { ac_try='test -s "conftest$ac_exeext"'
10381 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
10390 echo "$as_me:10390: checking for initscr in -l$cf_nculib_root" >&5
10391 echo $ECHO_N "checking for initscr in -l$cf_nculib_root... $ECHO_C" >&6
10392 LIBS="-l$cf_nculib_root $LIBS"
10396 #include <${cf_cv_ncurses_header:-curses.h}>
10405 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
10411 { ac_try='test -s "conftest$ac_exeext"'
10429 if test -n "${LDFLAGS}${LIBS}" ; then
10433 (-L*)
10434 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
10437 test -d "$cf_library_path" && \
10439 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
10440 test -d "$cf_library_path/lib" && cf_search="$cf_search $cf_library_path/lib"
10441 …test -d "$cf_library_path/lib/$cf_nculib_root" && cf_search="$cf_search $cf_library_path/lib…
10442 …test -d "$cf_library_path/lib/$cf_nculib_root/lib" && cf_search="$cf_search $cf_library_path/li…
10443 …test -d "$cf_library_path/$cf_nculib_root/lib" && cf_search="$cf_search $cf_library_path/$cf…
10444 …test -d "$cf_library_path/$cf_nculib_root/lib/$cf_nculib_root" && cf_search="$cf_search $cf_lib…
10456 test -d "$prefix" && \
10458 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
10459 test -d "$prefix/lib" && cf_search="$cf_search $prefix/lib"
10460 test -d "$prefix/lib/$cf_nculib_root" && cf_search="$cf_search $prefix/lib/$cf_nculib_root"
10461 …test -d "$prefix/lib/$cf_nculib_root/lib" && cf_search="$cf_search $prefix/lib/$cf_nculib_root/…
10462 test -d "$prefix/$cf_nculib_root/lib" && cf_search="$cf_search $prefix/$cf_nculib_root/lib"
10463 …test -d "$prefix/$cf_nculib_root/lib/$cf_nculib_root" && cf_search="$cf_search $prefix/$cf_ncul…
10476 test -d "$cf_subdir_prefix" && \
10477 { test -z "$prefix" || test "x$prefix" = xNONE || test "x$cf_subdir_prefix" != "x$prefix"; } && {
10478 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
10479 test -d "$cf_subdir_prefix/lib" && cf_search="$cf_search $cf_subdir_prefix/lib"
10480 …test -d "$cf_subdir_prefix/lib/$cf_nculib_root" && cf_search="$cf_search $cf_subdir_prefix/l…
10481 …test -d "$cf_subdir_prefix/lib/$cf_nculib_root/lib" && cf_search="$cf_search $cf_subdir_prefix/…
10482 …test -d "$cf_subdir_prefix/$cf_nculib_root/lib" && cf_search="$cf_search $cf_subdir_prefix/$…
10483 …test -d "$cf_subdir_prefix/$cf_nculib_root/lib/$cf_nculib_root" && cf_search="$cf_search $cf_su…
10492 echo "$as_me:10492: checking for -l$cf_nculib_root in $cf_libdir" >&5
10493 echo $ECHO_N "checking for -l$cf_nculib_root in $cf_libdir... $ECHO_C" >&6
10494 LIBS="-L$cf_libdir -l$cf_nculib_root $cf_save_LIBS"
10498 #include <${cf_cv_ncurses_header:-curses.h}>
10507 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
10513 { ac_try='test -s "conftest$ac_exeext"'
10530 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
10534 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
10548 if test -n "$cf_ncurses_LIBS" ; then
10553 q=`echo "$LIBS" | sed -e "s%$p %%" -e "s%$p$%%"`
10561 #include <${cf_cv_ncurses_header:-curses.h}>
10570 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
10576 { ac_try='test -s "conftest$ac_exeext"'
10591 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
10594 cf_nculib_ROOT=`echo "HAVE_LIB$cf_nculib_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMN…
10606 (ncurses*)
10612 echo "$as_me:10612: checking pkg-config for $cf_ncuconfig_root" >&5
10613 echo $ECHO_N "checking pkg-config for $cf_ncuconfig_root... $ECHO_C" >&6
10614 if "$PKG_CONFIG" --exists $cf_ncuconfig_root ; then
10626 cf_pkg_cflags="`$PKG_CONFIG --cflags $cf_ncuconfig_root`"
10627 cf_pkg_libs="`$PKG_CONFIG --libs $cf_ncuconfig_root`"
10629 # while -W for passing linker flags is prevalent, it is not "standard".
10631 # incompatible _and_ non-standard -W option which gives an error. Work
10634 (x*c[89]9@@*-W*)
10646 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10648 (-D*)
10649 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10652 && test -z "${cf_tst_cflags}" \
10657 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10663 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10675 (-D*)
10676 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10679 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10680 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10685 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
10693 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
10701 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10704 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
10707 && test -z "${cf_tst_cflags}" \
10713 if test -n "$cf_new_cflags" ; then
10715 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
10720 if test -n "$cf_new_cppflags" ; then
10722 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10727 if test -n "$cf_new_extra_cppflags" ; then
10729 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10746 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
10753 #include <${cf_cv_ncurses_header:-curses.h}>
10762 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
10768 { ac_try='test -s "conftest$ac_exeext"'
10780 #include <${cf_cv_ncurses_header:-curses.h}>
10784 rm -f "conftest$ac_exeext"
10802 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
10809 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
10816 cf_temp=`echo "x$cf_pkg_cflags" | sed -e s/^x// -e 's/-W[^ ]*//g'`
10818 cf_temp=`echo "x$cf_pkg_libs" | sed -e s/^x// -e 's/-W[^ ]*//g'`
10827 (x-[DU]*)
10829 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
10832 …S" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]…
10838 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
10841 …S" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]…
10860 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10862 (-D*)
10863 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10866 && test -z "${cf_tst_cflags}" \
10871 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10877 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10889 (-D*)
10890 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10893 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10894 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10899 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
10907 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
10915 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10918 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
10921 && test -z "${cf_tst_cflags}" \
10927 if test -n "$cf_new_cflags" ; then
10929 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
10934 if test -n "$cf_new_cppflags" ; then
10936 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10941 if test -n "$cf_new_extra_cppflags" ; then
10943 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10962 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
10969 #include <${cf_cv_ncurses_header:-curses.h}>
10978 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
10984 { ac_try='test -s "conftest$ac_exeext"'
10996 #include <${cf_cv_ncurses_header:-curses.h}>
11000 rm -f "conftest$ac_exeext"
11018 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
11025 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
11037 #define NCURSES 1
11049 (*/ncurses.h|*/ncursesw.h)
11050 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
11057 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
11063 #include <${cf_cv_ncurses_header:-curses.h}>
11074 rm -f "conftest.$ac_objext"
11080 { ac_try='test -s "conftest.$ac_objext"'
11095 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11116 (ncurses/term.h)
11144 …cf_ncurses_config="${cf_ncuconfig_root}${NCURSES_CONFIG_SUFFIX}-config"; echo "Looking for ${cf_nc…
11146 if test -n "$ac_tool_prefix"; then
11147 …g in ${cf_ncurses_config} ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}6-config ${cf_ncuconfig…
11156 if test -n "$NCURSES_CONFIG"; then
11163 test -z "$ac_dir" && ac_dir=.
11173 if test -n "$NCURSES_CONFIG"; then
11181 test -n "$NCURSES_CONFIG" && break
11184 if test -z "$NCURSES_CONFIG"; then
11186 …g in ${cf_ncurses_config} ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}6-config ${cf_ncuconfig…
11195 if test -n "$ac_ct_NCURSES_CONFIG"; then
11202 test -z "$ac_dir" && ac_dir=.
11212 if test -n "$ac_ct_NCURSES_CONFIG"; then
11220 test -n "$ac_ct_NCURSES_CONFIG" && break
11222 test -n "$ac_ct_NCURSES_CONFIG" || ac_ct_NCURSES_CONFIG="none"
11229 for cf_add_cflags in `$NCURSES_CONFIG --cflags`
11232 (x-[DU]*)
11234 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
11237 …S" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]…
11243 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
11246 …S" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]…
11265 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11267 (-D*)
11268 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11271 && test -z "${cf_tst_cflags}" \
11276 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11282 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11294 (-D*)
11295 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11298 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11299 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11304 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
11312 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
11320 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11323 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
11326 && test -z "${cf_tst_cflags}" \
11332 if test -n "$cf_new_cflags" ; then
11334 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
11339 if test -n "$cf_new_cppflags" ; then
11341 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11346 if test -n "$cf_new_extra_cppflags" ; then
11348 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
11358 for cf_add_1lib in `$NCURSES_CONFIG --libs`; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
11367 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
11371 # even with config script, some packages use no-override for curses.h
11381 ncurses.h $cf_cv_screen/ncurses.h \
11396 rm -f "conftest.$ac_objext"
11402 { ac_try='test -s "conftest.$ac_objext"'
11413 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11421 { { echo "$as_me:11421: error: No curses header-files found" >&5
11422 echo "$as_me: error: No curses header-files found" >&2;}
11444 $EGREP -v '^ *\+' conftest.er1 >conftest.err
11445 rm -f conftest.er1
11449 if test -s conftest.err; then
11457 if test -z "$ac_cpp_err"; then
11464 rm -f conftest.err "conftest.$ac_ext"
11477 #define NCURSES 1
11480 cf_nculib_ROOT=`echo "HAVE_LIB$cf_ncuconfig_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJK…
11486 cf_cv_ncurses_version="`$NCURSES_CONFIG --version`"
11492 test -n "$cf_cv_curses_dir" && \
11495 if test -n "$cf_cv_curses_dir/include/$cf_ncuhdr_root" ; then
11500 if test -d "$cf_add_incdir"
11503 if test -n "$CFLAGS$CPPFLAGS" ; then
11506 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
11518 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11519 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
11533 rm -f "conftest.$ac_objext"
11539 { ac_try='test -s "conftest.$ac_objext"'
11551 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11558 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
11560 echo "${as_me:-configure}:11560: testing adding $cf_add_incdir to include-path ..." 1>&5
11562 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
11564 cf_top_incdir=`echo "$cf_add_incdir" | sed -e 's%/include/.*$%/include%'`
11579 echo "$as_me:11579: checking for $cf_ncuhdr_root header in include-path" >&5
11580 echo $ECHO_N "checking for $cf_ncuhdr_root header in include-path... $ECHO_C" >&6
11585 cf_header_list="$cf_ncuhdr_root/curses.h $cf_ncuhdr_root/ncurses.h"
11586 …{ test "$cf_ncuhdr_root" = ncurses || test "$cf_ncuhdr_root" = ncursesw; } && cf_header_list="$cf_…
11614 rm -f "conftest.$ac_objext"
11620 { ac_try='test -s "conftest.$ac_objext"'
11633 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11646 echo "$as_me:11646: checking for $cf_ncuhdr_root include-path" >&5
11647 echo $ECHO_N "checking for $cf_ncuhdr_root include-path... $ECHO_C" >&6
11652 test -n "$verbose" && echo
11656 # collect the current set of include-directories from compiler flags
11658 if test -n "${CFLAGS}${CPPFLAGS}" ; then
11662 (-I*)
11663 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
11666 test -d "$cf_header_path" && \
11668 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
11669 test -d "$cf_header_path/include" && cf_search="$cf_search $cf_header_path/include"
11670 …test -d "$cf_header_path/include/$cf_ncuhdr_root" && cf_search="$cf_search $cf_header_path/i…
11671 …test -d "$cf_header_path/include/$cf_ncuhdr_root/include" && cf_search="$cf_search $cf_header_p…
11672 …test -d "$cf_header_path/$cf_ncuhdr_root/include" && cf_search="$cf_search $cf_header_path/$…
11673 …test -d "$cf_header_path/$cf_ncuhdr_root/include/$cf_ncuhdr_root" && cf_search="$cf_search $cf_…
11687 test -d "$prefix" && \
11689 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
11690 test -d "$prefix/include" && cf_search="$cf_search $prefix/include"
11691 …test -d "$prefix/include/$cf_ncuhdr_root" && cf_search="$cf_search $prefix/include/$cf_ncuhd…
11692 …test -d "$prefix/include/$cf_ncuhdr_root/include" && cf_search="$cf_search $prefix/include/$cf_…
11693 …test -d "$prefix/$cf_ncuhdr_root/include" && cf_search="$cf_search $prefix/$cf_ncuhdr_root/i…
11694 …test -d "$prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root" && cf_search="$cf_search $prefix/$cf_…
11707 test -d "$cf_subdir_prefix" && \
11708 { test -z "$prefix" || test "x$prefix" = xNONE || test "x$cf_subdir_prefix" != "x$prefix"; } && {
11709 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
11710 test -d "$cf_subdir_prefix/include" && cf_search="$cf_search $cf_subdir_prefix/include"
11711 …test -d "$cf_subdir_prefix/include/$cf_ncuhdr_root" && cf_search="$cf_search $cf_subdir_pref…
11712 …test -d "$cf_subdir_prefix/include/$cf_ncuhdr_root/include" && cf_search="$cf_search $cf_subdir…
11713 …test -d "$cf_subdir_prefix/$cf_ncuhdr_root/include" && cf_search="$cf_search $cf_subdir_pref…
11714 …test -d "$cf_subdir_prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root" && cf_search="$cf_search $c…
11721 test -d "$includedir" && {
11722 test -d "$includedir" && cf_search="$cf_search $includedir"
11723 test -d "$includedir/$cf_ncuhdr_root" && cf_search="$cf_search $includedir/$cf_ncuhdr_root"
11728 test -d "$oldincludedir" && {
11729 test -d "$oldincludedir" && cf_search="$cf_search $oldincludedir"
11730 test -d "$oldincludedir/$cf_ncuhdr_root" && cf_search="$cf_search $oldincludedir/$cf_ncuhdr_root"
11735 test -n "$verbose" && echo "search path $cf_search"
11740 if test -n "$cf_incdir" ; then
11745 if test -d "$cf_add_incdir"
11748 if test -n "$CFLAGS$CPPFLAGS" ; then
11751 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
11763 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11764 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
11778 rm -f "conftest.$ac_objext"
11784 { ac_try='test -s "conftest.$ac_objext"'
11796 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11803 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
11805 echo "${as_me:-configure}:11805: testing adding $cf_add_incdir to include-path ..." 1>&5
11807 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
11809 cf_top_incdir=`echo "$cf_add_incdir" | sed -e 's%/include/.*$%/include%'`
11823 ncurses.h \
11851 rm -f "conftest.$ac_objext"
11857 { ac_try='test -s "conftest.$ac_objext"'
11870 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11874 test -n "$verbose" && echo $ECHO_N " ... found $ECHO_C" 1>&6
11877 test -n "$verbose" && echo " ... tested $cf_incdir/$cf_header" 1>&6
11890 cf_1st_incdir=`echo "$cf_cv_ncurses_h2" | sed -e 's%/[^/]*$%%'`
11896 if test -n "$cf_1st_incdir" ; then
11901 if test -d "$cf_add_incdir"
11904 if test -n "$CFLAGS$CPPFLAGS" ; then
11907 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
11919 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11920 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
11934 rm -f "conftest.$ac_objext"
11940 { ac_try='test -s "conftest.$ac_objext"'
11952 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11959 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
11961 echo "${as_me:-configure}:11961: testing adding $cf_add_incdir to include-path ..." 1>&5
11963 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
11965 cf_top_incdir=`echo "$cf_add_incdir" | sed -e 's%/include/.*$%/include%'`
11980 # Set definitions to allow ifdef'ing for ncurses.h
11983 (*ncurses.h)
11993 (ncurses/curses.h|ncurses/ncurses.h)
12000 (ncursesw/curses.h|ncursesw/ncurses.h)
12016 (*/ncurses.h|*/ncursesw.h)
12017 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
12024 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
12030 #include <${cf_cv_ncurses_header:-curses.h}>
12041 rm -f "conftest.$ac_objext"
12047 { ac_try='test -s "conftest.$ac_objext"'
12062 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12083 (ncurses/term.h)
12102 #define NCURSES 1
12105 echo "$as_me:12105: checking for ncurses version" >&5
12106 echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6
12113 rm -f "$cf_tempfile"
12119 #include <${cf_cv_ncurses_header:-curses.h}>
12136 if test -f conftest.out ; then
12137 cf_out=`sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%' conftest.out`
12138 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
12139 rm -f conftest.out
12149 #include <${cf_cv_ncurses_header:-curses.h}>
12164 #error expected ncurses header to define __NCURSES_H
12167 ${cf_cv_main_return:-return}(0);
12170 rm -f "conftest$ac_exeext"
12188 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
12190 rm -f "$cf_tempfile"
12197 #define NCURSES 1
12202 # ncurses is in a nonstandard location via $LIBS, and we really want
12206 echo "$as_me:12206: checking for Gpm_Open in -lgpm" >&5
12207 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
12212 LIBS="-lgpm $LIBS"
12232 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12238 { ac_try='test -s "conftest$ac_exeext"'
12250 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12256 echo "$as_me:12256: checking for initscr in -lgpm" >&5
12257 echo $ECHO_N "checking for initscr in -lgpm... $ECHO_C" >&6
12262 LIBS="-lgpm $LIBS"
12282 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12288 { ac_try='test -s "conftest$ac_exeext"'
12300 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12308 cf_ncurses_LIBS="-lgpm"
12316 # version of ncurses (but it should do no harm, since it is static).
12317 if test "$cf_nculib_root" = ncurses ; then
12318 echo "$as_me:12318: checking for tgoto in -lmytinfo" >&5
12319 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
12324 LIBS="-lmytinfo $LIBS"
12344 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12350 { ac_try='test -s "conftest$ac_exeext"'
12362 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12368 cf_ncurses_LIBS="-lmytinfo $cf_ncurses_LIBS"
12387 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
12391 if test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no"
12397 for cf_add_1lib in -l$cf_nculib_root; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
12406 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
12423 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
12450 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12456 { ac_try='test -s "conftest$ac_exeext"'
12468 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12477 echo "$as_me:12477: checking for initscr in -l$cf_nculib_root" >&5
12478 echo $ECHO_N "checking for initscr in -l$cf_nculib_root... $ECHO_C" >&6
12479 LIBS="-l$cf_nculib_root $LIBS"
12483 #include <${cf_cv_ncurses_header:-curses.h}>
12492 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12498 { ac_try='test -s "conftest$ac_exeext"'
12516 if test -n "${LDFLAGS}${LIBS}" ; then
12520 (-L*)
12521 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
12524 test -d "$cf_library_path" && \
12526 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
12527 test -d "$cf_library_path/lib" && cf_search="$cf_search $cf_library_path/lib"
12528 …test -d "$cf_library_path/lib/$cf_nculib_root" && cf_search="$cf_search $cf_library_path/lib…
12529 …test -d "$cf_library_path/lib/$cf_nculib_root/lib" && cf_search="$cf_search $cf_library_path/li…
12530 …test -d "$cf_library_path/$cf_nculib_root/lib" && cf_search="$cf_search $cf_library_path/$cf…
12531 …test -d "$cf_library_path/$cf_nculib_root/lib/$cf_nculib_root" && cf_search="$cf_search $cf_lib…
12543 test -d "$prefix" && \
12545 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
12546 test -d "$prefix/lib" && cf_search="$cf_search $prefix/lib"
12547 test -d "$prefix/lib/$cf_nculib_root" && cf_search="$cf_search $prefix/lib/$cf_nculib_root"
12548 …test -d "$prefix/lib/$cf_nculib_root/lib" && cf_search="$cf_search $prefix/lib/$cf_nculib_root/…
12549 test -d "$prefix/$cf_nculib_root/lib" && cf_search="$cf_search $prefix/$cf_nculib_root/lib"
12550 …test -d "$prefix/$cf_nculib_root/lib/$cf_nculib_root" && cf_search="$cf_search $prefix/$cf_ncul…
12563 test -d "$cf_subdir_prefix" && \
12564 { test -z "$prefix" || test "x$prefix" = xNONE || test "x$cf_subdir_prefix" != "x$prefix"; } && {
12565 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
12566 test -d "$cf_subdir_prefix/lib" && cf_search="$cf_search $cf_subdir_prefix/lib"
12567 …test -d "$cf_subdir_prefix/lib/$cf_nculib_root" && cf_search="$cf_search $cf_subdir_prefix/l…
12568 …test -d "$cf_subdir_prefix/lib/$cf_nculib_root/lib" && cf_search="$cf_search $cf_subdir_prefix/…
12569 …test -d "$cf_subdir_prefix/$cf_nculib_root/lib" && cf_search="$cf_search $cf_subdir_prefix/$…
12570 …test -d "$cf_subdir_prefix/$cf_nculib_root/lib/$cf_nculib_root" && cf_search="$cf_search $cf_su…
12579 echo "$as_me:12579: checking for -l$cf_nculib_root in $cf_libdir" >&5
12580 echo $ECHO_N "checking for -l$cf_nculib_root in $cf_libdir... $ECHO_C" >&6
12581 LIBS="-L$cf_libdir -l$cf_nculib_root $cf_save_LIBS"
12585 #include <${cf_cv_ncurses_header:-curses.h}>
12594 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12600 { ac_try='test -s "conftest$ac_exeext"'
12617 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12621 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12635 if test -n "$cf_ncurses_LIBS" ; then
12640 q=`echo "$LIBS" | sed -e "s%$p %%" -e "s%$p$%%"`
12648 #include <${cf_cv_ncurses_header:-curses.h}>
12657 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12663 { ac_try='test -s "conftest$ac_exeext"'
12678 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12681 cf_nculib_ROOT=`echo "HAVE_LIB$cf_nculib_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMN…
12697 # Check whether --with-x or --without-x was given.
12716 rm -fr conftest.dir
12724 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
12726 eval "`${MAKE-make} acfindx 2>/dev/null | grep -v make`"
12729 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
12730 test -f "$ac_im_libdir/libX11.$ac_extension"; then
12739 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
12743 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
12747 rm -fr conftest.dir
12805 $EGREP -v '^ *\+' conftest.er1 >conftest.err
12806 rm -f conftest.er1
12810 if test -s conftest.err; then
12818 if test -z "$ac_cpp_err"; then
12825 if test -r "$ac_dir/X11/Intrinsic.h"; then
12831 rm -f conftest.err "conftest.$ac_ext"
12839 LIBS="-lXt $LIBS"
12852 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12858 { ac_try='test -s "conftest$ac_exeext"'
12875 if test -r "$ac_dir/libXt.$ac_extension"; then
12882 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12926 if test -n "$x_includes"; then
12927 X_CFLAGS="$X_CFLAGS -I$x_includes"
12930 # It would also be nice to do this for all -L options, not just this one.
12931 if test -n "$x_libraries"; then
12932 X_LIBS="$X_LIBS -L$x_libraries"
12933 # For Solaris; some versions of Sun CC require a space after -R and
12935 case `(uname -sr) 2>/dev/null` in
12937 echo "$as_me:12937: checking whether -R must be followed by a space" >&5
12938 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
12939 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
12952 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12958 { ac_try='test -s "conftest$ac_exeext"'
12970 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12974 X_LIBS="$X_LIBS -R$x_libraries"
12976 LIBS="$ac_xsave_LIBS -R $x_libraries"
12989 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12995 { ac_try='test -s "conftest$ac_exeext"'
13007 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
13011 X_LIBS="$X_LIBS -R $x_libraries"
13021 # Check for system-dependent libraries X programs must link with.
13022 # Do this before checking for the system-independent R6 libraries
13023 # (-lICE), since we may need -lsocket or whatever for X linking.
13026 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
13031 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
13051 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
13057 { ac_try='test -s "conftest$ac_exeext"'
13067 echo "$as_me:13067: checking for dnet_ntoa in -ldnet" >&5
13068 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
13073 LIBS="-ldnet $LIBS"
13093 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
13099 { ac_try='test -s "conftest$ac_exeext"'
13111 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
13117 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
13121 echo "$as_me:13121: checking for dnet_ntoa in -ldnet_stub" >&5
13122 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
13127 LIBS="-ldnet_stub $LIBS"
13147 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
13153 { ac_try='test -s "conftest$ac_exeext"'
13165 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
13171 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
13176 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
13179 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
13181 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
13182 # needs -lnsl.
13186 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
13196 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
13223 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
13229 { ac_try='test -s "conftest$ac_exeext"'
13241 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
13247 echo "$as_me:13247: checking for gethostbyname in -lnsl" >&5
13248 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
13253 LIBS="-lnsl $LIBS"
13273 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
13279 { ac_try='test -s "conftest$ac_exeext"'
13291 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
13297 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
13301 echo "$as_me:13301: checking for gethostbyname in -lbsd" >&5
13302 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
13307 LIBS="-lbsd $LIBS"
13327 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
13333 { ac_try='test -s "conftest$ac_exeext"'
13345 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
13351 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
13357 # lieder@skyler.mavd.honeywell.com says without -lsocket,
13359 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
13361 # variants that don't use the nameserver (or something). -lsocket
13362 # must be given before -lnsl if both are needed. We assume that
13363 # if connect needs -lnsl, so does gethostbyname.
13373 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
13400 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
13406 { ac_try='test -s "conftest$ac_exeext"'
13418 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
13424 echo "$as_me:13424: checking for connect in -lsocket" >&5
13425 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
13430 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
13450 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
13456 { ac_try='test -s "conftest$ac_exeext"'
13468 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
13474 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
13479 # Guillermo Gomez says -lposix is necessary on A/UX.
13489 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
13516 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
13522 { ac_try='test -s "conftest$ac_exeext"'
13534 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
13540 echo "$as_me:13540: checking for remove in -lposix" >&5
13541 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
13546 LIBS="-lposix $LIBS"
13566 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
13572 { ac_try='test -s "conftest$ac_exeext"'
13584 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
13590 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
13595 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
13605 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
13632 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
13638 { ac_try='test -s "conftest$ac_exeext"'
13650 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
13656 echo "$as_me:13656: checking for shmat in -lipc" >&5
13657 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
13662 LIBS="-lipc $LIBS"
13682 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
13688 { ac_try='test -s "conftest$ac_exeext"'
13700 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
13706 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
13714 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
13716 # check for ICE first), but we must link in the order -lSM -lICE or
13718 # These have to be linked with before -lX11, unlike the other
13721 echo "$as_me:13721: checking for IceConnectionNumber in -lICE" >&5
13722 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
13727 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
13747 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
13753 { ac_try='test -s "conftest$ac_exeext"'
13765 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
13771 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
13778 cf_x_athena=${cf_x_athena:-Xaw}
13784 # Check whether --with-Xaw3d or --without-Xaw3d was given.
13802 # Check whether --with-Xaw3dxft or --without-Xaw3dxft was given.
13820 # Check whether --with-neXtaw or --without-neXtaw was given.
13834 echo "$as_me:13834: checking if you want to link with Athena-Plus library" >&5
13835 echo $ECHO_N "checking if you want to link with Athena-Plus library... $ECHO_C" >&6
13838 # Check whether --with-XawPlus or --without-XawPlus was given.
13860 ${cf_x_athena}-devel \
13862 lib${cf_x_athena}-devel
13865 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "$cf_athena_pkg"; then
13866 test -n "$verbose" && echo " found package $cf_athena_pkg" 1>&6
13868 echo "${as_me:-configure}:13868: testing found package $cf_athena_pkg ..." 1>&5
13870 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "$cf_athena_pkg" 2>/dev/null`"
13871 cf_pkgconfig_libs="`$PKG_CONFIG --libs "$cf_athena_pkg" 2>/dev/null`"
13872 test -n "$verbose" && echo " package $cf_athena_pkg CFLAGS: $cf_pkgconfig_incs" 1>&6
13874 echo "${as_me:-configure}:13874: testing package $cf_athena_pkg CFLAGS: $cf_pkgconfig_incs ..." 1>&5
13876 test -n "$verbose" && echo " package $cf_athena_pkg LIBS: $cf_pkgconfig_libs" 1>&6
13878 echo "${as_me:-configure}:13878: testing package $cf_athena_pkg LIBS: $cf_pkgconfig_libs ..." 1>&5
13890 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
13892 (-D*)
13893 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
13896 && test -z "${cf_tst_cflags}" \
13901 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13907 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13919 (-D*)
13920 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
13923 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
13924 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
13929 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
13937 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
13945 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13948 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
13951 && test -z "${cf_tst_cflags}" \
13957 if test -n "$cf_new_cflags" ; then
13959 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
13964 if test -n "$cf_new_cppflags" ; then
13966 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13971 if test -n "$cf_new_extra_cppflags" ; then
13973 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
13990 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
13996 cf_x_athena_LIBS=`echo "HAVE_LIB_$cf_x_athena" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMN…
14005 (*-l$cf_trim_lib\ *-l$cf_trim_lib*)
14006 LIBS=`echo "$LIBS " | sed -e 's/ / /g' -e 's%-l'"$cf_trim_lib"' %%' -e 's/ $//'`
14007 test -n "$verbose" && echo " ..trimmed $LIBS" 1>&6
14009 echo "${as_me:-configure}:14009: testing ..trimmed $LIBS ..." 1>&5
14039 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
14045 { ac_try='test -s "conftest$ac_exeext"'
14057 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
14066 (*-lXmu*)
14069 test -n "$verbose" && echo " work around broken package" 1>&6
14071 echo "${as_me:-configure}:14071: testing work around broken package ..." 1>&5
14074 cf_first_lib=`echo "$cf_save_xmu" | sed -e 's/^ *//' -e 's/ .*//'`
14076 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "xmu"; then
14077 test -n "$verbose" && echo " found package xmu" 1>&6
14079 echo "${as_me:-configure}:14079: testing found package xmu ..." 1>&5
14081 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "xmu" 2>/dev/null`"
14082 cf_pkgconfig_libs="`$PKG_CONFIG --libs "xmu" 2>/dev/null`"
14083 test -n "$verbose" && echo " package xmu CFLAGS: $cf_pkgconfig_incs" 1>&6
14085 echo "${as_me:-configure}:14085: testing package xmu CFLAGS: $cf_pkgconfig_incs ..." 1>&5
14087 test -n "$verbose" && echo " package xmu LIBS: $cf_pkgconfig_libs" 1>&6
14089 echo "${as_me:-configure}:14089: testing package xmu LIBS: $cf_pkgconfig_libs ..." 1>&5
14101 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
14103 (-D*)
14104 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
14107 && test -z "${cf_tst_cflags}" \
14112 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14118 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14130 (-D*)
14131 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
14134 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
14135 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
14140 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
14148 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
14156 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14159 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
14162 && test -z "${cf_tst_cflags}" \
14168 if test -n "$cf_new_cflags" ; then
14170 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
14175 if test -n "$cf_new_cppflags" ; then
14177 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
14182 if test -n "$cf_new_extra_cppflags" ; then
14184 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
14201 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
14207 test -n "$verbose" && echo " ...before $LIBS" 1>&6
14209 echo "${as_me:-configure}:14209: testing ...before $LIBS ..." 1>&5
14211 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%$cf_first_lib %$cf_first_lib $cf_pkgconfig_libs…
14212 test -n "$verbose" && echo " ...after $LIBS" 1>&6
14214 echo "${as_me:-configure}:14214: testing ...after $LIBS ..." 1>&5
14220 test -n "$verbose" && echo " ...before $LIBS" 1>&6
14222 echo "${as_me:-configure}:14222: testing ...before $LIBS ..." 1>&5
14224 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%$cf_first_lib %$cf_first_lib -lXmu %" -e 's% %…
14225 test -n "$verbose" && echo " ...after $LIBS" 1>&6
14227 echo "${as_me:-configure}:14227: testing ...after $LIBS ..." 1>&5
14234 (*-l$cf_trim_lib\ *-l$cf_trim_lib*)
14235 LIBS=`echo "$LIBS " | sed -e 's/ / /g' -e 's%-l'"$cf_trim_lib"' %%' -e 's/ $//'`
14236 test -n "$verbose" && echo " ..trimmed $LIBS" 1>&6
14238 echo "${as_me:-configure}:14238: testing ..trimmed $LIBS ..." 1>&5
14258 if test -z "$cf_x_athena_lib" ; then
14260 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "Xext"; then
14261 test -n "$verbose" && echo " found package Xext" 1>&6
14263 echo "${as_me:-configure}:14263: testing found package Xext ..." 1>&5
14265 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "Xext" 2>/dev/null`"
14266 cf_pkgconfig_libs="`$PKG_CONFIG --libs "Xext" 2>/dev/null`"
14267 test -n "$verbose" && echo " package Xext CFLAGS: $cf_pkgconfig_incs" 1>&6
14269 echo "${as_me:-configure}:14269: testing package Xext CFLAGS: $cf_pkgconfig_incs ..." 1>&5
14271 test -n "$verbose" && echo " package Xext LIBS: $cf_pkgconfig_libs" 1>&6
14273 echo "${as_me:-configure}:14273: testing package Xext LIBS: $cf_pkgconfig_libs ..." 1>&5
14285 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
14287 (-D*)
14288 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
14291 && test -z "${cf_tst_cflags}" \
14296 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14302 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14314 (-D*)
14315 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
14318 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
14319 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
14324 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
14332 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
14340 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14343 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
14346 && test -z "${cf_tst_cflags}" \
14352 if test -n "$cf_new_cflags" ; then
14354 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
14359 if test -n "$cf_new_cppflags" ; then
14361 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
14366 if test -n "$cf_new_extra_cppflags" ; then
14368 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
14385 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
14394 echo "$as_me:14394: checking for XextCreateExtension in -lXext" >&5
14395 echo $ECHO_N "checking for XextCreateExtension in -lXext... $ECHO_C" >&6
14400 LIBS="-lXext $LIBS"
14420 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
14426 { ac_try='test -s "conftest$ac_exeext"'
14438 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
14448 for cf_add_1lib in -lXext; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
14457 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
14468 # Check for that pitfall, and recover using pkg-config
14471 if test -z "${X_CFLAGS}${X_PRE_LIBS}${X_LIBS}${X_EXTRA_LIBS}"
14474 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "x11"; then
14475 test -n "$verbose" && echo " found package x11" 1>&6
14477 echo "${as_me:-configure}:14477: testing found package x11 ..." 1>&5
14479 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "x11" 2>/dev/null`"
14480 cf_pkgconfig_libs="`$PKG_CONFIG --libs "x11" 2>/dev/null`"
14481 test -n "$verbose" && echo " package x11 CFLAGS: $cf_pkgconfig_incs" 1>&6
14483 echo "${as_me:-configure}:14483: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5
14485 test -n "$verbose" && echo " package x11 LIBS: $cf_pkgconfig_libs" 1>&6
14487 echo "${as_me:-configure}:14487: testing package x11 LIBS: $cf_pkgconfig_libs ..." 1>&5
14499 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
14501 (-D*)
14502 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
14505 && test -z "${cf_tst_cflags}" \
14510 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14516 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14528 (-D*)
14529 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
14532 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
14533 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
14538 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
14546 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
14554 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14557 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
14560 && test -z "${cf_tst_cflags}" \
14566 if test -n "$cf_new_cflags" ; then
14568 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
14573 if test -n "$cf_new_cppflags" ; then
14575 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
14580 if test -n "$cf_new_extra_cppflags" ; then
14582 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
14599 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
14611 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "ice"; then
14612 test -n "$verbose" && echo " found package ice" 1>&6
14614 echo "${as_me:-configure}:14614: testing found package ice ..." 1>&5
14616 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "ice" 2>/dev/null`"
14617 cf_pkgconfig_libs="`$PKG_CONFIG --libs "ice" 2>/dev/null`"
14618 test -n "$verbose" && echo " package ice CFLAGS: $cf_pkgconfig_incs" 1>&6
14620 echo "${as_me:-configure}:14620: testing package ice CFLAGS: $cf_pkgconfig_incs ..." 1>&5
14622 test -n "$verbose" && echo " package ice LIBS: $cf_pkgconfig_libs" 1>&6
14624 echo "${as_me:-configure}:14624: testing package ice LIBS: $cf_pkgconfig_libs ..." 1>&5
14636 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
14638 (-D*)
14639 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
14642 && test -z "${cf_tst_cflags}" \
14647 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14653 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14665 (-D*)
14666 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
14669 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
14670 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
14675 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
14683 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
14691 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14694 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
14697 && test -z "${cf_tst_cflags}" \
14703 if test -n "$cf_new_cflags" ; then
14705 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
14710 if test -n "$cf_new_cppflags" ; then
14712 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
14717 if test -n "$cf_new_extra_cppflags" ; then
14719 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
14736 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
14748 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "sm"; then
14749 test -n "$verbose" && echo " found package sm" 1>&6
14751 echo "${as_me:-configure}:14751: testing found package sm ..." 1>&5
14753 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "sm" 2>/dev/null`"
14754 cf_pkgconfig_libs="`$PKG_CONFIG --libs "sm" 2>/dev/null`"
14755 test -n "$verbose" && echo " package sm CFLAGS: $cf_pkgconfig_incs" 1>&6
14757 echo "${as_me:-configure}:14757: testing package sm CFLAGS: $cf_pkgconfig_incs ..." 1>&5
14759 test -n "$verbose" && echo " package sm LIBS: $cf_pkgconfig_libs" 1>&6
14761 echo "${as_me:-configure}:14761: testing package sm LIBS: $cf_pkgconfig_libs ..." 1>&5
14773 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
14775 (-D*)
14776 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
14779 && test -z "${cf_tst_cflags}" \
14784 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14790 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14802 (-D*)
14803 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
14806 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
14807 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
14812 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
14820 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
14828 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14831 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
14834 && test -z "${cf_tst_cflags}" \
14840 if test -n "$cf_new_cflags" ; then
14842 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
14847 if test -n "$cf_new_cppflags" ; then
14849 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
14854 if test -n "$cf_new_extra_cppflags" ; then
14856 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
14873 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
14885 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "xt"; then
14886 test -n "$verbose" && echo " found package xt" 1>&6
14888 echo "${as_me:-configure}:14888: testing found package xt ..." 1>&5
14890 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "xt" 2>/dev/null`"
14891 cf_pkgconfig_libs="`$PKG_CONFIG --libs "xt" 2>/dev/null`"
14892 test -n "$verbose" && echo " package xt CFLAGS: $cf_pkgconfig_incs" 1>&6
14894 echo "${as_me:-configure}:14894: testing package xt CFLAGS: $cf_pkgconfig_incs ..." 1>&5
14896 test -n "$verbose" && echo " package xt LIBS: $cf_pkgconfig_libs" 1>&6
14898 echo "${as_me:-configure}:14898: testing package xt LIBS: $cf_pkgconfig_libs ..." 1>&5
14910 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
14912 (-D*)
14913 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
14916 && test -z "${cf_tst_cflags}" \
14921 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14927 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14939 (-D*)
14940 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
14943 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
14944 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
14949 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
14957 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
14965 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14968 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
14971 && test -z "${cf_tst_cflags}" \
14977 if test -n "$cf_new_cflags" ; then
14979 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
14984 if test -n "$cf_new_cppflags" ; then
14986 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
14991 if test -n "$cf_new_extra_cppflags" ; then
14993 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
15010 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15028 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "xt"; then
15029 test -n "$verbose" && echo " found package xt" 1>&6
15031 echo "${as_me:-configure}:15031: testing found package xt ..." 1>&5
15033 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "xt" 2>/dev/null`"
15034 cf_pkgconfig_libs="`$PKG_CONFIG --libs "xt" 2>/dev/null`"
15035 test -n "$verbose" && echo " package xt CFLAGS: $cf_pkgconfig_incs" 1>&6
15037 echo "${as_me:-configure}:15037: testing package xt CFLAGS: $cf_pkgconfig_incs ..." 1>&5
15039 test -n "$verbose" && echo " package xt LIBS: $cf_pkgconfig_libs" 1>&6
15041 echo "${as_me:-configure}:15041: testing package xt LIBS: $cf_pkgconfig_libs ..." 1>&5
15053 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
15055 (-D*)
15056 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
15059 && test -z "${cf_tst_cflags}" \
15064 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15070 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15082 (-D*)
15083 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
15086 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
15087 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
15092 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
15100 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
15108 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15111 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
15114 && test -z "${cf_tst_cflags}" \
15120 if test -n "$cf_new_cflags" ; then
15122 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
15127 if test -n "$cf_new_cppflags" ; then
15129 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
15134 if test -n "$cf_new_extra_cppflags" ; then
15136 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
15153 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15158 (*-lX11*)
15188 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
15194 { ac_try='test -s "conftest$ac_exeext"'
15206 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
15212 test -n "$verbose" && echo " work around broken X11 dependency" 1>&6
15214 echo "${as_me:-configure}:15214: testing work around broken X11 dependency ..." 1>&5
15216 # 2010/11/19 - good enough until a working Xt on Xcb is delivered.
15218 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "x11"; then
15219 test -n "$verbose" && echo " found package x11" 1>&6
15221 echo "${as_me:-configure}:15221: testing found package x11 ..." 1>&5
15223 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "x11" 2>/dev/null`"
15224 cf_pkgconfig_libs="`$PKG_CONFIG --libs "x11" 2>/dev/null`"
15225 test -n "$verbose" && echo " package x11 CFLAGS: $cf_pkgconfig_incs" 1>&6
15227 echo "${as_me:-configure}:15227: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5
15229 test -n "$verbose" && echo " package x11 LIBS: $cf_pkgconfig_libs" 1>&6
15231 echo "${as_me:-configure}:15231: testing package x11 LIBS: $cf_pkgconfig_libs ..." 1>&5
15243 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
15245 (-D*)
15246 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
15249 && test -z "${cf_tst_cflags}" \
15254 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15260 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15272 (-D*)
15273 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
15276 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
15277 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
15282 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
15290 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
15298 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15301 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
15304 && test -z "${cf_tst_cflags}" \
15310 if test -n "$cf_new_cflags" ; then
15312 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
15317 if test -n "$cf_new_cppflags" ; then
15319 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
15324 if test -n "$cf_new_extra_cppflags" ; then
15326 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
15343 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15352 test -n "$verbose" && echo " ...before $LIBS" 1>&6
15354 echo "${as_me:-configure}:15354: testing ...before $LIBS ..." 1>&5
15356 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXt %-lXt -lX11 %" -e 's% % %g'`
15357 test -n "$verbose" && echo " ...after $LIBS" 1>&6
15359 echo "${as_me:-configure}:15359: testing ...after $LIBS ..." 1>&5
15389 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
15395 { ac_try='test -s "conftest$ac_exeext"'
15407 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
15416 (*-lICE*)
15418 (*-lICE*)
15421 test -n "$verbose" && echo " work around broken ICE dependency" 1>&6
15423 echo "${as_me:-configure}:15423: testing work around broken ICE dependency ..." 1>&5
15425 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "ice"; then
15426 test -n "$verbose" && echo " found package ice" 1>&6
15428 echo "${as_me:-configure}:15428: testing found package ice ..." 1>&5
15430 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "ice" 2>/dev/null`"
15431 cf_pkgconfig_libs="`$PKG_CONFIG --libs "ice" 2>/dev/null`"
15432 test -n "$verbose" && echo " package ice CFLAGS: $cf_pkgconfig_incs" 1>&6
15434 echo "${as_me:-configure}:15434: testing package ice CFLAGS: $cf_pkgconfig_incs ..." 1>&5
15436 test -n "$verbose" && echo " package ice LIBS: $cf_pkgconfig_libs" 1>&6
15438 echo "${as_me:-configure}:15438: testing package ice LIBS: $cf_pkgconfig_libs ..." 1>&5
15450 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
15452 (-D*)
15453 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
15456 && test -z "${cf_tst_cflags}" \
15461 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15467 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15479 (-D*)
15480 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
15483 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
15484 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
15489 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
15497 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
15505 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15508 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
15511 && test -z "${cf_tst_cflags}" \
15517 if test -n "$cf_new_cflags" ; then
15519 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
15524 if test -n "$cf_new_cppflags" ; then
15526 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
15531 if test -n "$cf_new_extra_cppflags" ; then
15533 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
15550 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15554 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "sm"; then
15555 test -n "$verbose" && echo " found package sm" 1>&6
15557 echo "${as_me:-configure}:15557: testing found package sm ..." 1>&5
15559 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "sm" 2>/dev/null`"
15560 cf_pkgconfig_libs="`$PKG_CONFIG --libs "sm" 2>/dev/null`"
15561 test -n "$verbose" && echo " package sm CFLAGS: $cf_pkgconfig_incs" 1>&6
15563 echo "${as_me:-configure}:15563: testing package sm CFLAGS: $cf_pkgconfig_incs ..." 1>&5
15565 test -n "$verbose" && echo " package sm LIBS: $cf_pkgconfig_libs" 1>&6
15567 echo "${as_me:-configure}:15567: testing package sm LIBS: $cf_pkgconfig_libs ..." 1>&5
15579 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
15581 (-D*)
15582 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
15585 && test -z "${cf_tst_cflags}" \
15590 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15596 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15608 (-D*)
15609 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
15612 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
15613 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
15618 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
15626 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
15634 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15637 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
15640 && test -z "${cf_tst_cflags}" \
15646 if test -n "$cf_new_cflags" ; then
15648 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
15653 if test -n "$cf_new_cppflags" ; then
15655 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
15660 if test -n "$cf_new_extra_cppflags" ; then
15662 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
15679 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15694 test -n "$verbose" && echo " ...before $LIBS" 1>&6
15696 echo "${as_me:-configure}:15696: testing ...before $LIBS ..." 1>&5
15698 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXt %-lXt $X_PRE_LIBS %" -e 's% % %g'`
15699 test -n "$verbose" && echo " ...after $LIBS" 1>&6
15701 echo "${as_me:-configure}:15701: testing ...after $LIBS ..." 1>&5
15719 test -n "$verbose" && echo " checking additions to CFLAGS" 1>&6
15721 echo "${as_me:-configure}:15721: testing checking additions to CFLAGS ..." 1>&5
15736 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
15738 (-D*)
15739 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
15742 && test -z "${cf_tst_cflags}" \
15747 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15753 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15765 (-D*)
15766 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
15769 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
15770 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
15775 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
15783 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
15791 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15794 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
15797 && test -z "${cf_tst_cflags}" \
15803 if test -n "$cf_new_cflags" ; then
15804 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
15806 echo "${as_me:-configure}:15806: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
15808 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
15813 if test -n "$cf_new_cppflags" ; then
15814 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
15816 echo "${as_me:-configure}:15816: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
15818 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
15823 if test -n "$cf_new_extra_cppflags" ; then
15824 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
15826 echo "${as_me:-configure}:15826: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
15828 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
15846 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
15852 { ac_try='test -s "conftest$ac_exeext"'
15862 test -n "$verbose" && echo " test-compile failed. Undoing change to \$CFLAGS" 1>&6
15864 echo "${as_me:-configure}:15864: testing test-compile failed. Undoing change to \$CFLAGS ..." 1>&5
15867 test -n "$verbose" && echo " but keeping change to \$CPPFLAGS" 1>&6
15869 echo "${as_me:-configure}:15869: testing but keeping change to \$CPPFLAGS ..." 1>&5
15874 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
15886 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
15913 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
15919 { ac_try='test -s "conftest$ac_exeext"'
15931 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
15939 echo "$as_me:15939: checking for XOpenDisplay in -lX11" >&5
15940 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
15945 LIBS="-lX11 $LIBS"
15965 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
15971 { ac_try='test -s "conftest$ac_exeext"'
15983 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
15993 for cf_add_1lib in -lX11; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
16002 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
16019 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
16046 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
16052 { ac_try='test -s "conftest$ac_exeext"'
16064 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
16072 echo "$as_me:16072: checking for XtAppInitialize in -lXt" >&5
16073 echo $ECHO_N "checking for XtAppInitialize in -lXt... $ECHO_C" >&6
16078 LIBS="-lXt $LIBS"
16098 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
16104 { ac_try='test -s "conftest$ac_exeext"'
16116 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
16128 LIBS="-lXt $LIBS"
16136 { echo "$as_me:16136: WARNING: Unable to successfully link X Toolkit library (-lXt) with
16139 echo "$as_me: WARNING: Unable to successfully link X Toolkit library (-lXt) with
16153 if test -z "$cf_x_athena_inc" ; then
16162 x-[IUD]*)
16174 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
16175 CPPFLAGS="${CPPFLAGS}-I$cf_path/include"
16197 rm -f "conftest.$ac_objext"
16203 { ac_try='test -s "conftest.$ac_objext"'
16215 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
16231 if test -z "$cf_x_athena_inc" ; then
16236 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
16237 CPPFLAGS="${CPPFLAGS}-I$cf_x_athena_inc"
16256 "-l$cf_lib -lXmu" \
16257 "-l$cf_lib -lXpm -lXmu" \
16258 "-l${cf_lib}_s -lXmu_s"
16260 test -n "$cf_x_athena_lib" && break
16269 x-[IUD]*)
16279 test "$cf_path" != default && cf_libs="-L$cf_path/lib $cf_libs"
16293 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
16316 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
16322 { ac_try='test -s "conftest$ac_exeext"'
16334 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
16347 test -n "$cf_x_athena_lib" && break
16351 if test -z "$cf_x_athena_lib" ; then
16352 …{ { echo "$as_me:16352: error: Unable to successfully link Athena library (-l$cf_x_athena_root) wi…
16353 echo "$as_me: error: Unable to successfully link Athena library (-l$cf_x_athena_root) with test pro…
16369 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
16373 cf_x_athena_LIBS=`echo "HAVE_LIB_$cf_x_athena" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMN…
16381 if test -n "$ac_tool_prefix"; then
16382 for ac_prog in xcurses-config
16391 if test -n "$XCURSES_CONFIG"; then
16398 test -z "$ac_dir" && ac_dir=.
16408 if test -n "$XCURSES_CONFIG"; then
16416 test -n "$XCURSES_CONFIG" && break
16419 if test -z "$XCURSES_CONFIG"; then
16421 for ac_prog in xcurses-config
16430 if test -n "$ac_ct_XCURSES_CONFIG"; then
16437 test -z "$ac_dir" && ac_dir=.
16447 if test -n "$ac_ct_XCURSES_CONFIG"; then
16455 test -n "$ac_ct_XCURSES_CONFIG" && break
16457 test -n "$ac_ct_XCURSES_CONFIG" || ac_ct_XCURSES_CONFIG="none"
16469 for cf_add_cflags in `$XCURSES_CONFIG --cflags`
16474 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
16476 (-D*)
16477 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
16480 && test -z "${cf_tst_cflags}" \
16485 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16491 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16503 (-D*)
16504 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
16507 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
16508 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
16513 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
16521 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
16529 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16532 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
16535 && test -z "${cf_tst_cflags}" \
16541 if test -n "$cf_new_cflags" ; then
16543 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
16548 if test -n "$cf_new_cppflags" ; then
16550 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
16555 if test -n "$cf_new_extra_cppflags" ; then
16557 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
16565 for cf_add_1lib in `$XCURSES_CONFIG --libs`; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
16574 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
16584 test -n "$verbose" && echo " checking additions to CFLAGS" 1>&6
16586 echo "${as_me:-configure}:16586: testing checking additions to CFLAGS ..." 1>&5
16601 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
16603 (-D*)
16604 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
16607 && test -z "${cf_tst_cflags}" \
16612 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16618 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16630 (-D*)
16631 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
16634 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
16635 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
16640 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
16648 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
16656 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16659 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
16662 && test -z "${cf_tst_cflags}" \
16668 if test -n "$cf_new_cflags" ; then
16669 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
16671 echo "${as_me:-configure}:16671: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
16673 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
16678 if test -n "$cf_new_cppflags" ; then
16679 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
16681 echo "${as_me:-configure}:16681: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
16683 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
16688 if test -n "$cf_new_extra_cppflags" ; then
16689 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
16691 echo "${as_me:-configure}:16691: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
16693 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
16711 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
16717 { ac_try='test -s "conftest$ac_exeext"'
16727 test -n "$verbose" && echo " test-compile failed. Undoing change to \$CFLAGS" 1>&6
16729 echo "${as_me:-configure}:16729: testing test-compile failed. Undoing change to \$CFLAGS ..." 1>&5
16732 test -n "$verbose" && echo " but keeping change to \$CPPFLAGS" 1>&6
16734 echo "${as_me:-configure}:16734: testing but keeping change to \$CPPFLAGS ..." 1>&5
16739 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
16742 echo "$as_me:16742: checking for XOpenDisplay in -lX11" >&5
16743 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
16748 LIBS="-lX11 $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS"
16768 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
16774 { ac_try='test -s "conftest$ac_exeext"'
16786 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
16796 for cf_add_1lib in -lX11; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
16805 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
16820 for cf_add_1lib in -lXCurses; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
16829 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
16848 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
16854 { ac_try='test -s "conftest$ac_exeext"'
16866 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
16897 $EGREP -v '^ *\+' conftest.er1 >conftest.err
16898 rm -f conftest.er1
16902 if test -s conftest.err; then
16910 if test -z "$ac_cpp_err"; then
16917 rm -f conftest.err "conftest.$ac_ext"
16937 { { echo "$as_me:16937: error: unexpected screen-value: $cf_cv_screen" >&5
16938 echo "$as_me: error: unexpected screen-value: $cf_cv_screen" >&2;}
16945 echo "$as_me:16945: checking for _nc_init_pthreads in -l$cf_nculib_root" >&5
16946 echo $ECHO_N "checking for _nc_init_pthreads in -l$cf_nculib_root... $ECHO_C" >&6
16951 LIBS="-l$cf_nculib_root $LIBS"
16971 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
16977 { ac_try='test -s "conftest$ac_exeext"'
16989 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
17006 for cf_add_1lib in -lpthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
17015 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
17022 (ncurses*)
17023 cf_cv_libtype=`echo "$cf_cv_screen" | sed -e 's/^ncurses//'`
17030 # Check whether --with-x11-rgb or --without-x11-rgb was given.
17058 if test -f "$cf_path" ; then
17077 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
17083 cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%`
17088 cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%`
17133 (ncurses*)
17143 # Check whether --with-form-libname or --without-form-libname was given.
17166 # Check whether --with-menu-libname or --without-menu-libname was given.
17189 # Check whether --with-panel-libname or --without-panel-libname was given.
17212 # Check whether --enable-panel or --disable-panel was given.
17237 echo "$as_me:17237: checking pkg-config for $PANEL_NAME$cf_cv_libtype" >&5
17238 echo $ECHO_N "checking pkg-config for $PANEL_NAME$cf_cv_libtype... $ECHO_C" >&6
17239 if "$PKG_CONFIG" --exists "$PANEL_NAME$cf_cv_libtype" ; then
17250 for cf_add_cflags in `$PKG_CONFIG --cflags "$PANEL_NAME$cf_cv_libtype"`
17253 (x-[DU]*)
17255 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
17258 …S" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]…
17264 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
17267 …S" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]…
17286 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
17288 (-D*)
17289 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
17292 && test -z "${cf_tst_cflags}" \
17297 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17303 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17315 (-D*)
17316 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
17319 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
17320 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
17325 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
17333 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
17341 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17344 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
17347 && test -z "${cf_tst_cflags}" \
17353 if test -n "$cf_new_cflags" ; then
17355 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
17360 if test -n "$cf_new_cppflags" ; then
17362 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
17367 if test -n "$cf_new_extra_cppflags" ; then
17369 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
17379 for cf_add_1lib in `$PKG_CONFIG --libs "$PANEL_NAME$cf_cv_libtype"`; do cf_add_0lib="$cf_add_1lib $…
17388 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
17404 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
17410 { ac_try='test -s "conftest$ac_exeext"'
17426 rm -f "conftest$ac_exeext"
17444 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
17451 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
17458 cf_upper=`echo "have_lib$PANEL_NAME" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWX…
17473 echo "$as_me:17473: checking for new_panel in -l$PANEL_NAME$cf_cv_libtype" >&5
17474 echo $ECHO_N "checking for new_panel in -l$PANEL_NAME$cf_cv_libtype... $ECHO_C" >&6
17479 LIBS="-l$PANEL_NAME$cf_cv_libtype $LIBS"
17499 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
17505 { ac_try='test -s "conftest$ac_exeext"'
17517 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
17524 cf_upper=`echo "have_lib$PANEL_NAME" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWX…
17529 for cf_add_1lib in -l$PANEL_NAME$cf_cv_libtype; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
17538 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
17556 # Check whether --enable-menu or --disable-menu was given.
17575 (ncurses*)
17589 #include <${cf_cv_ncurses_header:-curses.h}>
17597 int y = menu->max_item_width;
17603 rm -f "conftest.$ac_objext"
17609 { ac_try='test -s "conftest.$ac_objext"'
17622 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
17642 echo "$as_me:17642: checking pkg-config for $MENU_NAME$cf_cv_libtype" >&5
17643 echo $ECHO_N "checking pkg-config for $MENU_NAME$cf_cv_libtype... $ECHO_C" >&6
17644 if "$PKG_CONFIG" --exists "$MENU_NAME$cf_cv_libtype" ; then
17655 for cf_add_cflags in `$PKG_CONFIG --cflags "$MENU_NAME$cf_cv_libtype"`
17658 (x-[DU]*)
17660 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
17663 …S" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]…
17669 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
17672 …S" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]…
17691 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
17693 (-D*)
17694 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
17697 && test -z "${cf_tst_cflags}" \
17702 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17708 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17720 (-D*)
17721 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
17724 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
17725 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
17730 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
17738 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
17746 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17749 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
17752 && test -z "${cf_tst_cflags}" \
17758 if test -n "$cf_new_cflags" ; then
17760 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
17765 if test -n "$cf_new_cppflags" ; then
17767 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
17772 if test -n "$cf_new_extra_cppflags" ; then
17774 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
17784 for cf_add_1lib in `$PKG_CONFIG --libs "$MENU_NAME$cf_cv_libtype"`; do cf_add_0lib="$cf_add_1lib $c…
17793 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
17809 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
17815 { ac_try='test -s "conftest$ac_exeext"'
17831 rm -f "conftest$ac_exeext"
17849 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
17856 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
17863 cf_upper=`echo "have_lib$MENU_NAME" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXY…
17878 echo "$as_me:17878: checking for menu_driver in -l$MENU_NAME$cf_cv_libtype" >&5
17879 echo $ECHO_N "checking for menu_driver in -l$MENU_NAME$cf_cv_libtype... $ECHO_C" >&6
17884 LIBS="-l$MENU_NAME$cf_cv_libtype $LIBS"
17904 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
17910 { ac_try='test -s "conftest$ac_exeext"'
17922 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
17929 cf_upper=`echo "have_lib$MENU_NAME" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXY…
17934 for cf_add_1lib in -l$MENU_NAME$cf_cv_libtype; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
17943 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
17961 # Check whether --enable-form or --disable-form was given.
17980 (ncurses*)
17994 #include <${cf_cv_ncurses_header:-curses.h}>
18002 int y = current_field(form)->cursor_ypos;
18003 int x = current_field(form)->cursor_xpos;
18009 rm -f "conftest.$ac_objext"
18015 { ac_try='test -s "conftest.$ac_objext"'
18028 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
18048 echo "$as_me:18048: checking pkg-config for $FORM_NAME$cf_cv_libtype" >&5
18049 echo $ECHO_N "checking pkg-config for $FORM_NAME$cf_cv_libtype... $ECHO_C" >&6
18050 if "$PKG_CONFIG" --exists "$FORM_NAME$cf_cv_libtype" ; then
18061 for cf_add_cflags in `$PKG_CONFIG --cflags "$FORM_NAME$cf_cv_libtype"`
18064 (x-[DU]*)
18066 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
18069 …S" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]…
18075 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
18078 …S" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]…
18097 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
18099 (-D*)
18100 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
18103 && test -z "${cf_tst_cflags}" \
18108 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18114 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18126 (-D*)
18127 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
18130 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
18131 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
18136 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
18144 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
18152 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18155 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
18158 && test -z "${cf_tst_cflags}" \
18164 if test -n "$cf_new_cflags" ; then
18166 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
18171 if test -n "$cf_new_cppflags" ; then
18173 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
18178 if test -n "$cf_new_extra_cppflags" ; then
18180 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
18190 for cf_add_1lib in `$PKG_CONFIG --libs "$FORM_NAME$cf_cv_libtype"`; do cf_add_0lib="$cf_add_1lib $c…
18199 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
18215 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
18221 { ac_try='test -s "conftest$ac_exeext"'
18237 rm -f "conftest$ac_exeext"
18255 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
18262 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18269 cf_upper=`echo "have_lib$FORM_NAME" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXY…
18284 echo "$as_me:18284: checking for form_driver in -l$FORM_NAME$cf_cv_libtype" >&5
18285 echo $ECHO_N "checking for form_driver in -l$FORM_NAME$cf_cv_libtype... $ECHO_C" >&6
18290 LIBS="-l$FORM_NAME$cf_cv_libtype $LIBS"
18310 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
18316 { ac_try='test -s "conftest$ac_exeext"'
18328 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18335 cf_upper=`echo "have_lib$FORM_NAME" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXY…
18340 for cf_add_1lib in -l$FORM_NAME$cf_cv_libtype; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
18349 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
18364 # look for curses-related headers
18382 $EGREP -v '^ *\+' conftest.er1 >conftest.err
18383 rm -f conftest.er1
18387 if test -s conftest.err; then
18395 if test -z "$ac_cpp_err"; then
18402 rm -f conftest.err "conftest.$ac_ext"
18435 rm -f "conftest.$ac_objext"
18441 { ac_try='test -s "conftest.$ac_objext"'
18453 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
18491 $EGREP -v '^ *\+' conftest.er1 >conftest.err
18492 rm -f conftest.er1
18496 if test -s conftest.err; then
18504 if test -z "$ac_cpp_err"; then
18511 rm -f conftest.err "conftest.$ac_ext"
18539 $EGREP -v '^ *\+' conftest.er1 >conftest.err
18540 rm -f conftest.er1
18544 if test -s conftest.err; then
18552 if test -z "$ac_cpp_err"; then
18559 rm -f conftest.err "conftest.$ac_ext"
18593 rm -f "conftest.$ac_objext"
18599 { ac_try='test -s "conftest.$ac_objext"'
18611 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
18651 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
18657 { ac_try='test -s "conftest$ac_exeext"'
18669 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18692 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
18719 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
18725 { ac_try='test -s "conftest$ac_exeext"'
18737 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18749 echo "$as_me:18749: checking for gettimeofday in -lbsd" >&5
18750 echo $ECHO_N "checking for gettimeofday in -lbsd... $ECHO_C" >&6
18755 LIBS="-lbsd $LIBS"
18775 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
18781 { ac_try='test -s "conftest$ac_exeext"'
18793 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18807 for cf_add_1lib in -lbsd; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
18816 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
18843 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
18870 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
18876 { ac_try='test -s "conftest$ac_exeext"'
18888 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18900 # use a compile-check to work with ncurses*-config and subdirectory includes
18928 rm -f "conftest.$ac_objext"
18934 { ac_try='test -s "conftest.$ac_objext"'
18946 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
18958 echo "$as_me:18958: checking if we can use ncurses/termcap.h" >&5
18959 echo $ECHO_N "checking if we can use ncurses/termcap.h... $ECHO_C" >&6
18968 #include <ncurses/curses.h>
18972 #include <ncurses/termcap.h>
18985 rm -f "conftest.$ac_objext"
18991 { ac_try='test -s "conftest.$ac_objext"'
19003 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
19043 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
19070 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19076 { ac_try='test -s "conftest$ac_exeext"'
19088 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19114 #include <${cf_cv_ncurses_header:-curses.h}>
19121 #error disallow ncurses versions between 2020/04/03 and 2010/05/01
19125 #error prefer to fall-through on the second checks
19142 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19148 { ac_try='test -s "conftest$ac_exeext"'
19167 #include <${cf_cv_ncurses_header:-curses.h}>
19187 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19193 { ac_try='test -s "conftest$ac_exeext"'
19204 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19208 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19217 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
19218 CPPFLAGS="${CPPFLAGS}-D$cf_cv_need_xopen_extension"
19229 # If we found <ncurses/curses.h>, look for <ncurses/term.h>, but always look
19232 cf_header_list="term.h ncurses/term.h ncursesw/term.h"
19234 case "${cf_cv_ncurses_header:-curses.h}" in
19236 cf_header_item=`echo "${cf_cv_ncurses_header:-curses.h}" | sed -e 's%\..*%%' -e 's%/.*%/%'`term.h
19247 #include <${cf_cv_ncurses_header:-curses.h}>
19257 rm -f "conftest.$ac_objext"
19263 { ac_try='test -s "conftest.$ac_objext"'
19276 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
19281 # If curses is ncurses, some packagers still mess it up by trying to make
19283 for cf_header in ncurses/term.h ncursesw/term.h
19289 #include <${cf_cv_ncurses_header:-curses.h}>
19303 rm -f "conftest.$ac_objext"
19309 { ac_try='test -s "conftest.$ac_objext"'
19322 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
19339 (ncurses/term.h)
19361 # If we found <ncurses/curses.h>, look for <ncurses/unctrl.h>, but always look
19364 cf_header_list="unctrl.h ncurses/unctrl.h ncursesw/unctrl.h"
19366 case "${cf_cv_ncurses_header:-curses.h}" in
19368 cf_header_item=`echo "${cf_cv_ncurses_header:-curses.h}" | sed -e 's%\..*%%' -e 's%/.*%/%'`unctrl.h
19379 #include <${cf_cv_ncurses_header:-curses.h}>
19389 rm -f "conftest.$ac_objext"
19395 { ac_try='test -s "conftest.$ac_objext"'
19408 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
19430 (ncurses/unctrl.h)
19513 cf_tr_func=`echo "$cf_func" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
19518 echo "${as_me:-configure}:19518: testing ${cf_func} ..." 1>&5
19534 #include <${cf_cv_ncurses_header:-curses.h}>
19538 #include <ncurses/term.h>
19552 ${cf_cv_main_return:-return}(foo != 0);
19559 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19565 { ac_try='test -s "conftest$ac_exeext"'
19577 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19583 # use the computed/retrieved cache-value:
19598 cf_tr_func=`echo "$cf_func" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
19603 echo "${as_me:-configure}:19603: testing ${cf_func} ..." 1>&5
19619 #include <${cf_cv_ncurses_header:-curses.h}>
19623 #include <ncurses/term.h>
19637 ${cf_cv_main_return:-return}(foo != 0);
19644 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19650 { ac_try='test -s "conftest$ac_exeext"'
19662 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19668 # use the computed/retrieved cache-value:
19697 #include <${cf_cv_ncurses_header:-curses.h}>
19707 ${cf_cv_main_return:-return}(0);
19713 rm -f "conftest.$ac_objext"
19719 { ac_try='test -s "conftest.$ac_objext"'
19726 test -n "$verbose" && echo " prototype $cf_ret func($cf_arg value)" 1>&6
19728 echo "${as_me:-configure}:19728: testing prototype $cf_ret func($cf_arg value) ..." 1>&5
19742 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
19748 echo "$as_me:19748: checking for ncurses extended functions" >&5
19749 echo $ECHO_N "checking for ncurses extended functions... $ECHO_C" >&6
19758 #include <${cf_cv_ncurses_header:-curses.h}>
19769 rm -f "conftest.$ac_objext"
19775 { ac_try='test -s "conftest.$ac_objext"'
19790 #include <${cf_cv_ncurses_header:-curses.h}>
19811 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19817 { ac_try='test -s "conftest$ac_exeext"'
19829 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19832 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
19844 # workaround for systems with ncurses before 20111029, due to change of
19846 if test -n "$cf_cv_ncurses_version" && test "x$cf_cv_ncurses_version" != xno
19849 echo "$as_me:19849: checking if _XPG5 should be defined to enable wide-characters" >&5
19850 echo $ECHO_N "checking if _XPG5 should be defined to enable wide-characters... $ECHO_C" >&6
19856 #include <${cf_cv_ncurses_header:-curses.h}>
19865 rm -f "conftest.$ac_objext"
19871 { ac_try='test -s "conftest.$ac_objext"'
19882 CPPFLAGS="$CPPFLAGS -D_XPG5"
19887 #include <${cf_cv_ncurses_header:-curses.h}>
19896 rm -f "conftest.$ac_objext"
19902 { ac_try='test -s "conftest.$ac_objext"'
19913 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
19916 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
19922 CPPFLAGS="$CPPFLAGS -D_XPG5"
19926 echo "$as_me:19926: checking for wide-character functions" >&5
19927 echo $ECHO_N "checking for wide-character functions... $ECHO_C" >&6
19936 #include <${cf_cv_ncurses_header:-curses.h}>
19949 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19955 { ac_try='test -s "conftest$ac_exeext"'
19967 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
20001 #include <${cf_cv_ncurses_header:-curses.h}>
20015 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
20021 { ac_try='test -s "conftest$ac_exeext"'
20033 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
20069 rm -f "conftest.$ac_objext"
20075 { ac_try='test -s "conftest.$ac_objext"'
20087 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20100 echo "$as_me:20100: checking for openpty in -lutil" >&5
20101 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
20106 LIBS="-lutil $LIBS"
20126 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
20132 { ac_try='test -s "conftest$ac_exeext"'
20144 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
20166 for cf_add_1lib in -lutil; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
20175 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
20199 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
20205 { ac_try='test -s "conftest$ac_exeext"'
20222 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
20245 for cf_add_1lib in -lutil; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
20254 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
20276 #include <${cf_cv_ncurses_header:-curses.h}>
20282 ${cf_cv_main_return:-return}(0);
20286 rm -f "conftest$ac_exeext"
20306 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
20308 rm -f core
20330 #include <${cf_cv_ncurses_header:-curses.h}>
20342 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
20348 { ac_try='test -s "conftest$ac_exeext"'
20359 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
20389 #include <${cf_cv_ncurses_header:-curses.h}>
20398 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
20404 { ac_try='test -s "conftest$ac_exeext"'
20416 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
20443 #include <${cf_cv_ncurses_header:-curses.h}>
20453 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
20459 { ac_try='test -s "conftest$ac_exeext"'
20470 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
20479 #include <${cf_cv_ncurses_header:-curses.h}>
20488 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
20494 { ac_try='test -s "conftest$ac_exeext"'
20505 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
20519 echo "$as_me:20519: checking for type attr_t in ${cf_cv_ncurses_header:-curses.h}" >&5
20520 echo $ECHO_N "checking for type attr_t in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
20528 #include <${cf_cv_ncurses_header:-curses.h}>
20539 rm -f "conftest.$ac_objext"
20545 { ac_try='test -s "conftest.$ac_objext"'
20557 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20562 cf_result=`echo "have_type_attr_t" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ…
20603 rm -f "conftest.$ac_objext"
20609 { ac_try='test -s "conftest.$ac_objext"'
20638 rm -f "conftest.$ac_objext"
20644 { ac_try='test -s "conftest.$ac_objext"'
20656 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20658 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20707 rm -f "conftest.$ac_objext"
20713 { ac_try='test -s "conftest.$ac_objext"'
20742 rm -f "conftest.$ac_objext"
20748 { ac_try='test -s "conftest.$ac_objext"'
20760 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20762 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20811 rm -f "conftest.$ac_objext"
20817 { ac_try='test -s "conftest.$ac_objext"'
20846 rm -f "conftest.$ac_objext"
20852 { ac_try='test -s "conftest.$ac_objext"'
20864 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20866 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20892 echo "$as_me:20892: checking for type mbstate_t in ${cf_cv_ncurses_header:-curses.h}" >&5
20893 echo $ECHO_N "checking for type mbstate_t in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
20901 #include <${cf_cv_ncurses_header:-curses.h}>
20912 rm -f "conftest.$ac_objext"
20918 { ac_try='test -s "conftest.$ac_objext"'
20930 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20935 cf_result=`echo "have_type_mbstate_t" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVW…
20953 echo "$as_me:20953: checking for type wchar_t in ${cf_cv_ncurses_header:-curses.h}" >&5
20954 echo $ECHO_N "checking for type wchar_t in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
20962 #include <${cf_cv_ncurses_header:-curses.h}>
20973 rm -f "conftest.$ac_objext"
20979 { ac_try='test -s "conftest.$ac_objext"'
20991 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20996 cf_result=`echo "have_type_wchar_t" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXY…
21014 echo "$as_me:21014: checking for type wint_t in ${cf_cv_ncurses_header:-curses.h}" >&5
21015 echo $ECHO_N "checking for type wint_t in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
21023 #include <${cf_cv_ncurses_header:-curses.h}>
21034 rm -f "conftest.$ac_objext"
21040 { ac_try='test -s "conftest.$ac_objext"'
21052 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
21057 cf_result=`echo "have_type_wint_t" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ…
21082 echo "$as_me:21082: checking for data $cf_data declaration in ${cf_cv_ncurses_header:-curses.h}" >&5
21083 echo $ECHO_N "checking for data $cf_data declaration in ${cf_cv_ncurses_header:-curses.h}... $ECHO_…
21093 #include <${cf_cv_ncurses_header:-curses.h}>
21097 #include <ncurses/term.h>
21118 rm -f "conftest.$ac_objext"
21124 { ac_try='test -s "conftest.$ac_objext"'
21137 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
21143 cf_result=`echo "have_curses_data_$cf_data" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQ…
21155 # cross-compiling
21164 #include <${cf_cv_ncurses_header:-curses.h}>
21168 #include <ncurses/term.h>
21188 ${cf_cv_main_return:-return}(foo == 0);
21195 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21201 { ac_try='test -s "conftest$ac_exeext"'
21213 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21224 #include <${cf_cv_ncurses_header:-curses.h}>
21228 #include <ncurses/term.h>
21245 ${cf_cv_main_return:-return}(foo == 0);
21248 rm -f "conftest$ac_exeext"
21267 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
21273 cf_result=`echo "decl_curses_data_$cf_data" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQ…
21284 if test -n "$with_screen" && test "x$with_screen" = "xpdcurses"
21289 # Check whether --with-x or --without-x was given.
21308 rm -fr conftest.dir
21316 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
21318 eval "`${MAKE-make} acfindx 2>/dev/null | grep -v make`"
21321 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
21322 test -f "$ac_im_libdir/libX11.$ac_extension"; then
21331 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
21335 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
21339 rm -fr conftest.dir
21397 $EGREP -v '^ *\+' conftest.er1 >conftest.err
21398 rm -f conftest.er1
21402 if test -s conftest.err; then
21410 if test -z "$ac_cpp_err"; then
21417 if test -r "$ac_dir/X11/Intrinsic.h"; then
21423 rm -f conftest.err "conftest.$ac_ext"
21431 LIBS="-lXt $LIBS"
21444 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21450 { ac_try='test -s "conftest$ac_exeext"'
21467 if test -r "$ac_dir/libXt.$ac_extension"; then
21474 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21518 if test -n "$x_includes"; then
21519 X_CFLAGS="$X_CFLAGS -I$x_includes"
21522 # It would also be nice to do this for all -L options, not just this one.
21523 if test -n "$x_libraries"; then
21524 X_LIBS="$X_LIBS -L$x_libraries"
21525 # For Solaris; some versions of Sun CC require a space after -R and
21527 case `(uname -sr) 2>/dev/null` in
21529 echo "$as_me:21529: checking whether -R must be followed by a space" >&5
21530 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
21531 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
21544 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21550 { ac_try='test -s "conftest$ac_exeext"'
21562 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21566 X_LIBS="$X_LIBS -R$x_libraries"
21568 LIBS="$ac_xsave_LIBS -R $x_libraries"
21581 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21587 { ac_try='test -s "conftest$ac_exeext"'
21599 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21603 X_LIBS="$X_LIBS -R $x_libraries"
21613 # Check for system-dependent libraries X programs must link with.
21614 # Do this before checking for the system-independent R6 libraries
21615 # (-lICE), since we may need -lsocket or whatever for X linking.
21618 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
21623 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
21643 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21649 { ac_try='test -s "conftest$ac_exeext"'
21659 echo "$as_me:21659: checking for dnet_ntoa in -ldnet" >&5
21660 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
21665 LIBS="-ldnet $LIBS"
21685 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21691 { ac_try='test -s "conftest$ac_exeext"'
21703 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21709 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
21713 echo "$as_me:21713: checking for dnet_ntoa in -ldnet_stub" >&5
21714 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
21719 LIBS="-ldnet_stub $LIBS"
21739 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21745 { ac_try='test -s "conftest$ac_exeext"'
21757 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21763 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
21768 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21771 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
21773 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
21774 # needs -lnsl.
21778 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
21788 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
21815 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21821 { ac_try='test -s "conftest$ac_exeext"'
21833 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21839 echo "$as_me:21839: checking for gethostbyname in -lnsl" >&5
21840 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
21845 LIBS="-lnsl $LIBS"
21865 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21871 { ac_try='test -s "conftest$ac_exeext"'
21883 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21889 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
21893 echo "$as_me:21893: checking for gethostbyname in -lbsd" >&5
21894 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
21899 LIBS="-lbsd $LIBS"
21919 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21925 { ac_try='test -s "conftest$ac_exeext"'
21937 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21943 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
21949 # lieder@skyler.mavd.honeywell.com says without -lsocket,
21951 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
21953 # variants that don't use the nameserver (or something). -lsocket
21954 # must be given before -lnsl if both are needed. We assume that
21955 # if connect needs -lnsl, so does gethostbyname.
21965 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
21992 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21998 { ac_try='test -s "conftest$ac_exeext"'
22010 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22016 echo "$as_me:22016: checking for connect in -lsocket" >&5
22017 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
22022 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
22042 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22048 { ac_try='test -s "conftest$ac_exeext"'
22060 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22066 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
22071 # Guillermo Gomez says -lposix is necessary on A/UX.
22081 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
22108 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22114 { ac_try='test -s "conftest$ac_exeext"'
22126 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22132 echo "$as_me:22132: checking for remove in -lposix" >&5
22133 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
22138 LIBS="-lposix $LIBS"
22158 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22164 { ac_try='test -s "conftest$ac_exeext"'
22176 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22182 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
22187 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
22197 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
22224 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22230 { ac_try='test -s "conftest$ac_exeext"'
22242 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22248 echo "$as_me:22248: checking for shmat in -lipc" >&5
22249 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
22254 LIBS="-lipc $LIBS"
22274 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22280 { ac_try='test -s "conftest$ac_exeext"'
22292 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22298 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
22306 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
22308 # check for ICE first), but we must link in the order -lSM -lICE or
22310 # These have to be linked with before -lX11, unlike the other
22313 echo "$as_me:22313: checking for IceConnectionNumber in -lICE" >&5
22314 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
22319 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
22339 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22345 { ac_try='test -s "conftest$ac_exeext"'
22357 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22363 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
22378 (*-Werror=*)
22383 (x-Werror=format*)
22385 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
22389 (x-Werror=*)
22391 test -n "$EXTRA_CFLAGS" && EXTRA_CFLAGS="$EXTRA_CFLAGS "
22397 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
22405 test -n "$verbose" && echo " repairing CFLAGS: $CFLAGS" 1>&6
22407 echo "${as_me:-configure}:22407: testing repairing CFLAGS: $CFLAGS ..." 1>&5
22410 test -n "$verbose" && echo " ... fixed $CFLAGS" 1>&6
22412 echo "${as_me:-configure}:22412: testing ... fixed $CFLAGS ..." 1>&5
22414 test -n "$verbose" && echo " ... extra $EXTRA_CFLAGS" 1>&6
22416 echo "${as_me:-configure}:22416: testing ... extra $EXTRA_CFLAGS ..." 1>&5
22426 (*-Werror=*)
22431 (x-Werror=format*)
22433 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
22437 (x-Werror=*)
22439 test -n "$EXTRA_CFLAGS" && EXTRA_CFLAGS="$EXTRA_CFLAGS "
22445 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
22453 test -n "$verbose" && echo " repairing CPPFLAGS: $CPPFLAGS" 1>&6
22455 echo "${as_me:-configure}:22455: testing repairing CPPFLAGS: $CPPFLAGS ..." 1>&5
22458 test -n "$verbose" && echo " ... fixed $CPPFLAGS" 1>&6
22460 echo "${as_me:-configure}:22460: testing ... fixed $CPPFLAGS ..." 1>&5
22462 test -n "$verbose" && echo " ... extra $EXTRA_CFLAGS" 1>&6
22464 echo "${as_me:-configure}:22464: testing ... extra $EXTRA_CFLAGS ..." 1>&5
22474 (*-Werror=*)
22479 (x-Werror=format*)
22481 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
22485 (x-Werror=*)
22487 test -n "$EXTRA_CFLAGS" && EXTRA_CFLAGS="$EXTRA_CFLAGS "
22493 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
22501 test -n "$verbose" && echo " repairing LDFLAGS: $LDFLAGS" 1>&6
22503 echo "${as_me:-configure}:22503: testing repairing LDFLAGS: $LDFLAGS ..." 1>&5
22506 test -n "$verbose" && echo " ... fixed $LDFLAGS" 1>&6
22508 echo "${as_me:-configure}:22508: testing ... fixed $LDFLAGS ..." 1>&5
22510 test -n "$verbose" && echo " ... extra $EXTRA_CFLAGS" 1>&6
22512 echo "${as_me:-configure}:22512: testing ... extra $EXTRA_CFLAGS ..." 1>&5
22522 # Check whether --enable-warnings or --disable-warnings was given.
22562 #line 22562 "${as_me:-configure}"
22587 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ…
22617 test -n "$verbose" && echo "$as_me:22617: result: ... $cf_attribute" >&5
22671 ${FGREP-fgrep} define conftest.i >>confdefs.h
22673 rm -rf ./conftest*
22685 x-[IUD]*)
22709 rm -f "conftest.$ac_objext"
22715 { ac_try='test -s "conftest.$ac_objext"'
22722 echo "$as_me:22722: checking for X11/Xt const-feature" >&5
22723 echo $ECHO_N "checking for X11/Xt const-feature... $ECHO_C" >&6
22746 rm -f "conftest.$ac_objext"
22752 { ac_try='test -s "conftest.$ac_objext"'
22768 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
22781 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
22782 CPPFLAGS="${CPPFLAGS}-DXTSTRINGDEFINES"
22787 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
22788 CPPFLAGS="${CPPFLAGS}-D_CONST_X_STRING"
22797 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
22800 #line 22800 "${as_me:-configure}"
22801 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
22805 # The "-wdXXX" options suppress warnings:
22807 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential…
22808 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
22819 EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
22831 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
22837 test -n "$verbose" && echo "$as_me:22837: result: ... -$cf_opt" >&5
22838 echo "${ECHO_T}... -$cf_opt" >&6
22839 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
22849 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
22850 cf_gcc_warnings="Wignored-qualifiers Wlogical-op Wvarargs"
22853 Wbad-function-cast \
22854 Wcast-align \
22855 Wcast-qual \
22856 Wdeclaration-after-statement \
22859 Wmissing-declarations \
22860 Wmissing-prototypes \
22861 Wnested-externs \
22862 Wpointer-arith \
22864 Wstrict-prototypes \
22865 Wundef Wno-inline $cf_gcc_warnings $cf_warn_CONST Wno-unknown-pragmas
22867 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
22873 test -n "$verbose" && echo "$as_me:22873: result: ... -$cf_opt" >&5
22874 echo "${ECHO_T}... -$cf_opt" >&6
22879 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
22881 echo "${as_me:-configure}:22881: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
22886 (Wpointer-arith)
22889 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
22891 echo "${as_me:-configure}:22891: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
22897 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
22902 rm -rf ./conftest*
22911 # Check whether --with-dmalloc or --without-dmalloc was given.
22917 : "${with_cflags:=-g}"
22930 echo "$as_me:22930: result: ${with_dmalloc:-no}" >&5
22931 echo "${ECHO_T}${with_dmalloc:-no}" >&6
22934 (.*-g*)
22936 (.*-g*)
22945 for cf_add_cflags in -g
22950 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
22952 (-D*)
22953 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
22956 && test -z "${cf_tst_cflags}" \
22961 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
22967 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
22979 (-D*)
22980 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
22983 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
22984 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
22989 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
22997 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
23005 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
23008 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
23011 && test -z "${cf_tst_cflags}" \
23017 if test -n "$cf_new_cflags" ; then
23019 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
23024 if test -n "$cf_new_cppflags" ; then
23026 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
23031 if test -n "$cf_new_extra_cppflags" ; then
23033 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
23057 $EGREP -v '^ *\+' conftest.er1 >conftest.err
23058 rm -f conftest.er1
23062 if test -s conftest.err; then
23070 if test -z "$ac_cpp_err"; then
23077 rm -f conftest.err "conftest.$ac_ext"
23083 echo "$as_me:23083: checking for dmalloc_debug in -ldmalloc" >&5
23084 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
23089 LIBS="-ldmalloc $LIBS"
23109 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23115 { ac_try='test -s "conftest$ac_exeext"'
23127 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23137 LIBS="-ldmalloc $LIBS"
23148 # Check whether --with-dbmalloc or --without-dbmalloc was given.
23154 : "${with_cflags:=-g}"
23167 echo "$as_me:23167: result: ${with_dbmalloc:-no}" >&5
23168 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
23171 (.*-g*)
23173 (.*-g*)
23182 for cf_add_cflags in -g
23187 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
23189 (-D*)
23190 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
23193 && test -z "${cf_tst_cflags}" \
23198 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
23204 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
23216 (-D*)
23217 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
23220 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
23221 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
23226 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
23234 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
23242 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
23245 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
23248 && test -z "${cf_tst_cflags}" \
23254 if test -n "$cf_new_cflags" ; then
23256 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
23261 if test -n "$cf_new_cppflags" ; then
23263 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
23268 if test -n "$cf_new_extra_cppflags" ; then
23270 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
23294 $EGREP -v '^ *\+' conftest.er1 >conftest.err
23295 rm -f conftest.er1
23299 if test -s conftest.err; then
23307 if test -z "$ac_cpp_err"; then
23314 rm -f conftest.err "conftest.$ac_ext"
23320 echo "$as_me:23320: checking for debug_malloc in -ldbmalloc" >&5
23321 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
23326 LIBS="-ldbmalloc $LIBS"
23346 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23352 { ac_try='test -s "conftest$ac_exeext"'
23364 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23374 LIBS="-ldbmalloc $LIBS"
23385 # Check whether --with-valgrind or --without-valgrind was given.
23391 : "${with_cflags:=-g}"
23404 echo "$as_me:23404: result: ${with_valgrind:-no}" >&5
23405 echo "${ECHO_T}${with_valgrind:-no}" >&6
23408 (.*-g*)
23410 (.*-g*)
23419 for cf_add_cflags in -g
23424 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
23426 (-D*)
23427 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
23430 && test -z "${cf_tst_cflags}" \
23435 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
23441 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
23453 (-D*)
23454 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
23457 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
23458 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
23463 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
23471 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
23479 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
23482 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
23485 && test -z "${cf_tst_cflags}" \
23491 if test -n "$cf_new_cflags" ; then
23493 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
23498 if test -n "$cf_new_cppflags" ; then
23500 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
23505 if test -n "$cf_new_extra_cppflags" ; then
23507 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
23517 echo "$as_me:23517: checking if you want to perform memory-leak testing" >&5
23518 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
23520 # Check whether --enable-leaks or --disable-leaks was given.
23551 LD_RPATH_OPT="-Wl,-rpath,"
23553 LD_RPATH_OPT="-rpath "
23556 (linux*|gnu*|k*bsd*-gnu|freebsd*)
23557 LD_RPATH_OPT="-Wl,-rpath,"
23559 (openbsd[2-9].*|mirbsd*)
23560 LD_RPATH_OPT="-Wl,-rpath,"
23563 LD_RPATH_OPT="-rpath "
23566 LD_RPATH_OPT="-Wl,-rpath,"
23569 LD_RPATH_OPT="-rpath "
23572 LD_RPATH_OPT="-R"
23581 (x-R*)
23598 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
23614 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23620 { ac_try='test -s "conftest$ac_exeext"'
23632 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23641 echo "$as_me:23641: checking if rpath-hack should be disabled" >&5
23642 echo $ECHO_N "checking if rpath-hack should be disabled... $ECHO_C" >&6
23644 # Check whether --enable-rpath-hack or --disable-rpath-hack was given.
23666 if test -n "$LD_RPATH_OPT" ; then
23679 if test -n "$cf_ldd_prog"; then
23686 test -z "$ac_dir" && ac_dir=.
23696 if test -n "$cf_ldd_prog"; then
23704 test -n "$cf_ldd_prog" && break
23706 test -n "$cf_ldd_prog" || cf_ldd_prog="no"
23725 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23731 { ac_try='test -s "conftest$ac_exeext"'
23737 …cf_rpath_oops=`"$cf_ldd_prog" "conftest$ac_exeext" | ${FGREP-fgrep} ' not found' | sed -e 's% =>.*…
23738 …cf_rpath_list=`"$cf_ldd_prog" "conftest$ac_exeext" | ${FGREP-fgrep} / | sed -e 's%^.*[ ]/%/%' -e …
23743 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23745 # If we passed the link-test, but get a "not found" on a given library,
23750 if test -n "$cf_rpath_oops"
23759 if test -f "$cf_rpath_dir/lib/$cf_rpath_src"
23761 test -n "$verbose" && echo " ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src" 1>&6
23763 echo "${as_me:-configure}:23763: testing ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src…
23765 LDFLAGS="$LDFLAGS -L$cf_rpath_dir/lib"
23773 test -n "$verbose" && echo " ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
23775 echo "${as_me:-configure}:23775: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
23777 test -n "$verbose" && echo " ...checking LDFLAGS $LDFLAGS" 1>&6
23779 echo "${as_me:-configure}:23779: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5
23785 (-L*)
23789 if test -n "$cf_rpath_list"
23793 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
23804 if test "$LD_RPATH_OPT" = "-R " ; then
23805 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
23807 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
23811 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
23814 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
23816 echo "${as_me:-configure}:23816: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
23827 test -n "$verbose" && echo " ...checked LDFLAGS $LDFLAGS" 1>&6
23829 echo "${as_me:-configure}:23829: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5
23831 test -n "$verbose" && echo " ...checking LIBS $LIBS" 1>&6
23833 echo "${as_me:-configure}:23833: testing ...checking LIBS $LIBS ..." 1>&5
23839 (-L*)
23843 if test -n "$cf_rpath_list"
23847 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
23858 if test "$LD_RPATH_OPT" = "-R " ; then
23859 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
23861 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
23865 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
23868 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
23870 echo "${as_me:-configure}:23870: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
23881 test -n "$verbose" && echo " ...checked LIBS $LIBS" 1>&6
23883 echo "${as_me:-configure}:23883: testing ...checked LIBS $LIBS ..." 1>&5
23885 test -n "$verbose" && echo " ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
23887 echo "${as_me:-configure}:23887: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
23904 # scripts and configure runs, see configure's option --config-cache.
23909 # the --recheck option to rerun configure.
23926 # `set' does not quote correctly, so add quotes (double-quote
23928 sed -n \
23934 sed -n \
23946 if cmp -s $cache_file confcache; then :; else
23947 if test -w $cache_file; then
23954 rm -f confcache
23975 DEFS=-DHAVE_CONFIG_H
23989 me=\`echo "\$0" | sed -e 's,.*\\/,,'\`
23992 SHELL=\${CONFIG_SHELL-$SHELL}
24001 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24004 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24005 set -o posix
24017 rm -f conf$$ conf$$.exe conf$$.file
24019 if ln -s conf$$.file conf$$ 2>/dev/null; then
24022 if test -f conf$$.exe; then
24024 as_ln_s='cp -p'
24026 as_ln_s='ln -s'
24031 as_ln_s='cp -p'
24033 rm -f conf$$ conf$$.exe conf$$.file
24035 as_executable_p="test -f"
24068 if test -n "$ac_config_files"; then
24072 if test -n "$ac_config_headers"; then
24076 if test -n "$ac_config_links"; then
24080 if test -n "$ac_config_commands"; then
24092 -h, --help print this help, then exit
24093 -V, --version print version number, then exit
24094 -d, --debug don't remove temporary files
24095 --recheck update $as_me by reconfiguring in the same conditions
24096 --file=FILE[:TEMPLATE]
24098 --header=FILE[:TEMPLATE]
24110 Report bugs to <dickey@invisible-island.net>."
24119 Copyright 2003-2022,2023 Thomas E. Dickey
24135 --*=*)
24142 -*);;
24152 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24153 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
24154 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
24157 --version | --vers* | -V )
24159 --he | --h)
24160 # Conflict between --help and --header
24162 Try \`$0 --help' for more information." >&5
24164 Try \`$0 --help' for more information." >&2;}
24166 --help | --hel | -h )
24168 --debug | --d* | -d )
24170 --file | --fil | --fi | --f )
24174 --header | --heade | --head | --hea )
24180 -*) { { echo "$as_me:24180: error: unrecognized option: $1
24181 Try \`$0 --help' for more information." >&5
24183 Try \`$0 --help' for more information." >&2;}
24195 ## ----------------------- ##
24197 ## ----------------------- ##
24205 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24212 # INIT-COMMANDS section.
24249 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24256 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
24257 test -n "$tmp" && test -d "$tmp"
24260 tmp=$TMPDIR/cs$$-$RANDOM
24278 if test -n "\$CONFIG_FILES"; then
24411 # Split the substitutions into bite-sized pieces for seds with
24412 # small command number limits, like on Digital OSF/1 and HP-UX.
24420 if test "$ac_beg" -gt 1; then
24425 if test ! -s "$tmp"/subs.frag; then
24433 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat "$tmp"/subs.frag) >"$tmp"/subs-$ac_sed_frag.sed
24439 if test -s "$tmp"/subs.next; then
24441 if test ! -s "$tmp"/subs.edit; then
24443 if test ! -s "$tmp"/subs.edit; then
24444 if test "$ac_beg" -gt 1; then
24445 ac_end=`expr "$ac_end" - 1`
24452 if test -z "$ac_sed_cmds"; then
24453 ac_sed_cmds="sed -f \"$tmp\"/subs-$ac_sed_frag.sed"
24455 ac_sed_cmds="$ac_sed_cmds | sed -f \"$tmp\"/subs-$ac_sed_frag.sed"
24462 if test -z "$ac_sed_cmds"; then
24465 fi # test -n "$CONFIG_FILES"
24472 - | *:- | *:-:* ) # input from stdin
24505 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
24519 if test -z "$ac_dots"; then
24537 if test x"$ac_file" != x-; then
24540 rm -f "$ac_file"
24553 -) echo "$tmp"/stdin ;;
24555 # Absolute (can't be DOS-style, as IFS=:)
24556 test -f "$f" || { { echo "$as_me:24556: error: cannot find input file: $f" >&5
24561 if test -f "$f"; then
24564 elif test -f "$srcdir/$f"; then
24578 if test x"$ac_file" != x-; then
24582 if test -n "$ac_seen"; then
24584 if test -z "$ac_used"; then
24593 if test -n "$ac_seen"; then
24604 …ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${p…
24614 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24620 rm -f "$tmp"/stdin
24622 test -n "${FGREP}" || FGREP="grep -F"
24623 test -n "${EGREP}" || EGREP="grep -E"
24625 test -n "\${FGREP}" || FGREP="$FGREP"
24626 test -n "\${EGREP}" || EGREP="$EGREP"
24629 if test x"$ac_file" != x-; then
24634 ac_seen=`$FGREP -n '${'$ac_name'[:=].*}' "$ac_file"`
24635 if test -n "$ac_seen"; then
24637 if test -z "$ac_init"; then
24638 ac_seen=`echo "$ac_seen" |sed -e 's,^,'"$ac_file"':,'`
24646 $EGREP -n '@[a-z_][a-z_0-9]+@' "$ac_file" >"$tmp"/out
24647 $EGREP -n '@[A-Z_][A-Z_0-9]+@' "$ac_file" >>"$tmp"/out
24648 if test -s "$tmp"/out; then
24649 ac_seen=`sed -e 's,^,'"$ac_file"':,' < "$tmp"/out`
24658 rm -f "$tmp"/out
24690 - | *:- | *:-:* ) # input from stdin
24699 test x"$ac_file" != x- && { echo "$as_me:24699: creating $ac_file" >&5
24707 -) echo "$tmp"/stdin ;;
24709 # Absolute (can't be DOS-style, as IFS=:)
24710 test -f "$f" || { { echo "$as_me:24710: error: cannot find input file: $f" >&5
24715 if test -f "$f"; then
24718 elif test -f "$srcdir/$f"; then
24742 rm -f conftest.tail
24743 echo ' rm -f conftest.frag' >> "$CONFIG_STATUS"
24746 # Write chunks of a limited-size here document to conftest.frag.
24748 sed "${ac_max_here_lines}q" conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> "$CONFIG_STATUS"
24751 rm -f conftest.vals
24754 rm -f conftest.vals
24762 sed -f conftest.edit "$tmp"/in > "$tmp"/out
24763 rm -f "$tmp"/in
24765 rm -f conftest.edit conftest.frag
24772 if test x"$ac_file" = x-; then
24778 rm -f "$tmp"/in
24779 if test x"$ac_file" != x-; then
24780 if cmp -s "$ac_file" "$tmp/config.h" 2>/dev/null; then
24807 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
24813 rm -f "$ac_file"
24818 rm -f "$tmp"/config.h
24835 if test ! -d "$srcdir/$cf_dir" ; then
24837 elif test -f "$srcdir/$cf_dir/programs" ; then
24838 …$AWK -f $srcdir/mk-test.awk INSTALL=yes ECHO_LINK="$ECHO_LD" "$srcdir/$cf_dir/programs" >>$cf_dir/…
24845 # work consistently for different make-programs (the '\$(MODEL)/' confuses
24849 LIST=`sed -e 's/[ ].*//' -e '/^[#@]/d' $srcdir/modules`
24858 $ECHO_CC\$(CC) -c \$(CFLAGS_DEFAULT) -DMODULE_NAME="$N" \$(srcdir)/$N.c
24862 if test -f ../config.guess && test -f ../config.sub
24868 rm -f config.guess config.sub