3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --with-curses=DIR Where ncurses is installed "
17 --enable-debug Enable debugging support "
19 # Initialize some variables set by options.
20 # The variables have the same names as the options, with
21 # dashes changed to underlines.
23 cache_file=./config.cache
32 program_transform_name=s,x,x,
40 bindir='${exec_prefix}/bin'
41 sbindir='${exec_prefix}/sbin'
42 libexecdir='${exec_prefix}/libexec'
43 datadir='${prefix}/share'
44 sysconfdir='${prefix}/etc'
45 sharedstatedir='${prefix}/com'
46 localstatedir='${prefix}/var'
47 libdir='${exec_prefix}/lib'
48 includedir='${prefix}/include'
49 oldincludedir='/usr/include'
50 infodir='${prefix}/info'
51 mandir='${prefix}/man'
53 # Initialize some other variables.
56 SHELL=${CONFIG_SHELL-/bin/sh}
57 # Maximum number of lines to put in a shell here document.
64 # If the previous option needs an argument, assign it.
65 if test -n "$ac_prev"; then
66 eval "$ac_prev=\$ac_option"
72 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
76 # Accept the important Cygnus configure options, so we can diagnose typos.
80 -bindir | --bindir | --bindi | --bind | --bin | --bi)
82 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
83 bindir="$ac_optarg" ;;
85 -build | --build | --buil | --bui | --bu)
87 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
90 -cache-file | --cache-file | --cache-fil | --cache-fi \
91 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
93 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
94 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
95 cache_file="$ac_optarg" ;;
97 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
99 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
101 datadir="$ac_optarg" ;;
103 -disable-* | --disable-*)
104 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
105 # Reject names that are not valid shell variable names.
106 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
107 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
109 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
110 eval "enable_${ac_feature}=no" ;;
112 -enable-* | --enable-*)
113 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
114 # Reject names that are not valid shell variable names.
115 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
116 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
118 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
123 eval "enable_${ac_feature}='$ac_optarg'" ;;
125 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
126 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
127 | --exec | --exe | --ex)
128 ac_prev=exec_prefix ;;
129 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
130 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
131 | --exec=* | --exe=* | --ex=*)
132 exec_prefix="$ac_optarg" ;;
134 -gas | --gas | --ga | --g)
135 # Obsolete; use --with-gas.
138 -help | --help | --hel | --he)
139 # Omit some internal or obsolete options to make the list less imposing.
140 # This message is too long to be a string in the A/UX 3.1 sh.
142 Usage: configure [options] [host]
143 Options: [defaults in brackets after descriptions]
145 --cache-file=FILE cache test results in FILE
146 --help print this message
147 --no-create do not create output files
148 --quiet, --silent do not print \`checking...' messages
149 --version print the version of autoconf that created configure
150 Directory and file names:
151 --prefix=PREFIX install architecture-independent files in PREFIX
153 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
155 --bindir=DIR user executables in DIR [EPREFIX/bin]
156 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
157 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
158 --datadir=DIR read-only architecture-independent data in DIR
160 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
161 --sharedstatedir=DIR modifiable architecture-independent data in DIR
163 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
164 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
165 --includedir=DIR C header files in DIR [PREFIX/include]
166 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
167 --infodir=DIR info documentation in DIR [PREFIX/info]
168 --mandir=DIR man documentation in DIR [PREFIX/man]
169 --srcdir=DIR find the sources in DIR [configure dir or ..]
170 --program-prefix=PREFIX prepend PREFIX to installed program names
171 --program-suffix=SUFFIX append SUFFIX to installed program names
172 --program-transform-name=PROGRAM
173 run sed PROGRAM on installed program names
177 --build=BUILD configure for building on BUILD [BUILD=HOST]
178 --host=HOST configure for HOST [guessed]
179 --target=TARGET configure for TARGET [TARGET=HOST]
180 Features and packages:
181 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
182 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
183 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
184 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
185 --x-includes=DIR X include files are in DIR
186 --x-libraries=DIR X library files are in DIR
188 if test -n "$ac_help"; then
189 echo "--enable and --with options recognized:$ac_help"
193 -host | --host | --hos | --ho)
195 -host=* | --host=* | --hos=* | --ho=*)
198 -includedir | --includedir | --includedi | --included | --include \
199 | --includ | --inclu | --incl | --inc)
200 ac_prev=includedir ;;
201 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
202 | --includ=* | --inclu=* | --incl=* | --inc=*)
203 includedir="$ac_optarg" ;;
205 -infodir | --infodir | --infodi | --infod | --info | --inf)
207 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
208 infodir="$ac_optarg" ;;
210 -libdir | --libdir | --libdi | --libd)
212 -libdir=* | --libdir=* | --libdi=* | --libd=*)
213 libdir="$ac_optarg" ;;
215 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
216 | --libexe | --libex | --libe)
217 ac_prev=libexecdir ;;
218 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
219 | --libexe=* | --libex=* | --libe=*)
220 libexecdir="$ac_optarg" ;;
222 -localstatedir | --localstatedir | --localstatedi | --localstated \
223 | --localstate | --localstat | --localsta | --localst \
224 | --locals | --local | --loca | --loc | --lo)
225 ac_prev=localstatedir ;;
226 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
227 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
228 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
229 localstatedir="$ac_optarg" ;;
231 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
233 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
234 mandir="$ac_optarg" ;;
237 # Obsolete; use --without-fp.
240 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
244 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
245 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
248 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
249 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
250 | --oldin | --oldi | --old | --ol | --o)
251 ac_prev=oldincludedir ;;
252 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
253 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
254 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
255 oldincludedir="$ac_optarg" ;;
257 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
259 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
260 prefix="$ac_optarg" ;;
262 -program-prefix | --program-prefix | --program-prefi | --program-pref \
263 | --program-pre | --program-pr | --program-p)
264 ac_prev=program_prefix ;;
265 -program-prefix=* | --program-prefix=* | --program-prefi=* \
266 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
267 program_prefix="$ac_optarg" ;;
269 -program-suffix | --program-suffix | --program-suffi | --program-suff \
270 | --program-suf | --program-su | --program-s)
271 ac_prev=program_suffix ;;
272 -program-suffix=* | --program-suffix=* | --program-suffi=* \
273 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
274 program_suffix="$ac_optarg" ;;
276 -program-transform-name | --program-transform-name \
277 | --program-transform-nam | --program-transform-na \
278 | --program-transform-n | --program-transform- \
279 | --program-transform | --program-transfor \
280 | --program-transfo | --program-transf \
281 | --program-trans | --program-tran \
282 | --progr-tra | --program-tr | --program-t)
283 ac_prev=program_transform_name ;;
284 -program-transform-name=* | --program-transform-name=* \
285 | --program-transform-nam=* | --program-transform-na=* \
286 | --program-transform-n=* | --program-transform-=* \
287 | --program-transform=* | --program-transfor=* \
288 | --program-transfo=* | --program-transf=* \
289 | --program-trans=* | --program-tran=* \
290 | --progr-tra=* | --program-tr=* | --program-t=*)
291 program_transform_name="$ac_optarg" ;;
293 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
294 | -silent | --silent | --silen | --sile | --sil)
297 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
299 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
301 sbindir="$ac_optarg" ;;
303 -sharedstatedir | --sharedstatedir | --sharedstatedi \
304 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
305 | --sharedst | --shareds | --shared | --share | --shar \
307 ac_prev=sharedstatedir ;;
308 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
309 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
310 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
312 sharedstatedir="$ac_optarg" ;;
314 -site | --site | --sit)
316 -site=* | --site=* | --sit=*)
319 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
321 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
322 srcdir="$ac_optarg" ;;
324 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
325 | --syscon | --sysco | --sysc | --sys | --sy)
326 ac_prev=sysconfdir ;;
327 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
328 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
329 sysconfdir="$ac_optarg" ;;
331 -target | --target | --targe | --targ | --tar | --ta | --t)
333 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
334 target="$ac_optarg" ;;
336 -v | -verbose | --verbose | --verbos | --verbo | --verb)
339 -version | --version | --versio | --versi | --vers)
340 echo "configure generated by autoconf version 2.13"
344 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
345 # Reject names that are not valid shell variable names.
346 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
347 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
349 ac_package=`echo $ac_package| sed 's/-/_/g'`
354 eval "with_${ac_package}='$ac_optarg'" ;;
356 -without-* | --without-*)
357 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
358 # Reject names that are not valid shell variable names.
359 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
360 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
362 ac_package=`echo $ac_package| sed 's/-/_/g'`
363 eval "with_${ac_package}=no" ;;
366 # Obsolete; use --with-x.
369 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
370 | --x-incl | --x-inc | --x-in | --x-i)
371 ac_prev=x_includes ;;
372 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
373 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
374 x_includes="$ac_optarg" ;;
376 -x-libraries | --x-libraries | --x-librarie | --x-librari \
377 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
378 ac_prev=x_libraries ;;
379 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
380 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
381 x_libraries="$ac_optarg" ;;
383 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
387 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
388 echo "configure: warning: $ac_option: invalid host type" 1>&2
390 if test "x$nonopt" != xNONE; then
391 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
399 if test -n "$ac_prev"; then
400 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
403 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
405 # File descriptor usage:
408 # 2 errors and warnings
409 # 3 some systems may open it to /dev/tty
410 # 4 used on the Kubota Titan
411 # 6 checking for... messages and results
412 # 5 compiler messages saved in config.log
413 if test "$silent" = yes; then
421 This file contains any messages produced by compilers while
422 running configure, to aid debugging if configure makes a mistake.
425 # Strip out --no-create and --no-recursion so they do not pile up.
426 # Also quote any args containing shell metacharacters.
431 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
432 | --no-cr | --no-c) ;;
433 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
434 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
435 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
436 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
437 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
442 # Only set these to C if already set. These must not be set unconditionally
443 # because not all systems understand e.g. LANG=C (notably SCO).
444 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
445 # Non-C LC_CTYPE values break the ctype check.
446 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
447 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
448 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
449 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
451 # confdefs.h avoids OS command line length limits that DEFS can exceed.
452 rm -rf conftest* confdefs.h
453 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
456 # A filename unique to this package, relative to the directory that
457 # configure is in, which we can look for to find out if srcdir is correct.
458 ac_unique_file=abook.c
460 # Find the source files, if location was not specified.
461 if test -z "$srcdir"; then
462 ac_srcdir_defaulted=yes
463 # Try the directory containing this script, then its parent.
465 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
466 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
468 if test ! -r $srcdir/$ac_unique_file; then
472 ac_srcdir_defaulted=no
474 if test ! -r $srcdir/$ac_unique_file; then
475 if test "$ac_srcdir_defaulted" = yes; then
476 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
478 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
481 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
483 # Prefer explicitly selected file to automatically selected ones.
484 if test -z "$CONFIG_SITE"; then
485 if test "x$prefix" != xNONE; then
486 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
488 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
491 for ac_site_file in $CONFIG_SITE; do
492 if test -r "$ac_site_file"; then
493 echo "loading site script $ac_site_file"
498 if test -r "$cache_file"; then
499 echo "loading cache $cache_file"
502 echo "creating cache $cache_file"
507 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
508 ac_cpp='$CPP $CPPFLAGS'
509 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
510 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
511 cross_compiling=$ac_cv_prog_cc_cross
515 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
516 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
517 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
524 ac_n= ac_c='\c' ac_t=
528 AM_INIT_AUTOMAKE(abook, 0.4.14)
529 AM_CONFIG_HEADER(config.h)
532 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
533 if test -f $ac_dir/install-sh; then
535 ac_install_sh="$ac_aux_dir/install-sh -c"
537 elif test -f $ac_dir/install.sh; then
539 ac_install_sh="$ac_aux_dir/install.sh -c"
543 if test -z "$ac_aux_dir"; then
544 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
546 ac_config_guess=$ac_aux_dir/config.guess
547 ac_config_sub=$ac_aux_dir/config.sub
548 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
551 # Make sure we can run config.sub.
552 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
553 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
556 echo $ac_n "checking host system type""... $ac_c" 1>&6
557 echo "configure:558: checking host system type" >&5
560 case "$host_alias" in
564 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
565 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
567 *) host_alias=$nonopt ;;
571 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
572 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
573 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
574 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
575 echo "$ac_t""$host" 1>&6
585 # Extract the first word of "gcc", so it can be a program name with args.
586 set dummy gcc; ac_word=$2
587 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
588 echo "configure:589: checking for $ac_word" >&5
589 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
590 echo $ac_n "(cached) $ac_c" 1>&6
592 if test -n "$CC"; then
593 ac_cv_prog_CC="$CC" # Let the user override the test.
595 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
597 for ac_dir in $ac_dummy; do
598 test -z "$ac_dir" && ac_dir=.
599 if test -f $ac_dir/$ac_word; then
608 if test -n "$CC"; then
609 echo "$ac_t""$CC" 1>&6
611 echo "$ac_t""no" 1>&6
614 if test -z "$CC"; then
615 # Extract the first word of "cc", so it can be a program name with args.
616 set dummy cc; ac_word=$2
617 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
618 echo "configure:619: checking for $ac_word" >&5
619 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
620 echo $ac_n "(cached) $ac_c" 1>&6
622 if test -n "$CC"; then
623 ac_cv_prog_CC="$CC" # Let the user override the test.
625 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
628 for ac_dir in $ac_dummy; do
629 test -z "$ac_dir" && ac_dir=.
630 if test -f $ac_dir/$ac_word; then
631 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
640 if test $ac_prog_rejected = yes; then
641 # We found a bogon in the path, so make sure we never use it.
642 set dummy $ac_cv_prog_CC
644 if test $# -gt 0; then
645 # We chose a different compiler from the bogus one.
646 # However, it has the same basename, so the bogon will be chosen
647 # first if we set CC to just the basename; use the full file name.
649 set dummy "$ac_dir/$ac_word" "$@"
657 if test -n "$CC"; then
658 echo "$ac_t""$CC" 1>&6
660 echo "$ac_t""no" 1>&6
663 if test -z "$CC"; then
666 # Extract the first word of "cl", so it can be a program name with args.
667 set dummy cl; ac_word=$2
668 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
669 echo "configure:670: checking for $ac_word" >&5
670 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
671 echo $ac_n "(cached) $ac_c" 1>&6
673 if test -n "$CC"; then
674 ac_cv_prog_CC="$CC" # Let the user override the test.
676 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
678 for ac_dir in $ac_dummy; do
679 test -z "$ac_dir" && ac_dir=.
680 if test -f $ac_dir/$ac_word; then
689 if test -n "$CC"; then
690 echo "$ac_t""$CC" 1>&6
692 echo "$ac_t""no" 1>&6
697 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
700 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
701 echo "configure:702: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
704 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
705 ac_cpp='$CPP $CPPFLAGS'
706 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
707 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
708 cross_compiling=$ac_cv_prog_cc_cross
710 cat > conftest.$ac_ext << EOF
712 #line 713 "configure"
713 #include "confdefs.h"
717 if { (eval echo configure:718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
718 ac_cv_prog_cc_works=yes
719 # If we can't run a trivial program, we are probably using a cross compiler.
720 if (./conftest; exit) 2>/dev/null; then
721 ac_cv_prog_cc_cross=no
723 ac_cv_prog_cc_cross=yes
726 echo "configure: failed program was:" >&5
727 cat conftest.$ac_ext >&5
728 ac_cv_prog_cc_works=no
732 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
733 ac_cpp='$CPP $CPPFLAGS'
734 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
735 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
736 cross_compiling=$ac_cv_prog_cc_cross
738 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
739 if test $ac_cv_prog_cc_works = no; then
740 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
742 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
743 echo "configure:744: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
744 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
745 cross_compiling=$ac_cv_prog_cc_cross
747 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
748 echo "configure:749: checking whether we are using GNU C" >&5
749 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
750 echo $ac_n "(cached) $ac_c" 1>&6
752 cat > conftest.c <<EOF
757 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:758: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
764 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
766 if test $ac_cv_prog_gcc = yes; then
772 ac_test_CFLAGS="${CFLAGS+set}"
773 ac_save_CFLAGS="$CFLAGS"
775 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
776 echo "configure:777: checking whether ${CC-cc} accepts -g" >&5
777 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
778 echo $ac_n "(cached) $ac_c" 1>&6
780 echo 'void f(){}' > conftest.c
781 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
790 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
791 if test "$ac_test_CFLAGS" = set; then
792 CFLAGS="$ac_save_CFLAGS"
793 elif test $ac_cv_prog_cc_g = yes; then
794 if test "$GCC" = yes; then
800 if test "$GCC" = yes; then
807 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
808 echo "configure:809: checking for POSIXized ISC" >&5
809 if test -d /etc/conf/kconfig.d &&
810 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
812 echo "$ac_t""yes" 1>&6
813 ISC=yes # If later tests want to check for ISC.
814 cat >> confdefs.h <<\EOF
815 #define _POSIX_SOURCE 1
818 if test "$GCC" = yes; then
824 echo "$ac_t""no" 1>&6
829 if test "x$U" != "x"; then
830 { echo "configure: error: Compiler not ANSI compliant" 1>&2; exit 1; }
832 echo $ac_n "checking for inline""... $ac_c" 1>&6
833 echo "configure:834: checking for inline" >&5
834 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
835 echo $ac_n "(cached) $ac_c" 1>&6
838 for ac_kw in inline __inline__ __inline; do
839 cat > conftest.$ac_ext <<EOF
840 #line 841 "configure"
841 #include "confdefs.h"
847 if { (eval echo configure:848: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
849 ac_cv_c_inline=$ac_kw; break
851 echo "configure: failed program was:" >&5
852 cat conftest.$ac_ext >&5
859 echo "$ac_t""$ac_cv_c_inline" 1>&6
860 case "$ac_cv_c_inline" in
862 no) cat >> confdefs.h <<\EOF
866 *) cat >> confdefs.h <<EOF
867 #define inline $ac_cv_c_inline
872 # Find a good install program. We prefer a C program (faster),
873 # so one script is as good as another. But avoid the broken or
874 # incompatible versions:
875 # SysV /etc/install, /usr/sbin/install
876 # SunOS /usr/etc/install
879 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
880 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
881 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
882 # ./install, which can be erroneously created by make from ./install.sh.
883 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
884 echo "configure:885: checking for a BSD compatible install" >&5
885 if test -z "$INSTALL"; then
886 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
887 echo $ac_n "(cached) $ac_c" 1>&6
889 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
890 for ac_dir in $PATH; do
891 # Account for people who put trailing slashes in PATH elements.
893 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
895 # OSF1 and SCO ODT 3.0 have their own names for install.
896 # Don't use installbsd from OSF since it installs stuff as root
898 for ac_prog in ginstall scoinst install; do
899 if test -f $ac_dir/$ac_prog; then
900 if test $ac_prog = install &&
901 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
902 # AIX install. It has an incompatible calling convention.
905 ac_cv_path_install="$ac_dir/$ac_prog -c"
916 if test "${ac_cv_path_install+set}" = set; then
917 INSTALL="$ac_cv_path_install"
919 # As a last resort, use the slow shell script. We don't cache a
920 # path for INSTALL within a source directory, because that will
921 # break other packages using the cache if that directory is
922 # removed, or if the path is relative.
923 INSTALL="$ac_install_sh"
926 echo "$ac_t""$INSTALL" 1>&6
928 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
929 # It thinks the first close brace ends the variable substitution.
930 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
932 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
934 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
936 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
937 echo "configure:938: checking how to run the C preprocessor" >&5
938 # On Suns, sometimes $CPP names a directory.
939 if test -n "$CPP" && test -d "$CPP"; then
942 if test -z "$CPP"; then
943 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
944 echo $ac_n "(cached) $ac_c" 1>&6
946 # This must be in double quotes, not single quotes, because CPP may get
947 # substituted into the Makefile and "${CC-cc}" will confuse make.
949 # On the NeXT, cc -E runs the code through the compiler's parser,
950 # not just through cpp.
951 cat > conftest.$ac_ext <<EOF
952 #line 953 "configure"
953 #include "confdefs.h"
957 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
958 { (eval echo configure:959: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
959 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
960 if test -z "$ac_err"; then
964 echo "configure: failed program was:" >&5
965 cat conftest.$ac_ext >&5
967 CPP="${CC-cc} -E -traditional-cpp"
968 cat > conftest.$ac_ext <<EOF
969 #line 970 "configure"
970 #include "confdefs.h"
974 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
975 { (eval echo configure:976: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
976 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
977 if test -z "$ac_err"; then
981 echo "configure: failed program was:" >&5
982 cat conftest.$ac_ext >&5
984 CPP="${CC-cc} -nologo -E"
985 cat > conftest.$ac_ext <<EOF
986 #line 987 "configure"
987 #include "confdefs.h"
991 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
992 { (eval echo configure:993: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
993 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
994 if test -z "$ac_err"; then
998 echo "configure: failed program was:" >&5
999 cat conftest.$ac_ext >&5
1008 ac_cv_prog_CPP="$CPP"
1010 CPP="$ac_cv_prog_CPP"
1012 ac_cv_prog_CPP="$CPP"
1014 echo "$ac_t""$CPP" 1>&6
1016 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1017 echo "configure:1018: checking for ANSI C header files" >&5
1018 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1019 echo $ac_n "(cached) $ac_c" 1>&6
1021 cat > conftest.$ac_ext <<EOF
1022 #line 1023 "configure"
1023 #include "confdefs.h"
1029 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1030 { (eval echo configure:1031: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1031 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1032 if test -z "$ac_err"; then
1034 ac_cv_header_stdc=yes
1037 echo "configure: failed program was:" >&5
1038 cat conftest.$ac_ext >&5
1040 ac_cv_header_stdc=no
1044 if test $ac_cv_header_stdc = yes; then
1045 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1046 cat > conftest.$ac_ext <<EOF
1047 #line 1048 "configure"
1048 #include "confdefs.h"
1051 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1052 egrep "memchr" >/dev/null 2>&1; then
1056 ac_cv_header_stdc=no
1062 if test $ac_cv_header_stdc = yes; then
1063 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1064 cat > conftest.$ac_ext <<EOF
1065 #line 1066 "configure"
1066 #include "confdefs.h"
1069 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1070 egrep "free" >/dev/null 2>&1; then
1074 ac_cv_header_stdc=no
1080 if test $ac_cv_header_stdc = yes; then
1081 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1082 if test "$cross_compiling" = yes; then
1085 cat > conftest.$ac_ext <<EOF
1086 #line 1087 "configure"
1087 #include "confdefs.h"
1089 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1090 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1091 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1092 int main () { int i; for (i = 0; i < 256; i++)
1093 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1097 if { (eval echo configure:1098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1101 echo "configure: failed program was:" >&5
1102 cat conftest.$ac_ext >&5
1104 ac_cv_header_stdc=no
1112 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1113 if test $ac_cv_header_stdc = yes; then
1114 cat >> confdefs.h <<\EOF
1115 #define STDC_HEADERS 1
1120 for ac_hdr in unistd.h locale.h termios.h linux/termios.h sys/ioctl.h
1122 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1123 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1124 echo "configure:1125: checking for $ac_hdr" >&5
1125 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1126 echo $ac_n "(cached) $ac_c" 1>&6
1128 cat > conftest.$ac_ext <<EOF
1129 #line 1130 "configure"
1130 #include "confdefs.h"
1133 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1134 { (eval echo configure:1135: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1135 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1136 if test -z "$ac_err"; then
1138 eval "ac_cv_header_$ac_safe=yes"
1141 echo "configure: failed program was:" >&5
1142 cat conftest.$ac_ext >&5
1144 eval "ac_cv_header_$ac_safe=no"
1148 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1149 echo "$ac_t""yes" 1>&6
1150 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1151 cat >> confdefs.h <<EOF
1152 #define $ac_tr_hdr 1
1156 echo "$ac_t""no" 1>&6
1160 ac_safe=`echo "stdarg.h" | sed 'y%./+-%__p_%'`
1161 echo $ac_n "checking for stdarg.h""... $ac_c" 1>&6
1162 echo "configure:1163: checking for stdarg.h" >&5
1163 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1164 echo $ac_n "(cached) $ac_c" 1>&6
1166 cat > conftest.$ac_ext <<EOF
1167 #line 1168 "configure"
1168 #include "confdefs.h"
1171 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1172 { (eval echo configure:1173: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1173 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1174 if test -z "$ac_err"; then
1176 eval "ac_cv_header_$ac_safe=yes"
1179 echo "configure: failed program was:" >&5
1180 cat conftest.$ac_ext >&5
1182 eval "ac_cv_header_$ac_safe=no"
1186 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1187 echo "$ac_t""yes" 1>&6
1188 cat >> confdefs.h <<\EOF
1189 #define HAVE_STDARG_H 1
1193 echo "$ac_t""no" 1>&6
1194 { echo "configure: error: *** stdarg.h is missing on your system ***" 1>&2; exit 1; }
1197 for ac_func in setlocale
1199 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1200 echo "configure:1201: checking for $ac_func" >&5
1201 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1202 echo $ac_n "(cached) $ac_c" 1>&6
1204 cat > conftest.$ac_ext <<EOF
1205 #line 1206 "configure"
1206 #include "confdefs.h"
1207 /* System header to define __stub macros and hopefully few prototypes,
1208 which can conflict with char $ac_func(); below. */
1210 /* Override any gcc2 internal prototype to avoid an error. */
1211 /* We use char because int might match the return type of a gcc2
1212 builtin and then its argument prototype would still apply. */
1217 /* The GNU C library defines this for functions which it implements
1218 to always fail with ENOSYS. Some functions are actually named
1219 something starting with __ and the normal name is an alias. */
1220 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1228 if { (eval echo configure:1229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1230 eval "ac_cv_func_$ac_func=yes"
1232 echo "configure: failed program was:" >&5
1233 cat conftest.$ac_ext >&5
1235 eval "ac_cv_func_$ac_func=no"
1240 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1241 echo "$ac_t""yes" 1>&6
1242 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1243 cat >> confdefs.h <<EOF
1244 #define $ac_tr_func 1
1248 echo "$ac_t""no" 1>&6
1254 abook_cv_curses=/usr
1255 # Check whether --with-curses or --without-curses was given.
1256 if test "${with_curses+set}" = set; then
1257 withval="$with_curses"
1258 if test $withval != yes; then
1259 abook_cv_curses=$withval
1261 if test x$abook_cv_curses != x/usr; then
1262 LDFLAGS="-L${abook_cv_curses}/lib $LDFLAGS"
1263 CPPFLAGS="$CPPFLAGS -I${abook_cv_curses}/include"
1268 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
1269 echo "configure:1270: checking for initscr in -lncurses" >&5
1270 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-%__p_%'`
1271 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1272 echo $ac_n "(cached) $ac_c" 1>&6
1274 ac_save_LIBS="$LIBS"
1275 LIBS="-lncurses $LIBS"
1276 cat > conftest.$ac_ext <<EOF
1277 #line 1278 "configure"
1278 #include "confdefs.h"
1279 /* Override any gcc2 internal prototype to avoid an error. */
1280 /* We use char because int might match the return type of a gcc2
1281 builtin and then its argument prototype would still apply. */
1288 if { (eval echo configure:1289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1290 eval "ac_cv_lib_$ac_lib_var=yes"
1292 echo "configure: failed program was:" >&5
1293 cat conftest.$ac_ext >&5
1295 eval "ac_cv_lib_$ac_lib_var=no"
1298 LIBS="$ac_save_LIBS"
1301 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1302 echo "$ac_t""yes" 1>&6
1303 LIBS="$LIBS -lncurses"
1304 if test x$abook_cv_curses = x/usr -a -d /usr/include/ncurses; then
1305 CPPFLAGS="$CPPFLAGS -I/usr/include/ncurses"
1307 for ac_hdr in ncurses.h
1309 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1310 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1311 echo "configure:1312: checking for $ac_hdr" >&5
1312 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1313 echo $ac_n "(cached) $ac_c" 1>&6
1315 cat > conftest.$ac_ext <<EOF
1316 #line 1317 "configure"
1317 #include "confdefs.h"
1320 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1321 { (eval echo configure:1322: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1322 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1323 if test -z "$ac_err"; then
1325 eval "ac_cv_header_$ac_safe=yes"
1328 echo "configure: failed program was:" >&5
1329 cat conftest.$ac_ext >&5
1331 eval "ac_cv_header_$ac_safe=no"
1335 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1336 echo "$ac_t""yes" 1>&6
1337 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1338 cat >> confdefs.h <<EOF
1339 #define $ac_tr_hdr 1
1343 echo "$ac_t""no" 1>&6
1348 echo "$ac_t""no" 1>&6
1354 for ac_func in resizeterm
1356 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1357 echo "configure:1358: checking for $ac_func" >&5
1358 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1359 echo $ac_n "(cached) $ac_c" 1>&6
1361 cat > conftest.$ac_ext <<EOF
1362 #line 1363 "configure"
1363 #include "confdefs.h"
1364 /* System header to define __stub macros and hopefully few prototypes,
1365 which can conflict with char $ac_func(); below. */
1367 /* Override any gcc2 internal prototype to avoid an error. */
1368 /* We use char because int might match the return type of a gcc2
1369 builtin and then its argument prototype would still apply. */
1374 /* The GNU C library defines this for functions which it implements
1375 to always fail with ENOSYS. Some functions are actually named
1376 something starting with __ and the normal name is an alias. */
1377 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1385 if { (eval echo configure:1386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1387 eval "ac_cv_func_$ac_func=yes"
1389 echo "configure: failed program was:" >&5
1390 cat conftest.$ac_ext >&5
1392 eval "ac_cv_func_$ac_func=no"
1397 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1398 echo "$ac_t""yes" 1>&6
1399 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1400 cat >> confdefs.h <<EOF
1401 #define $ac_tr_func 1
1405 echo "$ac_t""no" 1>&6
1410 echo $ac_n "checking for snprintf""... $ac_c" 1>&6
1411 echo "configure:1412: checking for snprintf" >&5
1412 if eval "test \"`echo '$''{'ac_cv_func_snprintf'+set}'`\" = set"; then
1413 echo $ac_n "(cached) $ac_c" 1>&6
1415 cat > conftest.$ac_ext <<EOF
1416 #line 1417 "configure"
1417 #include "confdefs.h"
1418 /* System header to define __stub macros and hopefully few prototypes,
1419 which can conflict with char snprintf(); below. */
1421 /* Override any gcc2 internal prototype to avoid an error. */
1422 /* We use char because int might match the return type of a gcc2
1423 builtin and then its argument prototype would still apply. */
1428 /* The GNU C library defines this for functions which it implements
1429 to always fail with ENOSYS. Some functions are actually named
1430 something starting with __ and the normal name is an alias. */
1431 #if defined (__stub_snprintf) || defined (__stub___snprintf)
1439 if { (eval echo configure:1440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1441 eval "ac_cv_func_snprintf=yes"
1443 echo "configure: failed program was:" >&5
1444 cat conftest.$ac_ext >&5
1446 eval "ac_cv_func_snprintf=no"
1451 if eval "test \"`echo '$ac_cv_func_'snprintf`\" = yes"; then
1452 echo "$ac_t""yes" 1>&6
1453 cat >> confdefs.h <<\EOF
1454 #define HAVE_SNPRINTF 1
1458 echo "$ac_t""no" 1>&6
1461 echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
1462 echo "configure:1463: checking for vsnprintf" >&5
1463 if eval "test \"`echo '$''{'ac_cv_func_vsnprintf'+set}'`\" = set"; then
1464 echo $ac_n "(cached) $ac_c" 1>&6
1466 cat > conftest.$ac_ext <<EOF
1467 #line 1468 "configure"
1468 #include "confdefs.h"
1469 /* System header to define __stub macros and hopefully few prototypes,
1470 which can conflict with char vsnprintf(); below. */
1472 /* Override any gcc2 internal prototype to avoid an error. */
1473 /* We use char because int might match the return type of a gcc2
1474 builtin and then its argument prototype would still apply. */
1479 /* The GNU C library defines this for functions which it implements
1480 to always fail with ENOSYS. Some functions are actually named
1481 something starting with __ and the normal name is an alias. */
1482 #if defined (__stub_vsnprintf) || defined (__stub___vsnprintf)
1490 if { (eval echo configure:1491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1492 eval "ac_cv_func_vsnprintf=yes"
1494 echo "configure: failed program was:" >&5
1495 cat conftest.$ac_ext >&5
1497 eval "ac_cv_func_vsnprintf=no"
1502 if eval "test \"`echo '$ac_cv_func_'vsnprintf`\" = yes"; then
1503 echo "$ac_t""yes" 1>&6
1504 cat >> confdefs.h <<\EOF
1505 #define HAVE_VSNPRINTF 1
1509 echo "$ac_t""no" 1>&6
1513 # Check whether --enable-debug or --disable-debug was given.
1514 if test "${enable_debug+set}" = set; then
1515 enableval="$enable_debug"
1516 case "${enableval}" in
1519 *) { echo "configure: error: bad value ${enableval} for --enable-debug" 1>&2; exit 1; } ;;
1526 if test x$debug = xtrue; then
1527 CPPFLAGS="-DDEBUG $CPPFLAGS"
1531 if test x$GCC = xyes; then
1532 CFLAGS="-Wall $CFLAGS"
1536 cat > confcache <<\EOF
1537 # This file is a shell script that caches the results of configure
1538 # tests run on this system so they can be shared between configure
1539 # scripts and configure runs. It is not useful on other systems.
1540 # If it contains results you don't want to keep, you may remove or edit it.
1542 # By default, configure uses ./config.cache as the cache file,
1543 # creating it if it does not exist already. You can give configure
1544 # the --cache-file=FILE option to use a different cache file; that is
1545 # what configure does when it calls configure scripts in
1546 # subdirectories, so they share the cache.
1547 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1548 # config.status only pays attention to the cache file if you give it the
1549 # --recheck option to rerun configure.
1552 # The following way of writing the cache mishandles newlines in values,
1553 # but we know of no workaround that is simple, portable, and efficient.
1554 # So, don't put newlines in cache variables' values.
1555 # Ultrix sh set writes to stderr and can't be redirected directly,
1556 # and sets the high bit in the cache file unless we assign to the vars.
1558 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1560 # `set' does not quote correctly, so add quotes (double-quote substitution
1561 # turns \\\\ into \\, and sed turns \\ into \).
1563 -e "s/'/'\\\\''/g" \
1564 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1567 # `set' quotes correctly as required by POSIX, so do not add quotes.
1568 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1571 if cmp -s $cache_file confcache; then
1574 if test -w $cache_file; then
1575 echo "updating cache $cache_file"
1576 cat confcache > $cache_file
1578 echo "not updating unwritable cache $cache_file"
1583 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1585 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1586 # Let make expand exec_prefix.
1587 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1589 # Any assignment to VPATH causes Sun make to only execute
1590 # the first set of double-colon rules, so remove it if not needed.
1591 # If there is a colon in the path, we need to keep it.
1592 if test "x$srcdir" = x.; then
1593 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1596 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1598 # Transform confdefs.h into DEFS.
1599 # Protect against shell expansion while executing Makefile rules.
1600 # Protect against Makefile macro expansion.
1601 cat > conftest.defs <<\EOF
1602 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1603 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
1608 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1612 # Without the "./", some shells look in PATH for config.status.
1613 : ${CONFIG_STATUS=./config.status}
1615 echo creating $CONFIG_STATUS
1616 rm -f $CONFIG_STATUS
1617 cat > $CONFIG_STATUS <<EOF
1619 # Generated automatically by configure.
1620 # Run this file to recreate the current configuration.
1621 # This directory was configured as follows,
1622 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1624 # $0 $ac_configure_args
1626 # Compiler output produced by configure, useful for debugging
1627 # configure, is in ./config.log if it exists.
1629 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1632 case "\$ac_option" in
1633 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1634 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1635 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1636 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1637 echo "$CONFIG_STATUS generated by autoconf version 2.13"
1639 -help | --help | --hel | --he | --h)
1640 echo "\$ac_cs_usage"; exit 0 ;;
1641 *) echo "\$ac_cs_usage"; exit 1 ;;
1645 ac_given_srcdir=$srcdir
1646 ac_given_INSTALL="$INSTALL"
1648 trap 'rm -fr `echo "Makefile abook.list" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1650 cat >> $CONFIG_STATUS <<EOF
1652 # Protect against being on the right side of a sed subst in config.status.
1653 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1654 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1658 s%@CFLAGS@%$CFLAGS%g
1659 s%@CPPFLAGS@%$CPPFLAGS%g
1660 s%@CXXFLAGS@%$CXXFLAGS%g
1661 s%@FFLAGS@%$FFLAGS%g
1663 s%@LDFLAGS@%$LDFLAGS%g
1665 s%@exec_prefix@%$exec_prefix%g
1666 s%@prefix@%$prefix%g
1667 s%@program_transform_name@%$program_transform_name%g
1668 s%@bindir@%$bindir%g
1669 s%@sbindir@%$sbindir%g
1670 s%@libexecdir@%$libexecdir%g
1671 s%@datadir@%$datadir%g
1672 s%@sysconfdir@%$sysconfdir%g
1673 s%@sharedstatedir@%$sharedstatedir%g
1674 s%@localstatedir@%$localstatedir%g
1675 s%@libdir@%$libdir%g
1676 s%@includedir@%$includedir%g
1677 s%@oldincludedir@%$oldincludedir%g
1678 s%@infodir@%$infodir%g
1679 s%@mandir@%$mandir%g
1681 s%@host_alias@%$host_alias%g
1682 s%@host_cpu@%$host_cpu%g
1683 s%@host_vendor@%$host_vendor%g
1684 s%@host_os@%$host_os%g
1687 s%@PATCHLEVEL@%$PATCHLEVEL%g
1689 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1690 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1691 s%@INSTALL_DATA@%$INSTALL_DATA%g
1697 cat >> $CONFIG_STATUS <<\EOF
1699 # Split the substitutions into bite-sized pieces for seds with
1700 # small command number limits, like on Digital OSF/1 and HP-UX.
1701 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1702 ac_file=1 # Number of current file.
1703 ac_beg=1 # First line for current file.
1704 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1707 while $ac_more_lines; do
1708 if test $ac_beg -gt 1; then
1709 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1711 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1713 if test ! -s conftest.s$ac_file; then
1715 rm -f conftest.s$ac_file
1717 if test -z "$ac_sed_cmds"; then
1718 ac_sed_cmds="sed -f conftest.s$ac_file"
1720 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1722 ac_file=`expr $ac_file + 1`
1724 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1727 if test -z "$ac_sed_cmds"; then
1732 cat >> $CONFIG_STATUS <<EOF
1734 CONFIG_FILES=\${CONFIG_FILES-"Makefile abook.list"}
1736 cat >> $CONFIG_STATUS <<\EOF
1737 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1738 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1740 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1741 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1742 *) ac_file_in="${ac_file}.in" ;;
1745 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1747 # Remove last slash and all that follows it. Not all systems have dirname.
1748 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1749 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1750 # The file is in a subdirectory.
1751 test ! -d "$ac_dir" && mkdir "$ac_dir"
1752 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1753 # A "../" for each directory in $ac_dir_suffix.
1754 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1756 ac_dir_suffix= ac_dots=
1759 case "$ac_given_srcdir" in
1761 if test -z "$ac_dots"; then top_srcdir=.
1762 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1763 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1765 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1766 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1769 case "$ac_given_INSTALL" in
1770 [/$]*) INSTALL="$ac_given_INSTALL" ;;
1771 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1774 echo creating "$ac_file"
1776 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1778 *Makefile*) ac_comsub="1i\\
1779 # $configure_input" ;;
1783 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1785 s%@configure_input@%$configure_input%g
1786 s%@srcdir@%$srcdir%g
1787 s%@top_srcdir@%$top_srcdir%g
1788 s%@INSTALL@%$INSTALL%g
1789 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1794 cat >> $CONFIG_STATUS <<EOF
1797 cat >> $CONFIG_STATUS <<\EOF
1801 chmod +x $CONFIG_STATUS
1802 rm -fr confdefs* $ac_clean_files
1803 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1