]> sourceware.org Git - newlib-cygwin.git/blame - winsup/configure
* configure.in: Reenable building the subauth subdir.
[newlib-cygwin.git] / winsup / configure
CommitLineData
1fd5e000 1#! /bin/sh
1fd5e000 2# Guess values for system-dependent variables and create Makefiles.
99fc5e10 3# Generated by GNU Autoconf 2.59.
1fd5e000 4#
99fc5e10 5# Copyright (C) 2003 Free Software Foundation, Inc.
1fd5e000
CF
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
99fc5e10
CF
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
1fd5e000 224
99fc5e10
CF
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
1fd5e000 254ac_default_prefix=/usr/local
99fc5e10
CF
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete. It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="Makefile.in"
275ac_subdirs_all="$ac_subdirs_all cygwin w32api"
276ac_subdirs_all="$ac_subdirs_all mingw"
e9d500b6 277ac_subdirs_all="$ac_subdirs_all subauth"
99fc5e10
CF
278ac_subdirs_all="$ac_subdirs_all cygserver"
279ac_subdirs_all="$ac_subdirs_all utils doc"
280ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC ac_ct_CC CFLAGS LDFLAGS CPPFLAGS EXEEXT OBJEXT CXX ac_ct_CXX CXXFLAGS subdirs SET_MAKE LIBOBJS LTLIBOBJS'
281ac_subst_files=''
1fd5e000
CF
282
283# Initialize some variables set by options.
99fc5e10
CF
284ac_init_help=
285ac_init_version=false
1fd5e000
CF
286# The variables have the same names as the options, with
287# dashes changed to underlines.
99fc5e10 288cache_file=/dev/null
1fd5e000 289exec_prefix=NONE
1fd5e000 290no_create=
1fd5e000
CF
291no_recursion=
292prefix=NONE
293program_prefix=NONE
294program_suffix=NONE
295program_transform_name=s,x,x,
296silent=
297site=
1fd5e000 298srcdir=
1fd5e000
CF
299verbose=
300x_includes=NONE
301x_libraries=NONE
99fc5e10
CF
302
303# Installation directory options.
304# These are left unexpanded so users can "make install exec_prefix=/foo"
305# and all the variables that are supposed to be based on exec_prefix
306# by default will actually change.
307# Use braces instead of parens because sh, perl, etc. also accept them.
1fd5e000
CF
308bindir='${exec_prefix}/bin'
309sbindir='${exec_prefix}/sbin'
310libexecdir='${exec_prefix}/libexec'
311datadir='${prefix}/share'
312sysconfdir='${prefix}/etc'
313sharedstatedir='${prefix}/com'
314localstatedir='${prefix}/var'
315libdir='${exec_prefix}/lib'
316includedir='${prefix}/include'
317oldincludedir='/usr/include'
318infodir='${prefix}/info'
319mandir='${prefix}/man'
320
1fd5e000
CF
321ac_prev=
322for ac_option
323do
1fd5e000
CF
324 # If the previous option needs an argument, assign it.
325 if test -n "$ac_prev"; then
326 eval "$ac_prev=\$ac_option"
327 ac_prev=
328 continue
329 fi
330
99fc5e10 331 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
1fd5e000
CF
332
333 # Accept the important Cygnus configure options, so we can diagnose typos.
334
99fc5e10 335 case $ac_option in
1fd5e000
CF
336
337 -bindir | --bindir | --bindi | --bind | --bin | --bi)
338 ac_prev=bindir ;;
339 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
99fc5e10 340 bindir=$ac_optarg ;;
1fd5e000
CF
341
342 -build | --build | --buil | --bui | --bu)
99fc5e10 343 ac_prev=build_alias ;;
1fd5e000 344 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
99fc5e10 345 build_alias=$ac_optarg ;;
1fd5e000
CF
346
347 -cache-file | --cache-file | --cache-fil | --cache-fi \
348 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
349 ac_prev=cache_file ;;
350 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
351 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
99fc5e10
CF
352 cache_file=$ac_optarg ;;
353
354 --config-cache | -C)
355 cache_file=config.cache ;;
1fd5e000
CF
356
357 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
358 ac_prev=datadir ;;
359 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
360 | --da=*)
99fc5e10 361 datadir=$ac_optarg ;;
1fd5e000
CF
362
363 -disable-* | --disable-*)
99fc5e10 364 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1fd5e000 365 # Reject names that are not valid shell variable names.
99fc5e10
CF
366 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
367 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
368 { (exit 1); exit 1; }; }
369 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
370 eval "enable_$ac_feature=no" ;;
1fd5e000
CF
371
372 -enable-* | --enable-*)
99fc5e10 373 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1fd5e000 374 # Reject names that are not valid shell variable names.
99fc5e10
CF
375 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
376 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
377 { (exit 1); exit 1; }; }
378 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
379 case $ac_option in
380 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
1fd5e000
CF
381 *) ac_optarg=yes ;;
382 esac
99fc5e10 383 eval "enable_$ac_feature='$ac_optarg'" ;;
1fd5e000
CF
384
385 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
386 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
387 | --exec | --exe | --ex)
388 ac_prev=exec_prefix ;;
389 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
390 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
391 | --exec=* | --exe=* | --ex=*)
99fc5e10 392 exec_prefix=$ac_optarg ;;
1fd5e000
CF
393
394 -gas | --gas | --ga | --g)
395 # Obsolete; use --with-gas.
396 with_gas=yes ;;
397
99fc5e10
CF
398 -help | --help | --hel | --he | -h)
399 ac_init_help=long ;;
400 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
401 ac_init_help=recursive ;;
402 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
403 ac_init_help=short ;;
1fd5e000
CF
404
405 -host | --host | --hos | --ho)
99fc5e10 406 ac_prev=host_alias ;;
1fd5e000 407 -host=* | --host=* | --hos=* | --ho=*)
99fc5e10 408 host_alias=$ac_optarg ;;
1fd5e000
CF
409
410 -includedir | --includedir | --includedi | --included | --include \
411 | --includ | --inclu | --incl | --inc)
412 ac_prev=includedir ;;
413 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
414 | --includ=* | --inclu=* | --incl=* | --inc=*)
99fc5e10 415 includedir=$ac_optarg ;;
1fd5e000
CF
416
417 -infodir | --infodir | --infodi | --infod | --info | --inf)
418 ac_prev=infodir ;;
419 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
99fc5e10 420 infodir=$ac_optarg ;;
1fd5e000
CF
421
422 -libdir | --libdir | --libdi | --libd)
423 ac_prev=libdir ;;
424 -libdir=* | --libdir=* | --libdi=* | --libd=*)
99fc5e10 425 libdir=$ac_optarg ;;
1fd5e000
CF
426
427 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
428 | --libexe | --libex | --libe)
429 ac_prev=libexecdir ;;
430 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
431 | --libexe=* | --libex=* | --libe=*)
99fc5e10 432 libexecdir=$ac_optarg ;;
1fd5e000
CF
433
434 -localstatedir | --localstatedir | --localstatedi | --localstated \
435 | --localstate | --localstat | --localsta | --localst \
436 | --locals | --local | --loca | --loc | --lo)
437 ac_prev=localstatedir ;;
438 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
439 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
440 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
99fc5e10 441 localstatedir=$ac_optarg ;;
1fd5e000
CF
442
443 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
444 ac_prev=mandir ;;
445 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
99fc5e10 446 mandir=$ac_optarg ;;
1fd5e000
CF
447
448 -nfp | --nfp | --nf)
449 # Obsolete; use --without-fp.
450 with_fp=no ;;
451
452 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
99fc5e10 453 | --no-cr | --no-c | -n)
1fd5e000
CF
454 no_create=yes ;;
455
456 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
457 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
458 no_recursion=yes ;;
459
460 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
461 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
462 | --oldin | --oldi | --old | --ol | --o)
463 ac_prev=oldincludedir ;;
464 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
465 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
466 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
99fc5e10 467 oldincludedir=$ac_optarg ;;
1fd5e000
CF
468
469 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
470 ac_prev=prefix ;;
471 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
99fc5e10 472 prefix=$ac_optarg ;;
1fd5e000
CF
473
474 -program-prefix | --program-prefix | --program-prefi | --program-pref \
475 | --program-pre | --program-pr | --program-p)
476 ac_prev=program_prefix ;;
477 -program-prefix=* | --program-prefix=* | --program-prefi=* \
478 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
99fc5e10 479 program_prefix=$ac_optarg ;;
1fd5e000
CF
480
481 -program-suffix | --program-suffix | --program-suffi | --program-suff \
482 | --program-suf | --program-su | --program-s)
483 ac_prev=program_suffix ;;
484 -program-suffix=* | --program-suffix=* | --program-suffi=* \
485 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
99fc5e10 486 program_suffix=$ac_optarg ;;
1fd5e000
CF
487
488 -program-transform-name | --program-transform-name \
489 | --program-transform-nam | --program-transform-na \
490 | --program-transform-n | --program-transform- \
491 | --program-transform | --program-transfor \
492 | --program-transfo | --program-transf \
493 | --program-trans | --program-tran \
494 | --progr-tra | --program-tr | --program-t)
495 ac_prev=program_transform_name ;;
496 -program-transform-name=* | --program-transform-name=* \
497 | --program-transform-nam=* | --program-transform-na=* \
498 | --program-transform-n=* | --program-transform-=* \
499 | --program-transform=* | --program-transfor=* \
500 | --program-transfo=* | --program-transf=* \
501 | --program-trans=* | --program-tran=* \
502 | --progr-tra=* | --program-tr=* | --program-t=*)
99fc5e10 503 program_transform_name=$ac_optarg ;;
1fd5e000
CF
504
505 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
506 | -silent | --silent | --silen | --sile | --sil)
507 silent=yes ;;
508
509 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
510 ac_prev=sbindir ;;
511 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
512 | --sbi=* | --sb=*)
99fc5e10 513 sbindir=$ac_optarg ;;
1fd5e000
CF
514
515 -sharedstatedir | --sharedstatedir | --sharedstatedi \
516 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
517 | --sharedst | --shareds | --shared | --share | --shar \
518 | --sha | --sh)
519 ac_prev=sharedstatedir ;;
520 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
521 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
522 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
523 | --sha=* | --sh=*)
99fc5e10 524 sharedstatedir=$ac_optarg ;;
1fd5e000
CF
525
526 -site | --site | --sit)
527 ac_prev=site ;;
528 -site=* | --site=* | --sit=*)
99fc5e10 529 site=$ac_optarg ;;
1fd5e000 530
1fd5e000
CF
531 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
532 ac_prev=srcdir ;;
533 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
99fc5e10 534 srcdir=$ac_optarg ;;
1fd5e000
CF
535
536 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
537 | --syscon | --sysco | --sysc | --sys | --sy)
538 ac_prev=sysconfdir ;;
539 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
540 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
99fc5e10 541 sysconfdir=$ac_optarg ;;
1fd5e000
CF
542
543 -target | --target | --targe | --targ | --tar | --ta | --t)
99fc5e10 544 ac_prev=target_alias ;;
1fd5e000 545 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
99fc5e10 546 target_alias=$ac_optarg ;;
1fd5e000
CF
547
548 -v | -verbose | --verbose | --verbos | --verbo | --verb)
549 verbose=yes ;;
550
99fc5e10
CF
551 -version | --version | --versio | --versi | --vers | -V)
552 ac_init_version=: ;;
1fd5e000
CF
553
554 -with-* | --with-*)
99fc5e10 555 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1fd5e000 556 # Reject names that are not valid shell variable names.
99fc5e10
CF
557 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558 { echo "$as_me: error: invalid package name: $ac_package" >&2
559 { (exit 1); exit 1; }; }
1fd5e000 560 ac_package=`echo $ac_package| sed 's/-/_/g'`
99fc5e10
CF
561 case $ac_option in
562 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
1fd5e000
CF
563 *) ac_optarg=yes ;;
564 esac
99fc5e10 565 eval "with_$ac_package='$ac_optarg'" ;;
1fd5e000
CF
566
567 -without-* | --without-*)
99fc5e10 568 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1fd5e000 569 # Reject names that are not valid shell variable names.
99fc5e10
CF
570 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571 { echo "$as_me: error: invalid package name: $ac_package" >&2
572 { (exit 1); exit 1; }; }
573 ac_package=`echo $ac_package | sed 's/-/_/g'`
574 eval "with_$ac_package=no" ;;
1fd5e000
CF
575
576 --x)
577 # Obsolete; use --with-x.
578 with_x=yes ;;
579
580 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
581 | --x-incl | --x-inc | --x-in | --x-i)
582 ac_prev=x_includes ;;
583 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
584 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
99fc5e10 585 x_includes=$ac_optarg ;;
1fd5e000
CF
586
587 -x-libraries | --x-libraries | --x-librarie | --x-librari \
588 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
589 ac_prev=x_libraries ;;
590 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
591 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
99fc5e10 592 x_libraries=$ac_optarg ;;
1fd5e000 593
99fc5e10
CF
594 -*) { echo "$as_me: error: unrecognized option: $ac_option
595Try \`$0 --help' for more information." >&2
596 { (exit 1); exit 1; }; }
1fd5e000
CF
597 ;;
598
99fc5e10
CF
599 *=*)
600 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
604 { (exit 1); exit 1; }; }
605 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
606 eval "$ac_envvar='$ac_optarg'"
607 export $ac_envvar ;;
608
1fd5e000 609 *)
99fc5e10
CF
610 # FIXME: should be removed in autoconf 3.0.
611 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
612 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
613 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
614 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1fd5e000
CF
615 ;;
616
617 esac
618done
619
620if test -n "$ac_prev"; then
99fc5e10
CF
621 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
622 { echo "$as_me: error: missing argument to $ac_option" >&2
623 { (exit 1); exit 1; }; }
1fd5e000 624fi
1fd5e000 625
99fc5e10
CF
626# Be sure to have absolute paths.
627for ac_var in exec_prefix prefix
628do
629 eval ac_val=$`echo $ac_var`
630 case $ac_val in
631 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
632 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
633 { (exit 1); exit 1; }; };;
634 esac
635done
1fd5e000 636
99fc5e10
CF
637# Be sure to have absolute paths.
638for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
639 localstatedir libdir includedir oldincludedir infodir mandir
1fd5e000 640do
99fc5e10
CF
641 eval ac_val=$`echo $ac_var`
642 case $ac_val in
643 [\\/$]* | ?:[\\/]* ) ;;
644 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
645 { (exit 1); exit 1; }; };;
1fd5e000
CF
646 esac
647done
648
99fc5e10
CF
649# There might be people who depend on the old broken behavior: `$host'
650# used to hold the argument of --host etc.
651# FIXME: To remove some day.
652build=$build_alias
653host=$host_alias
654target=$target_alias
655
656# FIXME: To remove some day.
657if test "x$host_alias" != x; then
658 if test "x$build_alias" = x; then
659 cross_compiling=maybe
660 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
661 If a cross compiler is detected then cross compile mode will be used." >&2
662 elif test "x$build_alias" != "x$host_alias"; then
663 cross_compiling=yes
664 fi
665fi
1fd5e000 666
99fc5e10
CF
667ac_tool_prefix=
668test -n "$host_alias" && ac_tool_prefix=$host_alias-
669
670test "$silent" = yes && exec 6>/dev/null
1fd5e000 671
1fd5e000
CF
672
673# Find the source files, if location was not specified.
674if test -z "$srcdir"; then
675 ac_srcdir_defaulted=yes
676 # Try the directory containing this script, then its parent.
99fc5e10
CF
677 ac_confdir=`(dirname "$0") 2>/dev/null ||
678$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
679 X"$0" : 'X\(//\)[^/]' \| \
680 X"$0" : 'X\(//\)$' \| \
681 X"$0" : 'X\(/\)' \| \
682 . : '\(.\)' 2>/dev/null ||
683echo X"$0" |
684 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
685 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
686 /^X\(\/\/\)$/{ s//\1/; q; }
687 /^X\(\/\).*/{ s//\1/; q; }
688 s/.*/./; q'`
1fd5e000
CF
689 srcdir=$ac_confdir
690 if test ! -r $srcdir/$ac_unique_file; then
691 srcdir=..
692 fi
693else
694 ac_srcdir_defaulted=no
695fi
696if test ! -r $srcdir/$ac_unique_file; then
697 if test "$ac_srcdir_defaulted" = yes; then
99fc5e10
CF
698 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
699 { (exit 1); exit 1; }; }
1fd5e000 700 else
99fc5e10
CF
701 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
702 { (exit 1); exit 1; }; }
1fd5e000
CF
703 fi
704fi
99fc5e10
CF
705(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
706 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
707 { (exit 1); exit 1; }; }
708srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
709ac_env_build_alias_set=${build_alias+set}
710ac_env_build_alias_value=$build_alias
711ac_cv_env_build_alias_set=${build_alias+set}
712ac_cv_env_build_alias_value=$build_alias
713ac_env_host_alias_set=${host_alias+set}
714ac_env_host_alias_value=$host_alias
715ac_cv_env_host_alias_set=${host_alias+set}
716ac_cv_env_host_alias_value=$host_alias
717ac_env_target_alias_set=${target_alias+set}
718ac_env_target_alias_value=$target_alias
719ac_cv_env_target_alias_set=${target_alias+set}
720ac_cv_env_target_alias_value=$target_alias
721ac_env_CC_set=${CC+set}
722ac_env_CC_value=$CC
723ac_cv_env_CC_set=${CC+set}
724ac_cv_env_CC_value=$CC
725ac_env_CFLAGS_set=${CFLAGS+set}
726ac_env_CFLAGS_value=$CFLAGS
727ac_cv_env_CFLAGS_set=${CFLAGS+set}
728ac_cv_env_CFLAGS_value=$CFLAGS
729ac_env_LDFLAGS_set=${LDFLAGS+set}
730ac_env_LDFLAGS_value=$LDFLAGS
731ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
732ac_cv_env_LDFLAGS_value=$LDFLAGS
733ac_env_CPPFLAGS_set=${CPPFLAGS+set}
734ac_env_CPPFLAGS_value=$CPPFLAGS
735ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
736ac_cv_env_CPPFLAGS_value=$CPPFLAGS
737ac_env_CXX_set=${CXX+set}
738ac_env_CXX_value=$CXX
739ac_cv_env_CXX_set=${CXX+set}
740ac_cv_env_CXX_value=$CXX
741ac_env_CXXFLAGS_set=${CXXFLAGS+set}
742ac_env_CXXFLAGS_value=$CXXFLAGS
743ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
744ac_cv_env_CXXFLAGS_value=$CXXFLAGS
745
746#
747# Report the --help message.
748#
749if test "$ac_init_help" = "long"; then
750 # Omit some internal or obsolete options to make the list less imposing.
751 # This message is too long to be a string in the A/UX 3.1 sh.
752 cat <<_ACEOF
753\`configure' configures this package to adapt to many kinds of systems.
754
755Usage: $0 [OPTION]... [VAR=VALUE]...
756
757To assign environment variables (e.g., CC, CFLAGS...), specify them as
758VAR=VALUE. See below for descriptions of some of the useful variables.
759
760Defaults for the options are specified in brackets.
761
762Configuration:
763 -h, --help display this help and exit
764 --help=short display options specific to this package
765 --help=recursive display the short help of all the included packages
766 -V, --version display version information and exit
767 -q, --quiet, --silent do not print \`checking...' messages
768 --cache-file=FILE cache test results in FILE [disabled]
769 -C, --config-cache alias for \`--cache-file=config.cache'
770 -n, --no-create do not create output files
771 --srcdir=DIR find the sources in DIR [configure dir or \`..']
772
773_ACEOF
774
775 cat <<_ACEOF
776Installation directories:
777 --prefix=PREFIX install architecture-independent files in PREFIX
778 [$ac_default_prefix]
779 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
780 [PREFIX]
781
782By default, \`make install' will install all the files in
783\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
784an installation prefix other than \`$ac_default_prefix' using \`--prefix',
785for instance \`--prefix=\$HOME'.
786
787For better control, use the options below.
788
789Fine tuning of the installation directories:
790 --bindir=DIR user executables [EPREFIX/bin]
791 --sbindir=DIR system admin executables [EPREFIX/sbin]
792 --libexecdir=DIR program executables [EPREFIX/libexec]
793 --datadir=DIR read-only architecture-independent data [PREFIX/share]
794 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
795 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
796 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
797 --libdir=DIR object code libraries [EPREFIX/lib]
798 --includedir=DIR C header files [PREFIX/include]
799 --oldincludedir=DIR C header files for non-gcc [/usr/include]
800 --infodir=DIR info documentation [PREFIX/info]
801 --mandir=DIR man documentation [PREFIX/man]
802_ACEOF
803
804 cat <<\_ACEOF
805
806System types:
807 --build=BUILD configure for building on BUILD [guessed]
808 --host=HOST cross-compile to build programs to run on HOST [BUILD]
809 --target=TARGET configure for building compilers for TARGET [HOST]
810_ACEOF
811fi
812
813if test -n "$ac_init_help"; then
814
815 cat <<\_ACEOF
816
817Optional Features:
818 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
819 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
820 --enable-server Build a cygwin DLL which can communicate with cygserver
821
822Some influential environment variables:
823 CC C compiler command
824 CFLAGS C compiler flags
825 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
826 nonstandard directory <lib dir>
827 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
828 headers in a nonstandard directory <include dir>
829 CXX C++ compiler command
830 CXXFLAGS C++ compiler flags
831
832Use these variables to override the choices made by `configure' or to help
833it to find libraries and programs with nonstandard names/locations.
834
835_ACEOF
836fi
837
838if test "$ac_init_help" = "recursive"; then
839 # If there are subdirs, report their specific --help.
840 ac_popdir=`pwd`
841 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
842 test -d $ac_dir || continue
843 ac_builddir=.
844
845if test "$ac_dir" != .; then
846 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
847 # A "../" for each directory in $ac_dir_suffix.
848 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
849else
850 ac_dir_suffix= ac_top_builddir=
851fi
852
853case $srcdir in
854 .) # No --srcdir option. We are building in place.
855 ac_srcdir=.
856 if test -z "$ac_top_builddir"; then
857 ac_top_srcdir=.
858 else
859 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
860 fi ;;
861 [\\/]* | ?:[\\/]* ) # Absolute path.
862 ac_srcdir=$srcdir$ac_dir_suffix;
863 ac_top_srcdir=$srcdir ;;
864 *) # Relative path.
865 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
866 ac_top_srcdir=$ac_top_builddir$srcdir ;;
867esac
868
869# Do not use `cd foo && pwd` to compute absolute paths, because
870# the directories may not exist.
871case `pwd` in
872.) ac_abs_builddir="$ac_dir";;
873*)
874 case "$ac_dir" in
875 .) ac_abs_builddir=`pwd`;;
876 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
877 *) ac_abs_builddir=`pwd`/"$ac_dir";;
878 esac;;
879esac
880case $ac_abs_builddir in
881.) ac_abs_top_builddir=${ac_top_builddir}.;;
882*)
883 case ${ac_top_builddir}. in
884 .) ac_abs_top_builddir=$ac_abs_builddir;;
885 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
886 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
887 esac;;
888esac
889case $ac_abs_builddir in
890.) ac_abs_srcdir=$ac_srcdir;;
891*)
892 case $ac_srcdir in
893 .) ac_abs_srcdir=$ac_abs_builddir;;
894 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
895 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
896 esac;;
897esac
898case $ac_abs_builddir in
899.) ac_abs_top_srcdir=$ac_top_srcdir;;
900*)
901 case $ac_top_srcdir in
902 .) ac_abs_top_srcdir=$ac_abs_builddir;;
903 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
904 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
905 esac;;
906esac
907
908 cd $ac_dir
909 # Check for guested configure; otherwise get Cygnus style configure.
910 if test -f $ac_srcdir/configure.gnu; then
911 echo
912 $SHELL $ac_srcdir/configure.gnu --help=recursive
913 elif test -f $ac_srcdir/configure; then
914 echo
915 $SHELL $ac_srcdir/configure --help=recursive
916 elif test -f $ac_srcdir/configure.ac ||
917 test -f $ac_srcdir/configure.in; then
918 echo
919 $ac_configure --help
920 else
921 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
922 fi
e9d500b6 923 cd $ac_popdir
99fc5e10
CF
924 done
925fi
926
927test -n "$ac_init_help" && exit 0
928if $ac_init_version; then
929 cat <<\_ACEOF
930
931Copyright (C) 2003 Free Software Foundation, Inc.
932This configure script is free software; the Free Software Foundation
933gives unlimited permission to copy, distribute and modify it.
934_ACEOF
935 exit 0
936fi
937exec 5>config.log
938cat >&5 <<_ACEOF
939This file contains any messages produced by compilers while
940running configure, to aid debugging if configure makes a mistake.
941
942It was created by $as_me, which was
943generated by GNU Autoconf 2.59. Invocation command line was
944
945 $ $0 $@
946
947_ACEOF
948{
949cat <<_ASUNAME
950## --------- ##
951## Platform. ##
952## --------- ##
953
954hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
955uname -m = `(uname -m) 2>/dev/null || echo unknown`
956uname -r = `(uname -r) 2>/dev/null || echo unknown`
957uname -s = `(uname -s) 2>/dev/null || echo unknown`
958uname -v = `(uname -v) 2>/dev/null || echo unknown`
959
960/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
961/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
962
963/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
964/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
965/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
966hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
967/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
968/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
969/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
970
971_ASUNAME
972
973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
974for as_dir in $PATH
975do
976 IFS=$as_save_IFS
977 test -z "$as_dir" && as_dir=.
978 echo "PATH: $as_dir"
979done
980
981} >&5
982
983cat >&5 <<_ACEOF
984
985
986## ----------- ##
987## Core tests. ##
988## ----------- ##
989
990_ACEOF
991
992
993# Keep a trace of the command line.
994# Strip out --no-create and --no-recursion so they do not pile up.
995# Strip out --silent because we don't want to record it for future runs.
996# Also quote any args containing shell meta-characters.
997# Make two passes to allow for proper duplicate-argument suppression.
998ac_configure_args=
999ac_configure_args0=
1000ac_configure_args1=
1001ac_sep=
1002ac_must_keep_next=false
1003for ac_pass in 1 2
1004do
1005 for ac_arg
1006 do
1007 case $ac_arg in
1008 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1009 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1010 | -silent | --silent | --silen | --sile | --sil)
1011 continue ;;
1012 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1013 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1014 esac
1015 case $ac_pass in
1016 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1017 2)
1018 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1019 if test $ac_must_keep_next = true; then
1020 ac_must_keep_next=false # Got value, back to normal.
1021 else
1022 case $ac_arg in
1023 *=* | --config-cache | -C | -disable-* | --disable-* \
1024 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1025 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1026 | -with-* | --with-* | -without-* | --without-* | --x)
1027 case "$ac_configure_args0 " in
1028 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1029 esac
1030 ;;
1031 -* ) ac_must_keep_next=true ;;
1032 esac
1033 fi
1034 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1035 # Get rid of the leading space.
1036 ac_sep=" "
1037 ;;
1038 esac
1039 done
1040done
1041$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1042$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1043
1044# When interrupted or exit'd, cleanup temporary files, and complete
1045# config.log. We remove comments because anyway the quotes in there
1046# would cause problems or look ugly.
1047# WARNING: Be sure not to use single quotes in there, as some shells,
1048# such as our DU 5.0 friend, will then `close' the trap.
1049trap 'exit_status=$?
1050 # Save into config.log some information that might help in debugging.
1051 {
1052 echo
1053
1054 cat <<\_ASBOX
1055## ---------------- ##
1056## Cache variables. ##
1057## ---------------- ##
1058_ASBOX
1059 echo
1060 # The following way of writing the cache mishandles newlines in values,
1061{
1062 (set) 2>&1 |
1063 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1064 *ac_space=\ *)
1065 sed -n \
1066 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1067 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1068 ;;
1069 *)
1070 sed -n \
1071 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1072 ;;
1073 esac;
1074}
1075 echo
1076
1077 cat <<\_ASBOX
1078## ----------------- ##
1079## Output variables. ##
1080## ----------------- ##
1081_ASBOX
1082 echo
1083 for ac_var in $ac_subst_vars
1084 do
1085 eval ac_val=$`echo $ac_var`
1086 echo "$ac_var='"'"'$ac_val'"'"'"
1087 done | sort
1088 echo
1089
1090 if test -n "$ac_subst_files"; then
1091 cat <<\_ASBOX
1092## ------------- ##
1093## Output files. ##
1094## ------------- ##
1095_ASBOX
1096 echo
1097 for ac_var in $ac_subst_files
1098 do
1099 eval ac_val=$`echo $ac_var`
1100 echo "$ac_var='"'"'$ac_val'"'"'"
1101 done | sort
1102 echo
1103 fi
1104
1105 if test -s confdefs.h; then
1106 cat <<\_ASBOX
1107## ----------- ##
1108## confdefs.h. ##
1109## ----------- ##
1110_ASBOX
1111 echo
1112 sed "/^$/d" confdefs.h | sort
1113 echo
1114 fi
1115 test "$ac_signal" != 0 &&
1116 echo "$as_me: caught signal $ac_signal"
1117 echo "$as_me: exit $exit_status"
1118 } >&5
1119 rm -f core *.core &&
1120 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1121 exit $exit_status
1122 ' 0
1123for ac_signal in 1 2 13 15; do
1124 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1125done
1126ac_signal=0
1127
1128# confdefs.h avoids OS command line length limits that DEFS can exceed.
1129rm -rf conftest* confdefs.h
1130# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1131echo >confdefs.h
1132
1133# Predefined preprocessor variables.
1134
1135cat >>confdefs.h <<_ACEOF
1136#define PACKAGE_NAME "$PACKAGE_NAME"
1137_ACEOF
1138
1139
1140cat >>confdefs.h <<_ACEOF
1141#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1142_ACEOF
1143
1144
1145cat >>confdefs.h <<_ACEOF
1146#define PACKAGE_VERSION "$PACKAGE_VERSION"
1147_ACEOF
1fd5e000 1148
99fc5e10
CF
1149
1150cat >>confdefs.h <<_ACEOF
1151#define PACKAGE_STRING "$PACKAGE_STRING"
1152_ACEOF
1153
1154
1155cat >>confdefs.h <<_ACEOF
1156#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1157_ACEOF
1158
1159
1160# Let the site file select an alternate cache file if it wants to.
1fd5e000 1161# Prefer explicitly selected file to automatically selected ones.
f8415f61
CF
1162if test -z "$CONFIG_SITE"; then
1163 if test "x$prefix" != xNONE; then
1164 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1165 else
1166 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1fd5e000 1167 fi
1fd5e000
CF
1168fi
1169for ac_site_file in $CONFIG_SITE; do
1170 if test -r "$ac_site_file"; then
99fc5e10
CF
1171 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1172echo "$as_me: loading site script $ac_site_file" >&6;}
1173 sed 's/^/| /' "$ac_site_file" >&5
1fd5e000
CF
1174 . "$ac_site_file"
1175 fi
1176done
1177
1178if test -r "$cache_file"; then
99fc5e10
CF
1179 # Some versions of bash will fail to source /dev/null (special
1180 # files actually), so we avoid doing that.
1181 if test -f "$cache_file"; then
1182 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1183echo "$as_me: loading cache $cache_file" >&6;}
1184 case $cache_file in
1185 [\\/]* | ?:[\\/]* ) . $cache_file;;
1186 *) . ./$cache_file;;
1187 esac
1188 fi
1fd5e000 1189else
99fc5e10
CF
1190 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1191echo "$as_me: creating cache $cache_file" >&6;}
1192 >$cache_file
1fd5e000
CF
1193fi
1194
99fc5e10
CF
1195# Check that the precious variables saved in the cache have kept the same
1196# value.
1197ac_cache_corrupted=false
1198for ac_var in `(set) 2>&1 |
1199 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1200 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1201 eval ac_new_set=\$ac_env_${ac_var}_set
1202 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1203 eval ac_new_val="\$ac_env_${ac_var}_value"
1204 case $ac_old_set,$ac_new_set in
1205 set,)
1206 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1207echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1208 ac_cache_corrupted=: ;;
1209 ,set)
1210 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1211echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1212 ac_cache_corrupted=: ;;
1213 ,);;
1214 *)
1215 if test "x$ac_old_val" != "x$ac_new_val"; then
1216 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1217echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1218 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1219echo "$as_me: former value: $ac_old_val" >&2;}
1220 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1221echo "$as_me: current value: $ac_new_val" >&2;}
1222 ac_cache_corrupted=:
1223 fi;;
1224 esac
1225 # Pass precious variables to config.status.
1226 if test "$ac_new_set" = set; then
1227 case $ac_new_val in
1228 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1229 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1230 *) ac_arg=$ac_var=$ac_new_val ;;
1231 esac
1232 case " $ac_configure_args " in
1233 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1234 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1235 esac
1fd5e000 1236 fi
99fc5e10
CF
1237done
1238if $ac_cache_corrupted; then
1239 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1240echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1241 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1242echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1243 { (exit 1); exit 1; }; }
1fd5e000
CF
1244fi
1245
99fc5e10
CF
1246ac_ext=c
1247ac_cpp='$CPP $CPPFLAGS'
1248ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1249ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1250ac_compiler_gnu=$ac_cv_c_compiler_gnu
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1fd5e000
CF
1269
1270
95dc8840 1271INSTALL=`cd $srcdir/..; echo $(pwd)/install-sh -c`
8494f61e 1272
1fd5e000
CF
1273ac_aux_dir=
1274for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1275 if test -f $ac_dir/install-sh; then
1276 ac_aux_dir=$ac_dir
1277 ac_install_sh="$ac_aux_dir/install-sh -c"
1278 break
1279 elif test -f $ac_dir/install.sh; then
1280 ac_aux_dir=$ac_dir
1281 ac_install_sh="$ac_aux_dir/install.sh -c"
1282 break
99fc5e10
CF
1283 elif test -f $ac_dir/shtool; then
1284 ac_aux_dir=$ac_dir
1285 ac_install_sh="$ac_aux_dir/shtool install -c"
1286 break
1fd5e000
CF
1287 fi
1288done
1289if test -z "$ac_aux_dir"; then
99fc5e10
CF
1290 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1291echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1292 { (exit 1); exit 1; }; }
1fd5e000 1293fi
99fc5e10
CF
1294ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1295ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1296ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1fd5e000 1297
95dc8840
CV
1298# Find a good install program. We prefer a C program (faster),
1299# so one script is as good as another. But avoid the broken or
1300# incompatible versions:
1301# SysV /etc/install, /usr/sbin/install
1302# SunOS /usr/etc/install
1303# IRIX /sbin/install
1304# AIX /bin/install
99fc5e10 1305# AmigaOS /C/install, which installs bootblocks on floppy discs
95dc8840
CV
1306# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1307# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1308# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
99fc5e10 1309# OS/2's system install, which has a completely different semantic
95dc8840 1310# ./install, which can be erroneously created by make from ./install.sh.
99fc5e10
CF
1311echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1312echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
95dc8840 1313if test -z "$INSTALL"; then
99fc5e10
CF
1314if test "${ac_cv_path_install+set}" = set; then
1315 echo $ECHO_N "(cached) $ECHO_C" >&6
1316else
1317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1318for as_dir in $PATH
1319do
1320 IFS=$as_save_IFS
1321 test -z "$as_dir" && as_dir=.
1322 # Account for people who put trailing slashes in PATH elements.
1323case $as_dir/ in
1324 ./ | .// | /cC/* | \
1325 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1326 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1327 /usr/ucb/* ) ;;
1328 *)
1329 # OSF1 and SCO ODT 3.0 have their own names for install.
1330 # Don't use installbsd from OSF since it installs stuff as root
1331 # by default.
1332 for ac_prog in ginstall scoinst install; do
1333 for ac_exec_ext in '' $ac_executable_extensions; do
1334 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
95dc8840 1335 if test $ac_prog = install &&
99fc5e10 1336 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
95dc8840
CV
1337 # AIX install. It has an incompatible calling convention.
1338 :
99fc5e10
CF
1339 elif test $ac_prog = install &&
1340 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1341 # program-specific install script used by HP pwplus--don't use.
1342 :
95dc8840 1343 else
99fc5e10
CF
1344 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1345 break 3
95dc8840
CV
1346 fi
1347 fi
1348 done
99fc5e10
CF
1349 done
1350 ;;
1351esac
1352done
1353
95dc8840
CV
1354
1355fi
1356 if test "${ac_cv_path_install+set}" = set; then
99fc5e10 1357 INSTALL=$ac_cv_path_install
95dc8840
CV
1358 else
1359 # As a last resort, use the slow shell script. We don't cache a
1360 # path for INSTALL within a source directory, because that will
1361 # break other packages using the cache if that directory is
1362 # removed, or if the path is relative.
99fc5e10 1363 INSTALL=$ac_install_sh
95dc8840
CV
1364 fi
1365fi
99fc5e10
CF
1366echo "$as_me:$LINENO: result: $INSTALL" >&5
1367echo "${ECHO_T}$INSTALL" >&6
95dc8840
CV
1368
1369# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1370# It thinks the first close brace ends the variable substitution.
1371test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1372
99fc5e10 1373test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
95dc8840
CV
1374
1375test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1376
99fc5e10
CF
1377# Make sure we can run config.sub.
1378$ac_config_sub sun4 >/dev/null 2>&1 ||
1379 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1380echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1381 { (exit 1); exit 1; }; }
1382
1383echo "$as_me:$LINENO: checking build system type" >&5
1384echo $ECHO_N "checking build system type... $ECHO_C" >&6
1385if test "${ac_cv_build+set}" = set; then
1386 echo $ECHO_N "(cached) $ECHO_C" >&6
1387else
1388 ac_cv_build_alias=$build_alias
1389test -z "$ac_cv_build_alias" &&
1390 ac_cv_build_alias=`$ac_config_guess`
1391test -z "$ac_cv_build_alias" &&
1392 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1393echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1394 { (exit 1); exit 1; }; }
1395ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1396 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1397echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1398 { (exit 1); exit 1; }; }
95dc8840 1399
99fc5e10
CF
1400fi
1401echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1402echo "${ECHO_T}$ac_cv_build" >&6
1403build=$ac_cv_build
1404build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1405build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1406build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1407
1408
1409echo "$as_me:$LINENO: checking host system type" >&5
1410echo $ECHO_N "checking host system type... $ECHO_C" >&6
1411if test "${ac_cv_host+set}" = set; then
1412 echo $ECHO_N "(cached) $ECHO_C" >&6
1413else
1414 ac_cv_host_alias=$host_alias
1415test -z "$ac_cv_host_alias" &&
1416 ac_cv_host_alias=$ac_cv_build_alias
1417ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1418 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1419echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1420 { (exit 1); exit 1; }; }
95dc8840 1421
99fc5e10
CF
1422fi
1423echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1424echo "${ECHO_T}$ac_cv_host" >&6
1425host=$ac_cv_host
1426host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1427host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1428host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1429
1430
1431echo "$as_me:$LINENO: checking target system type" >&5
1432echo $ECHO_N "checking target system type... $ECHO_C" >&6
1433if test "${ac_cv_target+set}" = set; then
1434 echo $ECHO_N "(cached) $ECHO_C" >&6
1435else
1436 ac_cv_target_alias=$target_alias
1437test "x$ac_cv_target_alias" = "x" &&
1438 ac_cv_target_alias=$ac_cv_host_alias
1439ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1440 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1441echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1442 { (exit 1); exit 1; }; }
95dc8840 1443
99fc5e10
CF
1444fi
1445echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1446echo "${ECHO_T}$ac_cv_target" >&6
1447target=$ac_cv_target
1448target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1449target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1450target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
95dc8840
CV
1451
1452
1fd5e000
CF
1453# The aliases save the names the user supplied, while $host etc.
1454# will get canonicalized.
99fc5e10 1455test -n "$target_alias" &&
1fd5e000
CF
1456 test "$program_prefix$program_suffix$program_transform_name" = \
1457 NONENONEs,x,x, &&
1458 program_prefix=${target_alias}-
1459
99fc5e10
CF
1460if test -n "$ac_tool_prefix"; then
1461 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1462set dummy ${ac_tool_prefix}gcc; ac_word=$2
1463echo "$as_me:$LINENO: checking for $ac_word" >&5
1464echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1465if test "${ac_cv_prog_CC+set}" = set; then
1466 echo $ECHO_N "(cached) $ECHO_C" >&6
1467else
1468 if test -n "$CC"; then
1469 ac_cv_prog_CC="$CC" # Let the user override the test.
1470else
1471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1472for as_dir in $PATH
1473do
1474 IFS=$as_save_IFS
1475 test -z "$as_dir" && as_dir=.
1476 for ac_exec_ext in '' $ac_executable_extensions; do
1477 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1478 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1480 break 2
1481 fi
1482done
1483done
1fd5e000 1484
99fc5e10
CF
1485fi
1486fi
1487CC=$ac_cv_prog_CC
1488if test -n "$CC"; then
1489 echo "$as_me:$LINENO: result: $CC" >&5
1490echo "${ECHO_T}$CC" >&6
1fd5e000 1491else
99fc5e10
CF
1492 echo "$as_me:$LINENO: result: no" >&5
1493echo "${ECHO_T}no" >&6
1494fi
1495
1fd5e000 1496fi
99fc5e10
CF
1497if test -z "$ac_cv_prog_CC"; then
1498 ac_ct_CC=$CC
1499 # Extract the first word of "gcc", so it can be a program name with args.
1500set dummy gcc; ac_word=$2
1501echo "$as_me:$LINENO: checking for $ac_word" >&5
1502echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1503if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1504 echo $ECHO_N "(cached) $ECHO_C" >&6
1505else
1506 if test -n "$ac_ct_CC"; then
1507 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1508else
1509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1510for as_dir in $PATH
1511do
1512 IFS=$as_save_IFS
1513 test -z "$as_dir" && as_dir=.
1514 for ac_exec_ext in '' $ac_executable_extensions; do
1515 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1516 ac_cv_prog_ac_ct_CC="gcc"
1517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1518 break 2
1519 fi
1520done
1521done
1fd5e000 1522
99fc5e10
CF
1523 test -z "$ac_cv_prog_ac_ct_CC" && ac_cv_prog_ac_ct_CC="gcc"
1524fi
1525fi
1526ac_ct_CC=$ac_cv_prog_ac_ct_CC
1527if test -n "$ac_ct_CC"; then
1528 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1529echo "${ECHO_T}$ac_ct_CC" >&6
1530else
1531 echo "$as_me:$LINENO: result: no" >&5
1532echo "${ECHO_T}no" >&6
1533fi
1534
1535 CC=$ac_ct_CC
1536else
1537 CC="$ac_cv_prog_CC"
1538fi
1539
1540: ${CC:=gcc}
1541ac_ext=c
1542ac_cpp='$CPP $CPPFLAGS'
1543ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1544ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1545ac_compiler_gnu=$ac_cv_c_compiler_gnu
1546if test -n "$ac_tool_prefix"; then
1547 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1fd5e000 1548set dummy ${ac_tool_prefix}gcc; ac_word=$2
99fc5e10
CF
1549echo "$as_me:$LINENO: checking for $ac_word" >&5
1550echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1551if test "${ac_cv_prog_CC+set}" = set; then
1552 echo $ECHO_N "(cached) $ECHO_C" >&6
1fd5e000
CF
1553else
1554 if test -n "$CC"; then
1555 ac_cv_prog_CC="$CC" # Let the user override the test.
1556else
99fc5e10
CF
1557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1558for as_dir in $PATH
1559do
1560 IFS=$as_save_IFS
1561 test -z "$as_dir" && as_dir=.
1562 for ac_exec_ext in '' $ac_executable_extensions; do
1563 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1564 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1566 break 2
1567 fi
1568done
1569done
1570
1fd5e000
CF
1571fi
1572fi
99fc5e10 1573CC=$ac_cv_prog_CC
1fd5e000 1574if test -n "$CC"; then
99fc5e10
CF
1575 echo "$as_me:$LINENO: result: $CC" >&5
1576echo "${ECHO_T}$CC" >&6
1fd5e000 1577else
99fc5e10
CF
1578 echo "$as_me:$LINENO: result: no" >&5
1579echo "${ECHO_T}no" >&6
1fd5e000
CF
1580fi
1581
99fc5e10 1582fi
1fd5e000 1583if test -z "$ac_cv_prog_CC"; then
99fc5e10 1584 ac_ct_CC=$CC
1fd5e000
CF
1585 # Extract the first word of "gcc", so it can be a program name with args.
1586set dummy gcc; ac_word=$2
99fc5e10
CF
1587echo "$as_me:$LINENO: checking for $ac_word" >&5
1588echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1589if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1590 echo $ECHO_N "(cached) $ECHO_C" >&6
1591else
1592 if test -n "$ac_ct_CC"; then
1593 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1594else
1595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1596for as_dir in $PATH
1597do
1598 IFS=$as_save_IFS
1599 test -z "$as_dir" && as_dir=.
1600 for ac_exec_ext in '' $ac_executable_extensions; do
1601 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1602 ac_cv_prog_ac_ct_CC="gcc"
1603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1604 break 2
1605 fi
1606done
1607done
1608
1609fi
1610fi
1611ac_ct_CC=$ac_cv_prog_ac_ct_CC
1612if test -n "$ac_ct_CC"; then
1613 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1614echo "${ECHO_T}$ac_ct_CC" >&6
1615else
1616 echo "$as_me:$LINENO: result: no" >&5
1617echo "${ECHO_T}no" >&6
1618fi
1619
1620 CC=$ac_ct_CC
1621else
1622 CC="$ac_cv_prog_CC"
1623fi
1624
1625if test -z "$CC"; then
1626 if test -n "$ac_tool_prefix"; then
1627 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1628set dummy ${ac_tool_prefix}cc; ac_word=$2
1629echo "$as_me:$LINENO: checking for $ac_word" >&5
1630echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1631if test "${ac_cv_prog_CC+set}" = set; then
1632 echo $ECHO_N "(cached) $ECHO_C" >&6
1fd5e000
CF
1633else
1634 if test -n "$CC"; then
1635 ac_cv_prog_CC="$CC" # Let the user override the test.
1636else
99fc5e10
CF
1637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1638for as_dir in $PATH
1639do
1640 IFS=$as_save_IFS
1641 test -z "$as_dir" && as_dir=.
1642 for ac_exec_ext in '' $ac_executable_extensions; do
1643 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1644 ac_cv_prog_CC="${ac_tool_prefix}cc"
1645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1646 break 2
1647 fi
1648done
1649done
1650
1fd5e000
CF
1651fi
1652fi
99fc5e10 1653CC=$ac_cv_prog_CC
1fd5e000 1654if test -n "$CC"; then
99fc5e10
CF
1655 echo "$as_me:$LINENO: result: $CC" >&5
1656echo "${ECHO_T}$CC" >&6
1fd5e000 1657else
99fc5e10
CF
1658 echo "$as_me:$LINENO: result: no" >&5
1659echo "${ECHO_T}no" >&6
1fd5e000
CF
1660fi
1661
99fc5e10
CF
1662fi
1663if test -z "$ac_cv_prog_CC"; then
1664 ac_ct_CC=$CC
1665 # Extract the first word of "cc", so it can be a program name with args.
1666set dummy cc; ac_word=$2
1667echo "$as_me:$LINENO: checking for $ac_word" >&5
1668echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1669if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1670 echo $ECHO_N "(cached) $ECHO_C" >&6
1671else
1672 if test -n "$ac_ct_CC"; then
1673 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1fd5e000 1674else
99fc5e10
CF
1675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1676for as_dir in $PATH
1677do
1678 IFS=$as_save_IFS
1679 test -z "$as_dir" && as_dir=.
1680 for ac_exec_ext in '' $ac_executable_extensions; do
1681 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1682 ac_cv_prog_ac_ct_CC="cc"
1683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1684 break 2
1685 fi
1686done
1687done
1688
1689fi
1fd5e000 1690fi
99fc5e10
CF
1691ac_ct_CC=$ac_cv_prog_ac_ct_CC
1692if test -n "$ac_ct_CC"; then
1693 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1694echo "${ECHO_T}$ac_ct_CC" >&6
1695else
1696 echo "$as_me:$LINENO: result: no" >&5
1697echo "${ECHO_T}no" >&6
1fd5e000
CF
1698fi
1699
99fc5e10
CF
1700 CC=$ac_ct_CC
1701else
1702 CC="$ac_cv_prog_CC"
1703fi
1704
1705fi
1fd5e000
CF
1706if test -z "$CC"; then
1707 # Extract the first word of "cc", so it can be a program name with args.
1708set dummy cc; ac_word=$2
99fc5e10
CF
1709echo "$as_me:$LINENO: checking for $ac_word" >&5
1710echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1711if test "${ac_cv_prog_CC+set}" = set; then
1712 echo $ECHO_N "(cached) $ECHO_C" >&6
1fd5e000
CF
1713else
1714 if test -n "$CC"; then
1715 ac_cv_prog_CC="$CC" # Let the user override the test.
1716else
1fd5e000 1717 ac_prog_rejected=no
99fc5e10
CF
1718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1719for as_dir in $PATH
1720do
1721 IFS=$as_save_IFS
1722 test -z "$as_dir" && as_dir=.
1723 for ac_exec_ext in '' $ac_executable_extensions; do
1724 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1725 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1726 ac_prog_rejected=yes
1727 continue
1728 fi
1729 ac_cv_prog_CC="cc"
1730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1731 break 2
1732 fi
1733done
1734done
1735
1fd5e000
CF
1736if test $ac_prog_rejected = yes; then
1737 # We found a bogon in the path, so make sure we never use it.
1738 set dummy $ac_cv_prog_CC
1739 shift
99fc5e10 1740 if test $# != 0; then
1fd5e000
CF
1741 # We chose a different compiler from the bogus one.
1742 # However, it has the same basename, so the bogon will be chosen
1743 # first if we set CC to just the basename; use the full file name.
1744 shift
99fc5e10 1745 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1fd5e000
CF
1746 fi
1747fi
1748fi
1749fi
99fc5e10 1750CC=$ac_cv_prog_CC
1fd5e000 1751if test -n "$CC"; then
99fc5e10
CF
1752 echo "$as_me:$LINENO: result: $CC" >&5
1753echo "${ECHO_T}$CC" >&6
1fd5e000 1754else
99fc5e10
CF
1755 echo "$as_me:$LINENO: result: no" >&5
1756echo "${ECHO_T}no" >&6
1757fi
1758
1fd5e000 1759fi
99fc5e10
CF
1760if test -z "$CC"; then
1761 if test -n "$ac_tool_prefix"; then
1762 for ac_prog in cl
1763 do
1764 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1765set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1766echo "$as_me:$LINENO: checking for $ac_word" >&5
1767echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1768if test "${ac_cv_prog_CC+set}" = set; then
1769 echo $ECHO_N "(cached) $ECHO_C" >&6
1770else
1771 if test -n "$CC"; then
1772 ac_cv_prog_CC="$CC" # Let the user override the test.
1773else
1774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1775for as_dir in $PATH
1776do
1777 IFS=$as_save_IFS
1778 test -z "$as_dir" && as_dir=.
1779 for ac_exec_ext in '' $ac_executable_extensions; do
1780 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1781 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1783 break 2
1784 fi
1785done
1786done
1fd5e000 1787
99fc5e10
CF
1788fi
1789fi
1790CC=$ac_cv_prog_CC
1791if test -n "$CC"; then
1792 echo "$as_me:$LINENO: result: $CC" >&5
1793echo "${ECHO_T}$CC" >&6
1794else
1795 echo "$as_me:$LINENO: result: no" >&5
1796echo "${ECHO_T}no" >&6
1fd5e000
CF
1797fi
1798
99fc5e10
CF
1799 test -n "$CC" && break
1800 done
1801fi
1802if test -z "$CC"; then
1803 ac_ct_CC=$CC
1804 for ac_prog in cl
1805do
1806 # Extract the first word of "$ac_prog", so it can be a program name with args.
1807set dummy $ac_prog; ac_word=$2
1808echo "$as_me:$LINENO: checking for $ac_word" >&5
1809echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1810if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1811 echo $ECHO_N "(cached) $ECHO_C" >&6
1fd5e000 1812else
99fc5e10
CF
1813 if test -n "$ac_ct_CC"; then
1814 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1fd5e000 1815else
99fc5e10
CF
1816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1817for as_dir in $PATH
1818do
1819 IFS=$as_save_IFS
1820 test -z "$as_dir" && as_dir=.
1821 for ac_exec_ext in '' $ac_executable_extensions; do
1822 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1823 ac_cv_prog_ac_ct_CC="$ac_prog"
1824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1825 break 2
1826 fi
1827done
1828done
1829
1830fi
1fd5e000 1831fi
99fc5e10
CF
1832ac_ct_CC=$ac_cv_prog_ac_ct_CC
1833if test -n "$ac_ct_CC"; then
1834 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1835echo "${ECHO_T}$ac_ct_CC" >&6
1836else
1837 echo "$as_me:$LINENO: result: no" >&5
1838echo "${ECHO_T}no" >&6
1fd5e000
CF
1839fi
1840
99fc5e10
CF
1841 test -n "$ac_ct_CC" && break
1842done
1fd5e000 1843
99fc5e10
CF
1844 CC=$ac_ct_CC
1845fi
1846
1847fi
1848
1849
1850test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1851See \`config.log' for more details." >&5
1852echo "$as_me: error: no acceptable C compiler found in \$PATH
1853See \`config.log' for more details." >&2;}
1854 { (exit 1); exit 1; }; }
1855
1856# Provide some information about the compiler.
1857echo "$as_me:$LINENO:" \
1858 "checking for C compiler version" >&5
1859ac_compiler=`set X $ac_compile; echo $2`
1860{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1861 (eval $ac_compiler --version </dev/null >&5) 2>&5
1862 ac_status=$?
1863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1864 (exit $ac_status); }
1865{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1866 (eval $ac_compiler -v </dev/null >&5) 2>&5
1867 ac_status=$?
1868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1869 (exit $ac_status); }
1870{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1871 (eval $ac_compiler -V </dev/null >&5) 2>&5
1872 ac_status=$?
1873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1874 (exit $ac_status); }
1875
1876cat >conftest.$ac_ext <<_ACEOF
1877/* confdefs.h. */
1878_ACEOF
1879cat confdefs.h >>conftest.$ac_ext
1880cat >>conftest.$ac_ext <<_ACEOF
1881/* end confdefs.h. */
1882
1883int
1884main ()
1885{
1886
1887 ;
1888 return 0;
1889}
1890_ACEOF
1891ac_clean_files_save=$ac_clean_files
1892ac_clean_files="$ac_clean_files a.out a.exe b.out"
1893# Try to create an executable without -o first, disregard a.out.
1894# It will help us diagnose broken compilers, and finding out an intuition
1895# of exeext.
1896echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1897echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1898ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1899if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1900 (eval $ac_link_default) 2>&5
1901 ac_status=$?
1902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1903 (exit $ac_status); }; then
1904 # Find the output, starting from the most likely. This scheme is
1905# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1906# resort.
1907
1908# Be careful to initialize this variable, since it used to be cached.
1909# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1910ac_cv_exeext=
1911# b.out is created by i960 compilers.
1912for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1913do
1914 test -f "$ac_file" || continue
1915 case $ac_file in
1916 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1917 ;;
1918 conftest.$ac_ext )
1919 # This is the source file.
1920 ;;
1921 [ab].out )
1922 # We found the default executable, but exeext='' is most
1923 # certainly right.
1924 break;;
1925 *.* )
1926 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1927 # FIXME: I believe we export ac_cv_exeext for Libtool,
1928 # but it would be cool to find out if it's true. Does anybody
1929 # maintain Libtool? --akim.
1930 export ac_cv_exeext
1931 break;;
1932 * )
1933 break;;
1934 esac
1935done
1fd5e000 1936else
99fc5e10
CF
1937 echo "$as_me: failed program was:" >&5
1938sed 's/^/| /' conftest.$ac_ext >&5
1939
1940{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1941See \`config.log' for more details." >&5
1942echo "$as_me: error: C compiler cannot create executables
1943See \`config.log' for more details." >&2;}
1944 { (exit 77); exit 77; }; }
1945fi
1946
1947ac_exeext=$ac_cv_exeext
1948echo "$as_me:$LINENO: result: $ac_file" >&5
1949echo "${ECHO_T}$ac_file" >&6
1950
1951# Check the compiler produces executables we can run. If not, either
1952# the compiler is broken, or we cross compile.
1953echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1954echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1955# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1956# If not cross compiling, check that we can run a simple program.
1957if test "$cross_compiling" != yes; then
1958 if { ac_try='./$ac_file'
1959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1960 (eval $ac_try) 2>&5
1961 ac_status=$?
1962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1963 (exit $ac_status); }; }; then
1964 cross_compiling=no
1965 else
1966 if test "$cross_compiling" = maybe; then
1967 cross_compiling=yes
1968 else
1969 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1970If you meant to cross compile, use \`--host'.
1971See \`config.log' for more details." >&5
1972echo "$as_me: error: cannot run C compiled programs.
1973If you meant to cross compile, use \`--host'.
1974See \`config.log' for more details." >&2;}
1975 { (exit 1); exit 1; }; }
1976 fi
1977 fi
1978fi
1979echo "$as_me:$LINENO: result: yes" >&5
1980echo "${ECHO_T}yes" >&6
1981
1982rm -f a.out a.exe conftest$ac_cv_exeext b.out
1983ac_clean_files=$ac_clean_files_save
1984# Check the compiler produces executables we can run. If not, either
1985# the compiler is broken, or we cross compile.
1986echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1987echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1988echo "$as_me:$LINENO: result: $cross_compiling" >&5
1989echo "${ECHO_T}$cross_compiling" >&6
1990
1991echo "$as_me:$LINENO: checking for suffix of executables" >&5
1992echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1993if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1994 (eval $ac_link) 2>&5
1995 ac_status=$?
1996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1997 (exit $ac_status); }; then
1998 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1999# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2000# work properly (i.e., refer to `conftest.exe'), while it won't with
2001# `rm'.
2002for ac_file in conftest.exe conftest conftest.*; do
2003 test -f "$ac_file" || continue
2004 case $ac_file in
2005 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2006 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2007 export ac_cv_exeext
2008 break;;
2009 * ) break;;
2010 esac
2011done
1fd5e000 2012else
99fc5e10
CF
2013 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2014See \`config.log' for more details." >&5
2015echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2016See \`config.log' for more details." >&2;}
2017 { (exit 1); exit 1; }; }
1fd5e000 2018fi
1fd5e000 2019
99fc5e10
CF
2020rm -f conftest$ac_cv_exeext
2021echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2022echo "${ECHO_T}$ac_cv_exeext" >&6
2023
2024rm -f conftest.$ac_ext
2025EXEEXT=$ac_cv_exeext
2026ac_exeext=$EXEEXT
2027echo "$as_me:$LINENO: checking for suffix of object files" >&5
2028echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2029if test "${ac_cv_objext+set}" = set; then
2030 echo $ECHO_N "(cached) $ECHO_C" >&6
2031else
2032 cat >conftest.$ac_ext <<_ACEOF
2033/* confdefs.h. */
2034_ACEOF
2035cat confdefs.h >>conftest.$ac_ext
2036cat >>conftest.$ac_ext <<_ACEOF
2037/* end confdefs.h. */
2038
2039int
2040main ()
2041{
2042
2043 ;
2044 return 0;
2045}
2046_ACEOF
2047rm -f conftest.o conftest.obj
2048if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2049 (eval $ac_compile) 2>&5
2050 ac_status=$?
2051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2052 (exit $ac_status); }; then
2053 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2054 case $ac_file in
2055 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2056 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2057 break;;
2058 esac
2059done
2060else
2061 echo "$as_me: failed program was:" >&5
2062sed 's/^/| /' conftest.$ac_ext >&5
2063
2064{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2065See \`config.log' for more details." >&5
2066echo "$as_me: error: cannot compute suffix of object files: cannot compile
2067See \`config.log' for more details." >&2;}
2068 { (exit 1); exit 1; }; }
1fd5e000
CF
2069fi
2070
99fc5e10
CF
2071rm -f conftest.$ac_cv_objext conftest.$ac_ext
2072fi
2073echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2074echo "${ECHO_T}$ac_cv_objext" >&6
2075OBJEXT=$ac_cv_objext
2076ac_objext=$OBJEXT
2077echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2078echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2079if test "${ac_cv_c_compiler_gnu+set}" = set; then
2080 echo $ECHO_N "(cached) $ECHO_C" >&6
2081else
2082 cat >conftest.$ac_ext <<_ACEOF
2083/* confdefs.h. */
2084_ACEOF
2085cat confdefs.h >>conftest.$ac_ext
2086cat >>conftest.$ac_ext <<_ACEOF
2087/* end confdefs.h. */
2088
2089int
2090main ()
2091{
2092#ifndef __GNUC__
2093 choke me
2094#endif
2095
2096 ;
2097 return 0;
2098}
2099_ACEOF
2100rm -f conftest.$ac_objext
2101if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2102 (eval $ac_compile) 2>conftest.er1
2103 ac_status=$?
2104 grep -v '^ *+' conftest.er1 >conftest.err
2105 rm -f conftest.er1
2106 cat conftest.err >&5
2107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108 (exit $ac_status); } &&
e9d500b6
CV
2109 { ac_try='test -z "$ac_c_werror_flag"
2110 || test ! -s conftest.err'
99fc5e10
CF
2111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2112 (eval $ac_try) 2>&5
2113 ac_status=$?
2114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2115 (exit $ac_status); }; } &&
2116 { ac_try='test -s conftest.$ac_objext'
2117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2118 (eval $ac_try) 2>&5
2119 ac_status=$?
2120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2121 (exit $ac_status); }; }; then
2122 ac_compiler_gnu=yes
2123else
2124 echo "$as_me: failed program was:" >&5
2125sed 's/^/| /' conftest.$ac_ext >&5
2126
2127ac_compiler_gnu=no
2128fi
2129rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2130ac_cv_c_compiler_gnu=$ac_compiler_gnu
2131
2132fi
2133echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2134echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2135GCC=`test $ac_compiler_gnu = yes && echo yes`
2136ac_test_CFLAGS=${CFLAGS+set}
2137ac_save_CFLAGS=$CFLAGS
2138CFLAGS="-g"
2139echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2140echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2141if test "${ac_cv_prog_cc_g+set}" = set; then
2142 echo $ECHO_N "(cached) $ECHO_C" >&6
2143else
2144 cat >conftest.$ac_ext <<_ACEOF
2145/* confdefs.h. */
2146_ACEOF
2147cat confdefs.h >>conftest.$ac_ext
2148cat >>conftest.$ac_ext <<_ACEOF
2149/* end confdefs.h. */
2150
2151int
2152main ()
2153{
2154
2155 ;
2156 return 0;
2157}
2158_ACEOF
2159rm -f conftest.$ac_objext
2160if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2161 (eval $ac_compile) 2>conftest.er1
2162 ac_status=$?
2163 grep -v '^ *+' conftest.er1 >conftest.err
2164 rm -f conftest.er1
2165 cat conftest.err >&5
2166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167 (exit $ac_status); } &&
e9d500b6
CV
2168 { ac_try='test -z "$ac_c_werror_flag"
2169 || test ! -s conftest.err'
99fc5e10
CF
2170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2171 (eval $ac_try) 2>&5
2172 ac_status=$?
2173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174 (exit $ac_status); }; } &&
2175 { ac_try='test -s conftest.$ac_objext'
2176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2177 (eval $ac_try) 2>&5
2178 ac_status=$?
2179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180 (exit $ac_status); }; }; then
2181 ac_cv_prog_cc_g=yes
2182else
2183 echo "$as_me: failed program was:" >&5
2184sed 's/^/| /' conftest.$ac_ext >&5
2185
2186ac_cv_prog_cc_g=no
2187fi
2188rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2189fi
2190echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2191echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2192if test "$ac_test_CFLAGS" = set; then
2193 CFLAGS=$ac_save_CFLAGS
2194elif test $ac_cv_prog_cc_g = yes; then
2195 if test "$GCC" = yes; then
1fd5e000
CF
2196 CFLAGS="-g -O2"
2197 else
99fc5e10
CF
2198 CFLAGS="-g"
2199 fi
2200else
2201 if test "$GCC" = yes; then
1fd5e000 2202 CFLAGS="-O2"
99fc5e10
CF
2203 else
2204 CFLAGS=
1fd5e000 2205 fi
99fc5e10
CF
2206fi
2207echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2208echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2209if test "${ac_cv_prog_cc_stdc+set}" = set; then
2210 echo $ECHO_N "(cached) $ECHO_C" >&6
2211else
2212 ac_cv_prog_cc_stdc=no
2213ac_save_CC=$CC
2214cat >conftest.$ac_ext <<_ACEOF
2215/* confdefs.h. */
2216_ACEOF
2217cat confdefs.h >>conftest.$ac_ext
2218cat >>conftest.$ac_ext <<_ACEOF
2219/* end confdefs.h. */
2220#include <stdarg.h>
2221#include <stdio.h>
2222#include <sys/types.h>
2223#include <sys/stat.h>
2224/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2225struct buf { int x; };
2226FILE * (*rcsopen) (struct buf *, struct stat *, int);
2227static char *e (p, i)
2228 char **p;
2229 int i;
2230{
2231 return p[i];
2232}
2233static char *f (char * (*g) (char **, int), char **p, ...)
2234{
2235 char *s;
2236 va_list v;
2237 va_start (v,p);
2238 s = g (p, va_arg (v,int));
2239 va_end (v);
2240 return s;
2241}
2242
2243/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2244 function prototypes and stuff, but not '\xHH' hex character constants.
2245 These don't provoke an error unfortunately, instead are silently treated
2246 as 'x'. The following induces an error, until -std1 is added to get
2247 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2248 array size at least. It's necessary to write '\x00'==0 to get something
2249 that's true only with -std1. */
2250int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2251
2252int test (int i, double x);
2253struct s1 {int (*f) (int a);};
2254struct s2 {int (*f) (double a);};
2255int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2256int argc;
2257char **argv;
2258int
2259main ()
2260{
2261return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2262 ;
2263 return 0;
2264}
2265_ACEOF
2266# Don't try gcc -ansi; that turns off useful extensions and
2267# breaks some systems' header files.
2268# AIX -qlanglvl=ansi
2269# Ultrix and OSF/1 -std1
2270# HP-UX 10.20 and later -Ae
2271# HP-UX older versions -Aa -D_HPUX_SOURCE
2272# SVR4 -Xc -D__EXTENSIONS__
2273for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2274do
2275 CC="$ac_save_CC $ac_arg"
2276 rm -f conftest.$ac_objext
2277if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2278 (eval $ac_compile) 2>conftest.er1
2279 ac_status=$?
2280 grep -v '^ *+' conftest.er1 >conftest.err
2281 rm -f conftest.er1
2282 cat conftest.err >&5
2283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284 (exit $ac_status); } &&
e9d500b6
CV
2285 { ac_try='test -z "$ac_c_werror_flag"
2286 || test ! -s conftest.err'
99fc5e10
CF
2287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2288 (eval $ac_try) 2>&5
2289 ac_status=$?
2290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2291 (exit $ac_status); }; } &&
2292 { ac_try='test -s conftest.$ac_objext'
2293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2294 (eval $ac_try) 2>&5
2295 ac_status=$?
2296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297 (exit $ac_status); }; }; then
2298 ac_cv_prog_cc_stdc=$ac_arg
2299break
2300else
2301 echo "$as_me: failed program was:" >&5
2302sed 's/^/| /' conftest.$ac_ext >&5
2303
2304fi
2305rm -f conftest.err conftest.$ac_objext
2306done
2307rm -f conftest.$ac_ext conftest.$ac_objext
2308CC=$ac_save_CC
2309
2310fi
2311
2312case "x$ac_cv_prog_cc_stdc" in
2313 x|xno)
2314 echo "$as_me:$LINENO: result: none needed" >&5
2315echo "${ECHO_T}none needed" >&6 ;;
2316 *)
2317 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2318echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2319 CC="$CC $ac_cv_prog_cc_stdc" ;;
2320esac
2321
2322# Some people use a C++ compiler to compile C. Since we use `exit',
2323# in C++ we need to declare it. In case someone uses the same compiler
2324# for both compiling C and C++ we need to have the C++ compiler decide
2325# the declaration of exit, since it's the most demanding environment.
2326cat >conftest.$ac_ext <<_ACEOF
2327#ifndef __cplusplus
2328 choke me
2329#endif
2330_ACEOF
2331rm -f conftest.$ac_objext
2332if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2333 (eval $ac_compile) 2>conftest.er1
2334 ac_status=$?
2335 grep -v '^ *+' conftest.er1 >conftest.err
2336 rm -f conftest.er1
2337 cat conftest.err >&5
2338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339 (exit $ac_status); } &&
e9d500b6
CV
2340 { ac_try='test -z "$ac_c_werror_flag"
2341 || test ! -s conftest.err'
99fc5e10
CF
2342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2343 (eval $ac_try) 2>&5
2344 ac_status=$?
2345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346 (exit $ac_status); }; } &&
2347 { ac_try='test -s conftest.$ac_objext'
2348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2349 (eval $ac_try) 2>&5
2350 ac_status=$?
2351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352 (exit $ac_status); }; }; then
2353 for ac_declaration in \
2354 '' \
2355 'extern "C" void std::exit (int) throw (); using std::exit;' \
2356 'extern "C" void std::exit (int); using std::exit;' \
2357 'extern "C" void exit (int) throw ();' \
2358 'extern "C" void exit (int);' \
2359 'void exit (int);'
2360do
2361 cat >conftest.$ac_ext <<_ACEOF
2362/* confdefs.h. */
2363_ACEOF
2364cat confdefs.h >>conftest.$ac_ext
2365cat >>conftest.$ac_ext <<_ACEOF
2366/* end confdefs.h. */
2367$ac_declaration
2368#include <stdlib.h>
2369int
2370main ()
2371{
2372exit (42);
2373 ;
2374 return 0;
2375}
2376_ACEOF
2377rm -f conftest.$ac_objext
2378if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2379 (eval $ac_compile) 2>conftest.er1
2380 ac_status=$?
2381 grep -v '^ *+' conftest.er1 >conftest.err
2382 rm -f conftest.er1
2383 cat conftest.err >&5
2384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385 (exit $ac_status); } &&
e9d500b6
CV
2386 { ac_try='test -z "$ac_c_werror_flag"
2387 || test ! -s conftest.err'
99fc5e10
CF
2388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2389 (eval $ac_try) 2>&5
2390 ac_status=$?
2391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392 (exit $ac_status); }; } &&
2393 { ac_try='test -s conftest.$ac_objext'
2394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2395 (eval $ac_try) 2>&5
2396 ac_status=$?
2397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398 (exit $ac_status); }; }; then
2399 :
1fd5e000 2400else
99fc5e10
CF
2401 echo "$as_me: failed program was:" >&5
2402sed 's/^/| /' conftest.$ac_ext >&5
2403
2404continue
1fd5e000 2405fi
99fc5e10
CF
2406rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2407 cat >conftest.$ac_ext <<_ACEOF
2408/* confdefs.h. */
2409_ACEOF
2410cat confdefs.h >>conftest.$ac_ext
2411cat >>conftest.$ac_ext <<_ACEOF
2412/* end confdefs.h. */
2413$ac_declaration
2414int
2415main ()
2416{
2417exit (42);
2418 ;
2419 return 0;
2420}
2421_ACEOF
2422rm -f conftest.$ac_objext
2423if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2424 (eval $ac_compile) 2>conftest.er1
2425 ac_status=$?
2426 grep -v '^ *+' conftest.er1 >conftest.err
2427 rm -f conftest.er1
2428 cat conftest.err >&5
2429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430 (exit $ac_status); } &&
e9d500b6
CV
2431 { ac_try='test -z "$ac_c_werror_flag"
2432 || test ! -s conftest.err'
99fc5e10
CF
2433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2434 (eval $ac_try) 2>&5
2435 ac_status=$?
2436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437 (exit $ac_status); }; } &&
2438 { ac_try='test -s conftest.$ac_objext'
2439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2440 (eval $ac_try) 2>&5
2441 ac_status=$?
2442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443 (exit $ac_status); }; }; then
2444 break
2445else
2446 echo "$as_me: failed program was:" >&5
2447sed 's/^/| /' conftest.$ac_ext >&5
1fd5e000 2448
99fc5e10
CF
2449fi
2450rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2451done
2452rm -f conftest*
2453if test -n "$ac_declaration"; then
2454 echo '#ifdef __cplusplus' >>confdefs.h
2455 echo $ac_declaration >>confdefs.h
2456 echo '#endif' >>confdefs.h
2457fi
2458
2459else
2460 echo "$as_me: failed program was:" >&5
2461sed 's/^/| /' conftest.$ac_ext >&5
2462
2463fi
2464rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2465ac_ext=c
2466ac_cpp='$CPP $CPPFLAGS'
2467ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2468ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2469ac_compiler_gnu=$ac_cv_c_compiler_gnu
2470
2471test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
2472echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
2473 { (exit 1); exit 1; }; }
2474
2475if test -n "$ac_tool_prefix"; then
2476 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
8494f61e 2477set dummy ${ac_tool_prefix}g++; ac_word=$2
99fc5e10
CF
2478echo "$as_me:$LINENO: checking for $ac_word" >&5
2479echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2480if test "${ac_cv_prog_CXX+set}" = set; then
2481 echo $ECHO_N "(cached) $ECHO_C" >&6
8494f61e
CF
2482else
2483 if test -n "$CXX"; then
2484 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2485else
99fc5e10
CF
2486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2487for as_dir in $PATH
2488do
2489 IFS=$as_save_IFS
2490 test -z "$as_dir" && as_dir=.
2491 for ac_exec_ext in '' $ac_executable_extensions; do
2492 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2493 ac_cv_prog_CXX="${ac_tool_prefix}g++"
2494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2495 break 2
2496 fi
2497done
2498done
2499
2500fi
2501fi
2502CXX=$ac_cv_prog_CXX
2503if test -n "$CXX"; then
2504 echo "$as_me:$LINENO: result: $CXX" >&5
2505echo "${ECHO_T}$CXX" >&6
2506else
2507 echo "$as_me:$LINENO: result: no" >&5
2508echo "${ECHO_T}no" >&6
2509fi
2510
2511fi
2512if test -z "$ac_cv_prog_CXX"; then
2513 ac_ct_CXX=$CXX
2514 # Extract the first word of "g++", so it can be a program name with args.
2515set dummy g++; ac_word=$2
2516echo "$as_me:$LINENO: checking for $ac_word" >&5
2517echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2518if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2519 echo $ECHO_N "(cached) $ECHO_C" >&6
2520else
2521 if test -n "$ac_ct_CXX"; then
2522 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2523else
2524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2525for as_dir in $PATH
2526do
2527 IFS=$as_save_IFS
2528 test -z "$as_dir" && as_dir=.
2529 for ac_exec_ext in '' $ac_executable_extensions; do
2530 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2531 ac_cv_prog_ac_ct_CXX="g++"
2532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2533 break 2
2534 fi
2535done
2536done
2537
2538 test -z "$ac_cv_prog_ac_ct_CXX" && ac_cv_prog_ac_ct_CXX="g++"
2539fi
2540fi
2541ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2542if test -n "$ac_ct_CXX"; then
2543 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2544echo "${ECHO_T}$ac_ct_CXX" >&6
2545else
2546 echo "$as_me:$LINENO: result: no" >&5
2547echo "${ECHO_T}no" >&6
2548fi
2549
2550 CXX=$ac_ct_CXX
2551else
2552 CXX="$ac_cv_prog_CXX"
2553fi
2554
2555if test -z "$CXX"; then
2556 if test -n "$ac_tool_prefix"; then
2557 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
2558set dummy ${ac_tool_prefix}g++; ac_word=$2
2559echo "$as_me:$LINENO: checking for $ac_word" >&5
2560echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2561if test "${ac_cv_prog_CXX+set}" = set; then
2562 echo $ECHO_N "(cached) $ECHO_C" >&6
2563else
2564 if test -n "$CXX"; then
2565 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2566else
2567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2568for as_dir in $PATH
2569do
2570 IFS=$as_save_IFS
2571 test -z "$as_dir" && as_dir=.
2572 for ac_exec_ext in '' $ac_executable_extensions; do
2573 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2574 ac_cv_prog_CXX="${ac_tool_prefix}g++"
2575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2576 break 2
2577 fi
2578done
2579done
2580
2581fi
2582fi
2583CXX=$ac_cv_prog_CXX
2584if test -n "$CXX"; then
2585 echo "$as_me:$LINENO: result: $CXX" >&5
2586echo "${ECHO_T}$CXX" >&6
2587else
2588 echo "$as_me:$LINENO: result: no" >&5
2589echo "${ECHO_T}no" >&6
2590fi
2591
2592fi
2593if test -z "$ac_cv_prog_CXX"; then
2594 ac_ct_CXX=$CXX
2595 # Extract the first word of "g++", so it can be a program name with args.
2596set dummy g++; ac_word=$2
2597echo "$as_me:$LINENO: checking for $ac_word" >&5
2598echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2599if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2600 echo $ECHO_N "(cached) $ECHO_C" >&6
2601else
2602 if test -n "$ac_ct_CXX"; then
2603 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2604else
2605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2606for as_dir in $PATH
2607do
2608 IFS=$as_save_IFS
2609 test -z "$as_dir" && as_dir=.
2610 for ac_exec_ext in '' $ac_executable_extensions; do
2611 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2612 ac_cv_prog_ac_ct_CXX="g++"
2613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2614 break 2
2615 fi
2616done
2617done
2618
2619 test -z "$ac_cv_prog_ac_ct_CXX" && ac_cv_prog_ac_ct_CXX="c++"
2620fi
2621fi
2622ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2623if test -n "$ac_ct_CXX"; then
2624 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2625echo "${ECHO_T}$ac_ct_CXX" >&6
2626else
2627 echo "$as_me:$LINENO: result: no" >&5
2628echo "${ECHO_T}no" >&6
2629fi
2630
2631 CXX=$ac_ct_CXX
2632else
2633 CXX="$ac_cv_prog_CXX"
2634fi
2635
2636 : ${CXX:=g++}
2637 ac_ext=cc
2638ac_cpp='$CXXCPP $CPPFLAGS'
2639ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2640ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2641ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2642if test -n "$ac_tool_prefix"; then
2643 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2644 do
2645 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2646set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2647echo "$as_me:$LINENO: checking for $ac_word" >&5
2648echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2649if test "${ac_cv_prog_CXX+set}" = set; then
2650 echo $ECHO_N "(cached) $ECHO_C" >&6
2651else
2652 if test -n "$CXX"; then
2653 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2654else
2655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2656for as_dir in $PATH
2657do
2658 IFS=$as_save_IFS
2659 test -z "$as_dir" && as_dir=.
2660 for ac_exec_ext in '' $ac_executable_extensions; do
2661 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2662 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2664 break 2
2665 fi
2666done
2667done
2668
8494f61e
CF
2669fi
2670fi
99fc5e10 2671CXX=$ac_cv_prog_CXX
8494f61e 2672if test -n "$CXX"; then
99fc5e10
CF
2673 echo "$as_me:$LINENO: result: $CXX" >&5
2674echo "${ECHO_T}$CXX" >&6
8494f61e 2675else
99fc5e10
CF
2676 echo "$as_me:$LINENO: result: no" >&5
2677echo "${ECHO_T}no" >&6
8494f61e
CF
2678fi
2679
99fc5e10
CF
2680 test -n "$CXX" && break
2681 done
2682fi
2683if test -z "$CXX"; then
2684 ac_ct_CXX=$CXX
2685 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2686do
2687 # Extract the first word of "$ac_prog", so it can be a program name with args.
2688set dummy $ac_prog; ac_word=$2
2689echo "$as_me:$LINENO: checking for $ac_word" >&5
2690echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2691if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2692 echo $ECHO_N "(cached) $ECHO_C" >&6
8494f61e 2693else
99fc5e10
CF
2694 if test -n "$ac_ct_CXX"; then
2695 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8494f61e 2696else
99fc5e10
CF
2697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2698for as_dir in $PATH
2699do
2700 IFS=$as_save_IFS
2701 test -z "$as_dir" && as_dir=.
2702 for ac_exec_ext in '' $ac_executable_extensions; do
2703 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2704 ac_cv_prog_ac_ct_CXX="$ac_prog"
2705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2706 break 2
2707 fi
2708done
2709done
2710
8494f61e
CF
2711fi
2712fi
99fc5e10
CF
2713ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2714if test -n "$ac_ct_CXX"; then
2715 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2716echo "${ECHO_T}$ac_ct_CXX" >&6
8494f61e 2717else
99fc5e10
CF
2718 echo "$as_me:$LINENO: result: no" >&5
2719echo "${ECHO_T}no" >&6
8494f61e
CF
2720fi
2721
99fc5e10
CF
2722 test -n "$ac_ct_CXX" && break
2723done
2724test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2725
2726 CXX=$ac_ct_CXX
8494f61e 2727fi
99fc5e10
CF
2728
2729
2730# Provide some information about the compiler.
2731echo "$as_me:$LINENO:" \
2732 "checking for C++ compiler version" >&5
2733ac_compiler=`set X $ac_compile; echo $2`
2734{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2735 (eval $ac_compiler --version </dev/null >&5) 2>&5
2736 ac_status=$?
2737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738 (exit $ac_status); }
2739{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2740 (eval $ac_compiler -v </dev/null >&5) 2>&5
2741 ac_status=$?
2742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743 (exit $ac_status); }
2744{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2745 (eval $ac_compiler -V </dev/null >&5) 2>&5
2746 ac_status=$?
2747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748 (exit $ac_status); }
2749
2750echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2751echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2752if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2753 echo $ECHO_N "(cached) $ECHO_C" >&6
2754else
2755 cat >conftest.$ac_ext <<_ACEOF
2756/* confdefs.h. */
2757_ACEOF
2758cat confdefs.h >>conftest.$ac_ext
2759cat >>conftest.$ac_ext <<_ACEOF
2760/* end confdefs.h. */
2761
2762int
2763main ()
2764{
2765#ifndef __GNUC__
2766 choke me
2767#endif
2768
2769 ;
2770 return 0;
2771}
2772_ACEOF
2773rm -f conftest.$ac_objext
2774if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2775 (eval $ac_compile) 2>conftest.er1
2776 ac_status=$?
2777 grep -v '^ *+' conftest.er1 >conftest.err
2778 rm -f conftest.er1
2779 cat conftest.err >&5
2780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781 (exit $ac_status); } &&
e9d500b6
CV
2782 { ac_try='test -z "$ac_cxx_werror_flag"
2783 || test ! -s conftest.err'
99fc5e10
CF
2784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2785 (eval $ac_try) 2>&5
2786 ac_status=$?
2787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788 (exit $ac_status); }; } &&
2789 { ac_try='test -s conftest.$ac_objext'
2790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2791 (eval $ac_try) 2>&5
2792 ac_status=$?
2793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794 (exit $ac_status); }; }; then
2795 ac_compiler_gnu=yes
2796else
2797 echo "$as_me: failed program was:" >&5
2798sed 's/^/| /' conftest.$ac_ext >&5
2799
2800ac_compiler_gnu=no
8494f61e 2801fi
99fc5e10
CF
2802rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2803ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8494f61e 2804
99fc5e10
CF
2805fi
2806echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2807echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2808GXX=`test $ac_compiler_gnu = yes && echo yes`
2809ac_test_CXXFLAGS=${CXXFLAGS+set}
2810ac_save_CXXFLAGS=$CXXFLAGS
2811CXXFLAGS="-g"
2812echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2813echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2814if test "${ac_cv_prog_cxx_g+set}" = set; then
2815 echo $ECHO_N "(cached) $ECHO_C" >&6
8494f61e 2816else
99fc5e10
CF
2817 cat >conftest.$ac_ext <<_ACEOF
2818/* confdefs.h. */
2819_ACEOF
2820cat confdefs.h >>conftest.$ac_ext
2821cat >>conftest.$ac_ext <<_ACEOF
2822/* end confdefs.h. */
2823
2824int
2825main ()
2826{
2827
2828 ;
2829 return 0;
2830}
2831_ACEOF
2832rm -f conftest.$ac_objext
2833if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2834 (eval $ac_compile) 2>conftest.er1
2835 ac_status=$?
2836 grep -v '^ *+' conftest.er1 >conftest.err
2837 rm -f conftest.er1
2838 cat conftest.err >&5
2839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840 (exit $ac_status); } &&
e9d500b6
CV
2841 { ac_try='test -z "$ac_cxx_werror_flag"
2842 || test ! -s conftest.err'
99fc5e10
CF
2843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2844 (eval $ac_try) 2>&5
2845 ac_status=$?
2846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847 (exit $ac_status); }; } &&
2848 { ac_try='test -s conftest.$ac_objext'
2849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2850 (eval $ac_try) 2>&5
2851 ac_status=$?
2852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853 (exit $ac_status); }; }; then
2854 ac_cv_prog_cxx_g=yes
8494f61e 2855else
99fc5e10
CF
2856 echo "$as_me: failed program was:" >&5
2857sed 's/^/| /' conftest.$ac_ext >&5
2858
2859ac_cv_prog_cxx_g=no
8494f61e 2860fi
99fc5e10 2861rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8494f61e 2862fi
99fc5e10
CF
2863echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2864echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2865if test "$ac_test_CXXFLAGS" = set; then
2866 CXXFLAGS=$ac_save_CXXFLAGS
2867elif test $ac_cv_prog_cxx_g = yes; then
2868 if test "$GXX" = yes; then
2869 CXXFLAGS="-g -O2"
2870 else
2871 CXXFLAGS="-g"
2872 fi
2873else
2874 if test "$GXX" = yes; then
2875 CXXFLAGS="-O2"
2876 else
2877 CXXFLAGS=
2878 fi
2879fi
2880for ac_declaration in \
2881 '' \
2882 'extern "C" void std::exit (int) throw (); using std::exit;' \
2883 'extern "C" void std::exit (int); using std::exit;' \
2884 'extern "C" void exit (int) throw ();' \
2885 'extern "C" void exit (int);' \
2886 'void exit (int);'
2887do
2888 cat >conftest.$ac_ext <<_ACEOF
2889/* confdefs.h. */
2890_ACEOF
2891cat confdefs.h >>conftest.$ac_ext
2892cat >>conftest.$ac_ext <<_ACEOF
2893/* end confdefs.h. */
2894$ac_declaration
2895#include <stdlib.h>
2896int
2897main ()
2898{
2899exit (42);
2900 ;
2901 return 0;
2902}
2903_ACEOF
2904rm -f conftest.$ac_objext
2905if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2906 (eval $ac_compile) 2>conftest.er1
2907 ac_status=$?
2908 grep -v '^ *+' conftest.er1 >conftest.err
2909 rm -f conftest.er1
2910 cat conftest.err >&5
2911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912 (exit $ac_status); } &&
e9d500b6
CV
2913 { ac_try='test -z "$ac_cxx_werror_flag"
2914 || test ! -s conftest.err'
99fc5e10
CF
2915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2916 (eval $ac_try) 2>&5
2917 ac_status=$?
2918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919 (exit $ac_status); }; } &&
2920 { ac_try='test -s conftest.$ac_objext'
2921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2922 (eval $ac_try) 2>&5
2923 ac_status=$?
2924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925 (exit $ac_status); }; }; then
2926 :
2927else
2928 echo "$as_me: failed program was:" >&5
2929sed 's/^/| /' conftest.$ac_ext >&5
2930
2931continue
2932fi
2933rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2934 cat >conftest.$ac_ext <<_ACEOF
2935/* confdefs.h. */
2936_ACEOF
2937cat confdefs.h >>conftest.$ac_ext
2938cat >>conftest.$ac_ext <<_ACEOF
2939/* end confdefs.h. */
2940$ac_declaration
2941int
2942main ()
2943{
2944exit (42);
2945 ;
2946 return 0;
2947}
2948_ACEOF
2949rm -f conftest.$ac_objext
2950if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2951 (eval $ac_compile) 2>conftest.er1
2952 ac_status=$?
2953 grep -v '^ *+' conftest.er1 >conftest.err
2954 rm -f conftest.er1
2955 cat conftest.err >&5
2956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957 (exit $ac_status); } &&
e9d500b6
CV
2958 { ac_try='test -z "$ac_cxx_werror_flag"
2959 || test ! -s conftest.err'
99fc5e10
CF
2960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2961 (eval $ac_try) 2>&5
2962 ac_status=$?
2963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964 (exit $ac_status); }; } &&
2965 { ac_try='test -s conftest.$ac_objext'
2966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2967 (eval $ac_try) 2>&5
2968 ac_status=$?
2969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970 (exit $ac_status); }; }; then
2971 break
8494f61e 2972else
99fc5e10
CF
2973 echo "$as_me: failed program was:" >&5
2974sed 's/^/| /' conftest.$ac_ext >&5
2975
2976fi
2977rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2978done
2979rm -f conftest*
2980if test -n "$ac_declaration"; then
2981 echo '#ifdef __cplusplus' >>confdefs.h
2982 echo $ac_declaration >>confdefs.h
2983 echo '#endif' >>confdefs.h
8494f61e
CF
2984fi
2985
99fc5e10
CF
2986ac_ext=c
2987ac_cpp='$CPP $CPPFLAGS'
2988ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2989ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2990ac_compiler_gnu=$ac_cv_c_compiler_gnu
2991
2992 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
2993echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
2994 { (exit 1); exit 1; }; }
8494f61e
CF
2995fi
2996
eec74f4a 2997CXXFLAGS='$(CFLAGS)'
8494f61e 2998
1fd5e000 2999
99fc5e10
CF
3000ac_ext=c
3001ac_cpp='$CPP $CPPFLAGS'
3002ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3003ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3004ac_compiler_gnu=$ac_cv_c_compiler_gnu
3005
3006
d012506e 3007use_cygserver='yes'
9c01984e
CF
3008# Check whether --enable-server or --disable-server was given.
3009if test "${enable_server+set}" = set; then
3010 enableval="$enable_server"
3011 case "${enableval}" in
d012506e
CF
3012yes) ;;
3013no) use_cygserver=;;
9c01984e
CF
3014esac
3015
99fc5e10
CF
3016fi;
3017
3018
9c01984e 3019
99fc5e10 3020subdirs="$subdirs cygwin w32api"
9c01984e 3021
99fc5e10
CF
3022if test -d $srcdir/mingw; then
3023
3024
3025subdirs="$subdirs mingw"
3026
3027fi
74162926 3028
2e6d8441
CF
3029case "$with_cross_host" in
3030 ""|*cygwin*)
99fc5e10
CF
3031 # if test -d $srcdir/bz2lib; then
3032 # AC_CONFIG_SUBDIRS(bz2lib)
3033 # fi
3034 # if test -d $srcdir/zlib; then
3035 # AC_CONFIG_SUBDIRS(zlib)
3036 # fi
e9d500b6
CV
3037 if test -d $srcdir/subauth; then
3038
3039
3040subdirs="$subdirs subauth"
3041
3042 fi
99fc5e10
CF
3043 if test -n "$use_cygserver" -a -d $srcdir/cygserver; then
3044
3045
3046subdirs="$subdirs cygserver"
3047
3048 fi
2e6d8441 3049
1fd5e000 3050
99fc5e10
CF
3051subdirs="$subdirs utils doc"
3052
3053 ;;
3054esac
2e6d8441 3055
99fc5e10
CF
3056echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3057echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3058set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3059if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3060 echo $ECHO_N "(cached) $ECHO_C" >&6
1fd5e000 3061else
99fc5e10 3062 cat >conftest.make <<\_ACEOF
1fd5e000 3063all:
99fc5e10
CF
3064 @echo 'ac_maketemp="$(MAKE)"'
3065_ACEOF
1fd5e000 3066# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
99fc5e10 3067eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1fd5e000
CF
3068if test -n "$ac_maketemp"; then
3069 eval ac_cv_prog_make_${ac_make}_set=yes
3070else
3071 eval ac_cv_prog_make_${ac_make}_set=no
3072fi
99fc5e10 3073rm -f conftest.make
1fd5e000
CF
3074fi
3075if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
99fc5e10
CF
3076 echo "$as_me:$LINENO: result: yes" >&5
3077echo "${ECHO_T}yes" >&6
1fd5e000
CF
3078 SET_MAKE=
3079else
99fc5e10
CF
3080 echo "$as_me:$LINENO: result: no" >&5
3081echo "${ECHO_T}no" >&6
1fd5e000
CF
3082 SET_MAKE="MAKE=${MAKE-make}"
3083fi
3084
3085
99fc5e10
CF
3086 ac_config_files="$ac_config_files Makefile"
3087cat >confcache <<\_ACEOF
1fd5e000
CF
3088# This file is a shell script that caches the results of configure
3089# tests run on this system so they can be shared between configure
99fc5e10
CF
3090# scripts and configure runs, see configure's option --config-cache.
3091# It is not useful on other systems. If it contains results you don't
3092# want to keep, you may remove or edit it.
1fd5e000 3093#
99fc5e10
CF
3094# config.status only pays attention to the cache file if you give it
3095# the --recheck option to rerun configure.
1fd5e000 3096#
99fc5e10
CF
3097# `ac_cv_env_foo' variables (set or unset) will be overridden when
3098# loading this file, other *unset* `ac_cv_foo' will be assigned the
3099# following values.
3100
3101_ACEOF
3102
1fd5e000
CF
3103# The following way of writing the cache mishandles newlines in values,
3104# but we know of no workaround that is simple, portable, and efficient.
3105# So, don't put newlines in cache variables' values.
3106# Ultrix sh set writes to stderr and can't be redirected directly,
3107# and sets the high bit in the cache file unless we assign to the vars.
99fc5e10
CF
3108{
3109 (set) 2>&1 |
3110 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3111 *ac_space=\ *)
3112 # `set' does not quote correctly, so add quotes (double-quote
3113 # substitution turns \\\\ into \\, and sed turns \\ into \).
3114 sed -n \
3115 "s/'/'\\\\''/g;
3116 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3117 ;;
3118 *)
3119 # `set' quotes correctly as required by POSIX, so do not add quotes.
3120 sed -n \
3121 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3122 ;;
3123 esac;
3124} |
3125 sed '
3126 t clear
3127 : clear
3128 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3129 t end
3130 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3131 : end' >>confcache
3132if diff $cache_file confcache >/dev/null 2>&1; then :; else
1fd5e000 3133 if test -w $cache_file; then
99fc5e10
CF
3134 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3135 cat confcache >$cache_file
1fd5e000
CF
3136 else
3137 echo "not updating unwritable cache $cache_file"
3138 fi
3139fi
3140rm -f confcache
3141
1fd5e000
CF
3142test "x$prefix" = xNONE && prefix=$ac_default_prefix
3143# Let make expand exec_prefix.
3144test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3145
99fc5e10
CF
3146# VPATH may cause trouble with some makes, so we remove $(srcdir),
3147# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3148# trailing colons and then remove the whole line if VPATH becomes empty
3149# (actually we leave an empty line to preserve line numbers).
1fd5e000 3150if test "x$srcdir" = x.; then
99fc5e10
CF
3151 ac_vpsub='/^[ ]*VPATH[ ]*=/{
3152s/:*\$(srcdir):*/:/;
3153s/:*\${srcdir}:*/:/;
3154s/:*@srcdir@:*/:/;
3155s/^\([^=]*=[ ]*\):*/\1/;
3156s/:*$//;
3157s/^[^=]*=[ ]*$//;
3158}'
1fd5e000
CF
3159fi
3160
1fd5e000
CF
3161# Transform confdefs.h into DEFS.
3162# Protect against shell expansion while executing Makefile rules.
3163# Protect against Makefile macro expansion.
99fc5e10
CF
3164#
3165# If the first sed substitution is executed (which looks for macros that
3166# take arguments), then we branch to the quote section. Otherwise,
3167# look for a macro that doesn't take arguments.
3168cat >confdef2opt.sed <<\_ACEOF
3169t clear
3170: clear
3171s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
3172t quote
3173s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
3174t quote
3175d
3176: quote
3177s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
3178s,\[,\\&,g
3179s,\],\\&,g
3180s,\$,$$,g
3181p
3182_ACEOF
3183# We use echo to avoid assuming a particular line-breaking character.
3184# The extra dot is to prevent the shell from consuming trailing
3185# line-breaks from the sub-command output. A line-break within
3186# single-quotes doesn't work because, if this script is created in a
3187# platform that uses two characters for line-breaks (e.g., DOS), tr
3188# would break.
3189ac_LF_and_DOT=`echo; echo .`
3190DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
3191rm -f confdef2opt.sed
3192
3193
3194ac_libobjs=
3195ac_ltlibobjs=
3196for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3197 # 1. Remove the extension, and $U if already installed.
3198 ac_i=`echo "$ac_i" |
3199 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
3200 # 2. Add them.
3201 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
3202 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
3203done
3204LIBOBJS=$ac_libobjs
1fd5e000 3205
99fc5e10
CF
3206LTLIBOBJS=$ac_ltlibobjs
3207
3208
3209
3210: ${CONFIG_STATUS=./config.status}
3211ac_clean_files_save=$ac_clean_files
3212ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3213{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3214echo "$as_me: creating $CONFIG_STATUS" >&6;}
3215cat >$CONFIG_STATUS <<_ACEOF
3216#! $SHELL
3217# Generated by $as_me.
1fd5e000 3218# Run this file to recreate the current configuration.
1fd5e000 3219# Compiler output produced by configure, useful for debugging
99fc5e10
CF
3220# configure, is in config.log if it exists.
3221
3222debug=false
3223ac_cs_recheck=false
3224ac_cs_silent=false
3225SHELL=\${CONFIG_SHELL-$SHELL}
3226_ACEOF
3227
3228cat >>$CONFIG_STATUS <<\_ACEOF
3229## --------------------- ##
3230## M4sh Initialization. ##
3231## --------------------- ##
3232
3233# Be Bourne compatible
3234if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3235 emulate sh
3236 NULLCMD=:
3237 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3238 # is contrary to our usage. Disable this feature.
3239 alias -g '${1+"$@"}'='"$@"'
3240elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3241 set -o posix
3242fi
3243DUALCASE=1; export DUALCASE # for MKS sh
1fd5e000 3244
99fc5e10
CF
3245# Support unset when possible.
3246if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3247 as_unset=unset
3248else
3249 as_unset=false
3250fi
3251
3252
3253# Work around bugs in pre-3.0 UWIN ksh.
3254$as_unset ENV MAIL MAILPATH
3255PS1='$ '
3256PS2='> '
3257PS4='+ '
3258
3259# NLS nuisances.
3260for as_var in \
3261 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
3262 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
3263 LC_TELEPHONE LC_TIME
1fd5e000 3264do
99fc5e10
CF
3265 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
3266 eval $as_var=C; export $as_var
3267 else
3268 $as_unset $as_var
3269 fi
1fd5e000
CF
3270done
3271
99fc5e10
CF
3272# Required to use basename.
3273if expr a : '\(a\)' >/dev/null 2>&1; then
3274 as_expr=expr
3275else
3276 as_expr=false
3277fi
1fd5e000 3278
99fc5e10
CF
3279if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
3280 as_basename=basename
3281else
3282 as_basename=false
3283fi
1fd5e000 3284
1fd5e000 3285
99fc5e10
CF
3286# Name of the executable.
3287as_me=`$as_basename "$0" ||
3288$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3289 X"$0" : 'X\(//\)$' \| \
3290 X"$0" : 'X\(/\)$' \| \
3291 . : '\(.\)' 2>/dev/null ||
3292echo X/"$0" |
3293 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3294 /^X\/\(\/\/\)$/{ s//\1/; q; }
3295 /^X\/\(\/\).*/{ s//\1/; q; }
3296 s/.*/./; q'`
3297
3298
3299# PATH needs CR, and LINENO needs CR and PATH.
3300# Avoid depending upon Character Ranges.
3301as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3302as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3303as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3304as_cr_digits='0123456789'
3305as_cr_alnum=$as_cr_Letters$as_cr_digits
3306
3307# The user is always right.
3308if test "${PATH_SEPARATOR+set}" != set; then
3309 echo "#! /bin/sh" >conf$$.sh
3310 echo "exit 0" >>conf$$.sh
3311 chmod +x conf$$.sh
3312 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3313 PATH_SEPARATOR=';'
1fd5e000 3314 else
99fc5e10
CF
3315 PATH_SEPARATOR=:
3316 fi
3317 rm -f conf$$.sh
3318fi
3319
3320
3321 as_lineno_1=$LINENO
3322 as_lineno_2=$LINENO
3323 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3324 test "x$as_lineno_1" != "x$as_lineno_2" &&
3325 test "x$as_lineno_3" = "x$as_lineno_2" || {
3326 # Find who we are. Look in the path if we contain no path at all
3327 # relative or not.
3328 case $0 in
3329 *[\\/]* ) as_myself=$0 ;;
3330 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3331for as_dir in $PATH
3332do
3333 IFS=$as_save_IFS
3334 test -z "$as_dir" && as_dir=.
3335 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3336done
3337
3338 ;;
3339 esac
3340 # We did not find ourselves, most probably we were run as `sh COMMAND'
3341 # in which case we are not to be found in the path.
3342 if test "x$as_myself" = x; then
3343 as_myself=$0
1fd5e000 3344 fi
99fc5e10
CF
3345 if test ! -f "$as_myself"; then
3346 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
3347echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
3348 { (exit 1); exit 1; }; }
3349 fi
3350 case $CONFIG_SHELL in
3351 '')
3352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3353for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
3354do
3355 IFS=$as_save_IFS
3356 test -z "$as_dir" && as_dir=.
3357 for as_base in sh bash ksh sh5; do
3358 case $as_dir in
3359 /*)
3360 if ("$as_dir/$as_base" -c '
3361 as_lineno_1=$LINENO
3362 as_lineno_2=$LINENO
3363 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3364 test "x$as_lineno_1" != "x$as_lineno_2" &&
3365 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
3366 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
3367 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
3368 CONFIG_SHELL=$as_dir/$as_base
3369 export CONFIG_SHELL
3370 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
3371 fi;;
3372 esac
3373 done
3374done
3375;;
3376 esac
3377
3378 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3379 # uniformly replaced by the line number. The first 'sed' inserts a
3380 # line-number line before each line; the second 'sed' does the real
3381 # work. The second script uses 'N' to pair each line-number line
3382 # with the numbered line, and appends trailing '-' during
3383 # substitution so that $LINENO is not a special case at line end.
3384 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3385 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
3386 sed '=' <$as_myself |
3387 sed '
3388 N
3389 s,$,-,
3390 : loop
3391 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
3392 t loop
3393 s,-$,,
3394 s,^['$as_cr_digits']*\n,,
3395 ' >$as_me.lineno &&
3396 chmod +x $as_me.lineno ||
3397 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
3398echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
3399 { (exit 1); exit 1; }; }
3400
3401 # Don't try to exec as it changes $[0], causing all sort of problems
3402 # (the dirname of $[0] is not the place where we might find the
3403 # original and so on. Autoconf is especially sensible to this).
3404 . ./$as_me.lineno
3405 # Exit status is that of the last command.
3406 exit
3407}
3408
3409
3410case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
3411 *c*,-n*) ECHO_N= ECHO_C='
3412' ECHO_T=' ' ;;
3413 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
3414 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
3415esac
3416
3417if expr a : '\(a\)' >/dev/null 2>&1; then
3418 as_expr=expr
3419else
3420 as_expr=false
3421fi
3422
3423rm -f conf$$ conf$$.exe conf$$.file
3424echo >conf$$.file
3425if ln -s conf$$.file conf$$ 2>/dev/null; then
3426 # We could just check for DJGPP; but this test a) works b) is more generic
3427 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3428 if test -f conf$$.exe; then
3429 # Don't use ln at all; we don't have any links
3430 as_ln_s='cp -p'
1fd5e000 3431 else
99fc5e10 3432 as_ln_s='ln -s'
1fd5e000 3433 fi
99fc5e10
CF
3434elif ln conf$$.file conf$$ 2>/dev/null; then
3435 as_ln_s=ln
3436else
3437 as_ln_s='cp -p'
3438fi
3439rm -f conf$$ conf$$.exe conf$$.file
3440
3441if mkdir -p . 2>/dev/null; then
3442 as_mkdir_p=:
3443else
3444 test -d ./-p && rmdir ./-p
3445 as_mkdir_p=false
3446fi
3447
3448as_executable_p="test -f"
3449
3450# Sed expression to map a string onto a valid CPP name.
3451as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3452
3453# Sed expression to map a string onto a valid variable name.
3454as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3455
3456
3457# IFS
3458# We need space, tab and new line, in precisely that order.
3459as_nl='
3460'
3461IFS=" $as_nl"
3462
3463# CDPATH.
3464$as_unset CDPATH
3465
3466exec 6>&1
3467
3468# Open the log real soon, to keep \$[0] and so on meaningful, and to
3469# report actual input values of CONFIG_FILES etc. instead of their
3470# values after options handling. Logging --version etc. is OK.
3471exec 5>>config.log
3472{
3473 echo
3474 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3475## Running $as_me. ##
3476_ASBOX
3477} >&5
3478cat >&5 <<_CSEOF
3479
3480This file was extended by $as_me, which was
3481generated by GNU Autoconf 2.59. Invocation command line was
3482
3483 CONFIG_FILES = $CONFIG_FILES
3484 CONFIG_HEADERS = $CONFIG_HEADERS
3485 CONFIG_LINKS = $CONFIG_LINKS
3486 CONFIG_COMMANDS = $CONFIG_COMMANDS
3487 $ $0 $@
3488
3489_CSEOF
3490echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
3491echo >&5
3492_ACEOF
3493
3494# Files that config.status was made for.
3495if test -n "$ac_config_files"; then
3496 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3497fi
3498
3499if test -n "$ac_config_headers"; then
3500 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3501fi
3502
3503if test -n "$ac_config_links"; then
3504 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3505fi
3506
3507if test -n "$ac_config_commands"; then
3508 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3509fi
3510
3511cat >>$CONFIG_STATUS <<\_ACEOF
3512
3513ac_cs_usage="\
3514\`$as_me' instantiates files from templates according to the
3515current configuration.
3516
3517Usage: $0 [OPTIONS] [FILE]...
3518
3519 -h, --help print this help, then exit
3520 -V, --version print version number, then exit
3521 -q, --quiet do not print progress messages
3522 -d, --debug don't remove temporary files
3523 --recheck update $as_me by reconfiguring in the same conditions
3524 --file=FILE[:TEMPLATE]
3525 instantiate the configuration file FILE
3526
3527Configuration files:
3528$config_files
3529
3530Report bugs to <bug-autoconf@gnu.org>."
3531_ACEOF
3532
3533cat >>$CONFIG_STATUS <<_ACEOF
3534ac_cs_version="\\
3535config.status
3536configured by $0, generated by GNU Autoconf 2.59,
3537 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
3538
3539Copyright (C) 2003 Free Software Foundation, Inc.
3540This config.status script is free software; the Free Software Foundation
3541gives unlimited permission to copy, distribute and modify it."
3542srcdir=$srcdir
3543INSTALL="$INSTALL"
3544_ACEOF
3545
3546cat >>$CONFIG_STATUS <<\_ACEOF
3547# If no file are specified by the user, then we need to provide default
3548# value. By we need to know if files were specified by the user.
3549ac_need_defaults=:
3550while test $# != 0
3551do
3552 case $1 in
3553 --*=*)
3554 ac_option=`expr "x$1" : 'x\([^=]*\)='`
3555 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
3556 ac_shift=:
3557 ;;
3558 -*)
3559 ac_option=$1
3560 ac_optarg=$2
3561 ac_shift=shift
3562 ;;
3563 *) # This is not an option, so the user has probably given explicit
3564 # arguments.
3565 ac_option=$1
3566 ac_need_defaults=false;;
3567 esac
3568
3569 case $ac_option in
3570 # Handling of the options.
3571_ACEOF
3572cat >>$CONFIG_STATUS <<\_ACEOF
3573 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3574 ac_cs_recheck=: ;;
3575 --version | --vers* | -V )
3576 echo "$ac_cs_version"; exit 0 ;;
3577 --he | --h)
3578 # Conflict between --help and --header
3579 { { echo "$as_me:$LINENO: error: ambiguous option: $1
3580Try \`$0 --help' for more information." >&5
3581echo "$as_me: error: ambiguous option: $1
3582Try \`$0 --help' for more information." >&2;}
3583 { (exit 1); exit 1; }; };;
3584 --help | --hel | -h )
3585 echo "$ac_cs_usage"; exit 0 ;;
3586 --debug | --d* | -d )
3587 debug=: ;;
3588 --file | --fil | --fi | --f )
3589 $ac_shift
3590 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
3591 ac_need_defaults=false;;
3592 --header | --heade | --head | --hea )
3593 $ac_shift
3594 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
3595 ac_need_defaults=false;;
3596 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3597 | -silent | --silent | --silen | --sile | --sil | --si | --s)
3598 ac_cs_silent=: ;;
3599
3600 # This is an error.
3601 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
3602Try \`$0 --help' for more information." >&5
3603echo "$as_me: error: unrecognized option: $1
3604Try \`$0 --help' for more information." >&2;}
3605 { (exit 1); exit 1; }; } ;;
3606
3607 *) ac_config_targets="$ac_config_targets $1" ;;
3608
3609 esac
3610 shift
1fd5e000 3611done
99fc5e10
CF
3612
3613ac_configure_extra_args=
3614
3615if $ac_cs_silent; then
3616 exec 6>/dev/null
3617 ac_configure_extra_args="$ac_configure_extra_args --silent"
1fd5e000 3618fi
1fd5e000 3619
99fc5e10
CF
3620_ACEOF
3621cat >>$CONFIG_STATUS <<_ACEOF
3622if \$ac_cs_recheck; then
3623 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
3624 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3625fi
1fd5e000 3626
99fc5e10
CF
3627_ACEOF
3628
3629
3630
3631
3632
3633cat >>$CONFIG_STATUS <<\_ACEOF
3634for ac_config_target in $ac_config_targets
3635do
3636 case "$ac_config_target" in
3637 # Handling of arguments.
3638 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3639 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
3640echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
3641 { (exit 1); exit 1; }; };;
1fd5e000 3642 esac
99fc5e10
CF
3643done
3644
3645# If the user did not use the arguments to specify the items to instantiate,
3646# then the envvar interface is used. Set only those that are not.
3647# We use the long form for the default assignment because of an extremely
3648# bizarre bug on SunOS 4.1.3.
3649if $ac_need_defaults; then
3650 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3651fi
1fd5e000 3652
99fc5e10
CF
3653# Have a temporary directory for convenience. Make it in the build tree
3654# simply because there is no reason to put it here, and in addition,
3655# creating and moving files from /tmp can sometimes cause problems.
3656# Create a temporary directory, and hook for its removal unless debugging.
3657$debug ||
3658{
3659 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3660 trap '{ (exit 1); exit 1; }' 1 2 13 15
3661}
3662
3663# Create a (secure) tmp directory for tmp files.
3664
3665{
3666 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
3667 test -n "$tmp" && test -d "$tmp"
3668} ||
3669{
3670 tmp=./confstat$$-$RANDOM
3671 (umask 077 && mkdir $tmp)
3672} ||
3673{
3674 echo "$me: cannot create a temporary directory in ." >&2
3675 { (exit 1); exit 1; }
3676}
3677
3678_ACEOF
3679
3680cat >>$CONFIG_STATUS <<_ACEOF
1fd5e000 3681
99fc5e10
CF
3682#
3683# CONFIG_FILES section.
3684#
3685
3686# No need to generate the scripts if there are no CONFIG_FILES.
3687# This happens for instance when ./config.status config.h
3688if test -n "\$CONFIG_FILES"; then
3689 # Protect against being on the right side of a sed subst in config.status.
3690 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
3691 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
3692s,@SHELL@,$SHELL,;t t
3693s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
3694s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
3695s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
3696s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
3697s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
3698s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
3699s,@exec_prefix@,$exec_prefix,;t t
3700s,@prefix@,$prefix,;t t
3701s,@program_transform_name@,$program_transform_name,;t t
3702s,@bindir@,$bindir,;t t
3703s,@sbindir@,$sbindir,;t t
3704s,@libexecdir@,$libexecdir,;t t
3705s,@datadir@,$datadir,;t t
3706s,@sysconfdir@,$sysconfdir,;t t
3707s,@sharedstatedir@,$sharedstatedir,;t t
3708s,@localstatedir@,$localstatedir,;t t
3709s,@libdir@,$libdir,;t t
3710s,@includedir@,$includedir,;t t
3711s,@oldincludedir@,$oldincludedir,;t t
3712s,@infodir@,$infodir,;t t
3713s,@mandir@,$mandir,;t t
3714s,@build_alias@,$build_alias,;t t
3715s,@host_alias@,$host_alias,;t t
3716s,@target_alias@,$target_alias,;t t
3717s,@DEFS@,$DEFS,;t t
3718s,@ECHO_C@,$ECHO_C,;t t
3719s,@ECHO_N@,$ECHO_N,;t t
3720s,@ECHO_T@,$ECHO_T,;t t
3721s,@LIBS@,$LIBS,;t t
3722s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
3723s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
3724s,@INSTALL_DATA@,$INSTALL_DATA,;t t
3725s,@build@,$build,;t t
3726s,@build_cpu@,$build_cpu,;t t
3727s,@build_vendor@,$build_vendor,;t t
3728s,@build_os@,$build_os,;t t
3729s,@host@,$host,;t t
3730s,@host_cpu@,$host_cpu,;t t
3731s,@host_vendor@,$host_vendor,;t t
3732s,@host_os@,$host_os,;t t
3733s,@target@,$target,;t t
3734s,@target_cpu@,$target_cpu,;t t
3735s,@target_vendor@,$target_vendor,;t t
3736s,@target_os@,$target_os,;t t
3737s,@CC@,$CC,;t t
3738s,@ac_ct_CC@,$ac_ct_CC,;t t
3739s,@CFLAGS@,$CFLAGS,;t t
3740s,@LDFLAGS@,$LDFLAGS,;t t
3741s,@CPPFLAGS@,$CPPFLAGS,;t t
3742s,@EXEEXT@,$EXEEXT,;t t
3743s,@OBJEXT@,$OBJEXT,;t t
3744s,@CXX@,$CXX,;t t
3745s,@ac_ct_CXX@,$ac_ct_CXX,;t t
3746s,@CXXFLAGS@,$CXXFLAGS,;t t
3747s,@subdirs@,$subdirs,;t t
3748s,@SET_MAKE@,$SET_MAKE,;t t
3749s,@LIBOBJS@,$LIBOBJS,;t t
3750s,@LTLIBOBJS@,$LTLIBOBJS,;t t
3751CEOF
3752
3753_ACEOF
3754
3755 cat >>$CONFIG_STATUS <<\_ACEOF
3756 # Split the substitutions into bite-sized pieces for seds with
3757 # small command number limits, like on Digital OSF/1 and HP-UX.
3758 ac_max_sed_lines=48
3759 ac_sed_frag=1 # Number of current file.
3760 ac_beg=1 # First line for current file.
3761 ac_end=$ac_max_sed_lines # Line after last line for current file.
3762 ac_more_lines=:
3763 ac_sed_cmds=
3764 while $ac_more_lines; do
3765 if test $ac_beg -gt 1; then
3766 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3767 else
3768 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3769 fi
3770 if test ! -s $tmp/subs.frag; then
3771 ac_more_lines=false
3772 else
3773 # The purpose of the label and of the branching condition is to
3774 # speed up the sed processing (if there are no `@' at all, there
3775 # is no need to browse any of the substitutions).
3776 # These are the two extra sed commands mentioned above.
3777 (echo ':t
3778 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
3779 if test -z "$ac_sed_cmds"; then
3780 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
3781 else
3782 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
3783 fi
3784 ac_sed_frag=`expr $ac_sed_frag + 1`
3785 ac_beg=$ac_end
3786 ac_end=`expr $ac_end + $ac_max_sed_lines`
3787 fi
3788 done
3789 if test -z "$ac_sed_cmds"; then
3790 ac_sed_cmds=cat
1fd5e000 3791 fi
99fc5e10 3792fi # test -n "$CONFIG_FILES"
1fd5e000 3793
99fc5e10
CF
3794_ACEOF
3795cat >>$CONFIG_STATUS <<\_ACEOF
3796for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
3797 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3798 case $ac_file in
3799 - | *:- | *:-:* ) # input from stdin
3800 cat >$tmp/stdin
3801 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3802 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3803 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3804 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3805 * ) ac_file_in=$ac_file.in ;;
1fd5e000
CF
3806 esac
3807
99fc5e10
CF
3808 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
3809 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
3810$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3811 X"$ac_file" : 'X\(//\)[^/]' \| \
3812 X"$ac_file" : 'X\(//\)$' \| \
3813 X"$ac_file" : 'X\(/\)' \| \
3814 . : '\(.\)' 2>/dev/null ||
3815echo X"$ac_file" |
3816 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3817 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3818 /^X\(\/\/\)$/{ s//\1/; q; }
3819 /^X\(\/\).*/{ s//\1/; q; }
3820 s/.*/./; q'`
3821 { if $as_mkdir_p; then
3822 mkdir -p "$ac_dir"
3823 else
3824 as_dir="$ac_dir"
3825 as_dirs=
3826 while test ! -d "$as_dir"; do
3827 as_dirs="$as_dir $as_dirs"
3828 as_dir=`(dirname "$as_dir") 2>/dev/null ||
3829$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3830 X"$as_dir" : 'X\(//\)[^/]' \| \
3831 X"$as_dir" : 'X\(//\)$' \| \
3832 X"$as_dir" : 'X\(/\)' \| \
3833 . : '\(.\)' 2>/dev/null ||
3834echo X"$as_dir" |
3835 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3836 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3837 /^X\(\/\/\)$/{ s//\1/; q; }
3838 /^X\(\/\).*/{ s//\1/; q; }
3839 s/.*/./; q'`
3840 done
3841 test ! -n "$as_dirs" || mkdir $as_dirs
3842 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
3843echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
3844 { (exit 1); exit 1; }; }; }
3845
3846 ac_builddir=.
3847
3848if test "$ac_dir" != .; then
3849 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
3850 # A "../" for each directory in $ac_dir_suffix.
3851 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
3852else
3853 ac_dir_suffix= ac_top_builddir=
3854fi
1fd5e000 3855
99fc5e10
CF
3856case $srcdir in
3857 .) # No --srcdir option. We are building in place.
3858 ac_srcdir=.
3859 if test -z "$ac_top_builddir"; then
3860 ac_top_srcdir=.
3861 else
3862 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
3863 fi ;;
3864 [\\/]* | ?:[\\/]* ) # Absolute path.
3865 ac_srcdir=$srcdir$ac_dir_suffix;
3866 ac_top_srcdir=$srcdir ;;
3867 *) # Relative path.
3868 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
3869 ac_top_srcdir=$ac_top_builddir$srcdir ;;
3870esac
3871
3872# Do not use `cd foo && pwd` to compute absolute paths, because
3873# the directories may not exist.
3874case `pwd` in
3875.) ac_abs_builddir="$ac_dir";;
3876*)
3877 case "$ac_dir" in
3878 .) ac_abs_builddir=`pwd`;;
3879 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
3880 *) ac_abs_builddir=`pwd`/"$ac_dir";;
3881 esac;;
3882esac
3883case $ac_abs_builddir in
3884.) ac_abs_top_builddir=${ac_top_builddir}.;;
3885*)
3886 case ${ac_top_builddir}. in
3887 .) ac_abs_top_builddir=$ac_abs_builddir;;
3888 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
3889 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
3890 esac;;
3891esac
3892case $ac_abs_builddir in
3893.) ac_abs_srcdir=$ac_srcdir;;
3894*)
3895 case $ac_srcdir in
3896 .) ac_abs_srcdir=$ac_abs_builddir;;
3897 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
3898 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
3899 esac;;
3900esac
3901case $ac_abs_builddir in
3902.) ac_abs_top_srcdir=$ac_top_srcdir;;
3903*)
3904 case $ac_top_srcdir in
3905 .) ac_abs_top_srcdir=$ac_abs_builddir;;
3906 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
3907 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
3908 esac;;
3909esac
3910
3911
3912 case $INSTALL in
3913 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
3914 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
1fd5e000
CF
3915 esac
3916
e9d500b6
CV
3917 if test x"$ac_file" != x-; then
3918 { echo "$as_me:$LINENO: creating $ac_file" >&5
3919echo "$as_me: creating $ac_file" >&6;}
3920 rm -f "$ac_file"
3921 fi
99fc5e10
CF
3922 # Let's still pretend it is `configure' which instantiates (i.e., don't
3923 # use $as_me), people would be surprised to read:
3924 # /* config.h. Generated by config.status. */
3925 if test x"$ac_file" = x-; then
3926 configure_input=
3927 else
3928 configure_input="$ac_file. "
3929 fi
3930 configure_input=$configure_input"Generated from `echo $ac_file_in |
3931 sed 's,.*/,,'` by configure."
3932
3933 # First look for the input files in the build tree, otherwise in the
3934 # src tree.
3935 ac_file_inputs=`IFS=:
3936 for f in $ac_file_in; do
3937 case $f in
3938 -) echo $tmp/stdin ;;
3939 [\\/$]*)
3940 # Absolute (can't be DOS-style, as IFS=:)
3941 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3942echo "$as_me: error: cannot find input file: $f" >&2;}
3943 { (exit 1); exit 1; }; }
3944 echo "$f";;
3945 *) # Relative
3946 if test -f "$f"; then
3947 # Build tree
3948 echo "$f"
3949 elif test -f "$srcdir/$f"; then
3950 # Source tree
3951 echo "$srcdir/$f"
3952 else
3953 # /dev/null tree
3954 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3955echo "$as_me: error: cannot find input file: $f" >&2;}
3956 { (exit 1); exit 1; }; }
3957 fi;;
3958 esac
3959 done` || { (exit 1); exit 1; }
99fc5e10
CF
3960_ACEOF
3961cat >>$CONFIG_STATUS <<_ACEOF
3962 sed "$ac_vpsub
3963$extrasub
3964_ACEOF
3965cat >>$CONFIG_STATUS <<\_ACEOF
3966:t
3967/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
3968s,@configure_input@,$configure_input,;t t
3969s,@srcdir@,$ac_srcdir,;t t
3970s,@abs_srcdir@,$ac_abs_srcdir,;t t
3971s,@top_srcdir@,$ac_top_srcdir,;t t
3972s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
3973s,@builddir@,$ac_builddir,;t t
3974s,@abs_builddir@,$ac_abs_builddir,;t t
3975s,@top_builddir@,$ac_top_builddir,;t t
3976s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
3977s,@INSTALL@,$ac_INSTALL,;t t
3978" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
3979 rm -f $tmp/stdin
3980 if test x"$ac_file" != x-; then
3981 mv $tmp/out $ac_file
3982 else
3983 cat $tmp/out
3984 rm -f $tmp/out
3985 fi
1fd5e000 3986
99fc5e10
CF
3987done
3988_ACEOF
1fd5e000 3989
99fc5e10 3990cat >>$CONFIG_STATUS <<\_ACEOF
1fd5e000 3991
99fc5e10
CF
3992{ (exit 0); exit 0; }
3993_ACEOF
1fd5e000 3994chmod +x $CONFIG_STATUS
99fc5e10
CF
3995ac_clean_files=$ac_clean_files_save
3996
3997
3998# configure is writing to config.log, and then calls config.status.
3999# config.status does its own redirection, appending to config.log.
4000# Unfortunately, on DOS this fails, as config.log is still kept open
4001# by configure, so config.status won't be able to write to it; its
4002# output is simply discarded. So we exec the FD to /dev/null,
4003# effectively closing config.log, so it can be properly (re)opened and
4004# appended to by config.status. When coming back to configure, we
4005# need to make the FD available again.
4006if test "$no_create" != yes; then
4007 ac_cs_success=:
4008 ac_config_status_args=
4009 test "$silent" = yes &&
4010 ac_config_status_args="$ac_config_status_args --quiet"
4011 exec 5>/dev/null
4012 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4013 exec 5>>config.log
4014 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4015 # would make configure fail if this is the last instruction.
4016 $ac_cs_success || { (exit 1); exit 1; }
4017fi
1fd5e000 4018
99fc5e10
CF
4019#
4020# CONFIG_SUBDIRS section.
4021#
1fd5e000
CF
4022if test "$no_recursion" != yes; then
4023
4024 # Remove --cache-file and --srcdir arguments so they do not pile up.
4025 ac_sub_configure_args=
4026 ac_prev=
4027 for ac_arg in $ac_configure_args; do
4028 if test -n "$ac_prev"; then
4029 ac_prev=
4030 continue
4031 fi
99fc5e10 4032 case $ac_arg in
1fd5e000
CF
4033 -cache-file | --cache-file | --cache-fil | --cache-fi \
4034 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
4035 ac_prev=cache_file ;;
4036 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
99fc5e10
CF
4037 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
4038 | --c=*)
4039 ;;
4040 --config-cache | -C)
1fd5e000
CF
4041 ;;
4042 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
4043 ac_prev=srcdir ;;
4044 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
4045 ;;
99fc5e10
CF
4046 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
4047 ac_prev=prefix ;;
4048 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
4049 ;;
1fd5e000
CF
4050 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
4051 esac
4052 done
4053
99fc5e10
CF
4054 # Always prepend --prefix to ensure using the same prefix
4055 # in subdir configurations.
4056 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
4057
4058 ac_popdir=`pwd`
4059 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
1fd5e000
CF
4060
4061 # Do not complain, so a configure script can configure whichever
4062 # parts of a large source tree are present.
99fc5e10 4063 test -d $srcdir/$ac_dir || continue
1fd5e000 4064
99fc5e10
CF
4065 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
4066echo "$as_me: configuring in $ac_dir" >&6;}
4067 { if $as_mkdir_p; then
4068 mkdir -p "$ac_dir"
4069 else
4070 as_dir="$ac_dir"
4071 as_dirs=
4072 while test ! -d "$as_dir"; do
4073 as_dirs="$as_dir $as_dirs"
4074 as_dir=`(dirname "$as_dir") 2>/dev/null ||
4075$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4076 X"$as_dir" : 'X\(//\)[^/]' \| \
4077 X"$as_dir" : 'X\(//\)$' \| \
4078 X"$as_dir" : 'X\(/\)' \| \
4079 . : '\(.\)' 2>/dev/null ||
4080echo X"$as_dir" |
4081 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4082 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4083 /^X\(\/\/\)$/{ s//\1/; q; }
4084 /^X\(\/\).*/{ s//\1/; q; }
4085 s/.*/./; q'`
4086 done
4087 test ! -n "$as_dirs" || mkdir $as_dirs
4088 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4089echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4090 { (exit 1); exit 1; }; }; }
4091
4092 ac_builddir=.
4093
4094if test "$ac_dir" != .; then
4095 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4096 # A "../" for each directory in $ac_dir_suffix.
4097 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4098else
4099 ac_dir_suffix= ac_top_builddir=
4100fi
1fd5e000 4101
99fc5e10
CF
4102case $srcdir in
4103 .) # No --srcdir option. We are building in place.
4104 ac_srcdir=.
4105 if test -z "$ac_top_builddir"; then
4106 ac_top_srcdir=.
4107 else
4108 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4109 fi ;;
4110 [\\/]* | ?:[\\/]* ) # Absolute path.
4111 ac_srcdir=$srcdir$ac_dir_suffix;
4112 ac_top_srcdir=$srcdir ;;
4113 *) # Relative path.
4114 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4115 ac_top_srcdir=$ac_top_builddir$srcdir ;;
4116esac
1fd5e000 4117
99fc5e10
CF
4118# Do not use `cd foo && pwd` to compute absolute paths, because
4119# the directories may not exist.
4120case `pwd` in
4121.) ac_abs_builddir="$ac_dir";;
4122*)
4123 case "$ac_dir" in
4124 .) ac_abs_builddir=`pwd`;;
4125 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4126 *) ac_abs_builddir=`pwd`/"$ac_dir";;
4127 esac;;
4128esac
4129case $ac_abs_builddir in
4130.) ac_abs_top_builddir=${ac_top_builddir}.;;
4131*)
4132 case ${ac_top_builddir}. in
4133 .) ac_abs_top_builddir=$ac_abs_builddir;;
4134 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
4135 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
4136 esac;;
4137esac
4138case $ac_abs_builddir in
4139.) ac_abs_srcdir=$ac_srcdir;;
4140*)
4141 case $ac_srcdir in
4142 .) ac_abs_srcdir=$ac_abs_builddir;;
4143 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
4144 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
4145 esac;;
4146esac
4147case $ac_abs_builddir in
4148.) ac_abs_top_srcdir=$ac_top_srcdir;;
4149*)
4150 case $ac_top_srcdir in
4151 .) ac_abs_top_srcdir=$ac_abs_builddir;;
4152 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
4153 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
4154 esac;;
4155esac
1fd5e000 4156
1fd5e000 4157
99fc5e10 4158 cd $ac_dir
1fd5e000
CF
4159
4160 # Check for guested configure; otherwise get Cygnus style configure.
99fc5e10
CF
4161 if test -f $ac_srcdir/configure.gnu; then
4162 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
4163 elif test -f $ac_srcdir/configure; then
4164 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
4165 elif test -f $ac_srcdir/configure.in; then
1fd5e000
CF
4166 ac_sub_configure=$ac_configure
4167 else
99fc5e10
CF
4168 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
4169echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
1fd5e000
CF
4170 ac_sub_configure=
4171 fi
4172
4173 # The recursion is here.
4174 if test -n "$ac_sub_configure"; then
1fd5e000 4175 # Make the cache file name correct relative to the subdirectory.
99fc5e10
CF
4176 case $cache_file in
4177 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
1fd5e000 4178 *) # Relative path.
99fc5e10 4179 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
1fd5e000
CF
4180 esac
4181
99fc5e10
CF
4182 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
4183echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
1fd5e000 4184 # The eval makes quoting arguments work.
99fc5e10
CF
4185 eval $ac_sub_configure $ac_sub_configure_args \
4186 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
4187 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
4188echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
4189 { (exit 1); exit 1; }; }
1fd5e000
CF
4190 fi
4191
e9d500b6 4192 cd $ac_popdir
1fd5e000
CF
4193 done
4194fi
4195
This page took 0.544163 seconds and 5 git commands to generate.