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 --disable-dynamic use static linking
16 --enable-dynamic[=elf] create and use ELF dynamic library (default)"
18 # Initialize some variables set by options.
19 # The variables have the same names as the options, with
20 # dashes changed to underlines.
22 cache_file
=.
/config.cache
31 program_transform_name
=s
,x
,x
,
39 bindir
='${exec_prefix}/bin'
40 sbindir
='${exec_prefix}/sbin'
41 libexecdir
='${exec_prefix}/libexec'
42 datadir
='${prefix}/share'
43 sysconfdir
='${prefix}/etc'
44 sharedstatedir
='${prefix}/com'
45 localstatedir
='${prefix}/var'
46 libdir
='${exec_prefix}/lib'
47 includedir
='${prefix}/include'
48 oldincludedir
='/usr/include'
49 infodir
='${prefix}/info'
50 mandir
='${prefix}/man'
52 # Initialize some other variables.
55 SHELL
=${CONFIG_SHELL-/bin/sh}
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.13"
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
=src
/adns.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${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
510 cross_compiling
=$ac_cv_prog_cc_cross
514 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
515 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
516 if (echo -n testing
; echo 1,2,3) |
sed s
/-n
/xn
/ |
grep xn
>/dev
/null
; then
523 ac_n
= ac_c
='\c' ac_t
=
531 echo $ac_n "checking whether you requested dynamic linking""... $ac_c" 1>&6
532 echo "configure:533: checking whether you requested dynamic linking" >&5
534 # Check whether --enable-dynamic or --disable-dynamic was given.
535 if test "${enable_dynamic+set}" = set; then
536 enableval
="$enable_dynamic"
540 echo "$ac_t""yes (ELF)" 1>&6
542 no
) ENABLE_DYNAMIC
=no
543 echo "$ac_t""no" 1>&6
545 *) { echo "configure: error: "invalid value
$enableval for --enable-dynamic
, try
yes or elf
"" 1>&2; exit 1; }
552 echo "$ac_t""yes, by default" 1>&6
557 # Extract the first word of "gcc", so it can be a program name with args.
558 set dummy gcc
; ac_word
=$2
559 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
560 echo "configure:561: checking for $ac_word" >&5
561 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
562 echo $ac_n "(cached) $ac_c" 1>&6
564 if test -n
"$CC"; then
565 ac_cv_prog_CC
="$CC" # Let the user override the test.
567 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
569 for ac_dir
in $ac_dummy; do
570 test -z
"$ac_dir" && ac_dir
=.
571 if test -f
$ac_dir/$ac_word; then
580 if test -n
"$CC"; then
581 echo "$ac_t""$CC" 1>&6
583 echo "$ac_t""no" 1>&6
586 if test -z
"$CC"; then
587 # Extract the first word of "cc", so it can be a program name with args.
588 set dummy cc
; ac_word
=$2
589 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
590 echo "configure:591: checking for $ac_word" >&5
591 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
592 echo $ac_n "(cached) $ac_c" 1>&6
594 if test -n
"$CC"; then
595 ac_cv_prog_CC
="$CC" # Let the user override the test.
597 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
600 for ac_dir
in $ac_dummy; do
601 test -z
"$ac_dir" && ac_dir
=.
602 if test -f
$ac_dir/$ac_word; then
603 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
612 if test $ac_prog_rejected = yes; then
613 # We found a bogon in the path, so make sure we never use it.
614 set dummy
$ac_cv_prog_CC
616 if test $# -gt
0; then
617 # We chose a different compiler from the bogus one.
618 # However, it has the same basename, so the bogon will be chosen
619 # first if we set CC to just the basename; use the full file name.
621 set dummy
"$ac_dir/$ac_word" "$@"
629 if test -n
"$CC"; then
630 echo "$ac_t""$CC" 1>&6
632 echo "$ac_t""no" 1>&6
635 if test -z
"$CC"; then
638 # Extract the first word of "cl", so it can be a program name with args.
639 set dummy cl
; ac_word
=$2
640 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
641 echo "configure:642: checking for $ac_word" >&5
642 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
643 echo $ac_n "(cached) $ac_c" 1>&6
645 if test -n
"$CC"; then
646 ac_cv_prog_CC
="$CC" # Let the user override the test.
648 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
650 for ac_dir
in $ac_dummy; do
651 test -z
"$ac_dir" && ac_dir
=.
652 if test -f
$ac_dir/$ac_word; then
661 if test -n
"$CC"; then
662 echo "$ac_t""$CC" 1>&6
664 echo "$ac_t""no" 1>&6
669 test -z
"$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
672 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
673 echo "configure:674: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
676 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
677 ac_cpp
='$CPP $CPPFLAGS'
678 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
679 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
680 cross_compiling
=$ac_cv_prog_cc_cross
682 cat > conftest.
$ac_ext << EOF
684 #line 685 "configure"
685 #include "confdefs.h"
689 if { (eval echo configure
:690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
690 ac_cv_prog_cc_works
=yes
691 # If we can't run a trivial program, we are probably using a cross compiler.
692 if (.
/conftest
; exit) 2>/dev
/null
; then
693 ac_cv_prog_cc_cross
=no
695 ac_cv_prog_cc_cross
=yes
698 echo "configure: failed program was:" >&5
699 cat conftest.
$ac_ext >&5
700 ac_cv_prog_cc_works
=no
704 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
705 ac_cpp
='$CPP $CPPFLAGS'
706 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
707 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
708 cross_compiling
=$ac_cv_prog_cc_cross
710 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
711 if test $ac_cv_prog_cc_works = no
; then
712 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
714 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
715 echo "configure:716: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
716 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
717 cross_compiling
=$ac_cv_prog_cc_cross
719 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
720 echo "configure:721: checking whether we are using GNU C" >&5
721 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
722 echo $ac_n "(cached) $ac_c" 1>&6
724 cat > conftest.c
<<EOF
729 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:730: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
736 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
738 if test $ac_cv_prog_gcc = yes; then
744 ac_test_CFLAGS
="${CFLAGS+set}"
745 ac_save_CFLAGS
="$CFLAGS"
747 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
748 echo "configure:749: checking whether ${CC-cc} accepts -g" >&5
749 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
750 echo $ac_n "(cached) $ac_c" 1>&6
752 echo 'void f(){}' > conftest.c
753 if test -z
"`${CC-cc} -g -c conftest.c 2>&1`"; then
762 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
763 if test "$ac_test_CFLAGS" = set; then
764 CFLAGS
="$ac_save_CFLAGS"
765 elif test $ac_cv_prog_cc_g = yes; then
766 if test "$GCC" = yes; then
772 if test "$GCC" = yes; then
779 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
780 echo "configure:781: checking how to run the C preprocessor" >&5
781 # On Suns, sometimes $CPP names a directory.
782 if test -n
"$CPP" && test -d
"$CPP"; then
785 if test -z
"$CPP"; then
786 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
787 echo $ac_n "(cached) $ac_c" 1>&6
789 # This must be in double quotes, not single quotes, because CPP may get
790 # substituted into the Makefile and "${CC-cc}" will confuse make.
792 # On the NeXT, cc -E runs the code through the compiler's parser,
793 # not just through cpp.
794 cat > conftest.
$ac_ext <<EOF
795 #line 796 "configure"
796 #include "confdefs.h"
800 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
801 { (eval echo configure
:802: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
802 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
803 if test -z
"$ac_err"; then
807 echo "configure: failed program was:" >&5
808 cat conftest.
$ac_ext >&5
810 CPP
="${CC-cc} -E -traditional-cpp"
811 cat > conftest.
$ac_ext <<EOF
812 #line 813 "configure"
813 #include "confdefs.h"
817 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
818 { (eval echo configure
:819: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
819 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
820 if test -z
"$ac_err"; then
824 echo "configure: failed program was:" >&5
825 cat conftest.
$ac_ext >&5
827 CPP
="${CC-cc} -nologo -E"
828 cat > conftest.
$ac_ext <<EOF
829 #line 830 "configure"
830 #include "confdefs.h"
834 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
835 { (eval echo configure
:836: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
836 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
837 if test -z
"$ac_err"; then
841 echo "configure: failed program was:" >&5
842 cat conftest.
$ac_ext >&5
851 ac_cv_prog_CPP
="$CPP"
853 CPP
="$ac_cv_prog_CPP"
855 ac_cv_prog_CPP
="$CPP"
857 echo "$ac_t""$CPP" 1>&6
859 # Extract the first word of "ranlib", so it can be a program name with args.
860 set dummy ranlib
; ac_word
=$2
861 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
862 echo "configure:863: checking for $ac_word" >&5
863 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
864 echo $ac_n "(cached) $ac_c" 1>&6
866 if test -n
"$RANLIB"; then
867 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
869 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
871 for ac_dir
in $ac_dummy; do
872 test -z
"$ac_dir" && ac_dir
=.
873 if test -f
$ac_dir/$ac_word; then
874 ac_cv_prog_RANLIB
="ranlib"
879 test -z
"$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
882 RANLIB
="$ac_cv_prog_RANLIB"
883 if test -n
"$RANLIB"; then
884 echo "$ac_t""$RANLIB" 1>&6
886 echo "$ac_t""no" 1>&6
890 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
891 if test -f
$ac_dir/install-sh
; then
893 ac_install_sh
="$ac_aux_dir/install-sh -c"
895 elif test -f
$ac_dir/install.sh
; then
897 ac_install_sh
="$ac_aux_dir/install.sh -c"
901 if test -z
"$ac_aux_dir"; then
902 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
904 ac_config_guess
=$ac_aux_dir/config.guess
905 ac_config_sub
=$ac_aux_dir/config.sub
906 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
908 # Find a good install program. We prefer a C program (faster),
909 # so one script is as good as another. But avoid the broken or
910 # incompatible versions:
911 # SysV /etc/install, /usr/sbin/install
912 # SunOS /usr/etc/install
915 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
916 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
917 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
918 # ./install, which can be erroneously created by make from ./install.sh.
919 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
920 echo "configure:921: checking for a BSD compatible install" >&5
921 if test -z
"$INSTALL"; then
922 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
923 echo $ac_n "(cached) $ac_c" 1>&6
925 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
926 for ac_dir
in $PATH; do
927 # Account for people who put trailing slashes in PATH elements.
929 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
931 # OSF1 and SCO ODT 3.0 have their own names for install.
932 # Don't use installbsd from OSF since it installs stuff as root
934 for ac_prog
in ginstall scoinst
install; do
935 if test -f
$ac_dir/$ac_prog; then
936 if test $ac_prog = install &&
937 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
938 # AIX install. It has an incompatible calling convention.
941 ac_cv_path_install
="$ac_dir/$ac_prog -c"
952 if test "${ac_cv_path_install+set}" = set; then
953 INSTALL
="$ac_cv_path_install"
955 # As a last resort, use the slow shell script. We don't cache a
956 # path for INSTALL within a source directory, because that will
957 # break other packages using the cache if that directory is
958 # removed, or if the path is relative.
959 INSTALL
="$ac_install_sh"
962 echo "$ac_t""$INSTALL" 1>&6
964 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
965 # It thinks the first close brace ends the variable substitution.
966 test -z
"$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
968 test -z
"$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
970 test -z
"$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
975 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
976 echo "configure:977: checking for $ac_func" >&5
977 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
978 echo $ac_n "(cached) $ac_c" 1>&6
980 cat > conftest.
$ac_ext <<EOF
981 #line 982 "configure"
982 #include "confdefs.h"
983 /* System header to define __stub macros and hopefully few prototypes,
984 which can conflict with char $ac_func(); below. */
986 /* Override any gcc2 internal prototype to avoid an error. */
987 /* We use char because int might match the return type of a gcc2
988 builtin and then its argument prototype would still apply. */
993 /* The GNU C library defines this for functions which it implements
994 to always fail with ENOSYS. Some functions are actually named
995 something starting with __ and the normal name is an alias. */
996 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1004 if { (eval echo configure
:1005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1006 eval "ac_cv_func_$ac_func=yes"
1008 echo "configure: failed program was:" >&5
1009 cat conftest.
$ac_ext >&5
1011 eval "ac_cv_func_$ac_func=no"
1016 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1017 echo "$ac_t""yes" 1>&6
1018 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1019 cat >> confdefs.h
<<EOF
1020 #define $ac_tr_func 1
1024 echo "$ac_t""no" 1>&6
1029 echo $ac_n "checking for socket""... $ac_c" 1>&6
1030 echo "configure:1031: checking for socket" >&5
1031 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
1032 echo $ac_n "(cached) $ac_c" 1>&6
1034 cat > conftest.
$ac_ext <<EOF
1035 #line 1036 "configure"
1036 #include "confdefs.h"
1037 /* System header to define __stub macros and hopefully few prototypes,
1038 which can conflict with char socket(); below. */
1040 /* Override any gcc2 internal prototype to avoid an error. */
1041 /* We use char because int might match the return type of a gcc2
1042 builtin and then its argument prototype would still apply. */
1047 /* The GNU C library defines this for functions which it implements
1048 to always fail with ENOSYS. Some functions are actually named
1049 something starting with __ and the normal name is an alias. */
1050 #if defined (__stub_socket) || defined (__stub___socket)
1058 if { (eval echo configure
:1059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1060 eval "ac_cv_func_socket=yes"
1062 echo "configure: failed program was:" >&5
1063 cat conftest.
$ac_ext >&5
1065 eval "ac_cv_func_socket=no"
1070 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
1071 echo "$ac_t""yes" 1>&6
1074 echo "$ac_t""no" 1>&6
1076 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
1077 echo "configure:1078: checking for socket in -lsocket" >&5
1078 ac_lib_var
=`echo socket'_'socket | sed 'y%./+-%__p_%'`
1079 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1080 echo $ac_n "(cached) $ac_c" 1>&6
1082 ac_save_LIBS
="$LIBS"
1083 LIBS
="-lsocket $LIBS"
1084 cat > conftest.
$ac_ext <<EOF
1085 #line 1086 "configure"
1086 #include "confdefs.h"
1087 /* Override any gcc2 internal prototype to avoid an error. */
1088 /* We use char because int might match the return type of a gcc2
1089 builtin and then its argument prototype would still apply. */
1096 if { (eval echo configure
:1097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1098 eval "ac_cv_lib_$ac_lib_var=yes"
1100 echo "configure: failed program was:" >&5
1101 cat conftest.
$ac_ext >&5
1103 eval "ac_cv_lib_$ac_lib_var=no"
1106 LIBS
="$ac_save_LIBS"
1109 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1110 echo "$ac_t""yes" 1>&6
1111 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1112 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1113 cat >> confdefs.h
<<EOF
1114 #define $ac_tr_lib 1
1117 LIBS
="-lsocket $LIBS"
1120 echo "$ac_t""no" 1>&6
1122 { echo "configure: error: cannot find library function socket" 1>&2; exit 1; }
1131 echo $ac_n "checking for inet_ntoa""... $ac_c" 1>&6
1132 echo "configure:1133: checking for inet_ntoa" >&5
1133 if eval "test \"`echo '$''{'ac_cv_func_inet_ntoa'+set}'`\" = set"; then
1134 echo $ac_n "(cached) $ac_c" 1>&6
1136 cat > conftest.
$ac_ext <<EOF
1137 #line 1138 "configure"
1138 #include "confdefs.h"
1139 /* System header to define __stub macros and hopefully few prototypes,
1140 which can conflict with char inet_ntoa(); below. */
1142 /* Override any gcc2 internal prototype to avoid an error. */
1143 /* We use char because int might match the return type of a gcc2
1144 builtin and then its argument prototype would still apply. */
1149 /* The GNU C library defines this for functions which it implements
1150 to always fail with ENOSYS. Some functions are actually named
1151 something starting with __ and the normal name is an alias. */
1152 #if defined (__stub_inet_ntoa) || defined (__stub___inet_ntoa)
1160 if { (eval echo configure
:1161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1162 eval "ac_cv_func_inet_ntoa=yes"
1164 echo "configure: failed program was:" >&5
1165 cat conftest.
$ac_ext >&5
1167 eval "ac_cv_func_inet_ntoa=no"
1172 if eval "test \"`echo '$ac_cv_func_'inet_ntoa`\" = yes"; then
1173 echo "$ac_t""yes" 1>&6
1176 echo "$ac_t""no" 1>&6
1178 echo $ac_n "checking for inet_ntoa in -lnsl""... $ac_c" 1>&6
1179 echo "configure:1180: checking for inet_ntoa in -lnsl" >&5
1180 ac_lib_var
=`echo nsl'_'inet_ntoa | sed 'y%./+-%__p_%'`
1181 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1182 echo $ac_n "(cached) $ac_c" 1>&6
1184 ac_save_LIBS
="$LIBS"
1186 cat > conftest.
$ac_ext <<EOF
1187 #line 1188 "configure"
1188 #include "confdefs.h"
1189 /* Override any gcc2 internal prototype to avoid an error. */
1190 /* We use char because int might match the return type of a gcc2
1191 builtin and then its argument prototype would still apply. */
1198 if { (eval echo configure
:1199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1200 eval "ac_cv_lib_$ac_lib_var=yes"
1202 echo "configure: failed program was:" >&5
1203 cat conftest.
$ac_ext >&5
1205 eval "ac_cv_lib_$ac_lib_var=no"
1208 LIBS
="$ac_save_LIBS"
1211 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1212 echo "$ac_t""yes" 1>&6
1213 ac_tr_lib
=HAVE_LIB
`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1214 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1215 cat >> confdefs.h
<<EOF
1216 #define $ac_tr_lib 1
1222 echo "$ac_t""no" 1>&6
1224 { echo "configure: error: cannot find library function inet_ntoa" 1>&2; exit 1; }
1233 PROGS_IF_TSEARCH
=adnsresfilter
1235 echo $ac_n "checking for tsearch""... $ac_c" 1>&6
1236 echo "configure:1237: checking for tsearch" >&5
1237 if eval "test \"`echo '$''{'ac_cv_func_tsearch'+set}'`\" = set"; then
1238 echo $ac_n "(cached) $ac_c" 1>&6
1240 cat > conftest.
$ac_ext <<EOF
1241 #line 1242 "configure"
1242 #include "confdefs.h"
1243 /* System header to define __stub macros and hopefully few prototypes,
1244 which can conflict with char tsearch(); below. */
1246 /* Override any gcc2 internal prototype to avoid an error. */
1247 /* We use char because int might match the return type of a gcc2
1248 builtin and then its argument prototype would still apply. */
1253 /* The GNU C library defines this for functions which it implements
1254 to always fail with ENOSYS. Some functions are actually named
1255 something starting with __ and the normal name is an alias. */
1256 #if defined (__stub_tsearch) || defined (__stub___tsearch)
1264 if { (eval echo configure
:1265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1266 eval "ac_cv_func_tsearch=yes"
1268 echo "configure: failed program was:" >&5
1269 cat conftest.
$ac_ext >&5
1271 eval "ac_cv_func_tsearch=no"
1276 if eval "test \"`echo '$ac_cv_func_'tsearch`\" = yes"; then
1277 echo "$ac_t""yes" 1>&6
1279 PROGS_HAVE_TSEARCH
=$PROGS_IF_TSEARCH
1282 echo "$ac_t""no" 1>&6
1284 PROGS_HAVE_TSEARCH
='';
1285 echo "configure: warning: tsearch missing - not building client program(s) $PROGS_IF_TSEARCH" 1>&2
1290 echo $ac_n "checking for INADDR_LOOPBACK""... $ac_c" 1>&6
1291 echo "configure:1292: checking for INADDR_LOOPBACK" >&5
1292 if eval "test \"`echo '$''{'adns_cv_decl_inaddrloopback'+set}'`\" = set"; then
1293 echo $ac_n "(cached) $ac_c" 1>&6
1296 cat > conftest.
$ac_ext <<EOF
1297 #line 1298 "configure"
1298 #include "confdefs.h"
1300 #include <sys/socket.h>
1301 #include <netinet/in.h>
1302 #include <arpa/inet.h>
1310 if { (eval echo configure
:1311: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1312 adns_cv_decl_inaddrloopback
=yes
1314 echo "configure: failed program was:" >&5
1315 cat conftest.
$ac_ext >&5
1317 adns_cv_decl_inaddrloopback
=no
1322 if test "$adns_cv_decl_inaddrloopback" = yes; then
1323 echo "$ac_t""found" 1>&6
1325 echo "$ac_t""not in standard headers, urgh..." 1>&6
1326 ac_safe
=`echo "rpc/types.h" | sed 'y%./+-%__p_%'`
1327 echo $ac_n "checking for rpc/types.h""... $ac_c" 1>&6
1328 echo "configure:1329: checking for rpc/types.h" >&5
1329 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1330 echo $ac_n "(cached) $ac_c" 1>&6
1332 cat > conftest.
$ac_ext <<EOF
1333 #line 1334 "configure"
1334 #include "confdefs.h"
1335 #include <rpc/types.h>
1337 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1338 { (eval echo configure
:1339: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1339 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1340 if test -z
"$ac_err"; then
1342 eval "ac_cv_header_$ac_safe=yes"
1345 echo "configure: failed program was:" >&5
1346 cat conftest.
$ac_ext >&5
1348 eval "ac_cv_header_$ac_safe=no"
1352 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1353 echo "$ac_t""yes" 1>&6
1355 cat >> confdefs.h
<<\EOF
1356 #define HAVEUSE_RPCTYPES_H 1
1361 echo "$ac_t""no" 1>&6
1363 { echo "configure: error: cannot find INADDR_LOOPBACK or rpc/types.h" 1>&2; exit 1; }
1370 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
1371 echo "configure:1372: checking for inet_aton" >&5
1372 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
1373 echo $ac_n "(cached) $ac_c" 1>&6
1375 cat > conftest.
$ac_ext <<EOF
1376 #line 1377 "configure"
1377 #include "confdefs.h"
1378 /* System header to define __stub macros and hopefully few prototypes,
1379 which can conflict with char inet_aton(); below. */
1381 /* Override any gcc2 internal prototype to avoid an error. */
1382 /* We use char because int might match the return type of a gcc2
1383 builtin and then its argument prototype would still apply. */
1388 /* The GNU C library defines this for functions which it implements
1389 to always fail with ENOSYS. Some functions are actually named
1390 something starting with __ and the normal name is an alias. */
1391 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
1399 if { (eval echo configure
:1400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1401 eval "ac_cv_func_inet_aton=yes"
1403 echo "configure: failed program was:" >&5
1404 cat conftest.
$ac_ext >&5
1406 eval "ac_cv_func_inet_aton=no"
1411 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
1412 echo "$ac_t""yes" 1>&6
1415 echo "$ac_t""no" 1>&6
1417 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
1418 echo "configure:1419: checking for inet_aton in -lresolv" >&5
1419 ac_lib_var
=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
1420 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1421 echo $ac_n "(cached) $ac_c" 1>&6
1423 ac_save_LIBS
="$LIBS"
1424 LIBS
="-lresolv $LIBS"
1425 cat > conftest.
$ac_ext <<EOF
1426 #line 1427 "configure"
1427 #include "confdefs.h"
1428 /* Override any gcc2 internal prototype to avoid an error. */
1429 /* We use char because int might match the return type of a gcc2
1430 builtin and then its argument prototype would still apply. */
1437 if { (eval echo configure
:1438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1439 eval "ac_cv_lib_$ac_lib_var=yes"
1441 echo "configure: failed program was:" >&5
1442 cat conftest.
$ac_ext >&5
1444 eval "ac_cv_lib_$ac_lib_var=no"
1447 LIBS
="$ac_save_LIBS"
1450 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1451 echo "$ac_t""yes" 1>&6
1453 LIBS
="-lresolv $LIBS";
1454 echo "configure: warning: inet_aton is in libresolv, urgh. Must use -lresolv." 1>&2
1457 echo "$ac_t""no" 1>&6
1459 { echo "configure: error: cannot find library function inet_aton" 1>&2; exit 1; }
1469 echo $ac_n "checking inlines""... $ac_c" 1>&6
1470 echo "configure:1471: checking inlines" >&5
1471 if eval "test \"`echo '$''{'dpkg_cv_c_inline'+set}'`\" = set"; then
1472 echo $ac_n "(cached) $ac_c" 1>&6
1475 cat > conftest.
$ac_ext <<EOF
1476 #line 1477 "configure"
1477 #include "confdefs.h"
1480 } inline int foo (int x) {
1483 if { (eval echo configure
:1484: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1485 dpkg_cv_c_inline
=yes
1487 echo "configure: failed program was:" >&5
1488 cat conftest.
$ac_ext >&5
1496 if test "x$dpkg_cv_c_inline" = xyes
; then
1498 echo "$ac_t""yes" 1>&6
1499 cat >> confdefs.h
<<\EOF
1500 #define HAVE_INLINE 1
1505 echo "$ac_t""no" 1>&6
1511 if test "${GCC-no}" = yes; then
1512 WARNS
="-Wall -Wmissing-prototypes -Wwrite-strings -Wstrict-prototypes -Wcast-qual -Wpointer-arith"
1513 saved_cflags
="$CFLAGS"
1514 CFLAGS
="$CFLAGS -Wno-pointer-sign"
1516 echo $ac_n "checking -Wno-pointer-sign""... $ac_c" 1>&6
1517 echo "configure:1518: checking -Wno-pointer-sign" >&5
1518 if eval "test \"`echo '$''{'adns_cv_c_wnoptrsign'+set}'`\" = set"; then
1519 echo $ac_n "(cached) $ac_c" 1>&6
1522 cat > conftest.
$ac_ext <<EOF
1523 #line 1524 "configure"
1524 #include "confdefs.h"
1530 if { (eval echo configure
:1531: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1532 adns_cv_c_wnoptrsign
=yes
1534 echo "configure: failed program was:" >&5
1535 cat conftest.
$ac_ext >&5
1537 adns_cv_c_wnoptrsign
=no
1543 if test "x$adns_cv_c_wnoptrsign" = xyes
; then
1545 echo "$ac_t""yes" 1>&6
1546 WARNS
="$WARNS -Wno-pointer-sign"
1549 echo "$ac_t""no" 1>&6
1552 CFLAGS
="$saved_cflags"
1559 echo $ac_n "checking __attribute__((,,))""... $ac_c" 1>&6
1560 echo "configure:1561: checking __attribute__((,,))" >&5
1561 if eval "test \"`echo '$''{'adns_cv_c_attribute_supported'+set}'`\" = set"; then
1562 echo $ac_n "(cached) $ac_c" 1>&6
1565 cat > conftest.
$ac_ext <<EOF
1566 #line 1567 "configure"
1567 #include "confdefs.h"
1570 extern int testfunction(int x) __attribute__((,,))
1573 if { (eval echo configure
:1574: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1575 adns_cv_c_attribute_supported
=yes
1577 echo "configure: failed program was:" >&5
1578 cat conftest.
$ac_ext >&5
1580 adns_cv_c_attribute_supported
=no
1586 if test "x$adns_cv_c_attribute_supported" = xyes
; then
1588 echo "$ac_t""yes" 1>&6
1589 cat >> confdefs.h
<<\EOF
1590 #define HAVE_GNUC25_ATTRIB 1
1594 echo $ac_n "checking __attribute__((noreturn))""... $ac_c" 1>&6
1595 echo "configure:1596: checking __attribute__((noreturn))" >&5
1596 if eval "test \"`echo '$''{'adns_cv_c_attribute_noreturn'+set}'`\" = set"; then
1597 echo $ac_n "(cached) $ac_c" 1>&6
1600 cat > conftest.
$ac_ext <<EOF
1601 #line 1602 "configure"
1602 #include "confdefs.h"
1605 extern int testfunction(int x) __attribute__((noreturn))
1608 if { (eval echo configure
:1609: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1610 adns_cv_c_attribute_noreturn
=yes
1612 echo "configure: failed program was:" >&5
1613 cat conftest.
$ac_ext >&5
1615 adns_cv_c_attribute_noreturn
=no
1621 if test "x$adns_cv_c_attribute_noreturn" = xyes
; then
1623 echo "$ac_t""yes" 1>&6
1624 cat >> confdefs.h
<<\EOF
1625 #define HAVE_GNUC25_NORETURN 1
1630 echo "$ac_t""no" 1>&6
1634 echo $ac_n "checking __attribute__((const))""... $ac_c" 1>&6
1635 echo "configure:1636: checking __attribute__((const))" >&5
1636 if eval "test \"`echo '$''{'adns_cv_c_attribute_const'+set}'`\" = set"; then
1637 echo $ac_n "(cached) $ac_c" 1>&6
1640 cat > conftest.
$ac_ext <<EOF
1641 #line 1642 "configure"
1642 #include "confdefs.h"
1645 extern int testfunction(int x) __attribute__((const))
1648 if { (eval echo configure
:1649: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1650 adns_cv_c_attribute_const
=yes
1652 echo "configure: failed program was:" >&5
1653 cat conftest.
$ac_ext >&5
1655 adns_cv_c_attribute_const
=no
1661 if test "x$adns_cv_c_attribute_const" = xyes
; then
1663 echo "$ac_t""yes" 1>&6
1664 cat >> confdefs.h
<<\EOF
1665 #define HAVE_GNUC25_CONST 1
1670 echo "$ac_t""no" 1>&6
1674 echo $ac_n "checking __attribute__((format...))""... $ac_c" 1>&6
1675 echo "configure:1676: checking __attribute__((format...))" >&5
1676 if eval "test \"`echo '$''{'adns_cv_attribute_format'+set}'`\" = set"; then
1677 echo $ac_n "(cached) $ac_c" 1>&6
1680 cat > conftest.
$ac_ext <<EOF
1681 #line 1682 "configure"
1682 #include "confdefs.h"
1685 extern int testfunction(char *y, ...) __attribute__((format(printf,1,2)))
1688 if { (eval echo configure
:1689: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1690 adns_cv_attribute_format
=yes
1692 echo "configure: failed program was:" >&5
1693 cat conftest.
$ac_ext >&5
1695 adns_cv_attribute_format
=no
1701 if test "x$adns_cv_attribute_format" = xyes
; then
1703 echo "$ac_t""yes" 1>&6
1704 cat >> confdefs.h
<<\EOF
1705 #define HAVE_GNUC25_PRINTFFORMAT 1
1710 echo "$ac_t""no" 1>&6
1715 echo "$ac_t""no" 1>&6
1729 SHLIBFORLINK
='libadns.so'
1730 SHLIBSONAME
='$(SHLIBFORLINK).$(MAJOR)'
1731 SHLIBFILE
='$(SHLIBSONAME).$(MINOR)'
1733 SHLIBCC
='$(CC) $(CFLAGS) -fpic'
1734 MKSHLIB_1
='$(CC) $(LDFLAGS) -shared -Wl,-soname=$(SHLIBSONAME) -o'
1739 cat > confcache
<<\EOF
1740 # This file is a shell script that caches the results of configure
1741 # tests run on this system so they can be shared between configure
1742 # scripts and configure runs. It is not useful on other systems.
1743 # If it contains results you don't want to keep, you may remove or edit it.
1745 # By default, configure uses ./config.cache as the cache file,
1746 # creating it if it does not exist already. You can give configure
1747 # the --cache-file=FILE option to use a different cache file; that is
1748 # what configure does when it calls configure scripts in
1749 # subdirectories, so they share the cache.
1750 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1751 # config.status only pays attention to the cache file if you give it the
1752 # --recheck option to rerun configure.
1755 # The following way of writing the cache mishandles newlines in values,
1756 # but we know of no workaround that is simple, portable, and efficient.
1757 # So, don't put newlines in cache variables' values.
1758 # Ultrix sh set writes to stderr and can't be redirected directly,
1759 # and sets the high bit in the cache file unless we assign to the vars.
1761 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1763 # `set' does not quote correctly, so add quotes (double-quote substitution
1764 # turns \\\\ into \\, and sed turns \\ into \).
1766 -e
"s/'/'\\\\''/g" \
1767 -e
"s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1770 # `set' quotes correctly as required by POSIX, so do not add quotes.
1771 sed -n
-e
's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1774 if cmp -s
$cache_file confcache
; then
1777 if test -w
$cache_file; then
1778 echo "updating cache $cache_file"
1779 cat confcache
> $cache_file
1781 echo "not updating unwritable cache $cache_file"
1786 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1788 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
1789 # Let make expand exec_prefix.
1790 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
1792 # Any assignment to VPATH causes Sun make to only execute
1793 # the first set of double-colon rules, so remove it if not needed.
1794 # If there is a colon in the path, we need to keep it.
1795 if test "x$srcdir" = x.
; then
1796 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
1799 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1801 DEFS
=-DHAVE_CONFIG_H
1803 # Without the "./", some shells look in PATH for config.status.
1804 : ${CONFIG_STATUS=./config.status}
1806 echo creating
$CONFIG_STATUS
1807 rm -f
$CONFIG_STATUS
1808 cat > $CONFIG_STATUS <<EOF
1810 # Generated automatically by configure.
1811 # Run this file to recreate the current configuration.
1812 # This directory was configured as follows,
1813 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1815 # $0 $ac_configure_args
1817 # Compiler output produced by configure, useful for debugging
1818 # configure, is in ./config.log if it exists.
1820 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1823 case "\$ac_option" in
1824 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1825 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1826 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1827 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1828 echo "$CONFIG_STATUS generated by autoconf version 2.13"
1830 -help | --help | --hel | --he | --h)
1831 echo "\$ac_cs_usage"; exit 0 ;;
1832 *) echo "\$ac_cs_usage"; exit 1 ;;
1836 ac_given_srcdir=$srcdir
1837 ac_given_INSTALL="$INSTALL"
1839 trap 'rm -fr `echo "settings.make Makefile
1840 src/Makefile client/Makefile dynamic/Makefile regress/Makefile
1841 src/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1843 cat >> $CONFIG_STATUS <<EOF
1845 # Protect against being on the right side of a sed subst in config.status.
1846 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1847 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1851 s%@CFLAGS@%$CFLAGS%g
1852 s%@CPPFLAGS@%$CPPFLAGS%g
1853 s%@CXXFLAGS@%$CXXFLAGS%g
1854 s%@FFLAGS@%$FFLAGS%g
1856 s%@LDFLAGS@%$LDFLAGS%g
1858 s%@exec_prefix@%$exec_prefix%g
1859 s%@prefix@%$prefix%g
1860 s%@program_transform_name@%$program_transform_name%g
1861 s%@bindir@%$bindir%g
1862 s%@sbindir@%$sbindir%g
1863 s%@libexecdir@%$libexecdir%g
1864 s%@datadir@%$datadir%g
1865 s%@sysconfdir@%$sysconfdir%g
1866 s%@sharedstatedir@%$sharedstatedir%g
1867 s%@localstatedir@%$localstatedir%g
1868 s%@libdir@%$libdir%g
1869 s%@includedir@%$includedir%g
1870 s%@oldincludedir@%$oldincludedir%g
1871 s%@infodir@%$infodir%g
1872 s%@mandir@%$mandir%g
1873 s%@ENABLE_DYNAMIC@%$ENABLE_DYNAMIC%g
1876 s%@RANLIB@%$RANLIB%g
1877 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1878 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1879 s%@INSTALL_DATA@%$INSTALL_DATA%g
1880 s%@PROGS_HAVE_TSEARCH@%$PROGS_HAVE_TSEARCH%g
1882 s%@SHLIBCC@%$SHLIBCC%g
1883 s%@MKSHLIB_1@%$MKSHLIB_1%g
1884 s%@MKSHLIB_2@%$MKSHLIB_2%g
1885 s%@MKSHLIB_3@%$MKSHLIB_3%g
1886 s%@SHLIBFORLINK@%$SHLIBFORLINK%g
1887 s%@SHLIBFILE@%$SHLIBFILE%g
1888 s%@SHLIBSONAME@%$SHLIBSONAME%g
1893 cat >> $CONFIG_STATUS <<\EOF
1895 # Split the substitutions into bite-sized pieces for seds with
1896 # small command number limits, like on Digital OSF/1 and HP-UX.
1897 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
1898 ac_file
=1 # Number of current file.
1899 ac_beg
=1 # First line for current file.
1900 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
1903 while $ac_more_lines; do
1904 if test $ac_beg -gt
1; then
1905 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
1907 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
1909 if test ! -s conftest.s
$ac_file; then
1911 rm -f conftest.s
$ac_file
1913 if test -z
"$ac_sed_cmds"; then
1914 ac_sed_cmds
="sed -f conftest.s$ac_file"
1916 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
1918 ac_file
=`expr $ac_file + 1`
1920 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
1923 if test -z
"$ac_sed_cmds"; then
1928 cat >> $CONFIG_STATUS <<EOF
1930 CONFIG_FILES=\${CONFIG_FILES-"settings.make Makefile
1931 src/Makefile client/Makefile dynamic/Makefile regress/Makefile
1934 cat >> $CONFIG_STATUS <<\EOF
1935 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
1936 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1938 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
1939 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
1940 *) ac_file_in
="${ac_file}.in" ;;
1943 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1945 # Remove last slash and all that follows it. Not all systems have dirname.
1946 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1947 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
1948 # The file is in a subdirectory.
1949 test ! -d
"$ac_dir" && mkdir
"$ac_dir"
1950 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
1951 # A "../" for each directory in $ac_dir_suffix.
1952 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1954 ac_dir_suffix
= ac_dots
=
1957 case "$ac_given_srcdir" in
1959 if test -z
"$ac_dots"; then top_srcdir
=.
1960 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1961 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
1963 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1964 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
1967 case "$ac_given_INSTALL" in
1968 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
1969 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
1972 echo creating
"$ac_file"
1974 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1976 *Makefile
*) ac_comsub
="1i\\
1977 # $configure_input" ;;
1981 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1983 s%@configure_input@%$configure_input%g
1984 s%@srcdir@%$srcdir%g
1985 s%@top_srcdir@%$top_srcdir%g
1986 s%@INSTALL@%$INSTALL%g
1987 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
1991 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1992 # NAME is the cpp macro being defined and VALUE is the value it is being given.
1994 # ac_d sets the value in "#define NAME VALUE" lines.
1995 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
1996 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
1999 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2000 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2001 ac_uB
='\([ ]\)%\1#\2define\3'
2004 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2005 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2006 ac_eB
='$%\1#\2define\3'
2010 if test "${CONFIG_HEADERS+set}" != set; then
2012 cat >> $CONFIG_STATUS <<EOF
2013 CONFIG_HEADERS="src/config.h"
2015 cat >> $CONFIG_STATUS <<\EOF
2017 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
2018 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2020 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
2021 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
2022 *) ac_file_in
="${ac_file}.in" ;;
2025 echo creating
$ac_file
2027 rm -f conftest.frag conftest.
in conftest.out
2028 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2029 cat $ac_file_inputs > conftest.
in
2033 # Transform confdefs.h into a sed script conftest.vals that substitutes
2034 # the proper values into config.h.in to produce config.h. And first:
2035 # Protect against being on the right side of a sed subst in config.status.
2036 # Protect against being in an unquoted here document in config.status.
2038 cat > conftest.hdr
<<\EOF
2041 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2045 sed -n -f conftest.hdr confdefs.h > conftest.vals
2048 # This sed command replaces #undef with comments. This is necessary, for
2049 # example, in the case of _POSIX_SOURCE, which is predefined and required
2050 # on some systems where configure will not decide to define it.
2051 cat >> conftest.vals <<\EOF
2052 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2055 # Break up conftest.vals because some shells have a limit on
2056 # the size of here documents, and old seds have small limits too.
2061 ac_lines=`grep -c . conftest.vals
`
2062 # grep -c gives empty output for an empty file on some AIX systems.
2063 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2064 # Write a limited-size here document to conftest.frag.
2065 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2066 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2068 sed -f conftest.frag conftest.in > conftest.out
2070 mv conftest.out conftest.in
2072 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2074 mv conftest.tail conftest.vals
2078 cat >> $CONFIG_STATUS <<\EOF
2079 rm -f conftest.frag conftest.h
2080 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2081 cat conftest.in >> conftest.h
2083 if cmp -s $ac_file conftest.h 2>/dev/null; then
2084 echo "$ac_file is unchanged"
2087 # Remove last slash and all that follows it. Not all systems have dirname.
2088 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
2089 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2090 # The file is in a subdirectory.
2091 test ! -d "$ac_dir" && mkdir "$ac_dir"
2094 mv conftest.h $ac_file
2099 cat >> $CONFIG_STATUS <<EOF
2102 cat >> $CONFIG_STATUS <<\EOF
2106 chmod +x $CONFIG_STATUS
2107 rm -fr confdefs* $ac_clean_files
2108 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1