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-x use the X Window System"
17 --with-krb4=PREFIX Use Kerberos 4"
19 --with-krb5=PREFIX Use Kerberos 5"
21 --with-hesiod=PREFIX Use Hesiod"
23 --with-regex=PREFIX Use installed regex library"
25 --with-ares=PREFIX Use libares"
27 --with-com_err=PREFIX Specify location of com_err"
29 --with-ss=PREFIX Specify location of ss (requires com_err)"
31 # Initialize some variables set by options.
32 # The variables have the same names as the options, with
33 # dashes changed to underlines.
35 cache_file=./config.cache
44 program_transform_name=s,x,x,
52 bindir='${exec_prefix}/bin'
53 sbindir='${exec_prefix}/sbin'
54 libexecdir='${exec_prefix}/libexec'
55 datadir='${prefix}/share'
56 sysconfdir='${prefix}/etc'
57 sharedstatedir='${prefix}/com'
58 localstatedir='${prefix}/var'
59 libdir='${exec_prefix}/lib'
60 includedir='${prefix}/include'
61 oldincludedir='/usr/include'
62 infodir='${prefix}/info'
63 mandir='${prefix}/man'
65 # Initialize some other variables.
68 SHELL=${CONFIG_SHELL-/bin/sh}
69 # Maximum number of lines to put in a shell here document.
76 # If the previous option needs an argument, assign it.
77 if test -n "$ac_prev"; then
78 eval "$ac_prev=\$ac_option"
84 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
88 # Accept the important Cygnus configure options, so we can diagnose typos.
92 -bindir | --bindir | --bindi | --bind | --bin | --bi)
94 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
95 bindir="$ac_optarg" ;;
97 -build | --build | --buil | --bui | --bu)
99 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
100 build="$ac_optarg" ;;
102 -cache-file | --cache-file | --cache-fil | --cache-fi \
103 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
104 ac_prev=cache_file ;;
105 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
106 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
107 cache_file="$ac_optarg" ;;
109 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
111 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
113 datadir="$ac_optarg" ;;
115 -disable-* | --disable-*)
116 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
117 # Reject names that are not valid shell variable names.
118 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
119 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
121 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
122 eval "enable_${ac_feature}=no" ;;
124 -enable-* | --enable-*)
125 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
126 # Reject names that are not valid shell variable names.
127 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
128 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
130 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
135 eval "enable_${ac_feature}='$ac_optarg'" ;;
137 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
138 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
139 | --exec | --exe | --ex)
140 ac_prev=exec_prefix ;;
141 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
142 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
143 | --exec=* | --exe=* | --ex=*)
144 exec_prefix="$ac_optarg" ;;
146 -gas | --gas | --ga | --g)
147 # Obsolete; use --with-gas.
150 -help | --help | --hel | --he)
151 # Omit some internal or obsolete options to make the list less imposing.
152 # This message is too long to be a string in the A/UX 3.1 sh.
154 Usage: configure [options] [host]
155 Options: [defaults in brackets after descriptions]
157 --cache-file=FILE cache test results in FILE
158 --help print this message
159 --no-create do not create output files
160 --quiet, --silent do not print \`checking...' messages
161 --version print the version of autoconf that created configure
162 Directory and file names:
163 --prefix=PREFIX install architecture-independent files in PREFIX
165 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
167 --bindir=DIR user executables in DIR [EPREFIX/bin]
168 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
169 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
170 --datadir=DIR read-only architecture-independent data in DIR
172 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
173 --sharedstatedir=DIR modifiable architecture-independent data in DIR
175 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
176 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
177 --includedir=DIR C header files in DIR [PREFIX/include]
178 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
179 --infodir=DIR info documentation in DIR [PREFIX/info]
180 --mandir=DIR man documentation in DIR [PREFIX/man]
181 --srcdir=DIR find the sources in DIR [configure dir or ..]
182 --program-prefix=PREFIX prepend PREFIX to installed program names
183 --program-suffix=SUFFIX append SUFFIX to installed program names
184 --program-transform-name=PROGRAM
185 run sed PROGRAM on installed program names
189 --build=BUILD configure for building on BUILD [BUILD=HOST]
190 --host=HOST configure for HOST [guessed]
191 --target=TARGET configure for TARGET [TARGET=HOST]
192 Features and packages:
193 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
194 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
195 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
196 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
197 --x-includes=DIR X include files are in DIR
198 --x-libraries=DIR X library files are in DIR
200 if test -n "$ac_help"; then
201 echo "--enable and --with options recognized:$ac_help"
205 -host | --host | --hos | --ho)
207 -host=* | --host=* | --hos=* | --ho=*)
210 -includedir | --includedir | --includedi | --included | --include \
211 | --includ | --inclu | --incl | --inc)
212 ac_prev=includedir ;;
213 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
214 | --includ=* | --inclu=* | --incl=* | --inc=*)
215 includedir="$ac_optarg" ;;
217 -infodir | --infodir | --infodi | --infod | --info | --inf)
219 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
220 infodir="$ac_optarg" ;;
222 -libdir | --libdir | --libdi | --libd)
224 -libdir=* | --libdir=* | --libdi=* | --libd=*)
225 libdir="$ac_optarg" ;;
227 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
228 | --libexe | --libex | --libe)
229 ac_prev=libexecdir ;;
230 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
231 | --libexe=* | --libex=* | --libe=*)
232 libexecdir="$ac_optarg" ;;
234 -localstatedir | --localstatedir | --localstatedi | --localstated \
235 | --localstate | --localstat | --localsta | --localst \
236 | --locals | --local | --loca | --loc | --lo)
237 ac_prev=localstatedir ;;
238 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
239 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
240 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
241 localstatedir="$ac_optarg" ;;
243 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
245 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
246 mandir="$ac_optarg" ;;
249 # Obsolete; use --without-fp.
252 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
256 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
257 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
260 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
261 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
262 | --oldin | --oldi | --old | --ol | --o)
263 ac_prev=oldincludedir ;;
264 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
265 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
266 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
267 oldincludedir="$ac_optarg" ;;
269 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
271 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
272 prefix="$ac_optarg" ;;
274 -program-prefix | --program-prefix | --program-prefi | --program-pref \
275 | --program-pre | --program-pr | --program-p)
276 ac_prev=program_prefix ;;
277 -program-prefix=* | --program-prefix=* | --program-prefi=* \
278 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
279 program_prefix="$ac_optarg" ;;
281 -program-suffix | --program-suffix | --program-suffi | --program-suff \
282 | --program-suf | --program-su | --program-s)
283 ac_prev=program_suffix ;;
284 -program-suffix=* | --program-suffix=* | --program-suffi=* \
285 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
286 program_suffix="$ac_optarg" ;;
288 -program-transform-name | --program-transform-name \
289 | --program-transform-nam | --program-transform-na \
290 | --program-transform-n | --program-transform- \
291 | --program-transform | --program-transfor \
292 | --program-transfo | --program-transf \
293 | --program-trans | --program-tran \
294 | --progr-tra | --program-tr | --program-t)
295 ac_prev=program_transform_name ;;
296 -program-transform-name=* | --program-transform-name=* \
297 | --program-transform-nam=* | --program-transform-na=* \
298 | --program-transform-n=* | --program-transform-=* \
299 | --program-transform=* | --program-transfor=* \
300 | --program-transfo=* | --program-transf=* \
301 | --program-trans=* | --program-tran=* \
302 | --progr-tra=* | --program-tr=* | --program-t=*)
303 program_transform_name="$ac_optarg" ;;
305 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
306 | -silent | --silent | --silen | --sile | --sil)
309 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
311 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
313 sbindir="$ac_optarg" ;;
315 -sharedstatedir | --sharedstatedir | --sharedstatedi \
316 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
317 | --sharedst | --shareds | --shared | --share | --shar \
319 ac_prev=sharedstatedir ;;
320 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
321 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
322 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
324 sharedstatedir="$ac_optarg" ;;
326 -site | --site | --sit)
328 -site=* | --site=* | --sit=*)
331 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
333 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
334 srcdir="$ac_optarg" ;;
336 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
337 | --syscon | --sysco | --sysc | --sys | --sy)
338 ac_prev=sysconfdir ;;
339 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
340 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
341 sysconfdir="$ac_optarg" ;;
343 -target | --target | --targe | --targ | --tar | --ta | --t)
345 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
346 target="$ac_optarg" ;;
348 -v | -verbose | --verbose | --verbos | --verbo | --verb)
351 -version | --version | --versio | --versi | --vers)
352 echo "configure generated by autoconf version 2.13"
356 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
357 # Reject names that are not valid shell variable names.
358 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
359 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
361 ac_package=`echo $ac_package| sed 's/-/_/g'`
366 eval "with_${ac_package}='$ac_optarg'" ;;
368 -without-* | --without-*)
369 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
370 # Reject names that are not valid shell variable names.
371 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
372 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
374 ac_package=`echo $ac_package| sed 's/-/_/g'`
375 eval "with_${ac_package}=no" ;;
378 # Obsolete; use --with-x.
381 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
382 | --x-incl | --x-inc | --x-in | --x-i)
383 ac_prev=x_includes ;;
384 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
385 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
386 x_includes="$ac_optarg" ;;
388 -x-libraries | --x-libraries | --x-librarie | --x-librari \
389 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
390 ac_prev=x_libraries ;;
391 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
392 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
393 x_libraries="$ac_optarg" ;;
395 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
399 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
400 echo "configure: warning: $ac_option: invalid host type" 1>&2
402 if test "x$nonopt" != xNONE; then
403 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
411 if test -n "$ac_prev"; then
412 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
415 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
417 # File descriptor usage:
420 # 2 errors and warnings
421 # 3 some systems may open it to /dev/tty
422 # 4 used on the Kubota Titan
423 # 6 checking for... messages and results
424 # 5 compiler messages saved in config.log
425 if test "$silent" = yes; then
433 This file contains any messages produced by compilers while
434 running configure, to aid debugging if configure makes a mistake.
437 # Strip out --no-create and --no-recursion so they do not pile up.
438 # Also quote any args containing shell metacharacters.
443 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
444 | --no-cr | --no-c) ;;
445 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
446 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
447 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
448 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
449 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
454 # Only set these to C if already set. These must not be set unconditionally
455 # because not all systems understand e.g. LANG=C (notably SCO).
456 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
457 # Non-C LC_CTYPE values break the ctype check.
458 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
459 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
460 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
461 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
463 # confdefs.h avoids OS command line length limits that DEFS can exceed.
464 rm -rf conftest* confdefs.h
465 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
468 # A filename unique to this package, relative to the directory that
469 # configure is in, which we can look for to find out if srcdir is correct.
470 ac_unique_file=server/server.c
472 # Find the source files, if location was not specified.
473 if test -z "$srcdir"; then
474 ac_srcdir_defaulted=yes
475 # Try the directory containing this script, then its parent.
477 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
478 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
480 if test ! -r $srcdir/$ac_unique_file; then
484 ac_srcdir_defaulted=no
486 if test ! -r $srcdir/$ac_unique_file; then
487 if test "$ac_srcdir_defaulted" = yes; then
488 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
490 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
493 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
495 # Prefer explicitly selected file to automatically selected ones.
496 if test -z "$CONFIG_SITE"; then
497 if test "x$prefix" != xNONE; then
498 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
500 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
503 for ac_site_file in $CONFIG_SITE; do
504 if test -r "$ac_site_file"; then
505 echo "loading site script $ac_site_file"
510 if test -r "$cache_file"; then
511 echo "loading cache $cache_file"
514 echo "creating cache $cache_file"
519 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
520 ac_cpp='$CPP $CPPFLAGS'
521 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
522 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
523 cross_compiling=$ac_cv_prog_cc_cross
527 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
528 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
529 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
536 ac_n= ac_c='\c' ac_t=
542 test -d h/zephyr || mkdir h/zephyr
544 test -z "$lbindir" && lbindir='${bindir}'
545 test -z "$lsbindir" && lsbindir='${sbindir}'
550 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
551 if test -f $ac_dir/install-sh; then
553 ac_install_sh="$ac_aux_dir/install-sh -c"
555 elif test -f $ac_dir/install.sh; then
557 ac_install_sh="$ac_aux_dir/install.sh -c"
561 if test -z "$ac_aux_dir"; then
562 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
564 ac_config_guess=$ac_aux_dir/config.guess
565 ac_config_sub=$ac_aux_dir/config.sub
566 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
569 # Do some error checking and defaulting for the host and target type.
571 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
574 # 1. You are not allowed to specify --host, --target, and nonopt at the
576 # 2. Host defaults to nonopt.
577 # 3. If nonopt is not specified, then host defaults to the current host,
578 # as determined by config.guess.
579 # 4. Target and build default to nonopt.
580 # 5. If nonopt is not specified, then target and build default to host.
582 # The aliases save the names the user supplied, while $host etc.
583 # will get canonicalized.
584 case $host---$target---$nonopt in
585 NONE---*---* | *---NONE---* | *---*---NONE) ;;
586 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
590 # Make sure we can run config.sub.
591 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
592 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
595 echo $ac_n "checking host system type""... $ac_c" 1>&6
596 echo "configure:597: checking host system type" >&5
599 case "$host_alias" in
603 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
604 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
606 *) host_alias=$nonopt ;;
610 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
611 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
612 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
613 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
614 echo "$ac_t""$host" 1>&6
616 echo $ac_n "checking target system type""... $ac_c" 1>&6
617 echo "configure:618: checking target system type" >&5
620 case "$target_alias" in
623 NONE) target_alias=$host_alias ;;
624 *) target_alias=$nonopt ;;
628 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
629 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
630 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
631 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
632 echo "$ac_t""$target" 1>&6
634 echo $ac_n "checking build system type""... $ac_c" 1>&6
635 echo "configure:636: checking build system type" >&5
638 case "$build_alias" in
641 NONE) build_alias=$host_alias ;;
642 *) build_alias=$nonopt ;;
646 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
647 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
648 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
649 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
650 echo "$ac_t""$build" 1>&6
652 test "$host_alias" != "$target_alias" &&
653 test "$program_prefix$program_suffix$program_transform_name" = \
655 program_prefix=${target_alias}-
657 cat >> confdefs.h <<EOF
658 #define MACHINE_TYPE "$host"
662 # Extract the first word of "gcc", so it can be a program name with args.
663 set dummy gcc; ac_word=$2
664 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
665 echo "configure:666: checking for $ac_word" >&5
666 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
667 echo $ac_n "(cached) $ac_c" 1>&6
669 if test -n "$CC"; then
670 ac_cv_prog_CC="$CC" # Let the user override the test.
672 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
674 for ac_dir in $ac_dummy; do
675 test -z "$ac_dir" && ac_dir=.
676 if test -f $ac_dir/$ac_word; then
685 if test -n "$CC"; then
686 echo "$ac_t""$CC" 1>&6
688 echo "$ac_t""no" 1>&6
691 if test -z "$CC"; then
692 # Extract the first word of "cc", so it can be a program name with args.
693 set dummy cc; ac_word=$2
694 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
695 echo "configure:696: checking for $ac_word" >&5
696 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
697 echo $ac_n "(cached) $ac_c" 1>&6
699 if test -n "$CC"; then
700 ac_cv_prog_CC="$CC" # Let the user override the test.
702 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
705 for ac_dir in $ac_dummy; do
706 test -z "$ac_dir" && ac_dir=.
707 if test -f $ac_dir/$ac_word; then
708 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
717 if test $ac_prog_rejected = yes; then
718 # We found a bogon in the path, so make sure we never use it.
719 set dummy $ac_cv_prog_CC
721 if test $# -gt 0; then
722 # We chose a different compiler from the bogus one.
723 # However, it has the same basename, so the bogon will be chosen
724 # first if we set CC to just the basename; use the full file name.
726 set dummy "$ac_dir/$ac_word" "$@"
734 if test -n "$CC"; then
735 echo "$ac_t""$CC" 1>&6
737 echo "$ac_t""no" 1>&6
740 if test -z "$CC"; then
743 # Extract the first word of "cl", so it can be a program name with args.
744 set dummy cl; ac_word=$2
745 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
746 echo "configure:747: checking for $ac_word" >&5
747 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
748 echo $ac_n "(cached) $ac_c" 1>&6
750 if test -n "$CC"; then
751 ac_cv_prog_CC="$CC" # Let the user override the test.
753 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
755 for ac_dir in $ac_dummy; do
756 test -z "$ac_dir" && ac_dir=.
757 if test -f $ac_dir/$ac_word; then
766 if test -n "$CC"; then
767 echo "$ac_t""$CC" 1>&6
769 echo "$ac_t""no" 1>&6
774 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
777 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
778 echo "configure:779: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
781 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
782 ac_cpp='$CPP $CPPFLAGS'
783 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
784 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
785 cross_compiling=$ac_cv_prog_cc_cross
787 cat > conftest.$ac_ext << EOF
789 #line 790 "configure"
790 #include "confdefs.h"
794 if { (eval echo configure:795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
795 ac_cv_prog_cc_works=yes
796 # If we can't run a trivial program, we are probably using a cross compiler.
797 if (./conftest; exit) 2>/dev/null; then
798 ac_cv_prog_cc_cross=no
800 ac_cv_prog_cc_cross=yes
803 echo "configure: failed program was:" >&5
804 cat conftest.$ac_ext >&5
805 ac_cv_prog_cc_works=no
809 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
810 ac_cpp='$CPP $CPPFLAGS'
811 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
812 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
813 cross_compiling=$ac_cv_prog_cc_cross
815 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
816 if test $ac_cv_prog_cc_works = no; then
817 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
819 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
820 echo "configure:821: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
821 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
822 cross_compiling=$ac_cv_prog_cc_cross
824 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
825 echo "configure:826: checking whether we are using GNU C" >&5
826 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
827 echo $ac_n "(cached) $ac_c" 1>&6
829 cat > conftest.c <<EOF
834 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:835: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
841 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
843 if test $ac_cv_prog_gcc = yes; then
849 ac_test_CFLAGS="${CFLAGS+set}"
850 ac_save_CFLAGS="$CFLAGS"
852 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
853 echo "configure:854: checking whether ${CC-cc} accepts -g" >&5
854 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
855 echo $ac_n "(cached) $ac_c" 1>&6
857 echo 'void f(){}' > conftest.c
858 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
867 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
868 if test "$ac_test_CFLAGS" = set; then
869 CFLAGS="$ac_save_CFLAGS"
870 elif test $ac_cv_prog_cc_g = yes; then
871 if test "$GCC" = yes; then
877 if test "$GCC" = yes; then
884 for ac_prog in 'bison -y' byacc
886 # Extract the first word of "$ac_prog", so it can be a program name with args.
887 set dummy $ac_prog; ac_word=$2
888 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
889 echo "configure:890: checking for $ac_word" >&5
890 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
891 echo $ac_n "(cached) $ac_c" 1>&6
893 if test -n "$YACC"; then
894 ac_cv_prog_YACC="$YACC" # Let the user override the test.
896 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
898 for ac_dir in $ac_dummy; do
899 test -z "$ac_dir" && ac_dir=.
900 if test -f $ac_dir/$ac_word; then
901 ac_cv_prog_YACC="$ac_prog"
908 YACC="$ac_cv_prog_YACC"
909 if test -n "$YACC"; then
910 echo "$ac_t""$YACC" 1>&6
912 echo "$ac_t""no" 1>&6
915 test -n "$YACC" && break
917 test -n "$YACC" || YACC="yacc"
919 # Extract the first word of "flex", so it can be a program name with args.
920 set dummy flex; ac_word=$2
921 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
922 echo "configure:923: checking for $ac_word" >&5
923 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
924 echo $ac_n "(cached) $ac_c" 1>&6
926 if test -n "$LEX"; then
927 ac_cv_prog_LEX="$LEX" # Let the user override the test.
929 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
931 for ac_dir in $ac_dummy; do
932 test -z "$ac_dir" && ac_dir=.
933 if test -f $ac_dir/$ac_word; then
934 ac_cv_prog_LEX="flex"
939 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
942 LEX="$ac_cv_prog_LEX"
943 if test -n "$LEX"; then
944 echo "$ac_t""$LEX" 1>&6
946 echo "$ac_t""no" 1>&6
955 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
956 echo "configure:957: checking for yywrap in -l$ac_lib" >&5
957 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
958 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
959 echo $ac_n "(cached) $ac_c" 1>&6
962 LIBS="-l$ac_lib $LIBS"
963 cat > conftest.$ac_ext <<EOF
964 #line 965 "configure"
965 #include "confdefs.h"
966 /* Override any gcc2 internal prototype to avoid an error. */
967 /* We use char because int might match the return type of a gcc2
968 builtin and then its argument prototype would still apply. */
975 if { (eval echo configure:976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
977 eval "ac_cv_lib_$ac_lib_var=yes"
979 echo "configure: failed program was:" >&5
980 cat conftest.$ac_ext >&5
982 eval "ac_cv_lib_$ac_lib_var=no"
988 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
989 echo "$ac_t""yes" 1>&6
992 echo "$ac_t""no" 1>&6
997 # Find a good install program. We prefer a C program (faster),
998 # so one script is as good as another. But avoid the broken or
999 # incompatible versions:
1000 # SysV /etc/install, /usr/sbin/install
1001 # SunOS /usr/etc/install
1002 # IRIX /sbin/install
1004 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1005 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1006 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1007 # ./install, which can be erroneously created by make from ./install.sh.
1008 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1009 echo "configure:1010: checking for a BSD compatible install" >&5
1010 if test -z "$INSTALL"; then
1011 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1012 echo $ac_n "(cached) $ac_c" 1>&6
1014 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1015 for ac_dir in $PATH; do
1016 # Account for people who put trailing slashes in PATH elements.
1018 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1020 # OSF1 and SCO ODT 3.0 have their own names for install.
1021 # Don't use installbsd from OSF since it installs stuff as root
1023 for ac_prog in ginstall scoinst install; do
1024 if test -f $ac_dir/$ac_prog; then
1025 if test $ac_prog = install &&
1026 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1027 # AIX install. It has an incompatible calling convention.
1030 ac_cv_path_install="$ac_dir/$ac_prog -c"
1041 if test "${ac_cv_path_install+set}" = set; then
1042 INSTALL="$ac_cv_path_install"
1044 # As a last resort, use the slow shell script. We don't cache a
1045 # path for INSTALL within a source directory, because that will
1046 # break other packages using the cache if that directory is
1047 # removed, or if the path is relative.
1048 INSTALL="$ac_install_sh"
1051 echo "$ac_t""$INSTALL" 1>&6
1053 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1054 # It thinks the first close brace ends the variable substitution.
1055 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1057 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1059 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1061 # Extract the first word of "ranlib", so it can be a program name with args.
1062 set dummy ranlib; ac_word=$2
1063 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1064 echo "configure:1065: checking for $ac_word" >&5
1065 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1066 echo $ac_n "(cached) $ac_c" 1>&6
1068 if test -n "$RANLIB"; then
1069 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1071 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1073 for ac_dir in $ac_dummy; do
1074 test -z "$ac_dir" && ac_dir=.
1075 if test -f $ac_dir/$ac_word; then
1076 ac_cv_prog_RANLIB="ranlib"
1081 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1084 RANLIB="$ac_cv_prog_RANLIB"
1085 if test -n "$RANLIB"; then
1086 echo "$ac_t""$RANLIB" 1>&6
1088 echo "$ac_t""no" 1>&6
1092 echo $ac_n "checking location of temporary directory""... $ac_c" 1>&6
1093 echo "configure:1094: checking location of temporary directory" >&5
1094 if test -d /var/tmp; then
1096 elif test -d /usr/tmp; then
1101 cat >> confdefs.h <<EOF
1102 #define FOUND_TMP "${found_tmp}"
1105 echo "$ac_t""${found_tmp}" 1>&6
1107 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1108 echo "configure:1109: checking how to run the C preprocessor" >&5
1109 # On Suns, sometimes $CPP names a directory.
1110 if test -n "$CPP" && test -d "$CPP"; then
1113 if test -z "$CPP"; then
1114 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1115 echo $ac_n "(cached) $ac_c" 1>&6
1117 # This must be in double quotes, not single quotes, because CPP may get
1118 # substituted into the Makefile and "${CC-cc}" will confuse make.
1120 # On the NeXT, cc -E runs the code through the compiler's parser,
1121 # not just through cpp.
1122 cat > conftest.$ac_ext <<EOF
1123 #line 1124 "configure"
1124 #include "confdefs.h"
1128 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1129 { (eval echo configure:1130: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1130 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1131 if test -z "$ac_err"; then
1135 echo "configure: failed program was:" >&5
1136 cat conftest.$ac_ext >&5
1138 CPP="${CC-cc} -E -traditional-cpp"
1139 cat > conftest.$ac_ext <<EOF
1140 #line 1141 "configure"
1141 #include "confdefs.h"
1145 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1146 { (eval echo configure:1147: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1147 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1148 if test -z "$ac_err"; then
1152 echo "configure: failed program was:" >&5
1153 cat conftest.$ac_ext >&5
1155 CPP="${CC-cc} -nologo -E"
1156 cat > conftest.$ac_ext <<EOF
1157 #line 1158 "configure"
1158 #include "confdefs.h"
1162 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1163 { (eval echo configure:1164: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1164 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1165 if test -z "$ac_err"; then
1169 echo "configure: failed program was:" >&5
1170 cat conftest.$ac_ext >&5
1179 ac_cv_prog_CPP="$CPP"
1181 CPP="$ac_cv_prog_CPP"
1183 ac_cv_prog_CPP="$CPP"
1185 echo "$ac_t""$CPP" 1>&6
1187 # If we find X, set shell vars x_includes and x_libraries to the
1188 # paths, otherwise set no_x=yes.
1189 # Uses ac_ vars as temps to allow command line to override cache and checks.
1190 # --without-x overrides everything else, but does not touch the cache.
1191 echo $ac_n "checking for X""... $ac_c" 1>&6
1192 echo "configure:1193: checking for X" >&5
1194 # Check whether --with-x or --without-x was given.
1195 if test "${with_x+set}" = set; then
1200 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
1201 if test "x$with_x" = xno; then
1202 # The user explicitly disabled X.
1205 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
1206 # Both variables are already set.
1209 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
1210 echo $ac_n "(cached) $ac_c" 1>&6
1212 # One or both of the vars are not set, and there is no cached value.
1213 ac_x_includes=NO ac_x_libraries=NO
1215 if mkdir conftestdir; then
1217 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
1218 cat > Imakefile <<'EOF'
1220 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
1222 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
1223 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1224 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
1225 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
1226 for ac_extension in a so sl; do
1227 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
1228 test -f $ac_im_libdir/libX11.$ac_extension; then
1229 ac_im_usrlibdir=$ac_im_libdir; break
1232 # Screen out bogus values from the imake configuration. They are
1233 # bogus both because they are the default anyway, and because
1234 # using them would break gcc on systems where it needs fixed includes.
1235 case "$ac_im_incroot" in
1237 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
1239 case "$ac_im_usrlibdir" in
1241 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
1248 if test "$ac_x_includes" = NO; then
1249 # Guess where to find include files, by looking for this one X11 .h file.
1250 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
1252 # First, try using that file with no special directory specified.
1253 cat > conftest.$ac_ext <<EOF
1254 #line 1255 "configure"
1255 #include "confdefs.h"
1256 #include <$x_direct_test_include>
1258 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1259 { (eval echo configure:1260: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1260 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1261 if test -z "$ac_err"; then
1263 # We can compile using X headers with no special include directory.
1267 echo "configure: failed program was:" >&5
1268 cat conftest.$ac_ext >&5
1270 # Look for the header file in a standard set of common directories.
1271 # Check X11 before X11Rn because it is often a symlink to the current release.
1274 /usr/X11R6/include \
1275 /usr/X11R5/include \
1276 /usr/X11R4/include \
1279 /usr/include/X11R6 \
1280 /usr/include/X11R5 \
1281 /usr/include/X11R4 \
1283 /usr/local/X11/include \
1284 /usr/local/X11R6/include \
1285 /usr/local/X11R5/include \
1286 /usr/local/X11R4/include \
1288 /usr/local/include/X11 \
1289 /usr/local/include/X11R6 \
1290 /usr/local/include/X11R5 \
1291 /usr/local/include/X11R4 \
1295 /usr/XFree86/include/X11 \
1298 /usr/local/include \
1299 /usr/unsupported/include \
1300 /usr/athena/include \
1301 /usr/local/x11r5/include \
1302 /usr/lpp/Xamples/include \
1304 /usr/openwin/include \
1305 /usr/openwin/share/include \
1308 if test -r "$ac_dir/$x_direct_test_include"; then
1309 ac_x_includes=$ac_dir
1315 fi # $ac_x_includes = NO
1317 if test "$ac_x_libraries" = NO; then
1318 # Check for the libraries.
1320 test -z "$x_direct_test_library" && x_direct_test_library=Xt
1321 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
1323 # See if we find them without any special options.
1324 # Don't add to $LIBS permanently.
1325 ac_save_LIBS="$LIBS"
1326 LIBS="-l$x_direct_test_library $LIBS"
1327 cat > conftest.$ac_ext <<EOF
1328 #line 1329 "configure"
1329 #include "confdefs.h"
1332 ${x_direct_test_function}()
1335 if { (eval echo configure:1336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1337 LIBS="$ac_save_LIBS"
1338 # We can link X programs with no special library path.
1341 echo "configure: failed program was:" >&5
1342 cat conftest.$ac_ext >&5
1344 LIBS="$ac_save_LIBS"
1345 # First see if replacing the include by lib works.
1346 # Check X11 before X11Rn because it is often a symlink to the current release.
1347 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
1358 /usr/local/X11/lib \
1359 /usr/local/X11R6/lib \
1360 /usr/local/X11R5/lib \
1361 /usr/local/X11R4/lib \
1363 /usr/local/lib/X11 \
1364 /usr/local/lib/X11R6 \
1365 /usr/local/lib/X11R5 \
1366 /usr/local/lib/X11R4 \
1370 /usr/XFree86/lib/X11 \
1374 /usr/unsupported/lib \
1376 /usr/local/x11r5/lib \
1377 /usr/lpp/Xamples/lib \
1381 /usr/openwin/share/lib \
1384 for ac_extension in a so sl; do
1385 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
1386 ac_x_libraries=$ac_dir
1393 fi # $ac_x_libraries = NO
1395 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
1396 # Didn't find X anywhere. Cache the known absence of X.
1397 ac_cv_have_x="have_x=no"
1399 # Record where we found X for the cache.
1400 ac_cv_have_x="have_x=yes \
1401 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1405 eval "$ac_cv_have_x"
1408 if test "$have_x" != yes; then
1409 echo "$ac_t""$have_x" 1>&6
1412 # If each of the values was on the command line, it overrides each guess.
1413 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
1414 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
1415 # Update the cache value to reflect the command line values.
1416 ac_cv_have_x="have_x=yes \
1417 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1418 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1421 if test "$no_x" = yes; then
1422 # Not all programs may use this symbol, but it does not hurt to define it.
1423 cat >> confdefs.h <<\EOF
1424 #define X_DISPLAY_MISSING 1
1427 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
1429 if test -n "$x_includes"; then
1430 X_CFLAGS="$X_CFLAGS -I$x_includes"
1433 # It would also be nice to do this for all -L options, not just this one.
1434 if test -n "$x_libraries"; then
1435 X_LIBS="$X_LIBS -L$x_libraries"
1436 # For Solaris; some versions of Sun CC require a space after -R and
1437 # others require no space. Words are not sufficient . . . .
1438 case "`(uname -sr) 2>/dev/null`" in
1440 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1441 echo "configure:1442: checking whether -R must be followed by a space" >&5
1442 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
1443 cat > conftest.$ac_ext <<EOF
1444 #line 1445 "configure"
1445 #include "confdefs.h"
1451 if { (eval echo configure:1452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1455 echo "configure: failed program was:" >&5
1456 cat conftest.$ac_ext >&5
1461 if test $ac_R_nospace = yes; then
1462 echo "$ac_t""no" 1>&6
1463 X_LIBS="$X_LIBS -R$x_libraries"
1465 LIBS="$ac_xsave_LIBS -R $x_libraries"
1466 cat > conftest.$ac_ext <<EOF
1467 #line 1468 "configure"
1468 #include "confdefs.h"
1474 if { (eval echo configure:1475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1478 echo "configure: failed program was:" >&5
1479 cat conftest.$ac_ext >&5
1484 if test $ac_R_space = yes; then
1485 echo "$ac_t""yes" 1>&6
1486 X_LIBS="$X_LIBS -R $x_libraries"
1488 echo "$ac_t""neither works" 1>&6
1491 LIBS="$ac_xsave_LIBS"
1495 # Check for system-dependent libraries X programs must link with.
1496 # Do this before checking for the system-independent R6 libraries
1497 # (-lICE), since we may need -lsocket or whatever for X linking.
1499 if test "$ISC" = yes; then
1500 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
1502 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1503 # libraries were built with DECnet support. And karl@cs.umb.edu says
1504 # the Alpha needs dnet_stub (dnet does not exist).
1505 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1506 echo "configure:1507: checking for dnet_ntoa in -ldnet" >&5
1507 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1508 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1509 echo $ac_n "(cached) $ac_c" 1>&6
1511 ac_save_LIBS="$LIBS"
1513 cat > conftest.$ac_ext <<EOF
1514 #line 1515 "configure"
1515 #include "confdefs.h"
1516 /* Override any gcc2 internal prototype to avoid an error. */
1517 /* We use char because int might match the return type of a gcc2
1518 builtin and then its argument prototype would still apply. */
1525 if { (eval echo configure:1526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1527 eval "ac_cv_lib_$ac_lib_var=yes"
1529 echo "configure: failed program was:" >&5
1530 cat conftest.$ac_ext >&5
1532 eval "ac_cv_lib_$ac_lib_var=no"
1535 LIBS="$ac_save_LIBS"
1538 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1539 echo "$ac_t""yes" 1>&6
1540 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
1542 echo "$ac_t""no" 1>&6
1545 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
1546 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1547 echo "configure:1548: checking for dnet_ntoa in -ldnet_stub" >&5
1548 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1549 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1550 echo $ac_n "(cached) $ac_c" 1>&6
1552 ac_save_LIBS="$LIBS"
1553 LIBS="-ldnet_stub $LIBS"
1554 cat > conftest.$ac_ext <<EOF
1555 #line 1556 "configure"
1556 #include "confdefs.h"
1557 /* Override any gcc2 internal prototype to avoid an error. */
1558 /* We use char because int might match the return type of a gcc2
1559 builtin and then its argument prototype would still apply. */
1566 if { (eval echo configure:1567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1568 eval "ac_cv_lib_$ac_lib_var=yes"
1570 echo "configure: failed program was:" >&5
1571 cat conftest.$ac_ext >&5
1573 eval "ac_cv_lib_$ac_lib_var=no"
1576 LIBS="$ac_save_LIBS"
1579 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1580 echo "$ac_t""yes" 1>&6
1581 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
1583 echo "$ac_t""no" 1>&6
1588 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1589 # to get the SysV transport functions.
1590 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
1592 # The nsl library prevents programs from opening the X display
1593 # on Irix 5.2, according to dickey@clark.net.
1594 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1595 echo "configure:1596: checking for gethostbyname" >&5
1596 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1597 echo $ac_n "(cached) $ac_c" 1>&6
1599 cat > conftest.$ac_ext <<EOF
1600 #line 1601 "configure"
1601 #include "confdefs.h"
1602 /* System header to define __stub macros and hopefully few prototypes,
1603 which can conflict with char gethostbyname(); below. */
1605 /* Override any gcc2 internal prototype to avoid an error. */
1606 /* We use char because int might match the return type of a gcc2
1607 builtin and then its argument prototype would still apply. */
1608 char gethostbyname();
1612 /* The GNU C library defines this for functions which it implements
1613 to always fail with ENOSYS. Some functions are actually named
1614 something starting with __ and the normal name is an alias. */
1615 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1623 if { (eval echo configure:1624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1625 eval "ac_cv_func_gethostbyname=yes"
1627 echo "configure: failed program was:" >&5
1628 cat conftest.$ac_ext >&5
1630 eval "ac_cv_func_gethostbyname=no"
1635 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1636 echo "$ac_t""yes" 1>&6
1639 echo "$ac_t""no" 1>&6
1642 if test $ac_cv_func_gethostbyname = no; then
1643 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1644 echo "configure:1645: checking for gethostbyname in -lnsl" >&5
1645 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1646 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1647 echo $ac_n "(cached) $ac_c" 1>&6
1649 ac_save_LIBS="$LIBS"
1651 cat > conftest.$ac_ext <<EOF
1652 #line 1653 "configure"
1653 #include "confdefs.h"
1654 /* Override any gcc2 internal prototype to avoid an error. */
1655 /* We use char because int might match the return type of a gcc2
1656 builtin and then its argument prototype would still apply. */
1657 char gethostbyname();
1663 if { (eval echo configure:1664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1665 eval "ac_cv_lib_$ac_lib_var=yes"
1667 echo "configure: failed program was:" >&5
1668 cat conftest.$ac_ext >&5
1670 eval "ac_cv_lib_$ac_lib_var=no"
1673 LIBS="$ac_save_LIBS"
1676 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1677 echo "$ac_t""yes" 1>&6
1678 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
1680 echo "$ac_t""no" 1>&6
1685 # lieder@skyler.mavd.honeywell.com says without -lsocket,
1686 # socket/setsockopt and other routines are undefined under SCO ODT
1687 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
1688 # on later versions), says simon@lia.di.epfl.ch: it contains
1689 # gethostby* variants that don't use the nameserver (or something).
1690 # -lsocket must be given before -lnsl if both are needed.
1691 # We assume that if connect needs -lnsl, so does gethostbyname.
1692 echo $ac_n "checking for connect""... $ac_c" 1>&6
1693 echo "configure:1694: checking for connect" >&5
1694 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1695 echo $ac_n "(cached) $ac_c" 1>&6
1697 cat > conftest.$ac_ext <<EOF
1698 #line 1699 "configure"
1699 #include "confdefs.h"
1700 /* System header to define __stub macros and hopefully few prototypes,
1701 which can conflict with char connect(); below. */
1703 /* Override any gcc2 internal prototype to avoid an error. */
1704 /* We use char because int might match the return type of a gcc2
1705 builtin and then its argument prototype would still apply. */
1710 /* The GNU C library defines this for functions which it implements
1711 to always fail with ENOSYS. Some functions are actually named
1712 something starting with __ and the normal name is an alias. */
1713 #if defined (__stub_connect) || defined (__stub___connect)
1721 if { (eval echo configure:1722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1723 eval "ac_cv_func_connect=yes"
1725 echo "configure: failed program was:" >&5
1726 cat conftest.$ac_ext >&5
1728 eval "ac_cv_func_connect=no"
1733 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1734 echo "$ac_t""yes" 1>&6
1737 echo "$ac_t""no" 1>&6
1740 if test $ac_cv_func_connect = no; then
1741 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1742 echo "configure:1743: checking for connect in -lsocket" >&5
1743 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1744 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1745 echo $ac_n "(cached) $ac_c" 1>&6
1747 ac_save_LIBS="$LIBS"
1748 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
1749 cat > conftest.$ac_ext <<EOF
1750 #line 1751 "configure"
1751 #include "confdefs.h"
1752 /* Override any gcc2 internal prototype to avoid an error. */
1753 /* We use char because int might match the return type of a gcc2
1754 builtin and then its argument prototype would still apply. */
1761 if { (eval echo configure:1762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1763 eval "ac_cv_lib_$ac_lib_var=yes"
1765 echo "configure: failed program was:" >&5
1766 cat conftest.$ac_ext >&5
1768 eval "ac_cv_lib_$ac_lib_var=no"
1771 LIBS="$ac_save_LIBS"
1774 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1775 echo "$ac_t""yes" 1>&6
1776 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
1778 echo "$ac_t""no" 1>&6
1783 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
1784 echo $ac_n "checking for remove""... $ac_c" 1>&6
1785 echo "configure:1786: checking for remove" >&5
1786 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
1787 echo $ac_n "(cached) $ac_c" 1>&6
1789 cat > conftest.$ac_ext <<EOF
1790 #line 1791 "configure"
1791 #include "confdefs.h"
1792 /* System header to define __stub macros and hopefully few prototypes,
1793 which can conflict with char remove(); below. */
1795 /* Override any gcc2 internal prototype to avoid an error. */
1796 /* We use char because int might match the return type of a gcc2
1797 builtin and then its argument prototype would still apply. */
1802 /* The GNU C library defines this for functions which it implements
1803 to always fail with ENOSYS. Some functions are actually named
1804 something starting with __ and the normal name is an alias. */
1805 #if defined (__stub_remove) || defined (__stub___remove)
1813 if { (eval echo configure:1814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1815 eval "ac_cv_func_remove=yes"
1817 echo "configure: failed program was:" >&5
1818 cat conftest.$ac_ext >&5
1820 eval "ac_cv_func_remove=no"
1825 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
1826 echo "$ac_t""yes" 1>&6
1829 echo "$ac_t""no" 1>&6
1832 if test $ac_cv_func_remove = no; then
1833 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
1834 echo "configure:1835: checking for remove in -lposix" >&5
1835 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
1836 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1837 echo $ac_n "(cached) $ac_c" 1>&6
1839 ac_save_LIBS="$LIBS"
1840 LIBS="-lposix $LIBS"
1841 cat > conftest.$ac_ext <<EOF
1842 #line 1843 "configure"
1843 #include "confdefs.h"
1844 /* Override any gcc2 internal prototype to avoid an error. */
1845 /* We use char because int might match the return type of a gcc2
1846 builtin and then its argument prototype would still apply. */
1853 if { (eval echo configure:1854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1855 eval "ac_cv_lib_$ac_lib_var=yes"
1857 echo "configure: failed program was:" >&5
1858 cat conftest.$ac_ext >&5
1860 eval "ac_cv_lib_$ac_lib_var=no"
1863 LIBS="$ac_save_LIBS"
1866 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1867 echo "$ac_t""yes" 1>&6
1868 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
1870 echo "$ac_t""no" 1>&6
1875 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
1876 echo $ac_n "checking for shmat""... $ac_c" 1>&6
1877 echo "configure:1878: checking for shmat" >&5
1878 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
1879 echo $ac_n "(cached) $ac_c" 1>&6
1881 cat > conftest.$ac_ext <<EOF
1882 #line 1883 "configure"
1883 #include "confdefs.h"
1884 /* System header to define __stub macros and hopefully few prototypes,
1885 which can conflict with char shmat(); below. */
1887 /* Override any gcc2 internal prototype to avoid an error. */
1888 /* We use char because int might match the return type of a gcc2
1889 builtin and then its argument prototype would still apply. */
1894 /* The GNU C library defines this for functions which it implements
1895 to always fail with ENOSYS. Some functions are actually named
1896 something starting with __ and the normal name is an alias. */
1897 #if defined (__stub_shmat) || defined (__stub___shmat)
1905 if { (eval echo configure:1906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1907 eval "ac_cv_func_shmat=yes"
1909 echo "configure: failed program was:" >&5
1910 cat conftest.$ac_ext >&5
1912 eval "ac_cv_func_shmat=no"
1917 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
1918 echo "$ac_t""yes" 1>&6
1921 echo "$ac_t""no" 1>&6
1924 if test $ac_cv_func_shmat = no; then
1925 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
1926 echo "configure:1927: checking for shmat in -lipc" >&5
1927 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
1928 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1929 echo $ac_n "(cached) $ac_c" 1>&6
1931 ac_save_LIBS="$LIBS"
1933 cat > conftest.$ac_ext <<EOF
1934 #line 1935 "configure"
1935 #include "confdefs.h"
1936 /* Override any gcc2 internal prototype to avoid an error. */
1937 /* We use char because int might match the return type of a gcc2
1938 builtin and then its argument prototype would still apply. */
1945 if { (eval echo configure:1946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1947 eval "ac_cv_lib_$ac_lib_var=yes"
1949 echo "configure: failed program was:" >&5
1950 cat conftest.$ac_ext >&5
1952 eval "ac_cv_lib_$ac_lib_var=no"
1955 LIBS="$ac_save_LIBS"
1958 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1959 echo "$ac_t""yes" 1>&6
1960 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
1962 echo "$ac_t""no" 1>&6
1968 # Check for libraries that X11R6 Xt/Xaw programs need.
1969 ac_save_LDFLAGS="$LDFLAGS"
1970 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
1971 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
1972 # check for ICE first), but we must link in the order -lSM -lICE or
1973 # we get undefined symbols. So assume we have SM if we have ICE.
1974 # These have to be linked with before -lX11, unlike the other
1975 # libraries we check for below, so use a different variable.
1976 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
1977 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
1978 echo "configure:1979: checking for IceConnectionNumber in -lICE" >&5
1979 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
1980 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1981 echo $ac_n "(cached) $ac_c" 1>&6
1983 ac_save_LIBS="$LIBS"
1984 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
1985 cat > conftest.$ac_ext <<EOF
1986 #line 1987 "configure"
1987 #include "confdefs.h"
1988 /* Override any gcc2 internal prototype to avoid an error. */
1989 /* We use char because int might match the return type of a gcc2
1990 builtin and then its argument prototype would still apply. */
1991 char IceConnectionNumber();
1994 IceConnectionNumber()
1997 if { (eval echo configure:1998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1999 eval "ac_cv_lib_$ac_lib_var=yes"
2001 echo "configure: failed program was:" >&5
2002 cat conftest.$ac_ext >&5
2004 eval "ac_cv_lib_$ac_lib_var=no"
2007 LIBS="$ac_save_LIBS"
2010 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2011 echo "$ac_t""yes" 1>&6
2012 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
2014 echo "$ac_t""no" 1>&6
2017 LDFLAGS="$ac_save_LDFLAGS"
2021 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2022 echo "configure:2023: checking for ANSI C header files" >&5
2023 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2024 echo $ac_n "(cached) $ac_c" 1>&6
2026 cat > conftest.$ac_ext <<EOF
2027 #line 2028 "configure"
2028 #include "confdefs.h"
2034 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2035 { (eval echo configure:2036: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2036 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2037 if test -z "$ac_err"; then
2039 ac_cv_header_stdc=yes
2042 echo "configure: failed program was:" >&5
2043 cat conftest.$ac_ext >&5
2045 ac_cv_header_stdc=no
2049 if test $ac_cv_header_stdc = yes; then
2050 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2051 cat > conftest.$ac_ext <<EOF
2052 #line 2053 "configure"
2053 #include "confdefs.h"
2056 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2057 egrep "memchr" >/dev/null 2>&1; then
2061 ac_cv_header_stdc=no
2067 if test $ac_cv_header_stdc = yes; then
2068 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2069 cat > conftest.$ac_ext <<EOF
2070 #line 2071 "configure"
2071 #include "confdefs.h"
2074 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2075 egrep "free" >/dev/null 2>&1; then
2079 ac_cv_header_stdc=no
2085 if test $ac_cv_header_stdc = yes; then
2086 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2087 if test "$cross_compiling" = yes; then
2090 cat > conftest.$ac_ext <<EOF
2091 #line 2092 "configure"
2092 #include "confdefs.h"
2094 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2095 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2096 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2097 int main () { int i; for (i = 0; i < 256; i++)
2098 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2102 if { (eval echo configure:2103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2106 echo "configure: failed program was:" >&5
2107 cat conftest.$ac_ext >&5
2109 ac_cv_header_stdc=no
2117 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2118 if test $ac_cv_header_stdc = yes; then
2119 cat >> confdefs.h <<\EOF
2120 #define STDC_HEADERS 1
2125 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2126 echo "configure:2127: checking for sys/wait.h that is POSIX.1 compatible" >&5
2127 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2128 echo $ac_n "(cached) $ac_c" 1>&6
2130 cat > conftest.$ac_ext <<EOF
2131 #line 2132 "configure"
2132 #include "confdefs.h"
2133 #include <sys/types.h>
2134 #include <sys/wait.h>
2136 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2139 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2144 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2147 if { (eval echo configure:2148: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2149 ac_cv_header_sys_wait_h=yes
2151 echo "configure: failed program was:" >&5
2152 cat conftest.$ac_ext >&5
2154 ac_cv_header_sys_wait_h=no
2159 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2160 if test $ac_cv_header_sys_wait_h = yes; then
2161 cat >> confdefs.h <<\EOF
2162 #define HAVE_SYS_WAIT_H 1
2167 for ac_hdr in fcntl.h paths.h termios.h sgtty.h unistd.h malloc.h
2169 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2170 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2171 echo "configure:2172: checking for $ac_hdr" >&5
2172 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2173 echo $ac_n "(cached) $ac_c" 1>&6
2175 cat > conftest.$ac_ext <<EOF
2176 #line 2177 "configure"
2177 #include "confdefs.h"
2180 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2181 { (eval echo configure:2182: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2182 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2183 if test -z "$ac_err"; then
2185 eval "ac_cv_header_$ac_safe=yes"
2188 echo "configure: failed program was:" >&5
2189 cat conftest.$ac_ext >&5
2191 eval "ac_cv_header_$ac_safe=no"
2195 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2196 echo "$ac_t""yes" 1>&6
2197 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2198 cat >> confdefs.h <<EOF
2199 #define $ac_tr_hdr 1
2203 echo "$ac_t""no" 1>&6
2207 for ac_hdr in sys/filio.h sys/ioctl.h sys/time.h sys/file.h sys/utsname.h
2209 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2210 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2211 echo "configure:2212: checking for $ac_hdr" >&5
2212 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2213 echo $ac_n "(cached) $ac_c" 1>&6
2215 cat > conftest.$ac_ext <<EOF
2216 #line 2217 "configure"
2217 #include "confdefs.h"
2220 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2221 { (eval echo configure:2222: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2222 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2223 if test -z "$ac_err"; then
2225 eval "ac_cv_header_$ac_safe=yes"
2228 echo "configure: failed program was:" >&5
2229 cat conftest.$ac_ext >&5
2231 eval "ac_cv_header_$ac_safe=no"
2235 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2236 echo "$ac_t""yes" 1>&6
2237 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2238 cat >> confdefs.h <<EOF
2239 #define $ac_tr_hdr 1
2243 echo "$ac_t""no" 1>&6
2247 for ac_hdr in sys/select.h sys/msgbuf.h sys/cdefs.h krb5_err.h
2249 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2250 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2251 echo "configure:2252: checking for $ac_hdr" >&5
2252 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2253 echo $ac_n "(cached) $ac_c" 1>&6
2255 cat > conftest.$ac_ext <<EOF
2256 #line 2257 "configure"
2257 #include "confdefs.h"
2260 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2261 { (eval echo configure:2262: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2262 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2263 if test -z "$ac_err"; then
2265 eval "ac_cv_header_$ac_safe=yes"
2268 echo "configure: failed program was:" >&5
2269 cat conftest.$ac_ext >&5
2271 eval "ac_cv_header_$ac_safe=no"
2275 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2276 echo "$ac_t""yes" 1>&6
2277 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2278 cat >> confdefs.h <<EOF
2279 #define $ac_tr_hdr 1
2283 echo "$ac_t""no" 1>&6
2288 if test "$no_x" != "yes"; then
2295 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2296 echo "configure:2297: checking return type of signal handlers" >&5
2297 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2298 echo $ac_n "(cached) $ac_c" 1>&6
2300 cat > conftest.$ac_ext <<EOF
2301 #line 2302 "configure"
2302 #include "confdefs.h"
2303 #include <sys/types.h>
2309 extern "C" void (*signal (int, void (*)(int)))(int);
2311 void (*signal ()) ();
2318 if { (eval echo configure:2319: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2320 ac_cv_type_signal=void
2322 echo "configure: failed program was:" >&5
2323 cat conftest.$ac_ext >&5
2325 ac_cv_type_signal=int
2330 echo "$ac_t""$ac_cv_type_signal" 1>&6
2331 cat >> confdefs.h <<EOF
2332 #define RETSIGTYPE $ac_cv_type_signal
2336 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2337 echo "configure:2338: checking for uid_t in sys/types.h" >&5
2338 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2339 echo $ac_n "(cached) $ac_c" 1>&6
2341 cat > conftest.$ac_ext <<EOF
2342 #line 2343 "configure"
2343 #include "confdefs.h"
2344 #include <sys/types.h>
2346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2347 egrep "uid_t" >/dev/null 2>&1; then
2349 ac_cv_type_uid_t=yes
2358 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2359 if test $ac_cv_type_uid_t = no; then
2360 cat >> confdefs.h <<\EOF
2364 cat >> confdefs.h <<\EOF
2370 echo $ac_n "checking size of short""... $ac_c" 1>&6
2371 echo "configure:2372: checking size of short" >&5
2372 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2373 echo $ac_n "(cached) $ac_c" 1>&6
2375 if test "$cross_compiling" = yes; then
2376 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2378 cat > conftest.$ac_ext <<EOF
2379 #line 2380 "configure"
2380 #include "confdefs.h"
2382 #include <sys/types.h>
2385 FILE *f=fopen("conftestval", "w");
2387 fprintf(f, "%d\n", sizeof(short));
2391 if { (eval echo configure:2392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2393 ac_cv_sizeof_short=`cat conftestval`
2395 echo "configure: failed program was:" >&5
2396 cat conftest.$ac_ext >&5
2398 ac_cv_sizeof_short=0
2404 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2405 cat >> confdefs.h <<EOF
2406 #define SIZEOF_SHORT $ac_cv_sizeof_short
2410 echo $ac_n "checking size of int""... $ac_c" 1>&6
2411 echo "configure:2412: checking size of int" >&5
2412 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2413 echo $ac_n "(cached) $ac_c" 1>&6
2415 if test "$cross_compiling" = yes; then
2416 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2418 cat > conftest.$ac_ext <<EOF
2419 #line 2420 "configure"
2420 #include "confdefs.h"
2422 #include <sys/types.h>
2425 FILE *f=fopen("conftestval", "w");
2427 fprintf(f, "%d\n", sizeof(int));
2431 if { (eval echo configure:2432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2433 ac_cv_sizeof_int=`cat conftestval`
2435 echo "configure: failed program was:" >&5
2436 cat conftest.$ac_ext >&5
2444 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2445 cat >> confdefs.h <<EOF
2446 #define SIZEOF_INT $ac_cv_sizeof_int
2450 echo $ac_n "checking size of long""... $ac_c" 1>&6
2451 echo "configure:2452: checking size of long" >&5
2452 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2453 echo $ac_n "(cached) $ac_c" 1>&6
2455 if test "$cross_compiling" = yes; then
2456 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2458 cat > conftest.$ac_ext <<EOF
2459 #line 2460 "configure"
2460 #include "confdefs.h"
2462 #include <sys/types.h>
2465 FILE *f=fopen("conftestval", "w");
2467 fprintf(f, "%d\n", sizeof(long));
2471 if { (eval echo configure:2472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2473 ac_cv_sizeof_long=`cat conftestval`
2475 echo "configure: failed program was:" >&5
2476 cat conftest.$ac_ext >&5
2484 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2485 cat >> confdefs.h <<EOF
2486 #define SIZEOF_LONG $ac_cv_sizeof_long
2490 echo $ac_n "checking for 32-bit integer type""... $ac_c" 1>&6
2491 echo "configure:2492: checking for 32-bit integer type" >&5
2492 if test "$ac_cv_sizeof_long" = 4; then
2494 elif test "$ac_cv_sizeof_int" = 4; then
2496 elif test "$ac_cv_sizeof_short" = 4; then
2499 echo "configure: warning: Can't find 32-bit type, using long" 1>&2
2502 cat >> confdefs.h <<EOF
2503 #define ZEPHYR_INT32 ${int32}
2506 echo "$ac_t""${int32}" 1>&6
2508 echo $ac_n "checking for wslen in -lw""... $ac_c" 1>&6
2509 echo "configure:2510: checking for wslen in -lw" >&5
2510 ac_lib_var=`echo w'_'wslen | sed 'y%./+-%__p_%'`
2511 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2512 echo $ac_n "(cached) $ac_c" 1>&6
2514 ac_save_LIBS="$LIBS"
2516 cat > conftest.$ac_ext <<EOF
2517 #line 2518 "configure"
2518 #include "confdefs.h"
2519 /* Override any gcc2 internal prototype to avoid an error. */
2520 /* We use char because int might match the return type of a gcc2
2521 builtin and then its argument prototype would still apply. */
2528 if { (eval echo configure:2529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2530 eval "ac_cv_lib_$ac_lib_var=yes"
2532 echo "configure: failed program was:" >&5
2533 cat conftest.$ac_ext >&5
2535 eval "ac_cv_lib_$ac_lib_var=no"
2538 LIBS="$ac_save_LIBS"
2541 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2542 echo "$ac_t""yes" 1>&6
2543 ac_tr_lib=HAVE_LIB`echo w | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2544 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2545 cat >> confdefs.h <<EOF
2546 #define $ac_tr_lib 1
2552 echo "$ac_t""no" 1>&6
2555 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2556 echo "configure:2557: checking for dlopen in -ldl" >&5
2557 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2558 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2559 echo $ac_n "(cached) $ac_c" 1>&6
2561 ac_save_LIBS="$LIBS"
2563 cat > conftest.$ac_ext <<EOF
2564 #line 2565 "configure"
2565 #include "confdefs.h"
2566 /* Override any gcc2 internal prototype to avoid an error. */
2567 /* We use char because int might match the return type of a gcc2
2568 builtin and then its argument prototype would still apply. */
2575 if { (eval echo configure:2576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2577 eval "ac_cv_lib_$ac_lib_var=yes"
2579 echo "configure: failed program was:" >&5
2580 cat conftest.$ac_ext >&5
2582 eval "ac_cv_lib_$ac_lib_var=no"
2585 LIBS="$ac_save_LIBS"
2588 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2589 echo "$ac_t""yes" 1>&6
2590 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2591 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2592 cat >> confdefs.h <<EOF
2593 #define $ac_tr_lib 1
2599 echo "$ac_t""no" 1>&6
2604 echo $ac_n "checking for library containing gethostbyname""... $ac_c" 1>&6
2605 echo "configure:2606: checking for library containing gethostbyname" >&5
2606 if eval "test \"`echo '$''{'ac_cv_search_gethostbyname'+set}'`\" = set"; then
2607 echo $ac_n "(cached) $ac_c" 1>&6
2609 ac_func_search_save_LIBS="$LIBS"
2610 ac_cv_search_gethostbyname="no"
2611 cat > conftest.$ac_ext <<EOF
2612 #line 2613 "configure"
2613 #include "confdefs.h"
2614 /* Override any gcc2 internal prototype to avoid an error. */
2615 /* We use char because int might match the return type of a gcc2
2616 builtin and then its argument prototype would still apply. */
2617 char gethostbyname();
2623 if { (eval echo configure:2624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2625 ac_cv_search_gethostbyname="none required"
2627 echo "configure: failed program was:" >&5
2628 cat conftest.$ac_ext >&5
2631 test "$ac_cv_search_gethostbyname" = "no" && for i in nsl; do
2632 LIBS="-l$i $ac_func_search_save_LIBS"
2633 cat > conftest.$ac_ext <<EOF
2634 #line 2635 "configure"
2635 #include "confdefs.h"
2636 /* Override any gcc2 internal prototype to avoid an error. */
2637 /* We use char because int might match the return type of a gcc2
2638 builtin and then its argument prototype would still apply. */
2639 char gethostbyname();
2645 if { (eval echo configure:2646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2647 ac_cv_search_gethostbyname="-l$i"
2650 echo "configure: failed program was:" >&5
2651 cat conftest.$ac_ext >&5
2655 LIBS="$ac_func_search_save_LIBS"
2658 echo "$ac_t""$ac_cv_search_gethostbyname" 1>&6
2659 if test "$ac_cv_search_gethostbyname" != "no"; then
2660 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
2666 echo $ac_n "checking for library containing socket""... $ac_c" 1>&6
2667 echo "configure:2668: checking for library containing socket" >&5
2668 if eval "test \"`echo '$''{'ac_cv_search_socket'+set}'`\" = set"; then
2669 echo $ac_n "(cached) $ac_c" 1>&6
2671 ac_func_search_save_LIBS="$LIBS"
2672 ac_cv_search_socket="no"
2673 cat > conftest.$ac_ext <<EOF
2674 #line 2675 "configure"
2675 #include "confdefs.h"
2676 /* Override any gcc2 internal prototype to avoid an error. */
2677 /* We use char because int might match the return type of a gcc2
2678 builtin and then its argument prototype would still apply. */
2685 if { (eval echo configure:2686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2687 ac_cv_search_socket="none required"
2689 echo "configure: failed program was:" >&5
2690 cat conftest.$ac_ext >&5
2693 test "$ac_cv_search_socket" = "no" && for i in socket; do
2694 LIBS="-l$i $ac_func_search_save_LIBS"
2695 cat > conftest.$ac_ext <<EOF
2696 #line 2697 "configure"
2697 #include "confdefs.h"
2698 /* Override any gcc2 internal prototype to avoid an error. */
2699 /* We use char because int might match the return type of a gcc2
2700 builtin and then its argument prototype would still apply. */
2707 if { (eval echo configure:2708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2709 ac_cv_search_socket="-l$i"
2712 echo "configure: failed program was:" >&5
2713 cat conftest.$ac_ext >&5
2717 LIBS="$ac_func_search_save_LIBS"
2720 echo "$ac_t""$ac_cv_search_socket" 1>&6
2721 if test "$ac_cv_search_socket" != "no"; then
2722 test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS"
2728 # Hesiod needs -lresolv on Sun systems for res_send.
2729 if test "$hesiod" != "no"; then
2730 echo $ac_n "checking for strerror in -l44bsd""... $ac_c" 1>&6
2731 echo "configure:2732: checking for strerror in -l44bsd" >&5
2732 ac_lib_var=`echo 44bsd'_'strerror | sed 'y%./+-%__p_%'`
2733 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2734 echo $ac_n "(cached) $ac_c" 1>&6
2736 ac_save_LIBS="$LIBS"
2737 LIBS="-l44bsd $LIBS"
2738 cat > conftest.$ac_ext <<EOF
2739 #line 2740 "configure"
2740 #include "confdefs.h"
2741 /* Override any gcc2 internal prototype to avoid an error. */
2742 /* We use char because int might match the return type of a gcc2
2743 builtin and then its argument prototype would still apply. */
2750 if { (eval echo configure:2751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2752 eval "ac_cv_lib_$ac_lib_var=yes"
2754 echo "configure: failed program was:" >&5
2755 cat conftest.$ac_ext >&5
2757 eval "ac_cv_lib_$ac_lib_var=no"
2760 LIBS="$ac_save_LIBS"
2763 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2764 echo "$ac_t""yes" 1>&6
2765 ac_tr_lib=HAVE_LIB`echo 44bsd | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2766 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2767 cat >> confdefs.h <<EOF
2768 #define $ac_tr_lib 1
2771 LIBS="-l44bsd $LIBS"
2774 echo "$ac_t""no" 1>&6
2777 echo $ac_n "checking for res_send in -lresolv""... $ac_c" 1>&6
2778 echo "configure:2779: checking for res_send in -lresolv" >&5
2779 ac_lib_var=`echo resolv'_'res_send | sed 'y%./+-%__p_%'`
2780 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2781 echo $ac_n "(cached) $ac_c" 1>&6
2783 ac_save_LIBS="$LIBS"
2784 LIBS="-lresolv $LIBS"
2785 cat > conftest.$ac_ext <<EOF
2786 #line 2787 "configure"
2787 #include "confdefs.h"
2788 /* Override any gcc2 internal prototype to avoid an error. */
2789 /* We use char because int might match the return type of a gcc2
2790 builtin and then its argument prototype would still apply. */
2797 if { (eval echo configure:2798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2799 eval "ac_cv_lib_$ac_lib_var=yes"
2801 echo "configure: failed program was:" >&5
2802 cat conftest.$ac_ext >&5
2804 eval "ac_cv_lib_$ac_lib_var=no"
2807 LIBS="$ac_save_LIBS"
2810 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2811 echo "$ac_t""yes" 1>&6
2812 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2813 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2814 cat >> confdefs.h <<EOF
2815 #define $ac_tr_lib 1
2818 LIBS="-lresolv $LIBS"
2821 echo "$ac_t""no" 1>&6
2824 echo $ac_n "checking for __res_send in -lresolv""... $ac_c" 1>&6
2825 echo "configure:2826: checking for __res_send in -lresolv" >&5
2826 ac_lib_var=`echo resolv'_'__res_send | sed 'y%./+-%__p_%'`
2827 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2828 echo $ac_n "(cached) $ac_c" 1>&6
2830 ac_save_LIBS="$LIBS"
2831 LIBS="-lresolv $LIBS"
2832 cat > conftest.$ac_ext <<EOF
2833 #line 2834 "configure"
2834 #include "confdefs.h"
2835 /* Override any gcc2 internal prototype to avoid an error. */
2836 /* We use char because int might match the return type of a gcc2
2837 builtin and then its argument prototype would still apply. */
2844 if { (eval echo configure:2845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2846 eval "ac_cv_lib_$ac_lib_var=yes"
2848 echo "configure: failed program was:" >&5
2849 cat conftest.$ac_ext >&5
2851 eval "ac_cv_lib_$ac_lib_var=no"
2854 LIBS="$ac_save_LIBS"
2857 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2858 echo "$ac_t""yes" 1>&6
2859 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2860 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2861 cat >> confdefs.h <<EOF
2862 #define $ac_tr_lib 1
2865 LIBS="-lresolv $LIBS"
2868 echo "$ac_t""no" 1>&6
2873 echo $ac_n "checking for tgetstr in -lcurses""... $ac_c" 1>&6
2874 echo "configure:2875: checking for tgetstr in -lcurses" >&5
2875 ac_lib_var=`echo curses'_'tgetstr | sed 'y%./+-%__p_%'`
2876 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2877 echo $ac_n "(cached) $ac_c" 1>&6
2879 ac_save_LIBS="$LIBS"
2880 LIBS="-lcurses $LIBS"
2881 cat > conftest.$ac_ext <<EOF
2882 #line 2883 "configure"
2883 #include "confdefs.h"
2884 /* Override any gcc2 internal prototype to avoid an error. */
2885 /* We use char because int might match the return type of a gcc2
2886 builtin and then its argument prototype would still apply. */
2893 if { (eval echo configure:2894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2895 eval "ac_cv_lib_$ac_lib_var=yes"
2897 echo "configure: failed program was:" >&5
2898 cat conftest.$ac_ext >&5
2900 eval "ac_cv_lib_$ac_lib_var=no"
2903 LIBS="$ac_save_LIBS"
2906 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2907 echo "$ac_t""yes" 1>&6
2910 echo "$ac_t""no" 1>&6
2914 echo $ac_n "checking for srcsrpy in -lsrc""... $ac_c" 1>&6
2915 echo "configure:2916: checking for srcsrpy in -lsrc" >&5
2916 ac_lib_var=`echo src'_'srcsrpy | sed 'y%./+-%__p_%'`
2917 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2918 echo $ac_n "(cached) $ac_c" 1>&6
2920 ac_save_LIBS="$LIBS"
2922 cat > conftest.$ac_ext <<EOF
2923 #line 2924 "configure"
2924 #include "confdefs.h"
2925 /* Override any gcc2 internal prototype to avoid an error. */
2926 /* We use char because int might match the return type of a gcc2
2927 builtin and then its argument prototype would still apply. */
2934 if { (eval echo configure:2935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2936 eval "ac_cv_lib_$ac_lib_var=yes"
2938 echo "configure: failed program was:" >&5
2939 cat conftest.$ac_ext >&5
2941 eval "ac_cv_lib_$ac_lib_var=no"
2944 LIBS="$ac_save_LIBS"
2947 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2948 echo "$ac_t""yes" 1>&6
2949 SLIB=-lsrc; cat >> confdefs.h <<\EOF
2954 echo "$ac_t""no" 1>&6
2961 # Check whether --with-krb4 or --without-krb4 was given.
2962 if test "${with_krb4+set}" = set; then
2963 withval="$with_krb4"
2969 if test "$krb4" != no; then
2970 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
2971 echo "configure:2972: checking for gethostbyname" >&5
2972 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
2973 echo $ac_n "(cached) $ac_c" 1>&6
2975 cat > conftest.$ac_ext <<EOF
2976 #line 2977 "configure"
2977 #include "confdefs.h"
2978 /* System header to define __stub macros and hopefully few prototypes,
2979 which can conflict with char gethostbyname(); below. */
2981 /* Override any gcc2 internal prototype to avoid an error. */
2982 /* We use char because int might match the return type of a gcc2
2983 builtin and then its argument prototype would still apply. */
2984 char gethostbyname();
2988 /* The GNU C library defines this for functions which it implements
2989 to always fail with ENOSYS. Some functions are actually named
2990 something starting with __ and the normal name is an alias. */
2991 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2999 if { (eval echo configure:3000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3001 eval "ac_cv_func_gethostbyname=yes"
3003 echo "configure: failed program was:" >&5
3004 cat conftest.$ac_ext >&5
3006 eval "ac_cv_func_gethostbyname=no"
3011 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3012 echo "$ac_t""yes" 1>&6
3015 echo "$ac_t""no" 1>&6
3016 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3017 echo "configure:3018: checking for gethostbyname in -lnsl" >&5
3018 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3019 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3020 echo $ac_n "(cached) $ac_c" 1>&6
3022 ac_save_LIBS="$LIBS"
3024 cat > conftest.$ac_ext <<EOF
3025 #line 3026 "configure"
3026 #include "confdefs.h"
3027 /* Override any gcc2 internal prototype to avoid an error. */
3028 /* We use char because int might match the return type of a gcc2
3029 builtin and then its argument prototype would still apply. */
3030 char gethostbyname();
3036 if { (eval echo configure:3037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3038 eval "ac_cv_lib_$ac_lib_var=yes"
3040 echo "configure: failed program was:" >&5
3041 cat conftest.$ac_ext >&5
3043 eval "ac_cv_lib_$ac_lib_var=no"
3046 LIBS="$ac_save_LIBS"
3049 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3050 echo "$ac_t""yes" 1>&6
3051 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
3052 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3053 cat >> confdefs.h <<EOF
3054 #define $ac_tr_lib 1
3060 echo "$ac_t""no" 1>&6
3065 echo $ac_n "checking for socket""... $ac_c" 1>&6
3066 echo "configure:3067: checking for socket" >&5
3067 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
3068 echo $ac_n "(cached) $ac_c" 1>&6
3070 cat > conftest.$ac_ext <<EOF
3071 #line 3072 "configure"
3072 #include "confdefs.h"
3073 /* System header to define __stub macros and hopefully few prototypes,
3074 which can conflict with char socket(); below. */
3076 /* Override any gcc2 internal prototype to avoid an error. */
3077 /* We use char because int might match the return type of a gcc2
3078 builtin and then its argument prototype would still apply. */
3083 /* The GNU C library defines this for functions which it implements
3084 to always fail with ENOSYS. Some functions are actually named
3085 something starting with __ and the normal name is an alias. */
3086 #if defined (__stub_socket) || defined (__stub___socket)
3094 if { (eval echo configure:3095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3096 eval "ac_cv_func_socket=yes"
3098 echo "configure: failed program was:" >&5
3099 cat conftest.$ac_ext >&5
3101 eval "ac_cv_func_socket=no"
3106 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
3107 echo "$ac_t""yes" 1>&6
3110 echo "$ac_t""no" 1>&6
3111 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
3112 echo "configure:3113: checking for socket in -lsocket" >&5
3113 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
3114 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3115 echo $ac_n "(cached) $ac_c" 1>&6
3117 ac_save_LIBS="$LIBS"
3118 LIBS="-lsocket $LIBS"
3119 cat > conftest.$ac_ext <<EOF
3120 #line 3121 "configure"
3121 #include "confdefs.h"
3122 /* Override any gcc2 internal prototype to avoid an error. */
3123 /* We use char because int might match the return type of a gcc2
3124 builtin and then its argument prototype would still apply. */
3131 if { (eval echo configure:3132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3133 eval "ac_cv_lib_$ac_lib_var=yes"
3135 echo "configure: failed program was:" >&5
3136 cat conftest.$ac_ext >&5
3138 eval "ac_cv_lib_$ac_lib_var=no"
3141 LIBS="$ac_save_LIBS"
3144 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3145 echo "$ac_t""yes" 1>&6
3146 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
3147 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3148 cat >> confdefs.h <<EOF
3149 #define $ac_tr_lib 1
3152 LIBS="-lsocket $LIBS"
3155 echo "$ac_t""no" 1>&6
3160 echo $ac_n "checking for compile in -lgen""... $ac_c" 1>&6
3161 echo "configure:3162: checking for compile in -lgen" >&5
3162 ac_lib_var=`echo gen'_'compile | sed 'y%./+-%__p_%'`
3163 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3164 echo $ac_n "(cached) $ac_c" 1>&6
3166 ac_save_LIBS="$LIBS"
3168 cat > conftest.$ac_ext <<EOF
3169 #line 3170 "configure"
3170 #include "confdefs.h"
3171 /* Override any gcc2 internal prototype to avoid an error. */
3172 /* We use char because int might match the return type of a gcc2
3173 builtin and then its argument prototype would still apply. */
3180 if { (eval echo configure:3181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3182 eval "ac_cv_lib_$ac_lib_var=yes"
3184 echo "configure: failed program was:" >&5
3185 cat conftest.$ac_ext >&5
3187 eval "ac_cv_lib_$ac_lib_var=no"
3190 LIBS="$ac_save_LIBS"
3193 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3194 echo "$ac_t""yes" 1>&6
3195 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3196 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3197 cat >> confdefs.h <<EOF
3198 #define $ac_tr_lib 1
3204 echo "$ac_t""no" 1>&6
3207 if test "$krb4" != yes; then
3208 CPPFLAGS="$CPPFLAGS -I$krb4/include"
3209 if test -d "$krb4/include/kerberosIV"; then
3210 CPPFLAGS="$CPPFLAGS -I$krb4/include/kerberosIV"
3212 LDFLAGS="$LDFLAGS -L$krb4/lib"
3214 echo $ac_n "checking for krb_rd_req in -lkrb4""... $ac_c" 1>&6
3215 echo "configure:3216: checking for krb_rd_req in -lkrb4" >&5
3216 ac_lib_var=`echo krb4'_'krb_rd_req | sed 'y%./+-%__p_%'`
3217 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3218 echo $ac_n "(cached) $ac_c" 1>&6
3220 ac_save_LIBS="$LIBS"
3221 LIBS="-lkrb4 -ldes425 -lkrb5 -lk5crypto -lcom_err $LIBS"
3222 cat > conftest.$ac_ext <<EOF
3223 #line 3224 "configure"
3224 #include "confdefs.h"
3225 /* Override any gcc2 internal prototype to avoid an error. */
3226 /* We use char because int might match the return type of a gcc2
3227 builtin and then its argument prototype would still apply. */
3234 if { (eval echo configure:3235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3236 eval "ac_cv_lib_$ac_lib_var=yes"
3238 echo "configure: failed program was:" >&5
3239 cat conftest.$ac_ext >&5
3241 eval "ac_cv_lib_$ac_lib_var=no"
3244 LIBS="$ac_save_LIBS"
3247 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3248 echo "$ac_t""yes" 1>&6
3249 KRB4_LIBS="-lkrb4 -ldes425 -lkrb5 -lk5crypto -lcom_err"
3251 echo "$ac_t""no" 1>&6
3252 echo $ac_n "checking for krb_rd_req in -lkrb""... $ac_c" 1>&6
3253 echo "configure:3254: checking for krb_rd_req in -lkrb" >&5
3254 ac_lib_var=`echo krb'_'krb_rd_req | sed 'y%./+-%__p_%'`
3255 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3256 echo $ac_n "(cached) $ac_c" 1>&6
3258 ac_save_LIBS="$LIBS"
3259 LIBS="-lkrb -ldes $LIBS"
3260 cat > conftest.$ac_ext <<EOF
3261 #line 3262 "configure"
3262 #include "confdefs.h"
3263 /* Override any gcc2 internal prototype to avoid an error. */
3264 /* We use char because int might match the return type of a gcc2
3265 builtin and then its argument prototype would still apply. */
3272 if { (eval echo configure:3273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3274 eval "ac_cv_lib_$ac_lib_var=yes"
3276 echo "configure: failed program was:" >&5
3277 cat conftest.$ac_ext >&5
3279 eval "ac_cv_lib_$ac_lib_var=no"
3282 LIBS="$ac_save_LIBS"
3285 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3286 echo "$ac_t""yes" 1>&6
3287 KRB4_LIBS="-lkrb -ldes"
3289 echo "$ac_t""no" 1>&6
3290 { echo "configure: error: Kerberos 4 libraries not found" 1>&2; exit 1; }
3295 cat >> confdefs.h <<\EOF
3301 # Check whether --with-krb5 or --without-krb5 was given.
3302 if test "${with_krb5+set}" = set; then
3303 withval="$with_krb5"
3309 if test "$krb5" != no; then
3311 echo $ac_n "checking for library containing gethostbyname""... $ac_c" 1>&6
3312 echo "configure:3313: checking for library containing gethostbyname" >&5
3313 if eval "test \"`echo '$''{'ac_cv_search_gethostbyname'+set}'`\" = set"; then
3314 echo $ac_n "(cached) $ac_c" 1>&6
3316 ac_func_search_save_LIBS="$LIBS"
3317 ac_cv_search_gethostbyname="no"
3318 cat > conftest.$ac_ext <<EOF
3319 #line 3320 "configure"
3320 #include "confdefs.h"
3321 /* Override any gcc2 internal prototype to avoid an error. */
3322 /* We use char because int might match the return type of a gcc2
3323 builtin and then its argument prototype would still apply. */
3324 char gethostbyname();
3330 if { (eval echo configure:3331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3332 ac_cv_search_gethostbyname="none required"
3334 echo "configure: failed program was:" >&5
3335 cat conftest.$ac_ext >&5
3338 test "$ac_cv_search_gethostbyname" = "no" && for i in nsl; do
3339 LIBS="-l$i $ac_func_search_save_LIBS"
3340 cat > conftest.$ac_ext <<EOF
3341 #line 3342 "configure"
3342 #include "confdefs.h"
3343 /* Override any gcc2 internal prototype to avoid an error. */
3344 /* We use char because int might match the return type of a gcc2
3345 builtin and then its argument prototype would still apply. */
3346 char gethostbyname();
3352 if { (eval echo configure:3353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3354 ac_cv_search_gethostbyname="-l$i"
3357 echo "configure: failed program was:" >&5
3358 cat conftest.$ac_ext >&5
3362 LIBS="$ac_func_search_save_LIBS"
3365 echo "$ac_t""$ac_cv_search_gethostbyname" 1>&6
3366 if test "$ac_cv_search_gethostbyname" != "no"; then
3367 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
3373 echo $ac_n "checking for library containing socket""... $ac_c" 1>&6
3374 echo "configure:3375: checking for library containing socket" >&5
3375 if eval "test \"`echo '$''{'ac_cv_search_socket'+set}'`\" = set"; then
3376 echo $ac_n "(cached) $ac_c" 1>&6
3378 ac_func_search_save_LIBS="$LIBS"
3379 ac_cv_search_socket="no"
3380 cat > conftest.$ac_ext <<EOF
3381 #line 3382 "configure"
3382 #include "confdefs.h"
3383 /* Override any gcc2 internal prototype to avoid an error. */
3384 /* We use char because int might match the return type of a gcc2
3385 builtin and then its argument prototype would still apply. */
3392 if { (eval echo configure:3393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3394 ac_cv_search_socket="none required"
3396 echo "configure: failed program was:" >&5
3397 cat conftest.$ac_ext >&5
3400 test "$ac_cv_search_socket" = "no" && for i in socket; do
3401 LIBS="-l$i $ac_func_search_save_LIBS"
3402 cat > conftest.$ac_ext <<EOF
3403 #line 3404 "configure"
3404 #include "confdefs.h"
3405 /* Override any gcc2 internal prototype to avoid an error. */
3406 /* We use char because int might match the return type of a gcc2
3407 builtin and then its argument prototype would still apply. */
3414 if { (eval echo configure:3415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3416 ac_cv_search_socket="-l$i"
3419 echo "configure: failed program was:" >&5
3420 cat conftest.$ac_ext >&5
3424 LIBS="$ac_func_search_save_LIBS"
3427 echo "$ac_t""$ac_cv_search_socket" 1>&6
3428 if test "$ac_cv_search_socket" != "no"; then
3429 test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS"
3434 echo $ac_n "checking for compile in -lgen""... $ac_c" 1>&6
3435 echo "configure:3436: checking for compile in -lgen" >&5
3436 ac_lib_var=`echo gen'_'compile | sed 'y%./+-%__p_%'`
3437 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3438 echo $ac_n "(cached) $ac_c" 1>&6
3440 ac_save_LIBS="$LIBS"
3442 cat > conftest.$ac_ext <<EOF
3443 #line 3444 "configure"
3444 #include "confdefs.h"
3445 /* Override any gcc2 internal prototype to avoid an error. */
3446 /* We use char because int might match the return type of a gcc2
3447 builtin and then its argument prototype would still apply. */
3454 if { (eval echo configure:3455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3456 eval "ac_cv_lib_$ac_lib_var=yes"
3458 echo "configure: failed program was:" >&5
3459 cat conftest.$ac_ext >&5
3461 eval "ac_cv_lib_$ac_lib_var=no"
3464 LIBS="$ac_save_LIBS"
3467 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3468 echo "$ac_t""yes" 1>&6
3469 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3470 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3471 cat >> confdefs.h <<EOF
3472 #define $ac_tr_lib 1
3478 echo "$ac_t""no" 1>&6
3481 if test "$krb5" != yes; then
3482 CPPFLAGS="$CPPFLAGS -I$krb5/include"
3483 LDFLAGS="$LDFLAGS -L$krb5/lib"
3485 echo $ac_n "checking for krb5_init_context in -lkrb5""... $ac_c" 1>&6
3486 echo "configure:3487: checking for krb5_init_context in -lkrb5" >&5
3487 ac_lib_var=`echo krb5'_'krb5_init_context | sed 'y%./+-%__p_%'`
3488 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3489 echo $ac_n "(cached) $ac_c" 1>&6
3491 ac_save_LIBS="$LIBS"
3492 LIBS="-lkrb5 -lk5crypto -lcom_err $LIBS"
3493 cat > conftest.$ac_ext <<EOF
3494 #line 3495 "configure"
3495 #include "confdefs.h"
3496 /* Override any gcc2 internal prototype to avoid an error. */
3497 /* We use char because int might match the return type of a gcc2
3498 builtin and then its argument prototype would still apply. */
3499 char krb5_init_context();
3505 if { (eval echo configure:3506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3507 eval "ac_cv_lib_$ac_lib_var=yes"
3509 echo "configure: failed program was:" >&5
3510 cat conftest.$ac_ext >&5
3512 eval "ac_cv_lib_$ac_lib_var=no"
3515 LIBS="$ac_save_LIBS"
3518 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3519 echo "$ac_t""yes" 1>&6
3522 echo "$ac_t""no" 1>&6
3523 { echo "configure: error: Kerberos 5 libraries not found" 1>&2; exit 1; }
3526 KRB5_LIBS="-lkrb5 -lk5crypto -lcom_err"
3527 cat >> confdefs.h <<\EOF
3533 # Check whether --with-hesiod or --without-hesiod was given.
3534 if test "${with_hesiod+set}" = set; then
3535 withval="$with_hesiod"
3541 if test "$hesiod" != no; then
3542 echo $ac_n "checking for res_send""... $ac_c" 1>&6
3543 echo "configure:3544: checking for res_send" >&5
3544 if eval "test \"`echo '$''{'ac_cv_func_res_send'+set}'`\" = set"; then
3545 echo $ac_n "(cached) $ac_c" 1>&6
3547 cat > conftest.$ac_ext <<EOF
3548 #line 3549 "configure"
3549 #include "confdefs.h"
3550 /* System header to define __stub macros and hopefully few prototypes,
3551 which can conflict with char res_send(); below. */
3553 /* Override any gcc2 internal prototype to avoid an error. */
3554 /* We use char because int might match the return type of a gcc2
3555 builtin and then its argument prototype would still apply. */
3560 /* The GNU C library defines this for functions which it implements
3561 to always fail with ENOSYS. Some functions are actually named
3562 something starting with __ and the normal name is an alias. */
3563 #if defined (__stub_res_send) || defined (__stub___res_send)
3571 if { (eval echo configure:3572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3573 eval "ac_cv_func_res_send=yes"
3575 echo "configure: failed program was:" >&5
3576 cat conftest.$ac_ext >&5
3578 eval "ac_cv_func_res_send=no"
3583 if eval "test \"`echo '$ac_cv_func_'res_send`\" = yes"; then
3584 echo "$ac_t""yes" 1>&6
3587 echo "$ac_t""no" 1>&6
3588 echo $ac_n "checking for res_send in -lresolv""... $ac_c" 1>&6
3589 echo "configure:3590: checking for res_send in -lresolv" >&5
3590 ac_lib_var=`echo resolv'_'res_send | sed 'y%./+-%__p_%'`
3591 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3592 echo $ac_n "(cached) $ac_c" 1>&6
3594 ac_save_LIBS="$LIBS"
3595 LIBS="-lresolv $LIBS"
3596 cat > conftest.$ac_ext <<EOF
3597 #line 3598 "configure"
3598 #include "confdefs.h"
3599 /* Override any gcc2 internal prototype to avoid an error. */
3600 /* We use char because int might match the return type of a gcc2
3601 builtin and then its argument prototype would still apply. */
3608 if { (eval echo configure:3609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3610 eval "ac_cv_lib_$ac_lib_var=yes"
3612 echo "configure: failed program was:" >&5
3613 cat conftest.$ac_ext >&5
3615 eval "ac_cv_lib_$ac_lib_var=no"
3618 LIBS="$ac_save_LIBS"
3621 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3622 echo "$ac_t""yes" 1>&6
3623 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
3624 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3625 cat >> confdefs.h <<EOF
3626 #define $ac_tr_lib 1
3629 LIBS="-lresolv $LIBS"
3632 echo "$ac_t""no" 1>&6
3637 if test "$hesiod" != yes; then
3638 CPPFLAGS="$CPPFLAGS -I$hesiod/include"
3639 LDFLAGS="$LDFLAGS -L$hesiod/lib"
3641 echo $ac_n "checking for hes_resolve in -lhesiod""... $ac_c" 1>&6
3642 echo "configure:3643: checking for hes_resolve in -lhesiod" >&5
3643 ac_lib_var=`echo hesiod'_'hes_resolve | sed 'y%./+-%__p_%'`
3644 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3645 echo $ac_n "(cached) $ac_c" 1>&6
3647 ac_save_LIBS="$LIBS"
3648 LIBS="-lhesiod $LIBS $LIBS"
3649 cat > conftest.$ac_ext <<EOF
3650 #line 3651 "configure"
3651 #include "confdefs.h"
3652 /* Override any gcc2 internal prototype to avoid an error. */
3653 /* We use char because int might match the return type of a gcc2
3654 builtin and then its argument prototype would still apply. */
3661 if { (eval echo configure:3662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3663 eval "ac_cv_lib_$ac_lib_var=yes"
3665 echo "configure: failed program was:" >&5
3666 cat conftest.$ac_ext >&5
3668 eval "ac_cv_lib_$ac_lib_var=no"
3671 LIBS="$ac_save_LIBS"
3674 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3675 echo "$ac_t""yes" 1>&6
3678 echo "$ac_t""no" 1>&6
3679 { echo "configure: error: Hesiod library not found" 1>&2; exit 1; }
3682 HESIOD_LIBS="-lhesiod"
3683 cat >> confdefs.h <<\EOF
3684 #define HAVE_HESIOD 1
3689 # Check whether --with-regex or --without-regex was given.
3690 if test "${with_regex+set}" = set; then
3691 withval="$with_regex"
3697 if test "$regex" != no; then
3698 if test "$regex" != yes; then
3699 CPPFLAGS="$CPPFLAGS -I$regex/include"
3700 LDFLAGS="$LDFLAGS -L$regex/lib"
3702 echo $ac_n "checking for regcomp in -lregex""... $ac_c" 1>&6
3703 echo "configure:3704: checking for regcomp in -lregex" >&5
3704 ac_lib_var=`echo regex'_'regcomp | sed 'y%./+-%__p_%'`
3705 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3706 echo $ac_n "(cached) $ac_c" 1>&6
3708 ac_save_LIBS="$LIBS"
3709 LIBS="-lregex $LIBS"
3710 cat > conftest.$ac_ext <<EOF
3711 #line 3712 "configure"
3712 #include "confdefs.h"
3713 /* Override any gcc2 internal prototype to avoid an error. */
3714 /* We use char because int might match the return type of a gcc2
3715 builtin and then its argument prototype would still apply. */
3722 if { (eval echo configure:3723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3724 eval "ac_cv_lib_$ac_lib_var=yes"
3726 echo "configure: failed program was:" >&5
3727 cat conftest.$ac_ext >&5
3729 eval "ac_cv_lib_$ac_lib_var=no"
3732 LIBS="$ac_save_LIBS"
3735 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3736 echo "$ac_t""yes" 1>&6
3739 echo "$ac_t""no" 1>&6
3740 { echo "configure: error: regex library not found" 1>&2; exit 1; }
3744 echo $ac_n "checking for regcomp""... $ac_c" 1>&6
3745 echo "configure:3746: checking for regcomp" >&5
3746 if eval "test \"`echo '$''{'ac_cv_func_regcomp'+set}'`\" = set"; then
3747 echo $ac_n "(cached) $ac_c" 1>&6
3749 cat > conftest.$ac_ext <<EOF
3750 #line 3751 "configure"
3751 #include "confdefs.h"
3752 /* System header to define __stub macros and hopefully few prototypes,
3753 which can conflict with char regcomp(); below. */
3755 /* Override any gcc2 internal prototype to avoid an error. */
3756 /* We use char because int might match the return type of a gcc2
3757 builtin and then its argument prototype would still apply. */
3762 /* The GNU C library defines this for functions which it implements
3763 to always fail with ENOSYS. Some functions are actually named
3764 something starting with __ and the normal name is an alias. */
3765 #if defined (__stub_regcomp) || defined (__stub___regcomp)
3773 if { (eval echo configure:3774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3775 eval "ac_cv_func_regcomp=yes"
3777 echo "configure: failed program was:" >&5
3778 cat conftest.$ac_ext >&5
3780 eval "ac_cv_func_regcomp=no"
3785 if eval "test \"`echo '$ac_cv_func_'regcomp`\" = yes"; then
3786 echo "$ac_t""yes" 1>&6
3789 echo "$ac_t""no" 1>&6
3790 { echo "configure: error: can't find POSIX regexp support" 1>&2; exit 1; }
3795 # Check whether --with-ares or --without-ares was given.
3796 if test "${with_ares+set}" = set; then
3797 withval="$with_ares"
3803 if test "$ares" != no; then
3804 echo $ac_n "checking for res_send""... $ac_c" 1>&6
3805 echo "configure:3806: checking for res_send" >&5
3806 if eval "test \"`echo '$''{'ac_cv_func_res_send'+set}'`\" = set"; then
3807 echo $ac_n "(cached) $ac_c" 1>&6
3809 cat > conftest.$ac_ext <<EOF
3810 #line 3811 "configure"
3811 #include "confdefs.h"
3812 /* System header to define __stub macros and hopefully few prototypes,
3813 which can conflict with char res_send(); below. */
3815 /* Override any gcc2 internal prototype to avoid an error. */
3816 /* We use char because int might match the return type of a gcc2
3817 builtin and then its argument prototype would still apply. */
3822 /* The GNU C library defines this for functions which it implements
3823 to always fail with ENOSYS. Some functions are actually named
3824 something starting with __ and the normal name is an alias. */
3825 #if defined (__stub_res_send) || defined (__stub___res_send)
3833 if { (eval echo configure:3834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3835 eval "ac_cv_func_res_send=yes"
3837 echo "configure: failed program was:" >&5
3838 cat conftest.$ac_ext >&5
3840 eval "ac_cv_func_res_send=no"
3845 if eval "test \"`echo '$ac_cv_func_'res_send`\" = yes"; then
3846 echo "$ac_t""yes" 1>&6
3849 echo "$ac_t""no" 1>&6
3850 echo $ac_n "checking for res_send in -lresolv""... $ac_c" 1>&6
3851 echo "configure:3852: checking for res_send in -lresolv" >&5
3852 ac_lib_var=`echo resolv'_'res_send | sed 'y%./+-%__p_%'`
3853 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3854 echo $ac_n "(cached) $ac_c" 1>&6
3856 ac_save_LIBS="$LIBS"
3857 LIBS="-lresolv $LIBS"
3858 cat > conftest.$ac_ext <<EOF
3859 #line 3860 "configure"
3860 #include "confdefs.h"
3861 /* Override any gcc2 internal prototype to avoid an error. */
3862 /* We use char because int might match the return type of a gcc2
3863 builtin and then its argument prototype would still apply. */
3870 if { (eval echo configure:3871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3872 eval "ac_cv_lib_$ac_lib_var=yes"
3874 echo "configure: failed program was:" >&5
3875 cat conftest.$ac_ext >&5
3877 eval "ac_cv_lib_$ac_lib_var=no"
3880 LIBS="$ac_save_LIBS"
3883 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3884 echo "$ac_t""yes" 1>&6
3885 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
3886 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3887 cat >> confdefs.h <<EOF
3888 #define $ac_tr_lib 1
3891 LIBS="-lresolv $LIBS"
3894 echo "$ac_t""no" 1>&6
3899 if test "$ares" != yes; then
3900 CPPFLAGS="$CPPFLAGS -I$ares/include"
3901 LDFLAGS="$LDFLAGS -L$ares/lib"
3903 echo $ac_n "checking for ares_init in -lares""... $ac_c" 1>&6
3904 echo "configure:3905: checking for ares_init in -lares" >&5
3905 ac_lib_var=`echo ares'_'ares_init | sed 'y%./+-%__p_%'`
3906 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3907 echo $ac_n "(cached) $ac_c" 1>&6
3909 ac_save_LIBS="$LIBS"
3911 cat > conftest.$ac_ext <<EOF
3912 #line 3913 "configure"
3913 #include "confdefs.h"
3914 /* Override any gcc2 internal prototype to avoid an error. */
3915 /* We use char because int might match the return type of a gcc2
3916 builtin and then its argument prototype would still apply. */
3923 if { (eval echo configure:3924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3925 eval "ac_cv_lib_$ac_lib_var=yes"
3927 echo "configure: failed program was:" >&5
3928 cat conftest.$ac_ext >&5
3930 eval "ac_cv_lib_$ac_lib_var=no"
3933 LIBS="$ac_save_LIBS"
3936 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3937 echo "$ac_t""yes" 1>&6
3940 echo "$ac_t""no" 1>&6
3941 { echo "configure: error: libares not found" 1>&2; exit 1; }
3945 cat >> confdefs.h <<\EOF
3951 # Check whether --with-com_err or --without-com_err was given.
3952 if test "${with_com_err+set}" = set; then
3953 withval="$with_com_err"
3959 if test "$com_err" != no; then
3960 if test "$com_err" != yes; then
3961 CPPFLAGS="$CPPFLAGS -I$com_err/include"
3962 LDFLAGS="$LDFLAGS -L$com_err/lib"
3964 echo $ac_n "checking for com_err in -lcom_err""... $ac_c" 1>&6
3965 echo "configure:3966: checking for com_err in -lcom_err" >&5
3966 ac_lib_var=`echo com_err'_'com_err | sed 'y%./+-%__p_%'`
3967 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3968 echo $ac_n "(cached) $ac_c" 1>&6
3970 ac_save_LIBS="$LIBS"
3971 LIBS="-lcom_err $LIBS"
3972 cat > conftest.$ac_ext <<EOF
3973 #line 3974 "configure"
3974 #include "confdefs.h"
3975 /* Override any gcc2 internal prototype to avoid an error. */
3976 /* We use char because int might match the return type of a gcc2
3977 builtin and then its argument prototype would still apply. */
3984 if { (eval echo configure:3985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3986 eval "ac_cv_lib_$ac_lib_var=yes"
3988 echo "configure: failed program was:" >&5
3989 cat conftest.$ac_ext >&5
3991 eval "ac_cv_lib_$ac_lib_var=no"
3994 LIBS="$ac_save_LIBS"
3997 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3998 echo "$ac_t""yes" 1>&6
4001 echo "$ac_t""no" 1>&6
4002 { echo "configure: error: com_err library not found" 1>&2; exit 1; }
4006 { echo "configure: error: This package requires com_err." 1>&2; exit 1; }
4008 # Check whether --with-ss or --without-ss was given.
4009 if test "${with_ss+set}" = set; then
4016 if test "$ss" != no; then
4017 if test "$ss" != yes; then
4018 CPPFLAGS="$CPPFLAGS -I$ss/include"
4019 LDFLAGS="$LDFLAGS -L$ss/lib"
4021 echo $ac_n "checking for ss_perror in -lss""... $ac_c" 1>&6
4022 echo "configure:4023: checking for ss_perror in -lss" >&5
4023 ac_lib_var=`echo ss'_'ss_perror | sed 'y%./+-%__p_%'`
4024 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4025 echo $ac_n "(cached) $ac_c" 1>&6
4027 ac_save_LIBS="$LIBS"
4028 LIBS="-lss -lcom_err $LIBS"
4029 cat > conftest.$ac_ext <<EOF
4030 #line 4031 "configure"
4031 #include "confdefs.h"
4032 /* Override any gcc2 internal prototype to avoid an error. */
4033 /* We use char because int might match the return type of a gcc2
4034 builtin and then its argument prototype would still apply. */
4041 if { (eval echo configure:4042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4043 eval "ac_cv_lib_$ac_lib_var=yes"
4045 echo "configure: failed program was:" >&5
4046 cat conftest.$ac_ext >&5
4048 eval "ac_cv_lib_$ac_lib_var=no"
4051 LIBS="$ac_save_LIBS"
4054 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4055 echo "$ac_t""yes" 1>&6
4058 echo "$ac_t""no" 1>&6
4059 { echo "configure: error: ss library not found" 1>&2; exit 1; }
4063 { echo "configure: error: This package requires ss." 1>&2; exit 1; }
4065 LIBS="$KRB5_LIBS $KRB4_LIBS $HESIOD_LIBS $LIBS"
4067 if test $ac_cv_prog_gcc = yes; then
4068 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
4069 echo "configure:4070: checking whether ${CC-cc} needs -traditional" >&5
4070 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
4071 echo $ac_n "(cached) $ac_c" 1>&6
4073 ac_pattern="Autoconf.*'x'"
4074 cat > conftest.$ac_ext <<EOF
4075 #line 4076 "configure"
4076 #include "confdefs.h"
4080 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4081 egrep "$ac_pattern" >/dev/null 2>&1; then
4083 ac_cv_prog_gcc_traditional=yes
4086 ac_cv_prog_gcc_traditional=no
4091 if test $ac_cv_prog_gcc_traditional = no; then
4092 cat > conftest.$ac_ext <<EOF
4093 #line 4094 "configure"
4094 #include "confdefs.h"
4098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4099 egrep "$ac_pattern" >/dev/null 2>&1; then
4101 ac_cv_prog_gcc_traditional=yes
4108 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
4109 if test $ac_cv_prog_gcc_traditional = yes; then
4110 CC="$CC -traditional"
4114 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
4115 echo "configure:4116: checking for vprintf" >&5
4116 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
4117 echo $ac_n "(cached) $ac_c" 1>&6
4119 cat > conftest.$ac_ext <<EOF
4120 #line 4121 "configure"
4121 #include "confdefs.h"
4122 /* System header to define __stub macros and hopefully few prototypes,
4123 which can conflict with char vprintf(); below. */
4125 /* Override any gcc2 internal prototype to avoid an error. */
4126 /* We use char because int might match the return type of a gcc2
4127 builtin and then its argument prototype would still apply. */
4132 /* The GNU C library defines this for functions which it implements
4133 to always fail with ENOSYS. Some functions are actually named
4134 something starting with __ and the normal name is an alias. */
4135 #if defined (__stub_vprintf) || defined (__stub___vprintf)
4143 if { (eval echo configure:4144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4145 eval "ac_cv_func_vprintf=yes"
4147 echo "configure: failed program was:" >&5
4148 cat conftest.$ac_ext >&5
4150 eval "ac_cv_func_vprintf=no"
4155 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
4156 echo "$ac_t""yes" 1>&6
4157 cat >> confdefs.h <<\EOF
4158 #define HAVE_VPRINTF 1
4162 echo "$ac_t""no" 1>&6
4165 if test "$ac_cv_func_vprintf" != yes; then
4166 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
4167 echo "configure:4168: checking for _doprnt" >&5
4168 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
4169 echo $ac_n "(cached) $ac_c" 1>&6
4171 cat > conftest.$ac_ext <<EOF
4172 #line 4173 "configure"
4173 #include "confdefs.h"
4174 /* System header to define __stub macros and hopefully few prototypes,
4175 which can conflict with char _doprnt(); below. */
4177 /* Override any gcc2 internal prototype to avoid an error. */
4178 /* We use char because int might match the return type of a gcc2
4179 builtin and then its argument prototype would still apply. */
4184 /* The GNU C library defines this for functions which it implements
4185 to always fail with ENOSYS. Some functions are actually named
4186 something starting with __ and the normal name is an alias. */
4187 #if defined (__stub__doprnt) || defined (__stub____doprnt)
4195 if { (eval echo configure:4196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4197 eval "ac_cv_func__doprnt=yes"
4199 echo "configure: failed program was:" >&5
4200 cat conftest.$ac_ext >&5
4202 eval "ac_cv_func__doprnt=no"
4207 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
4208 echo "$ac_t""yes" 1>&6
4209 cat >> confdefs.h <<\EOF
4210 #define HAVE_DOPRNT 1
4214 echo "$ac_t""no" 1>&6
4219 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
4220 echo "configure:4221: checking whether getpgrp takes no argument" >&5
4221 if eval "test \"`echo '$''{'ac_cv_func_getpgrp_void'+set}'`\" = set"; then
4222 echo $ac_n "(cached) $ac_c" 1>&6
4224 if test "$cross_compiling" = yes; then
4225 { echo "configure: error: cannot check getpgrp if cross compiling" 1>&2; exit 1; }
4227 cat > conftest.$ac_ext <<EOF
4228 #line 4229 "configure"
4229 #include "confdefs.h"
4232 * If this system has a BSD-style getpgrp(),
4233 * which takes a pid argument, exit unsuccessfully.
4235 * Snarfed from Chet Ramey's bash pgrp.c test program
4238 #include <sys/types.h>
4241 int pg1, pg2, pg3, pg4;
4242 int ng, np, s, child;
4253 * If all of these values are the same, it's pretty sure that
4254 * we're on a system that ignores getpgrp's first argument.
4256 if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
4262 else if (child == 0) {
4265 * If this is Sys V, this will not work; pgrp will be
4266 * set to np because setpgrp just changes a pgrp to be
4267 * the same as the pid.
4270 ng = getpgrp(0); /* Same result for Sys V and BSD */
4283 if { (eval echo configure:4284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4285 ac_cv_func_getpgrp_void=yes
4287 echo "configure: failed program was:" >&5
4288 cat conftest.$ac_ext >&5
4290 ac_cv_func_getpgrp_void=no
4298 echo "$ac_t""$ac_cv_func_getpgrp_void" 1>&6
4299 if test $ac_cv_func_getpgrp_void = yes; then
4300 cat >> confdefs.h <<\EOF
4301 #define GETPGRP_VOID 1
4306 echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
4307 echo "configure:4308: checking whether setpgrp takes no argument" >&5
4308 if eval "test \"`echo '$''{'ac_cv_func_setpgrp_void'+set}'`\" = set"; then
4309 echo $ac_n "(cached) $ac_c" 1>&6
4311 if test "$cross_compiling" = yes; then
4312 { echo "configure: error: cannot check setpgrp if cross compiling" 1>&2; exit 1; }
4314 cat > conftest.$ac_ext <<EOF
4315 #line 4316 "configure"
4316 #include "confdefs.h"
4318 #ifdef HAVE_UNISTD_H
4323 * If this system has a BSD-style setpgrp, which takes arguments, exit
4328 if (setpgrp(1,1) == -1)
4335 if { (eval echo configure:4336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4337 ac_cv_func_setpgrp_void=no
4339 echo "configure: failed program was:" >&5
4340 cat conftest.$ac_ext >&5
4342 ac_cv_func_setpgrp_void=yes
4350 echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
4351 if test $ac_cv_func_setpgrp_void = yes; then
4352 cat >> confdefs.h <<\EOF
4353 #define SETPGRP_VOID 1
4358 for ac_func in putenv strchr memcpy memmove waitpid getlogin strerror random
4360 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4361 echo "configure:4362: checking for $ac_func" >&5
4362 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4363 echo $ac_n "(cached) $ac_c" 1>&6
4365 cat > conftest.$ac_ext <<EOF
4366 #line 4367 "configure"
4367 #include "confdefs.h"
4368 /* System header to define __stub macros and hopefully few prototypes,
4369 which can conflict with char $ac_func(); below. */
4371 /* Override any gcc2 internal prototype to avoid an error. */
4372 /* We use char because int might match the return type of a gcc2
4373 builtin and then its argument prototype would still apply. */
4378 /* The GNU C library defines this for functions which it implements
4379 to always fail with ENOSYS. Some functions are actually named
4380 something starting with __ and the normal name is an alias. */
4381 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4389 if { (eval echo configure:4390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4391 eval "ac_cv_func_$ac_func=yes"
4393 echo "configure: failed program was:" >&5
4394 cat conftest.$ac_ext >&5
4396 eval "ac_cv_func_$ac_func=no"
4401 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4402 echo "$ac_t""yes" 1>&6
4403 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4404 cat >> confdefs.h <<EOF
4405 #define $ac_tr_func 1
4409 echo "$ac_t""no" 1>&6
4413 for ac_func in lrand48 gethostid getsid getpgid krb_get_err_text krb_log
4415 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4416 echo "configure:4417: checking for $ac_func" >&5
4417 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4418 echo $ac_n "(cached) $ac_c" 1>&6
4420 cat > conftest.$ac_ext <<EOF
4421 #line 4422 "configure"
4422 #include "confdefs.h"
4423 /* System header to define __stub macros and hopefully few prototypes,
4424 which can conflict with char $ac_func(); below. */
4426 /* Override any gcc2 internal prototype to avoid an error. */
4427 /* We use char because int might match the return type of a gcc2
4428 builtin and then its argument prototype would still apply. */
4433 /* The GNU C library defines this for functions which it implements
4434 to always fail with ENOSYS. Some functions are actually named
4435 something starting with __ and the normal name is an alias. */
4436 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4444 if { (eval echo configure:4445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4446 eval "ac_cv_func_$ac_func=yes"
4448 echo "configure: failed program was:" >&5
4449 cat conftest.$ac_ext >&5
4451 eval "ac_cv_func_$ac_func=no"
4456 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4457 echo "$ac_t""yes" 1>&6
4458 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4459 cat >> confdefs.h <<EOF
4460 #define $ac_tr_func 1
4464 echo "$ac_t""no" 1>&6
4468 for ac_func in krb5_free_data krb5_c_make_checksum krb5_cc_set_default_name
4470 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4471 echo "configure:4472: checking for $ac_func" >&5
4472 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4473 echo $ac_n "(cached) $ac_c" 1>&6
4475 cat > conftest.$ac_ext <<EOF
4476 #line 4477 "configure"
4477 #include "confdefs.h"
4478 /* System header to define __stub macros and hopefully few prototypes,
4479 which can conflict with char $ac_func(); below. */
4481 /* Override any gcc2 internal prototype to avoid an error. */
4482 /* We use char because int might match the return type of a gcc2
4483 builtin and then its argument prototype would still apply. */
4488 /* The GNU C library defines this for functions which it implements
4489 to always fail with ENOSYS. Some functions are actually named
4490 something starting with __ and the normal name is an alias. */
4491 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4499 if { (eval echo configure:4500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4501 eval "ac_cv_func_$ac_func=yes"
4503 echo "configure: failed program was:" >&5
4504 cat conftest.$ac_ext >&5
4506 eval "ac_cv_func_$ac_func=no"
4511 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4512 echo "$ac_t""yes" 1>&6
4513 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4514 cat >> confdefs.h <<EOF
4515 #define $ac_tr_func 1
4519 echo "$ac_t""no" 1>&6
4524 echo $ac_n "checking for krb5_auth_con_getauthenticator taking double pointer""... $ac_c" 1>&6
4525 echo "configure:4526: checking for krb5_auth_con_getauthenticator taking double pointer" >&5
4526 if eval "test \"`echo '$''{'ac_cv_krb5_auth_con_getauthenticator_takes_double_pointer'+set}'`\" = set"; then
4527 echo $ac_n "(cached) $ac_c" 1>&6
4530 local_save_CPPFLAGS="$CPPFLAGS"
4531 CPPFLAGS="${CPPFLAGS} ${KRB5_INC_FLAGS}"
4532 cat > conftest.$ac_ext <<EOF
4533 #line 4534 "configure"
4534 #include "confdefs.h"
4535 #define socklen_t int
4539 krb5_auth_con_getauthenticator(krb5_context context,
4540 krb5_auth_context auth_context,
4541 krb5_authenticator *authenticator);
4543 krb5_error_code foo = krb5_auth_con_getauthenticator(0, 0, 0);
4546 if { (eval echo configure:4547: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4548 ac_cv_krb5_auth_con_getauthenticator_takes_double_pointer=no
4550 echo "configure: failed program was:" >&5
4551 cat conftest.$ac_ext >&5
4553 ac_cv_krb5_auth_con_getauthenticator_takes_double_pointer=yes
4559 CPPFLAGS="${local_save_CPPFLAGS}"
4560 if test "$ac_cv_krb5_auth_con_getauthenticator_takes_double_pointer" = yes; then
4561 cat >> confdefs.h <<\EOF
4562 #define KRB5_AUTH_CON_GETAUTHENTICATOR_TAKES_DOUBLE_POINTER 1
4565 echo "$ac_t""$ac_cv_krb5_auth_con_getauthenticator_takes_double_pointer" 1>&6
4567 echo $ac_n "checking for enc_part2 in struct krb5_ticket""... $ac_c" 1>&6
4568 echo "configure:4569: checking for enc_part2 in struct krb5_ticket" >&5
4569 if eval "test \"`echo '$''{'ac_cv_have_krb5_ticket_enc_part2'+set}'`\" = set"; then
4570 echo $ac_n "(cached) $ac_c" 1>&6
4573 local_save_CPPFLAGS="$CPPFLAGS"
4574 CPPFLAGS="${CPPFLAGS} ${KRB5_INC_FLAGS}"
4575 cat > conftest.$ac_ext <<EOF
4576 #line 4577 "configure"
4577 #include "confdefs.h"
4580 krb5_ticket _tkt; _tkt.enc_part2;
4583 if { (eval echo configure:4584: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4585 ac_cv_have_krb5_ticket_enc_part2=yes
4587 echo "configure: failed program was:" >&5
4588 cat conftest.$ac_ext >&5
4590 ac_cv_have_krb5_ticket_enc_part2=no
4596 CPPFLAGS="${local_save_CPPFLAGS}"
4597 if test "$ac_cv_have_krb5_ticket_enc_part2" = yes; then
4598 cat >> confdefs.h <<\EOF
4599 #define HAVE_KRB5_TICKET_ENC_PART2 1
4602 echo "$ac_t""$ac_cv_have_krb5_ticket_enc_part2" 1>&6
4604 echo $ac_n "checking for enctype in struct krb5_keyblock""... $ac_c" 1>&6
4605 echo "configure:4606: checking for enctype in struct krb5_keyblock" >&5
4606 if eval "test \"`echo '$''{'ac_cv_have_krb5_creds_keyblock_enctype'+set}'`\" = set"; then
4607 echo $ac_n "(cached) $ac_c" 1>&6
4610 local_save_CPPFLAGS="$CPPFLAGS"
4611 CPPFLAGS="${CPPFLAGS} ${KRB5_INC_FLAGS}"
4612 cat > conftest.$ac_ext <<EOF
4613 #line 4614 "configure"
4614 #include "confdefs.h"
4617 krb5_creds _creds; _creds.keyblock.enctype;
4620 if { (eval echo configure:4621: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4622 ac_cv_have_krb5_creds_keyblock_enctype=yes
4624 echo "configure: failed program was:" >&5
4625 cat conftest.$ac_ext >&5
4627 ac_cv_have_krb5_creds_keyblock_enctype=no
4633 CPPFLAGS="${local_save_CPPFLAGS}"
4634 if test "$ac_cv_have_krb5_creds_keyblock_enctype" = yes; then
4635 cat >> confdefs.h <<\EOF
4636 #define HAVE_KRB5_CREDS_KEYBLOCK_ENCTYPE 1
4639 echo "$ac_t""$ac_cv_have_krb5_creds_keyblock_enctype" 1>&6
4643 cat > confcache <<\EOF
4644 # This file is a shell script that caches the results of configure
4645 # tests run on this system so they can be shared between configure
4646 # scripts and configure runs. It is not useful on other systems.
4647 # If it contains results you don't want to keep, you may remove or edit it.
4649 # By default, configure uses ./config.cache as the cache file,
4650 # creating it if it does not exist already. You can give configure
4651 # the --cache-file=FILE option to use a different cache file; that is
4652 # what configure does when it calls configure scripts in
4653 # subdirectories, so they share the cache.
4654 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4655 # config.status only pays attention to the cache file if you give it the
4656 # --recheck option to rerun configure.
4659 # The following way of writing the cache mishandles newlines in values,
4660 # but we know of no workaround that is simple, portable, and efficient.
4661 # So, don't put newlines in cache variables' values.
4662 # Ultrix sh set writes to stderr and can't be redirected directly,
4663 # and sets the high bit in the cache file unless we assign to the vars.
4665 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4667 # `set' does not quote correctly, so add quotes (double-quote substitution
4668 # turns \\\\ into \\, and sed turns \\ into \).
4670 -e "s/'/'\\\\''/g" \
4671 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4674 # `set' quotes correctly as required by POSIX, so do not add quotes.
4675 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4678 if cmp -s $cache_file confcache; then
4681 if test -w $cache_file; then
4682 echo "updating cache $cache_file"
4683 cat confcache > $cache_file
4685 echo "not updating unwritable cache $cache_file"
4690 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4692 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4693 # Let make expand exec_prefix.
4694 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4696 # Any assignment to VPATH causes Sun make to only execute
4697 # the first set of double-colon rules, so remove it if not needed.
4698 # If there is a colon in the path, we need to keep it.
4699 if test "x$srcdir" = x.; then
4700 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4703 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4705 DEFS=-DHAVE_CONFIG_H
4707 # Without the "./", some shells look in PATH for config.status.
4708 : ${CONFIG_STATUS=./config.status}
4710 echo creating $CONFIG_STATUS
4711 rm -f $CONFIG_STATUS
4712 cat > $CONFIG_STATUS <<EOF
4714 # Generated automatically by configure.
4715 # Run this file to recreate the current configuration.
4716 # This directory was configured as follows,
4717 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4719 # $0 $ac_configure_args
4721 # Compiler output produced by configure, useful for debugging
4722 # configure, is in ./config.log if it exists.
4724 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4727 case "\$ac_option" in
4728 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4729 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4730 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4731 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4732 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4734 -help | --help | --hel | --he | --h)
4735 echo "\$ac_cs_usage"; exit 0 ;;
4736 *) echo "\$ac_cs_usage"; exit 1 ;;
4740 ac_given_srcdir=$srcdir
4741 ac_given_INSTALL="$INSTALL"
4743 trap 'rm -fr `echo "Makefile clients/Makefile clients/xzwrite/Makefile
4744 clients/zaway/Makefile clients/zctl/Makefile
4745 clients/zleave/Makefile clients/zlocate/Makefile
4746 clients/zmailnotify/Makefile clients/znol/Makefile
4747 clients/zpopnotify/Makefile clients/zshutdown_notify/Makefile
4748 clients/zstat/Makefile clients/zwrite/Makefile lib/Makefile
4749 libdyn/Makefile server/Makefile zhm/Makefile zwgc/Makefile h/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4751 cat >> $CONFIG_STATUS <<EOF
4753 # Protect against being on the right side of a sed subst in config.status.
4754 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4755 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4759 s%@CFLAGS@%$CFLAGS%g
4760 s%@CPPFLAGS@%$CPPFLAGS%g
4761 s%@CXXFLAGS@%$CXXFLAGS%g
4762 s%@FFLAGS@%$FFLAGS%g
4764 s%@LDFLAGS@%$LDFLAGS%g
4766 s%@exec_prefix@%$exec_prefix%g
4767 s%@prefix@%$prefix%g
4768 s%@program_transform_name@%$program_transform_name%g
4769 s%@bindir@%$bindir%g
4770 s%@sbindir@%$sbindir%g
4771 s%@libexecdir@%$libexecdir%g
4772 s%@datadir@%$datadir%g
4773 s%@sysconfdir@%$sysconfdir%g
4774 s%@sharedstatedir@%$sharedstatedir%g
4775 s%@localstatedir@%$localstatedir%g
4776 s%@libdir@%$libdir%g
4777 s%@includedir@%$includedir%g
4778 s%@oldincludedir@%$oldincludedir%g
4779 s%@infodir@%$infodir%g
4780 s%@mandir@%$mandir%g
4781 s%@lbindir@%$lbindir%g
4782 s%@lsbindir@%$lsbindir%g
4784 s%@host_alias@%$host_alias%g
4785 s%@host_cpu@%$host_cpu%g
4786 s%@host_vendor@%$host_vendor%g
4787 s%@host_os@%$host_os%g
4788 s%@target@%$target%g
4789 s%@target_alias@%$target_alias%g
4790 s%@target_cpu@%$target_cpu%g
4791 s%@target_vendor@%$target_vendor%g
4792 s%@target_os@%$target_os%g
4794 s%@build_alias@%$build_alias%g
4795 s%@build_cpu@%$build_cpu%g
4796 s%@build_vendor@%$build_vendor%g
4797 s%@build_os@%$build_os%g
4801 s%@LEXLIB@%$LEXLIB%g
4802 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4803 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4804 s%@INSTALL_DATA@%$INSTALL_DATA%g
4805 s%@RANLIB@%$RANLIB%g
4807 s%@X_CFLAGS@%$X_CFLAGS%g
4808 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
4809 s%@X_LIBS@%$X_LIBS%g
4810 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
4811 s%@XCLIENTS@%$XCLIENTS%g
4812 s%@ZWGC_LIBX11@%$ZWGC_LIBX11%g
4816 s%@KRB4_LIBS@%$KRB4_LIBS%g
4817 s%@KRB5_LIBS@%$KRB5_LIBS%g
4818 s%@HESIOD_LIBS@%$HESIOD_LIBS%g
4819 s%@REGEX_LIBS@%$REGEX_LIBS%g
4820 s%@ARES_LIBS@%$ARES_LIBS%g
4825 cat >> $CONFIG_STATUS <<\EOF
4827 # Split the substitutions into bite-sized pieces for seds with
4828 # small command number limits, like on Digital OSF/1 and HP-UX.
4829 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4830 ac_file=1 # Number of current file.
4831 ac_beg=1 # First line for current file.
4832 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4835 while $ac_more_lines; do
4836 if test $ac_beg -gt 1; then
4837 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4839 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4841 if test ! -s conftest.s$ac_file; then
4843 rm -f conftest.s$ac_file
4845 if test -z "$ac_sed_cmds"; then
4846 ac_sed_cmds="sed -f conftest.s$ac_file"
4848 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4850 ac_file=`expr $ac_file + 1`
4852 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4855 if test -z "$ac_sed_cmds"; then
4860 cat >> $CONFIG_STATUS <<EOF
4862 CONFIG_FILES=\${CONFIG_FILES-"Makefile clients/Makefile clients/xzwrite/Makefile
4863 clients/zaway/Makefile clients/zctl/Makefile
4864 clients/zleave/Makefile clients/zlocate/Makefile
4865 clients/zmailnotify/Makefile clients/znol/Makefile
4866 clients/zpopnotify/Makefile clients/zshutdown_notify/Makefile
4867 clients/zstat/Makefile clients/zwrite/Makefile lib/Makefile
4868 libdyn/Makefile server/Makefile zhm/Makefile zwgc/Makefile"}
4870 cat >> $CONFIG_STATUS <<\EOF
4871 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4872 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4874 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4875 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4876 *) ac_file_in="${ac_file}.in" ;;
4879 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4881 # Remove last slash and all that follows it. Not all systems have dirname.
4882 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4883 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4884 # The file is in a subdirectory.
4885 test ! -d "$ac_dir" && mkdir "$ac_dir"
4886 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4887 # A "../" for each directory in $ac_dir_suffix.
4888 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4890 ac_dir_suffix= ac_dots=
4893 case "$ac_given_srcdir" in
4895 if test -z "$ac_dots"; then top_srcdir=.
4896 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4897 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4899 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4900 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4903 case "$ac_given_INSTALL" in
4904 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4905 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4908 echo creating "$ac_file"
4910 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4912 *Makefile*) ac_comsub="1i\\
4913 # $configure_input" ;;
4917 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4919 s%@configure_input@%$configure_input%g
4920 s%@srcdir@%$srcdir%g
4921 s%@top_srcdir@%$top_srcdir%g
4922 s%@INSTALL@%$INSTALL%g
4923 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4927 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4928 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4930 # ac_d sets the value in "#define NAME VALUE" lines.
4931 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4932 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4935 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4936 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4937 ac_uB='\([ ]\)%\1#\2define\3'
4940 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4941 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4942 ac_eB='$%\1#\2define\3'
4946 if test "${CONFIG_HEADERS+set}" != set; then
4948 cat >> $CONFIG_STATUS <<EOF
4949 CONFIG_HEADERS="h/config.h"
4951 cat >> $CONFIG_STATUS <<\EOF
4953 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4954 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4956 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4957 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4958 *) ac_file_in="${ac_file}.in" ;;
4961 echo creating $ac_file
4963 rm -f conftest.frag conftest.in conftest.out
4964 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4965 cat $ac_file_inputs > conftest.in
4969 # Transform confdefs.h into a sed script conftest.vals that substitutes
4970 # the proper values into config.h.in to produce config.h. And first:
4971 # Protect against being on the right side of a sed subst in config.status.
4972 # Protect against being in an unquoted here document in config.status.
4974 cat > conftest.hdr <<\EOF
4977 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4981 sed -n -f conftest.hdr confdefs.h > conftest.vals
4984 # This sed command replaces #undef with comments. This is necessary, for
4985 # example, in the case of _POSIX_SOURCE, which is predefined and required
4986 # on some systems where configure will not decide to define it.
4987 cat >> conftest.vals <<\EOF
4988 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4991 # Break up conftest.vals because some shells have a limit on
4992 # the size of here documents, and old seds have small limits too.
4997 ac_lines=`grep -c . conftest.vals`
4998 # grep -c gives empty output for an empty file on some AIX systems.
4999 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5000 # Write a limited-size here document to conftest.frag.
5001 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5002 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5004 sed -f conftest.frag conftest.in > conftest.out
5006 mv conftest.out conftest.in
5008 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5010 mv conftest.tail conftest.vals
5014 cat >> $CONFIG_STATUS <<\EOF
5015 rm -f conftest.frag conftest.h
5016 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5017 cat conftest.in >> conftest.h
5019 if cmp -s $ac_file conftest.h 2>/dev/null; then
5020 echo "$ac_file is unchanged"
5023 # Remove last slash and all that follows it. Not all systems have dirname.
5024 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5025 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5026 # The file is in a subdirectory.
5027 test ! -d "$ac_dir" && mkdir "$ac_dir"
5030 mv conftest.h $ac_file
5035 cat >> $CONFIG_STATUS <<EOF
5038 cat >> $CONFIG_STATUS <<\EOF
5042 chmod +x $CONFIG_STATUS
5043 rm -fr confdefs* $ac_clean_files
5044 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1