Revert "Use a variable on the stack to not have a temporary in the call"
[ACE_TAO.git] / ACE / apps / JAWS / clients / WebSTONE / src / configure
blob8e1ad6e8369026f2525c40d8b5854b3ac0c3f26e
1 #! /bin/sh
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.7
5 # Copyright (C) 1992, 1993, 1994 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.
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_default_prefix=bin
16 # Initialize some variables set by options.
17 # The variables have the same names as the options, with
18 # dashes changed to underlines.
19 build=NONE
20 cache_file=./config.cache
21 exec_prefix=NONE
22 host=NONE
23 no_create=
24 nonopt=NONE
25 no_recursion=
26 prefix=NONE
27 program_prefix=NONE
28 program_suffix=NONE
29 program_transform_name=s,x,x,
30 silent=
31 site=
32 srcdir=
33 target=NONE
34 verbose=
35 x_includes=NONE
36 x_libraries=NONE
37 bindir='${exec_prefix}/bin'
38 sbindir='${exec_prefix}/sbin'
39 libexecdir='${exec_prefix}/libexec'
40 datadir='${prefix}/share'
41 sysconfdir='${prefix}/etc'
42 sharedstatedir='${prefix}/com'
43 localstatedir='${prefix}/var'
44 libdir='${exec_prefix}/lib'
45 includedir='${prefix}/include'
46 oldincludedir='/usr/include'
47 infodir='${prefix}/info'
48 mandir='${prefix}/man'
50 # Initialize some other variables.
51 subdirs=
52 MFLAGS= MAKEFLAGS=
54 ac_prev=
55 for ac_option
58 # If the previous option needs an argument, assign it.
59 if test -n "$ac_prev"; then
60 eval "$ac_prev=\$ac_option"
61 ac_prev=
62 continue
65 case "$ac_option" in
66 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
67 *) ac_optarg= ;;
68 esac
70 # Accept the important Cygnus configure options, so we can diagnose typos.
72 case "$ac_option" in
74 -bindir | --bindir | --bindi | --bind | --bin | --bi)
75 ac_prev=bindir ;;
76 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
77 bindir="$ac_optarg" ;;
79 -build | --build | --buil | --bui | --bu)
80 ac_prev=build ;;
81 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
82 build="$ac_optarg" ;;
84 -cache-file | --cache-file | --cache-fil | --cache-fi \
85 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
86 ac_prev=cache_file ;;
87 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
88 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
89 cache_file="$ac_optarg" ;;
91 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
92 ac_prev=datadir ;;
93 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
94 | --da=*)
95 datadir="$ac_optarg" ;;
97 -disable-* | --disable-*)
98 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
99 # Reject names that are not valid shell variable names.
100 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
101 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
103 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
104 eval "enable_${ac_feature}=no" ;;
106 -enable-* | --enable-*)
107 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
108 # Reject names that are not valid shell variable names.
109 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
110 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
112 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
113 case "$ac_option" in
114 *=*) ;;
115 *) ac_optarg=yes ;;
116 esac
117 eval "enable_${ac_feature}='$ac_optarg'" ;;
119 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
120 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
121 | --exec | --exe | --ex)
122 ac_prev=exec_prefix ;;
123 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
124 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
125 | --exec=* | --exe=* | --ex=*)
126 exec_prefix="$ac_optarg" ;;
128 -gas | --gas | --ga | --g)
129 # Obsolete; use --with-gas.
130 with_gas=yes ;;
132 -help | --help | --hel | --he)
133 # Omit some internal or obsolete options to make the list less imposing.
134 # This message is too long to be a string in the A/UX 3.1 sh.
135 cat << EOF
136 Usage: configure [options] [host]
137 Options: [defaults in brackets after descriptions]
138 Configuration:
139 --cache-file=FILE cache test results in FILE
140 --help print this message
141 --no-create do not create output files
142 --quiet, --silent do not print \`checking...' messages
143 --version print the version of autoconf that created configure
144 Directory and file names:
145 --prefix=PREFIX install architecture-independent files in PREFIX
146 [$ac_default_prefix]
147 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
148 [same as prefix]
149 --bindir=DIR user executables in DIR [EPREFIX/bin]
150 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
151 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
152 --datadir=DIR read-only architecture-independent data in DIR
153 [PREFIX/share]
154 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
155 --sharedstatedir=DIR modifiable architecture-independent data in DIR
156 [PREFIX/com]
157 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
158 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
159 --includedir=DIR C header files in DIR [PREFIX/include]
160 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
161 --infodir=DIR info documentation in DIR [PREFIX/info]
162 --mandir=DIR man documentation in DIR [PREFIX/man]
163 --srcdir=DIR find the sources in DIR [configure dir or ..]
164 --program-prefix=PREFIX prepend PREFIX to installed program names
165 --program-suffix=SUFFIX append SUFFIX to installed program names
166 --program-transform-name=PROGRAM
167 run sed PROGRAM on installed program names
169 cat << EOF
170 Host type:
171 --build=BUILD configure for building on BUILD [BUILD=HOST]
172 --host=HOST configure for HOST [guessed]
173 --target=TARGET configure for TARGET [TARGET=HOST]
174 Features and packages:
175 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
176 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
177 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
178 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
179 --x-includes=DIR X include files are in DIR
180 --x-libraries=DIR X library files are in DIR
182 if test -n "$ac_help"; then
183 echo "--enable and --with options recognized:$ac_help"
185 exit 0 ;;
187 -host | --host | --hos | --ho)
188 ac_prev=host ;;
189 -host=* | --host=* | --hos=* | --ho=*)
190 host="$ac_optarg" ;;
192 -includedir | --includedir | --includedi | --included | --include \
193 | --includ | --inclu | --incl | --inc)
194 ac_prev=includedir ;;
195 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
196 | --includ=* | --inclu=* | --incl=* | --inc=*)
197 includedir="$ac_optarg" ;;
199 -infodir | --infodir | --infodi | --infod | --info | --inf)
200 ac_prev=infodir ;;
201 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
202 infodir="$ac_optarg" ;;
204 -libdir | --libdir | --libdi | --libd)
205 ac_prev=libdir ;;
206 -libdir=* | --libdir=* | --libdi=* | --libd=*)
207 libdir="$ac_optarg" ;;
209 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
210 | --libexe | --libex | --libe)
211 ac_prev=libexecdir ;;
212 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
213 | --libexe=* | --libex=* | --libe=*)
214 libexecdir="$ac_optarg" ;;
216 -localstatedir | --localstatedir | --localstatedi | --localstated \
217 | --localstate | --localstat | --localsta | --localst \
218 | --locals | --local | --loca | --loc | --lo)
219 ac_prev=localstatedir ;;
220 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
221 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
222 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
223 localstatedir="$ac_optarg" ;;
225 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
226 ac_prev=mandir ;;
227 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
228 mandir="$ac_optarg" ;;
230 -nfp | --nfp | --nf)
231 # Obsolete; use --without-fp.
232 with_fp=no ;;
234 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
235 | --no-cr | --no-c)
236 no_create=yes ;;
238 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
239 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
240 no_recursion=yes ;;
242 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
243 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
244 | --oldin | --oldi | --old | --ol | --o)
245 ac_prev=oldincludedir ;;
246 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
247 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
248 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
249 oldincludedir="$ac_optarg" ;;
251 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
252 ac_prev=prefix ;;
253 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
254 prefix="$ac_optarg" ;;
256 -program-prefix | --program-prefix | --program-prefi | --program-pref \
257 | --program-pre | --program-pr | --program-p)
258 ac_prev=program_prefix ;;
259 -program-prefix=* | --program-prefix=* | --program-prefi=* \
260 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
261 program_prefix="$ac_optarg" ;;
263 -program-suffix | --program-suffix | --program-suffi | --program-suff \
264 | --program-suf | --program-su | --program-s)
265 ac_prev=program_suffix ;;
266 -program-suffix=* | --program-suffix=* | --program-suffi=* \
267 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
268 program_suffix="$ac_optarg" ;;
270 -program-transform-name | --program-transform-name \
271 | --program-transform-nam | --program-transform-na \
272 | --program-transform-n | --program-transform- \
273 | --program-transform | --program-transfor \
274 | --program-transfo | --program-transf \
275 | --program-trans | --program-tran \
276 | --progr-tra | --program-tr | --program-t)
277 ac_prev=program_transform_name ;;
278 -program-transform-name=* | --program-transform-name=* \
279 | --program-transform-nam=* | --program-transform-na=* \
280 | --program-transform-n=* | --program-transform-=* \
281 | --program-transform=* | --program-transfor=* \
282 | --program-transfo=* | --program-transf=* \
283 | --program-trans=* | --program-tran=* \
284 | --progr-tra=* | --program-tr=* | --program-t=*)
285 program_transform_name="$ac_optarg" ;;
287 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
288 | -silent | --silent | --silen | --sile | --sil)
289 silent=yes ;;
291 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
292 ac_prev=sbindir ;;
293 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
294 | --sbi=* | --sb=*)
295 sbindir="$ac_optarg" ;;
297 -sharedstatedir | --sharedstatedir | --sharedstatedi \
298 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
299 | --sharedst | --shareds | --shared | --share | --shar \
300 | --sha | --sh)
301 ac_prev=sharedstatedir ;;
302 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
303 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
304 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
305 | --sha=* | --sh=*)
306 sharedstatedir="$ac_optarg" ;;
308 -site | --site | --sit)
309 ac_prev=site ;;
310 -site=* | --site=* | --sit=*)
311 site="$ac_optarg" ;;
313 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
314 ac_prev=srcdir ;;
315 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
316 srcdir="$ac_optarg" ;;
318 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
319 | --syscon | --sysco | --sysc | --sys | --sy)
320 ac_prev=sysconfdir ;;
321 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
322 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
323 sysconfdir="$ac_optarg" ;;
325 -target | --target | --targe | --targ | --tar | --ta | --t)
326 ac_prev=target ;;
327 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
328 target="$ac_optarg" ;;
330 -v | -verbose | --verbose | --verbos | --verbo | --verb)
331 verbose=yes ;;
333 -version | --version | --versio | --versi | --vers)
334 echo "configure generated by autoconf version 2.7"
335 exit 0 ;;
337 -with-* | --with-*)
338 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
339 # Reject names that are not valid shell variable names.
340 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
341 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
343 ac_package=`echo $ac_package| sed 's/-/_/g'`
344 case "$ac_option" in
345 *=*) ;;
346 *) ac_optarg=yes ;;
347 esac
348 eval "with_${ac_package}='$ac_optarg'" ;;
350 -without-* | --without-*)
351 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
352 # Reject names that are not valid shell variable names.
353 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
354 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
356 ac_package=`echo $ac_package| sed 's/-/_/g'`
357 eval "with_${ac_package}=no" ;;
359 --x)
360 # Obsolete; use --with-x.
361 with_x=yes ;;
363 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
364 | --x-incl | --x-inc | --x-in | --x-i)
365 ac_prev=x_includes ;;
366 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
367 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
368 x_includes="$ac_optarg" ;;
370 -x-libraries | --x-libraries | --x-librarie | --x-librari \
371 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
372 ac_prev=x_libraries ;;
373 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
374 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
375 x_libraries="$ac_optarg" ;;
377 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
381 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
382 echo "configure: warning: $ac_option: invalid host type" 1>&2
384 if test "x$nonopt" != xNONE; then
385 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
387 nonopt="$ac_option"
390 esac
391 done
393 if test -n "$ac_prev"; then
394 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
397 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
399 # File descriptor usage:
400 # 0 standard input
401 # 1 file creation
402 # 2 errors and warnings
403 # 3 some systems may open it to /dev/tty
404 # 4 used on the Kubota Titan
405 # 6 checking for... messages and results
406 # 5 compiler messages saved in config.log
407 if test "$silent" = yes; then
408 exec 6>/dev/null
409 else
410 exec 6>&1
412 exec 5>./config.log
414 echo "\
415 This file contains any messages produced by compilers while
416 running configure, to aid debugging if configure makes a mistake.
417 " 1>&5
419 # Strip out --no-create and --no-recursion so they do not pile up.
420 # Also quote any args containing shell metacharacters.
421 ac_configure_args=
422 for ac_arg
424 case "$ac_arg" in
425 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
426 | --no-cr | --no-c) ;;
427 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
428 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
429 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
430 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
431 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
432 esac
433 done
435 # NLS nuisances.
436 # Only set LANG and LC_ALL to C if already set.
437 # These must not be set unconditionally because not all systems understand
438 # e.g. LANG=C (notably SCO).
439 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
440 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
442 # confdefs.h avoids OS command line length limits that DEFS can exceed.
443 rm -rf conftest* confdefs.h
444 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
445 echo > confdefs.h
447 # A filename unique to this package, relative to the directory that
448 # configure is in, which we can look for to find out if srcdir is correct.
449 ac_unique_file=webclient.c
451 # Find the source files, if location was not specified.
452 if test -z "$srcdir"; then
453 ac_srcdir_defaulted=yes
454 # Try the directory containing this script, then its parent.
455 ac_prog=$0
456 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
457 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
458 srcdir=$ac_confdir
459 if test ! -r $srcdir/$ac_unique_file; then
460 srcdir=..
462 else
463 ac_srcdir_defaulted=no
465 if test ! -r $srcdir/$ac_unique_file; then
466 if test "$ac_srcdir_defaulted" = yes; then
467 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
468 else
469 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
472 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
474 # Prefer explicitly selected file to automatically selected ones.
475 if test -z "$CONFIG_SITE"; then
476 if test "x$prefix" != xNONE; then
477 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
478 else
479 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
482 for ac_site_file in $CONFIG_SITE; do
483 if test -r "$ac_site_file"; then
484 echo "loading site script $ac_site_file"
485 . "$ac_site_file"
487 done
489 if test -r "$cache_file"; then
490 echo "loading cache $cache_file"
491 . $cache_file
492 else
493 echo "creating cache $cache_file"
494 > $cache_file
497 ac_ext=c
498 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
499 ac_cpp='echo $CPP $CPPFLAGS 1>&5;
500 $CPP $CPPFLAGS'
501 ac_compile='echo ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5;
502 ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5'
503 ac_link='echo ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5;
504 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5'
506 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
507 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
508 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
509 ac_n= ac_c='
510 ' ac_t=' '
511 else
512 ac_n=-n ac_c= ac_t=
514 else
515 ac_n= ac_c='\c' ac_t=
520 PRODUCT=webstone
521 VERSION=2.0b4
522 cat >> confdefs.h <<EOF
523 #define PRODUCT "$PRODUCT"
526 cat >> confdefs.h <<EOF
527 #define VERSION "$VERSION"
534 # set system type
535 ac_aux_dir=
536 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
537 if test -f $ac_dir/install-sh; then
538 ac_aux_dir=$ac_dir
539 ac_install_sh="$ac_aux_dir/install-sh -c"
540 break
541 elif test -f $ac_dir/install.sh; then
542 ac_aux_dir=$ac_dir
543 ac_install_sh="$ac_aux_dir/install.sh -c"
544 break
546 done
547 if test -z "$ac_aux_dir"; then
548 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
550 ac_config_guess=$ac_aux_dir/config.guess
551 ac_config_sub=$ac_aux_dir/config.sub
552 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
555 # Do some error checking and defaulting for the host and target type.
556 # The inputs are:
557 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
559 # The rules are:
560 # 1. You are not allowed to specify --host, --target, and nonopt at the
561 # same time.
562 # 2. Host defaults to nonopt.
563 # 3. If nonopt is not specified, then host defaults to the current host,
564 # as determined by config.guess.
565 # 4. Target and build default to nonopt.
566 # 5. If nonopt is not specified, then target and build default to host.
568 # The aliases save the names the user supplied, while $host etc.
569 # will get canonicalized.
570 case $host---$target---$nonopt in
571 NONE---*---* | *---NONE---* | *---*---NONE) ;;
572 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
573 esac
576 # Make sure we can run config.sub.
577 if $ac_config_sub sun4 >/dev/null 2>&1; then :
578 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
581 echo $ac_n "checking host system type""... $ac_c" 1>&6
583 host_alias=$host
584 case "$host_alias" in
585 NONE)
586 case $nonopt in
587 NONE)
588 if host_alias=`$ac_config_guess`; then :
589 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
590 fi ;;
591 *) host_alias=$nonopt ;;
592 esac ;;
593 esac
595 host=`$ac_config_sub $host_alias`
596 host_cpu=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
597 host_vendor=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
598 host_os=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
599 echo "$ac_t""$host" 1>&6
601 echo $ac_n "checking target system type""... $ac_c" 1>&6
603 target_alias=$target
604 case "$target_alias" in
605 NONE)
606 case $nonopt in
607 NONE) target_alias=$host_alias ;;
608 *) target_alias=$nonopt ;;
609 esac ;;
610 esac
612 target=`$ac_config_sub $target_alias`
613 target_cpu=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
614 target_vendor=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
615 target_os=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
616 echo "$ac_t""$target" 1>&6
618 echo $ac_n "checking build system type""... $ac_c" 1>&6
620 build_alias=$build
621 case "$build_alias" in
622 NONE)
623 case $nonopt in
624 NONE) build_alias=$host_alias ;;
625 *) build_alias=$nonopt ;;
626 esac ;;
627 esac
629 build=`$ac_config_sub $build_alias`
630 build_cpu=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
631 build_vendor=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
632 build_os=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
633 echo "$ac_t""$build" 1>&6
635 test "$host_alias" != "$target_alias" &&
636 test "$program_prefix$program_suffix$program_transform_name" = \
637 NONENONEs,x,x, &&
638 program_prefix=${target_alias}-
642 # checks for programs
644 # Extract the first word of "gcc", so it can be a program name with args.
645 set dummy gcc; ac_word=$2
646 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
647 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
648 echo $ac_n "(cached) $ac_c" 1>&6
649 else
650 if test -n "$CC"; then
651 ac_cv_prog_CC="$CC" # Let the user override the test.
652 else
653 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
654 for ac_dir in $PATH; do
655 test -z "$ac_dir" && ac_dir=.
656 if test -f $ac_dir/$ac_word; then
657 ac_cv_prog_CC="gcc"
658 break
660 done
661 IFS="$ac_save_ifs"
662 test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="cc"
665 CC="$ac_cv_prog_CC"
666 if test -n "$CC"; then
667 echo "$ac_t""$CC" 1>&6
668 else
669 echo "$ac_t""no" 1>&6
673 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
674 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
675 echo $ac_n "(cached) $ac_c" 1>&6
676 else
677 cat > conftest.c <<EOF
678 #ifdef __GNUC__
679 yes;
680 #endif
682 if ${CC-cc} -E conftest.c 2>&5 | egrep yes >/dev/null 2>&1; then
683 ac_cv_prog_gcc=yes
684 else
685 ac_cv_prog_gcc=no
689 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
690 if test $ac_cv_prog_gcc = yes; then
691 GCC=yes
692 if test "${CFLAGS+set}" != set; then
693 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
694 if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
695 echo $ac_n "(cached) $ac_c" 1>&6
696 else
697 echo 'void f(){}' > conftest.c
698 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
699 ac_cv_prog_gcc_g=yes
700 else
701 ac_cv_prog_gcc_g=no
703 rm -f conftest*
707 echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
708 if test $ac_cv_prog_gcc_g = yes; then
709 CFLAGS="-g -O"
710 else
711 CFLAGS="-O"
714 else
715 GCC=
716 test "${CFLAGS+set}" = set || CFLAGS="-g"
719 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
720 set dummy ${MAKE-make}; ac_make=$2
721 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
722 echo $ac_n "(cached) $ac_c" 1>&6
723 else
724 cat > conftestmake <<\EOF
725 all:
726 @echo 'ac_maketemp="${MAKE}"'
728 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
729 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
730 if test -n "$ac_maketemp"; then
731 eval ac_cv_prog_make_${ac_make}_set=yes
732 else
733 eval ac_cv_prog_make_${ac_make}_set=no
735 rm -f conftestmake
737 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
738 echo "$ac_t""yes" 1>&6
739 SET_MAKE=
740 else
741 echo "$ac_t""no" 1>&6
742 SET_MAKE="MAKE=${MAKE-make}"
745 for ac_prog in mawk gawk nawk awk
747 # Extract the first word of "$ac_prog", so it can be a program name with args.
748 set dummy $ac_prog; ac_word=$2
749 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
750 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
751 echo $ac_n "(cached) $ac_c" 1>&6
752 else
753 if test -n "$AWK"; then
754 ac_cv_prog_AWK="$AWK" # Let the user override the test.
755 else
756 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
757 for ac_dir in $PATH; do
758 test -z "$ac_dir" && ac_dir=.
759 if test -f $ac_dir/$ac_word; then
760 ac_cv_prog_AWK="$ac_prog"
761 break
763 done
764 IFS="$ac_save_ifs"
767 AWK="$ac_cv_prog_AWK"
768 if test -n "$AWK"; then
769 echo "$ac_t""$AWK" 1>&6
770 else
771 echo "$ac_t""no" 1>&6
774 test -n "$AWK" && break
775 done
779 # We use a path for perl so the #! line in bin/wscollect.pl will work.
780 # Extract the first word of "perl", so it can be a program name with args.
781 set dummy perl; ac_word=$2
782 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
783 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
784 echo $ac_n "(cached) $ac_c" 1>&6
785 else
786 case "$PERL" in
788 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
791 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
792 for ac_dir in $PATH; do
793 test -z "$ac_dir" && ac_dir=.
794 if test -f $ac_dir/$ac_word; then
795 ac_cv_path_PERL="$ac_dir/$ac_word"
796 break
798 done
799 IFS="$ac_save_ifs"
800 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
802 esac
804 PERL="$ac_cv_path_PERL"
805 if test -n "$PERL"; then
806 echo "$ac_t""$PERL" 1>&6
807 else
808 echo "$ac_t""no" 1>&6
813 if test "$PERL" != no; then
814 PERL_SCRIPTS="bin/wscollect.pl"
815 else
816 echo "configure: warning: Some functions may work correctly" 1>&2
820 # checks for libraries
822 # Replace `main' with a function in -lm:
823 echo $ac_n "checking for -lm""... $ac_c" 1>&6
824 ac_lib_var=`echo m | tr '.-/+' '___p'`
825 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
826 echo $ac_n "(cached) $ac_c" 1>&6
827 else
828 ac_save_LIBS="$LIBS"
829 LIBS="-lm $LIBS"
830 cat > conftest.$ac_ext <<EOF
831 #line 832 "configure"
832 #include "confdefs.h"
834 int main() { return 0; }
835 int t() {
836 floor()
837 ; return 0; }
839 if eval $ac_link; then
840 rm -rf conftest*
841 eval "ac_cv_lib_$ac_lib_var=yes"
842 else
843 rm -rf conftest*
844 eval "ac_cv_lib_$ac_lib_var=no"
846 rm -f conftest*
847 LIBS="$ac_save_LIBS"
850 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
851 echo "$ac_t""yes" 1>&6
852 ac_tr_lib=HAVE_LIB`echo m | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
853 cat >> confdefs.h <<EOF
854 #define $ac_tr_lib 1
857 LIBS="-lm $LIBS"
859 else
860 echo "$ac_t""no" 1>&6
863 echo $ac_n "checking for -lcompat""... $ac_c" 1>&6
864 ac_lib_var=`echo compat | tr '.-/+' '___p'`
865 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
866 echo $ac_n "(cached) $ac_c" 1>&6
867 else
868 ac_save_LIBS="$LIBS"
869 LIBS="-lcompat $LIBS"
870 cat > conftest.$ac_ext <<EOF
871 #line 872 "configure"
872 #include "confdefs.h"
874 int main() { return 0; }
875 int t() {
876 rexec()
877 ; return 0; }
879 if eval $ac_link; then
880 rm -rf conftest*
881 eval "ac_cv_lib_$ac_lib_var=yes"
882 else
883 rm -rf conftest*
884 eval "ac_cv_lib_$ac_lib_var=no"
886 rm -f conftest*
887 LIBS="$ac_save_LIBS"
890 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
891 echo "$ac_t""yes" 1>&6
892 ac_tr_lib=HAVE_LIB`echo compat | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
893 cat >> confdefs.h <<EOF
894 #define $ac_tr_lib 1
897 LIBS="-lcompat $LIBS"
899 else
900 echo "$ac_t""no" 1>&6
903 echo $ac_n "checking for -lucb""... $ac_c" 1>&6
904 ac_lib_var=`echo ucb | tr '.-/+' '___p'`
905 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
906 echo $ac_n "(cached) $ac_c" 1>&6
907 else
908 ac_save_LIBS="$LIBS"
909 LIBS="-lucb $LIBS"
910 cat > conftest.$ac_ext <<EOF
911 #line 912 "configure"
912 #include "confdefs.h"
914 int main() { return 0; }
915 int t() {
916 wait3()
917 ; return 0; }
919 if eval $ac_link; then
920 rm -rf conftest*
921 eval "ac_cv_lib_$ac_lib_var=yes"
922 else
923 rm -rf conftest*
924 eval "ac_cv_lib_$ac_lib_var=no"
926 rm -f conftest*
927 LIBS="$ac_save_LIBS"
930 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
931 echo "$ac_t""yes" 1>&6
932 ac_tr_lib=HAVE_LIB`echo ucb | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
933 cat >> confdefs.h <<EOF
934 #define $ac_tr_lib 1
937 LIBS="-lucb $LIBS"
939 else
940 echo "$ac_t""no" 1>&6
943 echo $ac_n "checking for -lsocket""... $ac_c" 1>&6
944 ac_lib_var=`echo socket | tr '.-/+' '___p'`
945 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
946 echo $ac_n "(cached) $ac_c" 1>&6
947 else
948 ac_save_LIBS="$LIBS"
949 LIBS="-lsocket -lnsl $LIBS"
950 cat > conftest.$ac_ext <<EOF
951 #line 952 "configure"
952 #include "confdefs.h"
954 int main() { return 0; }
955 int t() {
956 connect()
957 ; return 0; }
959 if eval $ac_link; then
960 rm -rf conftest*
961 eval "ac_cv_lib_$ac_lib_var=yes"
962 else
963 rm -rf conftest*
964 eval "ac_cv_lib_$ac_lib_var=no"
966 rm -f conftest*
967 LIBS="$ac_save_LIBS"
970 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
971 echo "$ac_t""yes" 1>&6
972 ac_tr_lib=HAVE_LIB`echo socket | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
973 cat >> confdefs.h <<EOF
974 #define $ac_tr_lib 1
977 LIBS="-lsocket $LIBS"
979 else
980 echo "$ac_t""no" 1>&6
985 # checks for header files
987 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
988 # On Suns, sometimes $CPP names a directory.
989 if test -n "$CPP" && test -d "$CPP"; then
990 CPP=
992 if test -z "$CPP"; then
993 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
994 echo $ac_n "(cached) $ac_c" 1>&6
995 else
996 # This must be in double quotes, not single quotes, because CPP may get
997 # substituted into the Makefile and "${CC-cc}" will confuse make.
998 CPP="${CC-cc} -E"
999 # On the NeXT, cc -E runs the code through the compiler's parser,
1000 # not just through cpp.
1001 cat > conftest.$ac_ext <<EOF
1002 #line 1003 "configure"
1003 #include "confdefs.h"
1004 #include <assert.h>
1005 Syntax Error
1007 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1008 ac_err=`grep -v '^ *+' conftest.out`
1009 if test -z "$ac_err"; then
1011 else
1012 echo "$ac_err" >&5
1013 rm -rf conftest*
1014 CPP="${CC-cc} -E -traditional-cpp"
1015 cat > conftest.$ac_ext <<EOF
1016 #line 1017 "configure"
1017 #include "confdefs.h"
1018 #include <assert.h>
1019 Syntax Error
1021 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1022 ac_err=`grep -v '^ *+' conftest.out`
1023 if test -z "$ac_err"; then
1025 else
1026 echo "$ac_err" >&5
1027 rm -rf conftest*
1028 CPP=/lib/cpp
1030 rm -f conftest*
1032 rm -f conftest*
1033 ac_cv_prog_CPP="$CPP"
1035 CPP="$ac_cv_prog_CPP"
1036 else
1037 ac_cv_prog_CPP="$CPP"
1039 echo "$ac_t""$CPP" 1>&6
1041 # If we cannot run a trivial program, we must be cross compiling.
1042 echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
1043 if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
1044 echo $ac_n "(cached) $ac_c" 1>&6
1045 else
1046 if test "$cross_compiling" = yes; then
1047 ac_cv_c_cross=yes
1048 else
1049 cat > conftest.$ac_ext <<EOF
1050 #line 1051 "configure"
1051 #include "confdefs.h"
1052 main(){return(0);}
1054 eval $ac_link
1055 if test -s conftest && (./conftest; exit) 2>/dev/null; then
1056 ac_cv_c_cross=no
1057 else
1058 ac_cv_c_cross=yes
1061 rm -fr conftest*
1064 echo "$ac_t""$ac_cv_c_cross" 1>&6
1065 cross_compiling=$ac_cv_c_cross
1067 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1068 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1069 echo $ac_n "(cached) $ac_c" 1>&6
1070 else
1071 cat > conftest.$ac_ext <<EOF
1072 #line 1073 "configure"
1073 #include "confdefs.h"
1074 #include <stdlib.h>
1075 #include <stdarg.h>
1076 #include <string.h>
1077 #include <float.h>
1079 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1080 ac_err=`grep -v '^ *+' conftest.out`
1081 if test -z "$ac_err"; then
1082 rm -rf conftest*
1083 ac_cv_header_stdc=yes
1084 else
1085 echo "$ac_err" >&5
1086 rm -rf conftest*
1087 ac_cv_header_stdc=no
1089 rm -f conftest*
1091 if test $ac_cv_header_stdc = yes; then
1092 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1093 cat > conftest.$ac_ext <<EOF
1094 #line 1095 "configure"
1095 #include "confdefs.h"
1096 #include <string.h>
1098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1099 egrep "memchr" >/dev/null 2>&1; then
1101 else
1102 rm -rf conftest*
1103 ac_cv_header_stdc=no
1105 rm -f conftest*
1109 if test $ac_cv_header_stdc = yes; then
1110 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1111 cat > conftest.$ac_ext <<EOF
1112 #line 1113 "configure"
1113 #include "confdefs.h"
1114 #include <stdlib.h>
1116 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1117 egrep "free" >/dev/null 2>&1; then
1119 else
1120 rm -rf conftest*
1121 ac_cv_header_stdc=no
1123 rm -f conftest*
1127 if test $ac_cv_header_stdc = yes; then
1128 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1129 if test "$cross_compiling" = yes; then
1131 else
1132 cat > conftest.$ac_ext <<EOF
1133 #line 1134 "configure"
1134 #include "confdefs.h"
1135 #include <ctype.h>
1136 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1137 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1138 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1139 int main () { int i; for (i = 0; i < 256; i++)
1140 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1141 exit (0); }
1144 eval $ac_link
1145 if test -s conftest && (./conftest; exit) 2>/dev/null; then
1147 else
1148 ac_cv_header_stdc=no
1151 rm -fr conftest*
1155 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1156 if test $ac_cv_header_stdc = yes; then
1157 cat >> confdefs.h <<\EOF
1158 #define STDC_HEADERS 1
1163 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1164 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1165 echo $ac_n "(cached) $ac_c" 1>&6
1166 else
1167 cat > conftest.$ac_ext <<EOF
1168 #line 1169 "configure"
1169 #include "confdefs.h"
1170 #include <sys/types.h>
1171 #include <sys/wait.h>
1172 #ifndef WEXITSTATUS
1173 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1174 #endif
1175 #ifndef WIFEXITED
1176 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1177 #endif
1178 int main() { return 0; }
1179 int t() {
1180 int s;
1181 wait (&s);
1182 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1183 ; return 0; }
1185 if eval $ac_compile; then
1186 rm -rf conftest*
1187 ac_cv_header_sys_wait_h=yes
1188 else
1189 rm -rf conftest*
1190 ac_cv_header_sys_wait_h=no
1192 rm -f conftest*
1196 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1197 if test $ac_cv_header_sys_wait_h = yes; then
1198 cat >> confdefs.h <<\EOF
1199 #define HAVE_SYS_WAIT_H 1
1204 for ac_hdr in fcntl.h limits.h sgtty.h sys/time.h unistd.h
1206 ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
1207 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1208 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1209 echo $ac_n "(cached) $ac_c" 1>&6
1210 else
1211 cat > conftest.$ac_ext <<EOF
1212 #line 1213 "configure"
1213 #include "confdefs.h"
1214 #include <$ac_hdr>
1216 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1217 ac_err=`grep -v '^ *+' conftest.out`
1218 if test -z "$ac_err"; then
1219 rm -rf conftest*
1220 eval "ac_cv_header_$ac_safe=yes"
1221 else
1222 echo "$ac_err" >&5
1223 rm -rf conftest*
1224 eval "ac_cv_header_$ac_safe=no"
1226 rm -f conftest*
1228 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1229 echo "$ac_t""yes" 1>&6
1230 ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
1231 cat >> confdefs.h <<EOF
1232 #define $ac_tr_hdr 1
1235 else
1236 echo "$ac_t""no" 1>&6
1238 done
1242 # checks for typedefs, structures, and compiler characteristics
1244 echo $ac_n "checking for working const""... $ac_c" 1>&6
1245 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1246 echo $ac_n "(cached) $ac_c" 1>&6
1247 else
1248 cat > conftest.$ac_ext <<EOF
1249 #line 1250 "configure"
1250 #include "confdefs.h"
1252 int main() { return 0; }
1253 int t() {
1255 /* Ultrix mips cc rejects this. */
1256 typedef int charset[2]; const charset x;
1257 /* SunOS 4.1.1 cc rejects this. */
1258 char const *const *ccp;
1259 char **p;
1260 /* NEC SVR4.0.2 mips cc rejects this. */
1261 struct point {int x, y;};
1262 static struct point const zero = {0,0};
1263 /* AIX XL C 1.02.0.0 rejects this.
1264 It does not let you subtract one const X* pointer from another in an arm
1265 of an if-expression whose if-part is not a constant expression */
1266 const char *g = "string";
1267 ccp = &g + (g ? g-g : 0);
1268 /* HPUX 7.0 cc rejects these. */
1269 ++ccp;
1270 p = (char**) ccp;
1271 ccp = (char const *const *) p;
1272 { /* SCO 3.2v4 cc rejects this. */
1273 char *t;
1274 char const *s = 0 ? (char *) 0 : (char const *) 0;
1276 *t++ = 0;
1278 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1279 int x[] = {25, 17};
1280 const int *foo = &x[0];
1281 ++foo;
1283 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1284 typedef const int *iptr;
1285 iptr p = 0;
1286 ++p;
1288 { /* AIX XL C 1.02.0.0 rejects this saying
1289 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1290 struct s { int j; const int *ap[3]; };
1291 struct s *b; b->j = 5;
1293 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1294 const int foo = 10;
1297 ; return 0; }
1299 if eval $ac_compile; then
1300 rm -rf conftest*
1301 ac_cv_c_const=yes
1302 else
1303 rm -rf conftest*
1304 ac_cv_c_const=no
1306 rm -f conftest*
1310 echo "$ac_t""$ac_cv_c_const" 1>&6
1311 if test $ac_cv_c_const = no; then
1312 cat >> confdefs.h <<\EOF
1313 #define const
1318 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1319 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1320 echo $ac_n "(cached) $ac_c" 1>&6
1321 else
1322 cat > conftest.$ac_ext <<EOF
1323 #line 1324 "configure"
1324 #include "confdefs.h"
1325 #include <sys/types.h>
1326 #if STDC_HEADERS
1327 #include <stdlib.h>
1328 #endif
1330 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1331 egrep "size_t" >/dev/null 2>&1; then
1332 rm -rf conftest*
1333 ac_cv_type_size_t=yes
1334 else
1335 rm -rf conftest*
1336 ac_cv_type_size_t=no
1338 rm -f conftest*
1341 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1342 if test $ac_cv_type_size_t = no; then
1343 cat >> confdefs.h <<\EOF
1344 #define size_t unsigned
1349 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1350 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1351 echo $ac_n "(cached) $ac_c" 1>&6
1352 else
1353 cat > conftest.$ac_ext <<EOF
1354 #line 1355 "configure"
1355 #include "confdefs.h"
1356 #include <sys/types.h>
1357 #include <signal.h>
1358 #ifdef signal
1359 #undef signal
1360 #endif
1361 #ifdef __cplusplus
1362 extern "C" void (*signal (int, void (*)(int)))(int);
1363 #else
1364 void (*signal ()) ();
1365 #endif
1367 int main() { return 0; }
1368 int t() {
1369 int i;
1370 ; return 0; }
1372 if eval $ac_compile; then
1373 rm -rf conftest*
1374 ac_cv_type_signal=void
1375 else
1376 rm -rf conftest*
1377 ac_cv_type_signal=int
1379 rm -f conftest*
1383 echo "$ac_t""$ac_cv_type_signal" 1>&6
1384 cat >> confdefs.h <<EOF
1385 #define RETSIGTYPE $ac_cv_type_signal
1389 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1390 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1391 echo $ac_n "(cached) $ac_c" 1>&6
1392 else
1393 cat > conftest.$ac_ext <<EOF
1394 #line 1395 "configure"
1395 #include "confdefs.h"
1396 #include <sys/types.h>
1397 #include <sys/time.h>
1398 #include <time.h>
1399 int main() { return 0; }
1400 int t() {
1401 struct tm *tp;
1402 ; return 0; }
1404 if eval $ac_compile; then
1405 rm -rf conftest*
1406 ac_cv_header_time=yes
1407 else
1408 rm -rf conftest*
1409 ac_cv_header_time=no
1411 rm -f conftest*
1415 echo "$ac_t""$ac_cv_header_time" 1>&6
1416 if test $ac_cv_header_time = yes; then
1417 cat >> confdefs.h <<\EOF
1418 #define TIME_WITH_SYS_TIME 1
1423 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
1424 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
1425 echo $ac_n "(cached) $ac_c" 1>&6
1426 else
1427 cat > conftest.$ac_ext <<EOF
1428 #line 1429 "configure"
1429 #include "confdefs.h"
1430 #include <sys/types.h>
1431 #include <time.h>
1432 int main() { return 0; }
1433 int t() {
1434 struct tm *tp; tp->tm_sec;
1435 ; return 0; }
1437 if eval $ac_compile; then
1438 rm -rf conftest*
1439 ac_cv_struct_tm=time.h
1440 else
1441 rm -rf conftest*
1442 ac_cv_struct_tm=sys/time.h
1444 rm -f conftest*
1448 echo "$ac_t""$ac_cv_struct_tm" 1>&6
1449 if test $ac_cv_struct_tm = sys/time.h; then
1450 cat >> confdefs.h <<\EOF
1451 #define TM_IN_SYS_TIME 1
1456 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
1457 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
1458 echo $ac_n "(cached) $ac_c" 1>&6
1459 else
1460 cat > conftest.$ac_ext <<EOF
1461 #line 1462 "configure"
1462 #include "confdefs.h"
1463 #include <sys/types.h>
1464 #include <$ac_cv_struct_tm>
1465 int main() { return 0; }
1466 int t() {
1467 struct tm tm; tm.tm_zone;
1468 ; return 0; }
1470 if eval $ac_compile; then
1471 rm -rf conftest*
1472 ac_cv_struct_tm_zone=yes
1473 else
1474 rm -rf conftest*
1475 ac_cv_struct_tm_zone=no
1477 rm -f conftest*
1481 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
1482 if test "$ac_cv_struct_tm_zone" = yes; then
1483 cat >> confdefs.h <<\EOF
1484 #define HAVE_TM_ZONE 1
1487 else
1488 echo $ac_n "checking for tzname""... $ac_c" 1>&6
1489 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
1490 echo $ac_n "(cached) $ac_c" 1>&6
1491 else
1492 cat > conftest.$ac_ext <<EOF
1493 #line 1494 "configure"
1494 #include "confdefs.h"
1495 #include <time.h>
1496 #ifndef tzname /* For SGI. */
1497 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
1498 #endif
1499 int main() { return 0; }
1500 int t() {
1501 atoi(*tzname);
1502 ; return 0; }
1504 if eval $ac_link; then
1505 rm -rf conftest*
1506 ac_cv_var_tzname=yes
1507 else
1508 rm -rf conftest*
1509 ac_cv_var_tzname=no
1511 rm -f conftest*
1515 echo "$ac_t""$ac_cv_var_tzname" 1>&6
1516 if test $ac_cv_var_tzname = yes; then
1517 cat >> confdefs.h <<\EOF
1518 #define HAVE_TZNAME 1
1524 cat > conftest.$ac_ext <<EOF
1525 #line 1526 "configure"
1526 #include "confdefs.h"
1527 #include <sys/time.h>
1528 int main() { return 0; }
1529 int t() {
1530 struct timeval thetime; struct timezone thezone;
1531 gettimeofday(&thetime, &thezone);
1532 ; return 0; }
1534 if eval $ac_compile; then
1535 rm -rf conftest*
1536 cat >> confdefs.h <<\EOF
1537 #define USE_TIMEZONE 1
1541 rm -f conftest*
1545 # checks for library functions
1547 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
1548 if eval "test \"`echo '$''{'ac_cv_func_memcmp'+set}'`\" = set"; then
1549 echo $ac_n "(cached) $ac_c" 1>&6
1550 else
1551 if test "$cross_compiling" = yes; then
1552 ac_cv_func_memcmp=no
1553 else
1554 cat > conftest.$ac_ext <<EOF
1555 #line 1556 "configure"
1556 #include "confdefs.h"
1558 main()
1560 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
1561 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
1565 eval $ac_link
1566 if test -s conftest && (./conftest; exit) 2>/dev/null; then
1567 ac_cv_func_memcmp=yes
1568 else
1569 ac_cv_func_memcmp=no
1572 rm -fr conftest*
1575 echo "$ac_t""$ac_cv_func_memcmp" 1>&6
1576 test $ac_cv_func_memcmp = no && LIBOBJS="$LIBOBJS memcmp.o"
1578 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1579 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1580 echo $ac_n "(cached) $ac_c" 1>&6
1581 else
1582 cat > conftest.$ac_ext <<EOF
1583 #line 1584 "configure"
1584 #include "confdefs.h"
1585 #include <sys/types.h>
1586 #include <signal.h>
1587 #ifdef signal
1588 #undef signal
1589 #endif
1590 #ifdef __cplusplus
1591 extern "C" void (*signal (int, void (*)(int)))(int);
1592 #else
1593 void (*signal ()) ();
1594 #endif
1596 int main() { return 0; }
1597 int t() {
1598 int i;
1599 ; return 0; }
1601 if eval $ac_compile; then
1602 rm -rf conftest*
1603 ac_cv_type_signal=void
1604 else
1605 rm -rf conftest*
1606 ac_cv_type_signal=int
1608 rm -f conftest*
1612 echo "$ac_t""$ac_cv_type_signal" 1>&6
1613 cat >> confdefs.h <<EOF
1614 #define RETSIGTYPE $ac_cv_type_signal
1618 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
1619 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
1620 echo $ac_n "(cached) $ac_c" 1>&6
1621 else
1622 cat > conftest.$ac_ext <<EOF
1623 #line 1624 "configure"
1624 #include "confdefs.h"
1625 /* System header to define __stub macros and hopefully few prototypes,
1626 which can conflict with char vprintf(); below. */
1627 #include <assert.h>
1628 /* Override any gcc2 internal prototype to avoid an error. */
1629 char vprintf();
1631 int main() { return 0; }
1632 int t() {
1634 /* The GNU C library defines this for functions which it implements
1635 to always fail with ENOSYS. Some functions are actually named
1636 something starting with __ and the normal name is an alias. */
1637 #if defined (__stub_vprintf) || defined (__stub___vprintf)
1638 choke me
1639 #else
1640 vprintf();
1641 #endif
1643 ; return 0; }
1645 if eval $ac_link; then
1646 rm -rf conftest*
1647 eval "ac_cv_func_vprintf=yes"
1648 else
1649 rm -rf conftest*
1650 eval "ac_cv_func_vprintf=no"
1652 rm -f conftest*
1655 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
1656 echo "$ac_t""yes" 1>&6
1657 cat >> confdefs.h <<\EOF
1658 #define HAVE_VPRINTF 1
1661 else
1662 echo "$ac_t""no" 1>&6
1665 if test "$ac_cv_func_vprintf" != yes; then
1666 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
1667 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
1668 echo $ac_n "(cached) $ac_c" 1>&6
1669 else
1670 cat > conftest.$ac_ext <<EOF
1671 #line 1672 "configure"
1672 #include "confdefs.h"
1673 /* System header to define __stub macros and hopefully few prototypes,
1674 which can conflict with char _doprnt(); below. */
1675 #include <assert.h>
1676 /* Override any gcc2 internal prototype to avoid an error. */
1677 char _doprnt();
1679 int main() { return 0; }
1680 int t() {
1682 /* The GNU C library defines this for functions which it implements
1683 to always fail with ENOSYS. Some functions are actually named
1684 something starting with __ and the normal name is an alias. */
1685 #if defined (__stub__doprnt) || defined (__stub____doprnt)
1686 choke me
1687 #else
1688 _doprnt();
1689 #endif
1691 ; return 0; }
1693 if eval $ac_link; then
1694 rm -rf conftest*
1695 eval "ac_cv_func__doprnt=yes"
1696 else
1697 rm -rf conftest*
1698 eval "ac_cv_func__doprnt=no"
1700 rm -f conftest*
1703 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
1704 echo "$ac_t""yes" 1>&6
1705 cat >> confdefs.h <<\EOF
1706 #define HAVE_DOPRNT 1
1709 else
1710 echo "$ac_t""no" 1>&6
1715 echo $ac_n "checking for wait3 that fills in rusage""... $ac_c" 1>&6
1716 if eval "test \"`echo '$''{'ac_cv_func_wait3'+set}'`\" = set"; then
1717 echo $ac_n "(cached) $ac_c" 1>&6
1718 else
1719 if test "$cross_compiling" = yes; then
1720 ac_cv_func_wait3=no
1721 else
1722 cat > conftest.$ac_ext <<EOF
1723 #line 1724 "configure"
1724 #include "confdefs.h"
1725 #include <sys/types.h>
1726 #include <sys/time.h>
1727 #include <sys/resource.h>
1728 #include <stdio.h>
1729 /* HP-UX has wait3 but does not fill in rusage at all. */
1730 main() {
1731 struct rusage r;
1732 int i;
1733 /* Use a field that we can force nonzero --
1734 voluntary context switches.
1735 For systems like NeXT and OSF/1 that don't set it,
1736 also use the system CPU time. And page faults (I/O) for Linux. */
1737 r.ru_nvcsw = 0;
1738 r.ru_stime.tv_sec = 0;
1739 r.ru_stime.tv_usec = 0;
1740 r.ru_majflt = r.ru_minflt = 0;
1741 switch (fork()) {
1742 case 0: /* Child. */
1743 sleep(1); /* Give up the CPU. */
1744 _exit(0);
1745 case -1: _exit(0); /* What can we do? */
1746 default: /* Parent. */
1747 wait3(&i, 0, &r);
1748 sleep(2); /* Avoid "text file busy" from rm on fast HP-UX machines. */
1749 exit(r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0
1750 && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0);
1754 eval $ac_link
1755 if test -s conftest && (./conftest; exit) 2>/dev/null; then
1756 ac_cv_func_wait3=yes
1757 else
1758 ac_cv_func_wait3=no
1761 rm -fr conftest*
1764 echo "$ac_t""$ac_cv_func_wait3" 1>&6
1765 if test $ac_cv_func_wait3 = yes; then
1766 cat >> confdefs.h <<\EOF
1767 #define HAVE_WAIT3 1
1772 for ac_func in gethostname gettimeofday select socket strerror
1774 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1775 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1776 echo $ac_n "(cached) $ac_c" 1>&6
1777 else
1778 cat > conftest.$ac_ext <<EOF
1779 #line 1780 "configure"
1780 #include "confdefs.h"
1781 /* System header to define __stub macros and hopefully few prototypes,
1782 which can conflict with char $ac_func(); below. */
1783 #include <assert.h>
1784 /* Override any gcc2 internal prototype to avoid an error. */
1785 char $ac_func();
1787 int main() { return 0; }
1788 int t() {
1790 /* The GNU C library defines this for functions which it implements
1791 to always fail with ENOSYS. Some functions are actually named
1792 something starting with __ and the normal name is an alias. */
1793 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1794 choke me
1795 #else
1796 $ac_func();
1797 #endif
1799 ; return 0; }
1801 if eval $ac_link; then
1802 rm -rf conftest*
1803 eval "ac_cv_func_$ac_func=yes"
1804 else
1805 rm -rf conftest*
1806 eval "ac_cv_func_$ac_func=no"
1808 rm -f conftest*
1811 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1812 echo "$ac_t""yes" 1>&6
1813 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1814 cat >> confdefs.h <<EOF
1815 #define $ac_tr_func 1
1818 else
1819 echo "$ac_t""no" 1>&6
1821 done
1825 # checks for system services
1829 # all done
1831 trap '' 1 2 15
1832 cat > confcache <<\EOF
1833 # This file is a shell script that caches the results of configure
1834 # tests run on this system so they can be shared between configure
1835 # scripts and configure runs. It is not useful on other systems.
1836 # If it contains results you don't want to keep, you may remove or edit it.
1838 # By default, configure uses ./config.cache as the cache file,
1839 # creating it if it does not exist already. You can give configure
1840 # the --cache-file=FILE option to use a different cache file; that is
1841 # what configure does when it calls configure scripts in
1842 # subdirectories, so they share the cache.
1843 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1844 # config.status only pays attention to the cache file if you give it the
1845 # --recheck option to rerun configure.
1848 # Ultrix sh set writes to stderr and can't be redirected directly,
1849 # and sets the high bit in the cache file unless we assign to the vars.
1850 (set) 2>&1 |
1851 sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
1852 >> confcache
1853 if cmp -s $cache_file confcache; then
1855 else
1856 if test -w $cache_file; then
1857 echo "updating cache $cache_file"
1858 cat confcache > $cache_file
1859 else
1860 echo "not updating unwritable cache $cache_file"
1863 rm -f confcache
1865 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1867 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1868 # Let make expand exec_prefix.
1869 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1871 # Any assignment to VPATH causes Sun make to only execute
1872 # the first set of double-colon rules, so remove it if not needed.
1873 # If there is a colon in the path, we need to keep it.
1874 if test "x$srcdir" = x.; then
1875 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1878 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1880 DEFS=-DHAVE_CONFIG_H
1882 # Without the "./", some shells look in PATH for config.status.
1883 : ${CONFIG_STATUS=./config.status}
1885 echo creating $CONFIG_STATUS
1886 rm -f $CONFIG_STATUS
1887 cat > $CONFIG_STATUS <<EOF
1888 #! /bin/sh
1889 # Generated automatically by configure.
1890 # Run this file to recreate the current configuration.
1891 # This directory was configured as follows,
1892 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1894 # $0 $ac_configure_args
1896 # Compiler output produced by configure, useful for debugging
1897 # configure, is in ./config.log if it exists.
1899 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1900 for ac_option
1902 case "\$ac_option" in
1903 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1904 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1905 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1906 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1907 echo "$CONFIG_STATUS generated by autoconf version 2.7"
1908 exit 0 ;;
1909 -help | --help | --hel | --he | --h)
1910 echo "\$ac_cs_usage"; exit 0 ;;
1911 *) echo "\$ac_cs_usage"; exit 1 ;;
1912 esac
1913 done
1915 ac_given_srcdir=$srcdir
1917 trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1919 cat >> $CONFIG_STATUS <<EOF
1921 # Protect against being on the right side of a sed subst in config.status.
1922 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1923 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1924 $ac_vpsub
1925 $extrasub
1926 s%@CFLAGS@%$CFLAGS%g
1927 s%@CPPFLAGS@%$CPPFLAGS%g
1928 s%@CXXFLAGS@%$CXXFLAGS%g
1929 s%@DEFS@%$DEFS%g
1930 s%@LDFLAGS@%$LDFLAGS%g
1931 s%@LIBS@%$LIBS%g
1932 s%@exec_prefix@%$exec_prefix%g
1933 s%@prefix@%$prefix%g
1934 s%@program_transform_name@%$program_transform_name%g
1935 s%@bindir@%$bindir%g
1936 s%@sbindir@%$sbindir%g
1937 s%@libexecdir@%$libexecdir%g
1938 s%@datadir@%$datadir%g
1939 s%@sysconfdir@%$sysconfdir%g
1940 s%@sharedstatedir@%$sharedstatedir%g
1941 s%@localstatedir@%$localstatedir%g
1942 s%@libdir@%$libdir%g
1943 s%@includedir@%$includedir%g
1944 s%@oldincludedir@%$oldincludedir%g
1945 s%@infodir@%$infodir%g
1946 s%@mandir@%$mandir%g
1947 s%@PRODUCT@%$PRODUCT%g
1948 s%@VERSION@%$VERSION%g
1949 s%@host@%$host%g
1950 s%@host_alias@%$host_alias%g
1951 s%@host_cpu@%$host_cpu%g
1952 s%@host_vendor@%$host_vendor%g
1953 s%@host_os@%$host_os%g
1954 s%@target@%$target%g
1955 s%@target_alias@%$target_alias%g
1956 s%@target_cpu@%$target_cpu%g
1957 s%@target_vendor@%$target_vendor%g
1958 s%@target_os@%$target_os%g
1959 s%@build@%$build%g
1960 s%@build_alias@%$build_alias%g
1961 s%@build_cpu@%$build_cpu%g
1962 s%@build_vendor@%$build_vendor%g
1963 s%@build_os@%$build_os%g
1964 s%@CC@%$CC%g
1965 s%@SET_MAKE@%$SET_MAKE%g
1966 s%@AWK@%$AWK%g
1967 s%@PERL@%$PERL%g
1968 s%@PERL_SCRIPTS@%$PERL_SCRIPTS%g
1969 s%@CPP@%$CPP%g
1970 s%@LIBOBJS@%$LIBOBJS%g
1972 CEOF
1974 cat >> $CONFIG_STATUS <<EOF
1976 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
1978 cat >> $CONFIG_STATUS <<\EOF
1979 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1980 # Support "outfile[:infile]", defaulting infile="outfile.in".
1981 case "$ac_file" in
1982 *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
1983 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1984 *) ac_file_in="${ac_file}.in" ;;
1985 esac
1987 # Adjust relative srcdir, etc. for subdirectories.
1989 # Remove last slash and all that follows it. Not all systems have dirname.
1990 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1991 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1992 # The file is in a subdirectory.
1993 test ! -d "$ac_dir" && mkdir "$ac_dir"
1994 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1995 # A "../" for each directory in $ac_dir_suffix.
1996 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1997 else
1998 ac_dir_suffix= ac_dots=
2001 case "$ac_given_srcdir" in
2002 .) srcdir=.
2003 if test -z "$ac_dots"; then top_srcdir=.
2004 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2005 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2006 *) # Relative path.
2007 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2008 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2009 esac
2011 echo creating "$ac_file"
2012 rm -f "$ac_file"
2013 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2014 case "$ac_file" in
2015 *Makefile*) ac_comsub="1i\\
2016 # $configure_input" ;;
2017 *) ac_comsub= ;;
2018 esac
2019 sed -e "$ac_comsub
2020 s%@configure_input@%$configure_input%g
2021 s%@srcdir@%$srcdir%g
2022 s%@top_srcdir@%$top_srcdir%g
2023 " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
2024 fi; done
2025 rm -f conftest.subs
2027 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2028 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2030 # ac_d sets the value in "#define NAME VALUE" lines.
2031 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2032 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2033 ac_dC='\3'
2034 ac_dD='%g'
2035 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2036 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2037 ac_uB='\([ ]\)%\1#\2define\3'
2038 ac_uC=' '
2039 ac_uD='\4%g'
2040 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2041 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2042 ac_eB='$%\1#\2define\3'
2043 ac_eC=' '
2044 ac_eD='%g'
2046 CONFIG_HEADERS=${CONFIG_HEADERS-"config.h"}
2047 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2048 # Support "outfile[:infile]", defaulting infile="outfile.in".
2049 case "$ac_file" in
2050 *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
2051 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2052 *) ac_file_in="${ac_file}.in" ;;
2053 esac
2055 echo creating $ac_file
2057 rm -f conftest.frag conftest.in conftest.out
2058 cp $ac_given_srcdir/$ac_file_in conftest.in
2062 # Transform confdefs.h into a sed script conftest.vals that substitutes
2063 # the proper values into config.h.in to produce config.h. And first:
2064 # Protect against being on the right side of a sed subst in config.status.
2065 # Protect against being in an unquoted here document in config.status.
2066 rm -f conftest.vals
2067 cat > conftest.hdr <<\EOF
2068 s/[\\&%]/\\&/g
2069 s%[\\$`]%\\&%g
2070 s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2071 s%ac_d%ac_u%gp
2072 s%ac_u%ac_e%gp
2074 sed -n -f conftest.hdr confdefs.h > conftest.vals
2075 rm -f conftest.hdr
2077 # This sed command replaces #undef with comments. This is necessary, for
2078 # example, in the case of _POSIX_SOURCE, which is predefined and required
2079 # on some systems where configure will not decide to define it.
2080 cat >> conftest.vals <<\EOF
2081 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2084 # Break up conftest.vals because some shells have a limit on
2085 # the size of here documents, and old seds have small limits too.
2086 # Maximum number of lines to put in a single here document.
2087 ac_max_here_lines=12
2089 rm -f conftest.tail
2090 while :
2092 ac_lines=`grep -c . conftest.vals`
2093 # grep -c gives empty output for an empty file on some AIX systems.
2094 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2095 # Write a limited-size here document to conftest.frag.
2096 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2097 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2098 echo 'CEOF
2099 sed -f conftest.frag conftest.in > conftest.out
2100 rm -f conftest.in
2101 mv conftest.out conftest.in
2102 ' >> $CONFIG_STATUS
2103 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2104 rm -f conftest.vals
2105 mv conftest.tail conftest.vals
2106 done
2107 rm -f conftest.vals
2109 cat >> $CONFIG_STATUS <<\EOF
2110 rm -f conftest.frag conftest.h
2111 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2112 cat conftest.in >> conftest.h
2113 rm -f conftest.in
2114 if cmp -s $ac_file conftest.h 2>/dev/null; then
2115 echo "$ac_file is unchanged"
2116 rm -f conftest.h
2117 else
2118 rm -f $ac_file
2119 mv conftest.h $ac_file
2121 fi; done
2125 exit 0
2127 chmod +x $CONFIG_STATUS
2128 rm -fr confdefs* $ac_clean_files
2129 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2132 # end