3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12
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 --enable-gcc allow use of gcc if available"
17 --enable-threads enable threads if available"
19 # Initialize some variables set by options.
20 # The variables have the same names as the options, with
21 # dashes changed to underlines.
23 cache_file=./config.cache
32 program_transform_name=s,x,x,
40 bindir='${exec_prefix}/bin'
41 sbindir='${exec_prefix}/sbin'
42 libexecdir='${exec_prefix}/libexec'
43 datadir='${prefix}/share'
44 sysconfdir='${prefix}/etc'
45 sharedstatedir='${prefix}/com'
46 localstatedir='${prefix}/var'
47 libdir='${exec_prefix}/lib'
48 includedir='${prefix}/include'
49 oldincludedir='/usr/include'
50 infodir='${prefix}/info'
51 mandir='${prefix}/man'
53 # Initialize some other variables.
56 # Maximum number of lines to put in a shell here document.
63 # If the previous option needs an argument, assign it.
64 if test -n "$ac_prev"; then
65 eval "$ac_prev=\$ac_option"
71 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
75 # Accept the important Cygnus configure options, so we can diagnose typos.
79 -bindir | --bindir | --bindi | --bind | --bin | --bi)
81 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
82 bindir="$ac_optarg" ;;
84 -build | --build | --buil | --bui | --bu)
86 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
89 -cache-file | --cache-file | --cache-fil | --cache-fi \
90 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
92 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
93 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
94 cache_file="$ac_optarg" ;;
96 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
98 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
100 datadir="$ac_optarg" ;;
102 -disable-* | --disable-*)
103 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
104 # Reject names that are not valid shell variable names.
105 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
106 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
108 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
109 eval "enable_${ac_feature}=no" ;;
111 -enable-* | --enable-*)
112 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
113 # Reject names that are not valid shell variable names.
114 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
115 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
117 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
122 eval "enable_${ac_feature}='$ac_optarg'" ;;
124 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
125 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
126 | --exec | --exe | --ex)
127 ac_prev=exec_prefix ;;
128 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
129 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
130 | --exec=* | --exe=* | --ex=*)
131 exec_prefix="$ac_optarg" ;;
133 -gas | --gas | --ga | --g)
134 # Obsolete; use --with-gas.
137 -help | --help | --hel | --he)
138 # Omit some internal or obsolete options to make the list less imposing.
139 # This message is too long to be a string in the A/UX 3.1 sh.
141 Usage: configure [options] [host]
142 Options: [defaults in brackets after descriptions]
144 --cache-file=FILE cache test results in FILE
145 --help print this message
146 --no-create do not create output files
147 --quiet, --silent do not print \`checking...' messages
148 --version print the version of autoconf that created configure
149 Directory and file names:
150 --prefix=PREFIX install architecture-independent files in PREFIX
152 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
154 --bindir=DIR user executables in DIR [EPREFIX/bin]
155 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
156 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
157 --datadir=DIR read-only architecture-independent data in DIR
159 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
160 --sharedstatedir=DIR modifiable architecture-independent data in DIR
162 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
163 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
164 --includedir=DIR C header files in DIR [PREFIX/include]
165 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
166 --infodir=DIR info documentation in DIR [PREFIX/info]
167 --mandir=DIR man documentation in DIR [PREFIX/man]
168 --srcdir=DIR find the sources in DIR [configure dir or ..]
169 --program-prefix=PREFIX prepend PREFIX to installed program names
170 --program-suffix=SUFFIX append SUFFIX to installed program names
171 --program-transform-name=PROGRAM
172 run sed PROGRAM on installed program names
176 --build=BUILD configure for building on BUILD [BUILD=HOST]
177 --host=HOST configure for HOST [guessed]
178 --target=TARGET configure for TARGET [TARGET=HOST]
179 Features and packages:
180 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
181 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
182 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
183 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
184 --x-includes=DIR X include files are in DIR
185 --x-libraries=DIR X library files are in DIR
187 if test -n "$ac_help"; then
188 echo "--enable and --with options recognized:$ac_help"
192 -host | --host | --hos | --ho)
194 -host=* | --host=* | --hos=* | --ho=*)
197 -includedir | --includedir | --includedi | --included | --include \
198 | --includ | --inclu | --incl | --inc)
199 ac_prev=includedir ;;
200 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
201 | --includ=* | --inclu=* | --incl=* | --inc=*)
202 includedir="$ac_optarg" ;;
204 -infodir | --infodir | --infodi | --infod | --info | --inf)
206 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
207 infodir="$ac_optarg" ;;
209 -libdir | --libdir | --libdi | --libd)
211 -libdir=* | --libdir=* | --libdi=* | --libd=*)
212 libdir="$ac_optarg" ;;
214 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
215 | --libexe | --libex | --libe)
216 ac_prev=libexecdir ;;
217 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
218 | --libexe=* | --libex=* | --libe=*)
219 libexecdir="$ac_optarg" ;;
221 -localstatedir | --localstatedir | --localstatedi | --localstated \
222 | --localstate | --localstat | --localsta | --localst \
223 | --locals | --local | --loca | --loc | --lo)
224 ac_prev=localstatedir ;;
225 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
226 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
227 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
228 localstatedir="$ac_optarg" ;;
230 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
232 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
233 mandir="$ac_optarg" ;;
236 # Obsolete; use --without-fp.
239 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
243 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
244 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
247 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
248 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
249 | --oldin | --oldi | --old | --ol | --o)
250 ac_prev=oldincludedir ;;
251 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
252 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
253 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
254 oldincludedir="$ac_optarg" ;;
256 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
258 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
259 prefix="$ac_optarg" ;;
261 -program-prefix | --program-prefix | --program-prefi | --program-pref \
262 | --program-pre | --program-pr | --program-p)
263 ac_prev=program_prefix ;;
264 -program-prefix=* | --program-prefix=* | --program-prefi=* \
265 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
266 program_prefix="$ac_optarg" ;;
268 -program-suffix | --program-suffix | --program-suffi | --program-suff \
269 | --program-suf | --program-su | --program-s)
270 ac_prev=program_suffix ;;
271 -program-suffix=* | --program-suffix=* | --program-suffi=* \
272 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
273 program_suffix="$ac_optarg" ;;
275 -program-transform-name | --program-transform-name \
276 | --program-transform-nam | --program-transform-na \
277 | --program-transform-n | --program-transform- \
278 | --program-transform | --program-transfor \
279 | --program-transfo | --program-transf \
280 | --program-trans | --program-tran \
281 | --progr-tra | --program-tr | --program-t)
282 ac_prev=program_transform_name ;;
283 -program-transform-name=* | --program-transform-name=* \
284 | --program-transform-nam=* | --program-transform-na=* \
285 | --program-transform-n=* | --program-transform-=* \
286 | --program-transform=* | --program-transfor=* \
287 | --program-transfo=* | --program-transf=* \
288 | --program-trans=* | --program-tran=* \
289 | --progr-tra=* | --program-tr=* | --program-t=*)
290 program_transform_name="$ac_optarg" ;;
292 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
293 | -silent | --silent | --silen | --sile | --sil)
296 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
298 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
300 sbindir="$ac_optarg" ;;
302 -sharedstatedir | --sharedstatedir | --sharedstatedi \
303 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
304 | --sharedst | --shareds | --shared | --share | --shar \
306 ac_prev=sharedstatedir ;;
307 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
308 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
309 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
311 sharedstatedir="$ac_optarg" ;;
313 -site | --site | --sit)
315 -site=* | --site=* | --sit=*)
318 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
320 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
321 srcdir="$ac_optarg" ;;
323 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
324 | --syscon | --sysco | --sysc | --sys | --sy)
325 ac_prev=sysconfdir ;;
326 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
327 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
328 sysconfdir="$ac_optarg" ;;
330 -target | --target | --targe | --targ | --tar | --ta | --t)
332 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
333 target="$ac_optarg" ;;
335 -v | -verbose | --verbose | --verbos | --verbo | --verb)
338 -version | --version | --versio | --versi | --vers)
339 echo "configure generated by autoconf version 2.12"
343 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
344 # Reject names that are not valid shell variable names.
345 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
346 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
348 ac_package=`echo $ac_package| sed 's/-/_/g'`
353 eval "with_${ac_package}='$ac_optarg'" ;;
355 -without-* | --without-*)
356 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
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'`
362 eval "with_${ac_package}=no" ;;
365 # Obsolete; use --with-x.
368 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
369 | --x-incl | --x-inc | --x-in | --x-i)
370 ac_prev=x_includes ;;
371 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
372 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
373 x_includes="$ac_optarg" ;;
375 -x-libraries | --x-libraries | --x-librarie | --x-librari \
376 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
377 ac_prev=x_libraries ;;
378 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
379 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
380 x_libraries="$ac_optarg" ;;
382 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
386 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
387 echo "configure: warning: $ac_option: invalid host type" 1>&2
389 if test "x$nonopt" != xNONE; then
390 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
398 if test -n "$ac_prev"; then
399 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
402 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
404 # File descriptor usage:
407 # 2 errors and warnings
408 # 3 some systems may open it to /dev/tty
409 # 4 used on the Kubota Titan
410 # 6 checking for... messages and results
411 # 5 compiler messages saved in config.log
412 if test "$silent" = yes; then
420 This file contains any messages produced by compilers while
421 running configure, to aid debugging if configure makes a mistake.
424 # Strip out --no-create and --no-recursion so they do not pile up.
425 # Also quote any args containing shell metacharacters.
430 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
431 | --no-cr | --no-c) ;;
432 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
433 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
434 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
435 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
436 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
441 # Only set these to C if already set. These must not be set unconditionally
442 # because not all systems understand e.g. LANG=C (notably SCO).
443 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
444 # Non-C LC_CTYPE values break the ctype check.
445 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
446 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
447 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
448 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
450 # confdefs.h avoids OS command line length limits that DEFS can exceed.
451 rm -rf conftest* confdefs.h
452 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
455 # A filename unique to this package, relative to the directory that
456 # configure is in, which we can look for to find out if srcdir is correct.
457 ac_unique_file=include/yaz-version.h
459 # Find the source files, if location was not specified.
460 if test -z "$srcdir"; then
461 ac_srcdir_defaulted=yes
462 # Try the directory containing this script, then its parent.
464 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
465 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
467 if test ! -r $srcdir/$ac_unique_file; then
471 ac_srcdir_defaulted=no
473 if test ! -r $srcdir/$ac_unique_file; then
474 if test "$ac_srcdir_defaulted" = yes; then
475 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
477 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
480 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
482 # Prefer explicitly selected file to automatically selected ones.
483 if test -z "$CONFIG_SITE"; then
484 if test "x$prefix" != xNONE; then
485 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
487 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
490 for ac_site_file in $CONFIG_SITE; do
491 if test -r "$ac_site_file"; then
492 echo "loading site script $ac_site_file"
497 if test -r "$cache_file"; then
498 echo "loading cache $cache_file"
501 echo "creating cache $cache_file"
506 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
507 ac_cpp='$CPP $CPPFLAGS'
508 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
509 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
510 cross_compiling=$ac_cv_prog_cc_cross
512 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
513 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
514 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
521 ac_n= ac_c='\c' ac_t=
526 # Check whether --enable-gcc or --disable-gcc was given.
527 if test "${enable_gcc+set}" = set; then
528 enableval="$enable_gcc"
534 if test "$gcc_ok" = "yes"; then
535 # Extract the first word of "gcc", so it can be a program name with args.
536 set dummy gcc; ac_word=$2
537 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
538 echo "configure:539: checking for $ac_word" >&5
539 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
540 echo $ac_n "(cached) $ac_c" 1>&6
542 if test -n "$CC"; then
543 ac_cv_prog_CC="$CC" # Let the user override the test.
545 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
546 for ac_dir in $PATH; do
547 test -z "$ac_dir" && ac_dir=.
548 if test -f $ac_dir/$ac_word; then
557 if test -n "$CC"; then
558 echo "$ac_t""$CC" 1>&6
560 echo "$ac_t""no" 1>&6
563 if test -z "$CC"; then
564 # Extract the first word of "cc", so it can be a program name with args.
565 set dummy cc; ac_word=$2
566 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
567 echo "configure:568: checking for $ac_word" >&5
568 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
569 echo $ac_n "(cached) $ac_c" 1>&6
571 if test -n "$CC"; then
572 ac_cv_prog_CC="$CC" # Let the user override the test.
574 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
576 for ac_dir in $PATH; do
577 test -z "$ac_dir" && ac_dir=.
578 if test -f $ac_dir/$ac_word; then
579 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
588 if test $ac_prog_rejected = yes; then
589 # We found a bogon in the path, so make sure we never use it.
590 set dummy $ac_cv_prog_CC
592 if test $# -gt 0; then
593 # We chose a different compiler from the bogus one.
594 # However, it has the same basename, so the bogon will be chosen
595 # first if we set CC to just the basename; use the full file name.
597 set dummy "$ac_dir/$ac_word" "$@"
605 if test -n "$CC"; then
606 echo "$ac_t""$CC" 1>&6
608 echo "$ac_t""no" 1>&6
611 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
614 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
615 echo "configure:616: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
618 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
619 ac_cpp='$CPP $CPPFLAGS'
620 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
621 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
622 cross_compiling=$ac_cv_prog_cc_cross
624 cat > conftest.$ac_ext <<EOF
625 #line 626 "configure"
626 #include "confdefs.h"
629 if { (eval echo configure:630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
630 ac_cv_prog_cc_works=yes
631 # If we can't run a trivial program, we are probably using a cross compiler.
632 if (./conftest; exit) 2>/dev/null; then
633 ac_cv_prog_cc_cross=no
635 ac_cv_prog_cc_cross=yes
638 echo "configure: failed program was:" >&5
639 cat conftest.$ac_ext >&5
640 ac_cv_prog_cc_works=no
644 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
645 if test $ac_cv_prog_cc_works = no; then
646 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
648 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
649 echo "configure:650: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
650 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
651 cross_compiling=$ac_cv_prog_cc_cross
653 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
654 echo "configure:655: checking whether we are using GNU C" >&5
655 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
656 echo $ac_n "(cached) $ac_c" 1>&6
658 cat > conftest.c <<EOF
663 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:664: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
670 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
672 if test $ac_cv_prog_gcc = yes; then
674 ac_test_CFLAGS="${CFLAGS+set}"
675 ac_save_CFLAGS="$CFLAGS"
677 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
678 echo "configure:679: checking whether ${CC-cc} accepts -g" >&5
679 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
680 echo $ac_n "(cached) $ac_c" 1>&6
682 echo 'void f(){}' > conftest.c
683 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
692 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
693 if test "$ac_test_CFLAGS" = set; then
694 CFLAGS="$ac_save_CFLAGS"
695 elif test $ac_cv_prog_cc_g = yes; then
702 test "${CFLAGS+set}" = set || CFLAGS="-g"
709 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
710 echo "configure:711: checking how to run the C preprocessor" >&5
711 # On Suns, sometimes $CPP names a directory.
712 if test -n "$CPP" && test -d "$CPP"; then
715 if test -z "$CPP"; then
716 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
717 echo $ac_n "(cached) $ac_c" 1>&6
719 # This must be in double quotes, not single quotes, because CPP may get
720 # substituted into the Makefile and "${CC-cc}" will confuse make.
722 # On the NeXT, cc -E runs the code through the compiler's parser,
723 # not just through cpp.
724 cat > conftest.$ac_ext <<EOF
725 #line 726 "configure"
726 #include "confdefs.h"
730 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
731 { (eval echo configure:732: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
732 ac_err=`grep -v '^ *+' conftest.out`
733 if test -z "$ac_err"; then
737 echo "configure: failed program was:" >&5
738 cat conftest.$ac_ext >&5
740 CPP="${CC-cc} -E -traditional-cpp"
741 cat > conftest.$ac_ext <<EOF
742 #line 743 "configure"
743 #include "confdefs.h"
747 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
748 { (eval echo configure:749: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
749 ac_err=`grep -v '^ *+' conftest.out`
750 if test -z "$ac_err"; then
754 echo "configure: failed program was:" >&5
755 cat conftest.$ac_ext >&5
762 ac_cv_prog_CPP="$CPP"
764 CPP="$ac_cv_prog_CPP"
766 ac_cv_prog_CPP="$CPP"
768 echo "$ac_t""$CPP" 1>&6
771 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
772 if test -f $ac_dir/install-sh; then
774 ac_install_sh="$ac_aux_dir/install-sh -c"
776 elif test -f $ac_dir/install.sh; then
778 ac_install_sh="$ac_aux_dir/install.sh -c"
782 if test -z "$ac_aux_dir"; then
783 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
785 ac_config_guess=$ac_aux_dir/config.guess
786 ac_config_sub=$ac_aux_dir/config.sub
787 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
789 # Find a good install program. We prefer a C program (faster),
790 # so one script is as good as another. But avoid the broken or
791 # incompatible versions:
792 # SysV /etc/install, /usr/sbin/install
793 # SunOS /usr/etc/install
796 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
797 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
798 # ./install, which can be erroneously created by make from ./install.sh.
799 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
800 echo "configure:801: checking for a BSD compatible install" >&5
801 if test -z "$INSTALL"; then
802 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
803 echo $ac_n "(cached) $ac_c" 1>&6
805 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
806 for ac_dir in $PATH; do
807 # Account for people who put trailing slashes in PATH elements.
809 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
811 # OSF1 and SCO ODT 3.0 have their own names for install.
812 for ac_prog in ginstall installbsd scoinst install; do
813 if test -f $ac_dir/$ac_prog; then
814 if test $ac_prog = install &&
815 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
816 # AIX install. It has an incompatible calling convention.
817 # OSF/1 installbsd also uses dspmsg, but is usable.
820 ac_cv_path_install="$ac_dir/$ac_prog -c"
831 if test "${ac_cv_path_install+set}" = set; then
832 INSTALL="$ac_cv_path_install"
834 # As a last resort, use the slow shell script. We don't cache a
835 # path for INSTALL within a source directory, because that will
836 # break other packages using the cache if that directory is
837 # removed, or if the path is relative.
838 INSTALL="$ac_install_sh"
841 echo "$ac_t""$INSTALL" 1>&6
843 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
844 # It thinks the first close brace ends the variable substitution.
845 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
847 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
849 # Extract the first word of "ranlib", so it can be a program name with args.
850 set dummy ranlib; ac_word=$2
851 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
852 echo "configure:853: checking for $ac_word" >&5
853 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
854 echo $ac_n "(cached) $ac_c" 1>&6
856 if test -n "$RANLIB"; then
857 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
859 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
860 for ac_dir in $PATH; do
861 test -z "$ac_dir" && ac_dir=.
862 if test -f $ac_dir/$ac_word; then
863 ac_cv_prog_RANLIB="ranlib"
868 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
871 RANLIB="$ac_cv_prog_RANLIB"
872 if test -n "$RANLIB"; then
873 echo "$ac_t""$RANLIB" 1>&6
875 echo "$ac_t""no" 1>&6
879 echo $ac_n "checking for connect""... $ac_c" 1>&6
880 echo "configure:881: checking for connect" >&5
881 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
882 echo $ac_n "(cached) $ac_c" 1>&6
884 cat > conftest.$ac_ext <<EOF
885 #line 886 "configure"
886 #include "confdefs.h"
887 /* System header to define __stub macros and hopefully few prototypes,
888 which can conflict with char connect(); below. */
890 /* Override any gcc2 internal prototype to avoid an error. */
891 /* We use char because int might match the return type of a gcc2
892 builtin and then its argument prototype would still apply. */
897 /* The GNU C library defines this for functions which it implements
898 to always fail with ENOSYS. Some functions are actually named
899 something starting with __ and the normal name is an alias. */
900 #if defined (__stub_connect) || defined (__stub___connect)
908 if { (eval echo configure:909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
910 eval "ac_cv_func_connect=yes"
912 echo "configure: failed program was:" >&5
913 cat conftest.$ac_ext >&5
915 eval "ac_cv_func_connect=no"
920 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
921 echo "$ac_t""yes" 1>&6
924 echo "$ac_t""no" 1>&6
927 if test "$ac_cv_func_connect" = "no"; then
928 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
929 echo "configure:930: checking for main in -lsocket" >&5
930 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
931 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
932 echo $ac_n "(cached) $ac_c" 1>&6
935 LIBS="-lsocket $LIBS"
936 cat > conftest.$ac_ext <<EOF
937 #line 938 "configure"
938 #include "confdefs.h"
944 if { (eval echo configure:945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
946 eval "ac_cv_lib_$ac_lib_var=yes"
948 echo "configure: failed program was:" >&5
949 cat conftest.$ac_ext >&5
951 eval "ac_cv_lib_$ac_lib_var=no"
957 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
958 echo "$ac_t""yes" 1>&6
959 LIBS="$LIBS -lsocket"
961 echo "$ac_t""no" 1>&6
966 if test "$checkBoth" = "1"; then
968 LIBS="$LIBS -lsocket -lnsl"
969 echo $ac_n "checking for accept""... $ac_c" 1>&6
970 echo "configure:971: checking for accept" >&5
971 if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
972 echo $ac_n "(cached) $ac_c" 1>&6
974 cat > conftest.$ac_ext <<EOF
975 #line 976 "configure"
976 #include "confdefs.h"
977 /* System header to define __stub macros and hopefully few prototypes,
978 which can conflict with char accept(); below. */
980 /* Override any gcc2 internal prototype to avoid an error. */
981 /* We use char because int might match the return type of a gcc2
982 builtin and then its argument prototype would still apply. */
987 /* The GNU C library defines this for functions which it implements
988 to always fail with ENOSYS. Some functions are actually named
989 something starting with __ and the normal name is an alias. */
990 #if defined (__stub_accept) || defined (__stub___accept)
998 if { (eval echo configure:999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1000 eval "ac_cv_func_accept=yes"
1002 echo "configure: failed program was:" >&5
1003 cat conftest.$ac_ext >&5
1005 eval "ac_cv_func_accept=no"
1010 if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then
1011 echo "$ac_t""yes" 1>&6
1014 echo "$ac_t""no" 1>&6
1019 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1020 echo "configure:1021: checking for gethostbyname" >&5
1021 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1022 echo $ac_n "(cached) $ac_c" 1>&6
1024 cat > conftest.$ac_ext <<EOF
1025 #line 1026 "configure"
1026 #include "confdefs.h"
1027 /* System header to define __stub macros and hopefully few prototypes,
1028 which can conflict with char gethostbyname(); below. */
1030 /* Override any gcc2 internal prototype to avoid an error. */
1031 /* We use char because int might match the return type of a gcc2
1032 builtin and then its argument prototype would still apply. */
1033 char gethostbyname();
1037 /* The GNU C library defines this for functions which it implements
1038 to always fail with ENOSYS. Some functions are actually named
1039 something starting with __ and the normal name is an alias. */
1040 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1048 if { (eval echo configure:1049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1050 eval "ac_cv_func_gethostbyname=yes"
1052 echo "configure: failed program was:" >&5
1053 cat conftest.$ac_ext >&5
1055 eval "ac_cv_func_gethostbyname=no"
1060 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1061 echo "$ac_t""yes" 1>&6
1064 echo "$ac_t""no" 1>&6
1065 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
1066 echo "configure:1067: checking for main in -lnsl" >&5
1067 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
1068 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1069 echo $ac_n "(cached) $ac_c" 1>&6
1071 ac_save_LIBS="$LIBS"
1073 cat > conftest.$ac_ext <<EOF
1074 #line 1075 "configure"
1075 #include "confdefs.h"
1081 if { (eval echo configure:1082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1083 eval "ac_cv_lib_$ac_lib_var=yes"
1085 echo "configure: failed program was:" >&5
1086 cat conftest.$ac_ext >&5
1088 eval "ac_cv_lib_$ac_lib_var=no"
1091 LIBS="$ac_save_LIBS"
1094 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1095 echo "$ac_t""yes" 1>&6
1098 echo "$ac_t""no" 1>&6
1103 # Check whether --enable-threads or --disable-threads was given.
1104 if test "${enable_threads+set}" = set; then
1105 enableval="$enable_threads"
1106 threads_ok=$enableval
1111 if test "$threads_ok" = "yes"; then
1112 for ac_hdr in pthread.h threads.h
1114 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1115 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1116 echo "configure:1117: checking for $ac_hdr" >&5
1117 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1118 echo $ac_n "(cached) $ac_c" 1>&6
1120 cat > conftest.$ac_ext <<EOF
1121 #line 1122 "configure"
1122 #include "confdefs.h"
1125 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1126 { (eval echo configure:1127: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1127 ac_err=`grep -v '^ *+' conftest.out`
1128 if test -z "$ac_err"; then
1130 eval "ac_cv_header_$ac_safe=yes"
1133 echo "configure: failed program was:" >&5
1134 cat conftest.$ac_ext >&5
1136 eval "ac_cv_header_$ac_safe=no"
1140 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1141 echo "$ac_t""yes" 1>&6
1142 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1143 cat >> confdefs.h <<EOF
1144 #define $ac_tr_hdr 1
1148 echo "$ac_t""no" 1>&6
1152 echo $ac_n "checking for pthread_mutex_lock""... $ac_c" 1>&6
1153 echo "configure:1154: checking for pthread_mutex_lock" >&5
1154 if eval "test \"`echo '$''{'ac_cv_func_pthread_mutex_lock'+set}'`\" = set"; then
1155 echo $ac_n "(cached) $ac_c" 1>&6
1157 cat > conftest.$ac_ext <<EOF
1158 #line 1159 "configure"
1159 #include "confdefs.h"
1160 /* System header to define __stub macros and hopefully few prototypes,
1161 which can conflict with char pthread_mutex_lock(); below. */
1163 /* Override any gcc2 internal prototype to avoid an error. */
1164 /* We use char because int might match the return type of a gcc2
1165 builtin and then its argument prototype would still apply. */
1166 char pthread_mutex_lock();
1170 /* The GNU C library defines this for functions which it implements
1171 to always fail with ENOSYS. Some functions are actually named
1172 something starting with __ and the normal name is an alias. */
1173 #if defined (__stub_pthread_mutex_lock) || defined (__stub___pthread_mutex_lock)
1176 pthread_mutex_lock();
1181 if { (eval echo configure:1182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1183 eval "ac_cv_func_pthread_mutex_lock=yes"
1185 echo "configure: failed program was:" >&5
1186 cat conftest.$ac_ext >&5
1188 eval "ac_cv_func_pthread_mutex_lock=no"
1193 if eval "test \"`echo '$ac_cv_func_'pthread_mutex_lock`\" = yes"; then
1194 echo "$ac_t""yes" 1>&6
1197 echo "$ac_t""no" 1>&6
1200 if test "$ac_cv_func_pthread_mutex_lock" = "no"; then
1201 echo $ac_n "checking for main in -lpthread""... $ac_c" 1>&6
1202 echo "configure:1203: checking for main in -lpthread" >&5
1203 ac_lib_var=`echo pthread'_'main | sed 'y%./+-%__p_%'`
1204 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1205 echo $ac_n "(cached) $ac_c" 1>&6
1207 ac_save_LIBS="$LIBS"
1208 LIBS="-lpthread $LIBS"
1209 cat > conftest.$ac_ext <<EOF
1210 #line 1211 "configure"
1211 #include "confdefs.h"
1217 if { (eval echo configure:1218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1219 eval "ac_cv_lib_$ac_lib_var=yes"
1221 echo "configure: failed program was:" >&5
1222 cat conftest.$ac_ext >&5
1224 eval "ac_cv_lib_$ac_lib_var=no"
1227 LIBS="$ac_save_LIBS"
1230 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1231 echo "$ac_t""yes" 1>&6
1232 ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1233 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1234 cat >> confdefs.h <<EOF
1235 #define $ac_tr_lib 1
1238 LIBS="-lpthread $LIBS"
1241 echo "$ac_t""no" 1>&6
1245 ODEFS="$ODEFS -D_REENTRANT"
1247 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1248 echo "configure:1249: checking for ANSI C header files" >&5
1249 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1250 echo $ac_n "(cached) $ac_c" 1>&6
1252 cat > conftest.$ac_ext <<EOF
1253 #line 1254 "configure"
1254 #include "confdefs.h"
1260 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1261 { (eval echo configure:1262: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1262 ac_err=`grep -v '^ *+' conftest.out`
1263 if test -z "$ac_err"; then
1265 ac_cv_header_stdc=yes
1268 echo "configure: failed program was:" >&5
1269 cat conftest.$ac_ext >&5
1271 ac_cv_header_stdc=no
1275 if test $ac_cv_header_stdc = yes; then
1276 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1277 cat > conftest.$ac_ext <<EOF
1278 #line 1279 "configure"
1279 #include "confdefs.h"
1282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1283 egrep "memchr" >/dev/null 2>&1; then
1287 ac_cv_header_stdc=no
1293 if test $ac_cv_header_stdc = yes; then
1294 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1295 cat > conftest.$ac_ext <<EOF
1296 #line 1297 "configure"
1297 #include "confdefs.h"
1300 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1301 egrep "free" >/dev/null 2>&1; then
1305 ac_cv_header_stdc=no
1311 if test $ac_cv_header_stdc = yes; then
1312 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1313 if test "$cross_compiling" = yes; then
1316 cat > conftest.$ac_ext <<EOF
1317 #line 1318 "configure"
1318 #include "confdefs.h"
1320 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1321 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1322 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1323 int main () { int i; for (i = 0; i < 256; i++)
1324 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1328 if { (eval echo configure:1329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1332 echo "configure: failed program was:" >&5
1333 cat conftest.$ac_ext >&5
1335 ac_cv_header_stdc=no
1343 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1344 if test $ac_cv_header_stdc = yes; then
1345 cat >> confdefs.h <<\EOF
1346 #define STDC_HEADERS 1
1351 if test "$ac_cv_header_stdc" = "no"; then
1352 echo "configure: warning: Your system doesn't seem to support ANSI C" 1>&2
1355 cat > confcache <<\EOF
1356 # This file is a shell script that caches the results of configure
1357 # tests run on this system so they can be shared between configure
1358 # scripts and configure runs. It is not useful on other systems.
1359 # If it contains results you don't want to keep, you may remove or edit it.
1361 # By default, configure uses ./config.cache as the cache file,
1362 # creating it if it does not exist already. You can give configure
1363 # the --cache-file=FILE option to use a different cache file; that is
1364 # what configure does when it calls configure scripts in
1365 # subdirectories, so they share the cache.
1366 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1367 # config.status only pays attention to the cache file if you give it the
1368 # --recheck option to rerun configure.
1371 # The following way of writing the cache mishandles newlines in values,
1372 # but we know of no workaround that is simple, portable, and efficient.
1373 # So, don't put newlines in cache variables' values.
1374 # Ultrix sh set writes to stderr and can't be redirected directly,
1375 # and sets the high bit in the cache file unless we assign to the vars.
1377 case `(ac_space=' '; set) 2>&1` in
1379 # `set' does not quote correctly, so add quotes (double-quote substitution
1380 # turns \\\\ into \\, and sed turns \\ into \).
1382 -e "s/'/'\\\\''/g" \
1383 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1386 # `set' quotes correctly as required by POSIX, so do not add quotes.
1387 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1390 if cmp -s $cache_file confcache; then
1393 if test -w $cache_file; then
1394 echo "updating cache $cache_file"
1395 cat confcache > $cache_file
1397 echo "not updating unwritable cache $cache_file"
1402 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1404 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1405 # Let make expand exec_prefix.
1406 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1408 # Any assignment to VPATH causes Sun make to only execute
1409 # the first set of double-colon rules, so remove it if not needed.
1410 # If there is a colon in the path, we need to keep it.
1411 if test "x$srcdir" = x.; then
1412 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1415 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1417 # Transform confdefs.h into DEFS.
1418 # Protect against shell expansion while executing Makefile rules.
1419 # Protect against Makefile macro expansion.
1420 cat > conftest.defs <<\EOF
1421 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1422 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
1427 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1431 # Without the "./", some shells look in PATH for config.status.
1432 : ${CONFIG_STATUS=./config.status}
1434 echo creating $CONFIG_STATUS
1435 rm -f $CONFIG_STATUS
1436 cat > $CONFIG_STATUS <<EOF
1438 # Generated automatically by configure.
1439 # Run this file to recreate the current configuration.
1440 # This directory was configured as follows,
1441 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1443 # $0 $ac_configure_args
1445 # Compiler output produced by configure, useful for debugging
1446 # configure, is in ./config.log if it exists.
1448 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1451 case "\$ac_option" in
1452 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1453 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1454 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1455 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1456 echo "$CONFIG_STATUS generated by autoconf version 2.12"
1458 -help | --help | --hel | --he | --h)
1459 echo "\$ac_cs_usage"; exit 0 ;;
1460 *) echo "\$ac_cs_usage"; exit 1 ;;
1464 ac_given_srcdir=$srcdir
1465 ac_given_INSTALL="$INSTALL"
1467 trap 'rm -fr `echo "Makefile util/Makefile asn/Makefile odr/Makefile comstack/Makefile client/Makefile server/Makefile ztest/Makefile retrieval/Makefile ccl/Makefile makelib/Makefile rfc1006/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1469 cat >> $CONFIG_STATUS <<EOF
1471 # Protect against being on the right side of a sed subst in config.status.
1472 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1473 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1476 s%@CFLAGS@%$CFLAGS%g
1477 s%@CPPFLAGS@%$CPPFLAGS%g
1478 s%@CXXFLAGS@%$CXXFLAGS%g
1480 s%@LDFLAGS@%$LDFLAGS%g
1482 s%@exec_prefix@%$exec_prefix%g
1483 s%@prefix@%$prefix%g
1484 s%@program_transform_name@%$program_transform_name%g
1485 s%@bindir@%$bindir%g
1486 s%@sbindir@%$sbindir%g
1487 s%@libexecdir@%$libexecdir%g
1488 s%@datadir@%$datadir%g
1489 s%@sysconfdir@%$sysconfdir%g
1490 s%@sharedstatedir@%$sharedstatedir%g
1491 s%@localstatedir@%$localstatedir%g
1492 s%@libdir@%$libdir%g
1493 s%@includedir@%$includedir%g
1494 s%@oldincludedir@%$oldincludedir%g
1495 s%@infodir@%$infodir%g
1496 s%@mandir@%$mandir%g
1500 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1501 s%@INSTALL_DATA@%$INSTALL_DATA%g
1502 s%@RANLIB@%$RANLIB%g
1507 cat >> $CONFIG_STATUS <<\EOF
1509 # Split the substitutions into bite-sized pieces for seds with
1510 # small command number limits, like on Digital OSF/1 and HP-UX.
1511 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1512 ac_file=1 # Number of current file.
1513 ac_beg=1 # First line for current file.
1514 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1517 while $ac_more_lines; do
1518 if test $ac_beg -gt 1; then
1519 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1521 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1523 if test ! -s conftest.s$ac_file; then
1525 rm -f conftest.s$ac_file
1527 if test -z "$ac_sed_cmds"; then
1528 ac_sed_cmds="sed -f conftest.s$ac_file"
1530 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1532 ac_file=`expr $ac_file + 1`
1534 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1537 if test -z "$ac_sed_cmds"; then
1542 cat >> $CONFIG_STATUS <<EOF
1544 CONFIG_FILES=\${CONFIG_FILES-"Makefile util/Makefile asn/Makefile odr/Makefile comstack/Makefile client/Makefile server/Makefile ztest/Makefile retrieval/Makefile ccl/Makefile makelib/Makefile rfc1006/Makefile"}
1546 cat >> $CONFIG_STATUS <<\EOF
1547 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1548 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1550 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1551 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1552 *) ac_file_in="${ac_file}.in" ;;
1555 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1557 # Remove last slash and all that follows it. Not all systems have dirname.
1558 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1559 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1560 # The file is in a subdirectory.
1561 test ! -d "$ac_dir" && mkdir "$ac_dir"
1562 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1563 # A "../" for each directory in $ac_dir_suffix.
1564 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1566 ac_dir_suffix= ac_dots=
1569 case "$ac_given_srcdir" in
1571 if test -z "$ac_dots"; then top_srcdir=.
1572 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1573 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1575 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1576 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1579 case "$ac_given_INSTALL" in
1580 [/$]*) INSTALL="$ac_given_INSTALL" ;;
1581 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1584 echo creating "$ac_file"
1586 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1588 *Makefile*) ac_comsub="1i\\
1589 # $configure_input" ;;
1593 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1595 s%@configure_input@%$configure_input%g
1596 s%@srcdir@%$srcdir%g
1597 s%@top_srcdir@%$top_srcdir%g
1598 s%@INSTALL@%$INSTALL%g
1599 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1604 cat >> $CONFIG_STATUS <<EOF
1607 cat >> $CONFIG_STATUS <<\EOF
1611 chmod +x $CONFIG_STATUS
1612 rm -fr confdefs* $ac_clean_files
1613 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1