]>
Commit | Line | Data |
---|---|---|
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 | |
13 | if 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+"$@"}'='"$@"' | |
19 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
20 | set -o posix | |
21 | fi | |
22 | DUALCASE=1; export DUALCASE # for MKS sh | |
23 | ||
24 | # Support unset when possible. | |
25 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
26 | as_unset=unset | |
27 | else | |
28 | as_unset=false | |
29 | fi | |
30 | ||
31 | ||
32 | # Work around bugs in pre-3.0 UWIN ksh. | |
33 | $as_unset ENV MAIL MAILPATH | |
34 | PS1='$ ' | |
35 | PS2='> ' | |
36 | PS4='+ ' | |
37 | ||
38 | # NLS nuisances. | |
39 | for 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 | |
43 | do | |
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 | |
49 | done | |
50 | ||
51 | # Required to use basename. | |
52 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
53 | as_expr=expr | |
54 | else | |
55 | as_expr=false | |
56 | fi | |
57 | ||
58 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
59 | as_basename=basename | |
60 | else | |
61 | as_basename=false | |
62 | fi | |
63 | ||
64 | ||
65 | # Name of the executable. | |
66 | as_me=`$as_basename "$0" || | |
67 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
68 | X"$0" : 'X\(//\)$' \| \ | |
69 | X"$0" : 'X\(/\)$' \| \ | |
70 | . : '\(.\)' 2>/dev/null || | |
71 | echo 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. | |
80 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
81 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
82 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
83 | as_cr_digits='0123456789' | |
84 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
85 | ||
86 | # The user is always right. | |
87 | if 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 | |
97 | fi | |
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 | |
110 | for as_dir in $PATH | |
111 | do | |
112 | IFS=$as_save_IFS | |
113 | test -z "$as_dir" && as_dir=. | |
114 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
115 | done | |
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 | |
131 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
132 | do | |
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 | |
152 | done | |
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 | ||
187 | case `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= ;; | |
192 | esac | |
193 | ||
194 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
195 | as_expr=expr | |
196 | else | |
197 | as_expr=false | |
198 | fi | |
199 | ||
200 | rm -f conf$$ conf$$.exe conf$$.file | |
201 | echo >conf$$.file | |
202 | if 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 | |
211 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
212 | as_ln_s=ln | |
213 | else | |
214 | as_ln_s='cp -p' | |
215 | fi | |
216 | rm -f conf$$ conf$$.exe conf$$.file | |
217 | ||
218 | if mkdir -p . 2>/dev/null; then | |
219 | as_mkdir_p=: | |
220 | else | |
221 | test -d ./-p && rmdir ./-p | |
222 | as_mkdir_p=false | |
223 | fi | |
1fd5e000 | 224 | |
99fc5e10 CF |
225 | as_executable_p="test -f" |
226 | ||
227 | # Sed expression to map a string onto a valid CPP name. | |
228 | as_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. | |
231 | as_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. | |
236 | as_nl=' | |
237 | ' | |
238 | IFS=" $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. | |
247 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
248 | ||
249 | exec 6>&1 | |
250 | ||
251 | # | |
252 | # Initializations. | |
253 | # | |
1fd5e000 | 254 | ac_default_prefix=/usr/local |
99fc5e10 CF |
255 | ac_config_libobj_dir=. |
256 | cross_compiling=no | |
257 | subdirs= | |
258 | MFLAGS= | |
259 | MAKEFLAGS= | |
260 | SHELL=${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. | |
268 | PACKAGE_NAME= | |
269 | PACKAGE_TARNAME= | |
270 | PACKAGE_VERSION= | |
271 | PACKAGE_STRING= | |
272 | PACKAGE_BUGREPORT= | |
273 | ||
274 | ac_unique_file="Makefile.in" | |
275 | ac_subdirs_all="$ac_subdirs_all cygwin w32api" | |
276 | ac_subdirs_all="$ac_subdirs_all mingw" | |
e9d500b6 | 277 | ac_subdirs_all="$ac_subdirs_all subauth" |
99fc5e10 CF |
278 | ac_subdirs_all="$ac_subdirs_all cygserver" |
279 | ac_subdirs_all="$ac_subdirs_all utils doc" | |
280 | ac_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' | |
281 | ac_subst_files='' | |
1fd5e000 CF |
282 | |
283 | # Initialize some variables set by options. | |
99fc5e10 CF |
284 | ac_init_help= |
285 | ac_init_version=false | |
1fd5e000 CF |
286 | # The variables have the same names as the options, with |
287 | # dashes changed to underlines. | |
99fc5e10 | 288 | cache_file=/dev/null |
1fd5e000 | 289 | exec_prefix=NONE |
1fd5e000 | 290 | no_create= |
1fd5e000 CF |
291 | no_recursion= |
292 | prefix=NONE | |
293 | program_prefix=NONE | |
294 | program_suffix=NONE | |
295 | program_transform_name=s,x,x, | |
296 | silent= | |
297 | site= | |
1fd5e000 | 298 | srcdir= |
1fd5e000 CF |
299 | verbose= |
300 | x_includes=NONE | |
301 | x_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 |
308 | bindir='${exec_prefix}/bin' |
309 | sbindir='${exec_prefix}/sbin' | |
310 | libexecdir='${exec_prefix}/libexec' | |
311 | datadir='${prefix}/share' | |
312 | sysconfdir='${prefix}/etc' | |
313 | sharedstatedir='${prefix}/com' | |
314 | localstatedir='${prefix}/var' | |
315 | libdir='${exec_prefix}/lib' | |
316 | includedir='${prefix}/include' | |
317 | oldincludedir='/usr/include' | |
318 | infodir='${prefix}/info' | |
319 | mandir='${prefix}/man' | |
320 | ||
1fd5e000 CF |
321 | ac_prev= |
322 | for ac_option | |
323 | do | |
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 |
595 | Try \`$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 | |
618 | done | |
619 | ||
620 | if 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 | 624 | fi |
1fd5e000 | 625 | |
99fc5e10 CF |
626 | # Be sure to have absolute paths. |
627 | for ac_var in exec_prefix prefix | |
628 | do | |
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 | |
635 | done | |
1fd5e000 | 636 | |
99fc5e10 CF |
637 | # Be sure to have absolute paths. |
638 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
639 | localstatedir libdir includedir oldincludedir infodir mandir | |
1fd5e000 | 640 | do |
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 |
647 | done | |
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. | |
652 | build=$build_alias | |
653 | host=$host_alias | |
654 | target=$target_alias | |
655 | ||
656 | # FIXME: To remove some day. | |
657 | if 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 | |
665 | fi | |
1fd5e000 | 666 | |
99fc5e10 CF |
667 | ac_tool_prefix= |
668 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
669 | ||
670 | test "$silent" = yes && exec 6>/dev/null | |
1fd5e000 | 671 | |
1fd5e000 CF |
672 | |
673 | # Find the source files, if location was not specified. | |
674 | if 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 || | |
683 | echo 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 | |
693 | else | |
694 | ac_srcdir_defaulted=no | |
695 | fi | |
696 | if 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 |
704 | fi | |
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; }; } | |
708 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | |
709 | ac_env_build_alias_set=${build_alias+set} | |
710 | ac_env_build_alias_value=$build_alias | |
711 | ac_cv_env_build_alias_set=${build_alias+set} | |
712 | ac_cv_env_build_alias_value=$build_alias | |
713 | ac_env_host_alias_set=${host_alias+set} | |
714 | ac_env_host_alias_value=$host_alias | |
715 | ac_cv_env_host_alias_set=${host_alias+set} | |
716 | ac_cv_env_host_alias_value=$host_alias | |
717 | ac_env_target_alias_set=${target_alias+set} | |
718 | ac_env_target_alias_value=$target_alias | |
719 | ac_cv_env_target_alias_set=${target_alias+set} | |
720 | ac_cv_env_target_alias_value=$target_alias | |
721 | ac_env_CC_set=${CC+set} | |
722 | ac_env_CC_value=$CC | |
723 | ac_cv_env_CC_set=${CC+set} | |
724 | ac_cv_env_CC_value=$CC | |
725 | ac_env_CFLAGS_set=${CFLAGS+set} | |
726 | ac_env_CFLAGS_value=$CFLAGS | |
727 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
728 | ac_cv_env_CFLAGS_value=$CFLAGS | |
729 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
730 | ac_env_LDFLAGS_value=$LDFLAGS | |
731 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
732 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
733 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
734 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
735 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
736 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
737 | ac_env_CXX_set=${CXX+set} | |
738 | ac_env_CXX_value=$CXX | |
739 | ac_cv_env_CXX_set=${CXX+set} | |
740 | ac_cv_env_CXX_value=$CXX | |
741 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} | |
742 | ac_env_CXXFLAGS_value=$CXXFLAGS | |
743 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} | |
744 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS | |
745 | ||
746 | # | |
747 | # Report the --help message. | |
748 | # | |
749 | if 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 | ||
755 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
756 | ||
757 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
758 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
759 | ||
760 | Defaults for the options are specified in brackets. | |
761 | ||
762 | Configuration: | |
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 | |
776 | Installation 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 | ||
782 | By default, \`make install' will install all the files in | |
783 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
784 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
785 | for instance \`--prefix=\$HOME'. | |
786 | ||
787 | For better control, use the options below. | |
788 | ||
789 | Fine 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 | ||
806 | System 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 | |
811 | fi | |
812 | ||
813 | if test -n "$ac_init_help"; then | |
814 | ||
815 | cat <<\_ACEOF | |
816 | ||
817 | Optional 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 | ||
822 | Some 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 | ||
832 | Use these variables to override the choices made by `configure' or to help | |
833 | it to find libraries and programs with nonstandard names/locations. | |
834 | ||
835 | _ACEOF | |
836 | fi | |
837 | ||
838 | if 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 | ||
845 | if 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'` | |
849 | else | |
850 | ac_dir_suffix= ac_top_builddir= | |
851 | fi | |
852 | ||
853 | case $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 ;; | |
867 | esac | |
868 | ||
869 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
870 | # the directories may not exist. | |
871 | case `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;; | |
879 | esac | |
880 | case $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;; | |
888 | esac | |
889 | case $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;; | |
897 | esac | |
898 | case $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;; | |
906 | esac | |
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 |
925 | fi | |
926 | ||
927 | test -n "$ac_init_help" && exit 0 | |
928 | if $ac_init_version; then | |
929 | cat <<\_ACEOF | |
930 | ||
931 | Copyright (C) 2003 Free Software Foundation, Inc. | |
932 | This configure script is free software; the Free Software Foundation | |
933 | gives unlimited permission to copy, distribute and modify it. | |
934 | _ACEOF | |
935 | exit 0 | |
936 | fi | |
937 | exec 5>config.log | |
938 | cat >&5 <<_ACEOF | |
939 | This file contains any messages produced by compilers while | |
940 | running configure, to aid debugging if configure makes a mistake. | |
941 | ||
942 | It was created by $as_me, which was | |
943 | generated by GNU Autoconf 2.59. Invocation command line was | |
944 | ||
945 | $ $0 $@ | |
946 | ||
947 | _ACEOF | |
948 | { | |
949 | cat <<_ASUNAME | |
950 | ## --------- ## | |
951 | ## Platform. ## | |
952 | ## --------- ## | |
953 | ||
954 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
955 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
956 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
957 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
958 | uname -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` | |
966 | hostinfo = `(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 | ||
973 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
974 | for as_dir in $PATH | |
975 | do | |
976 | IFS=$as_save_IFS | |
977 | test -z "$as_dir" && as_dir=. | |
978 | echo "PATH: $as_dir" | |
979 | done | |
980 | ||
981 | } >&5 | |
982 | ||
983 | cat >&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. | |
998 | ac_configure_args= | |
999 | ac_configure_args0= | |
1000 | ac_configure_args1= | |
1001 | ac_sep= | |
1002 | ac_must_keep_next=false | |
1003 | for ac_pass in 1 2 | |
1004 | do | |
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 | |
1040 | done | |
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. | |
1049 | trap '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 | |
1123 | for ac_signal in 1 2 13 15; do | |
1124 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1125 | done | |
1126 | ac_signal=0 | |
1127 | ||
1128 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1129 | rm -rf conftest* confdefs.h | |
1130 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1131 | echo >confdefs.h | |
1132 | ||
1133 | # Predefined preprocessor variables. | |
1134 | ||
1135 | cat >>confdefs.h <<_ACEOF | |
1136 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1137 | _ACEOF | |
1138 | ||
1139 | ||
1140 | cat >>confdefs.h <<_ACEOF | |
1141 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1142 | _ACEOF | |
1143 | ||
1144 | ||
1145 | cat >>confdefs.h <<_ACEOF | |
1146 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1147 | _ACEOF | |
1fd5e000 | 1148 | |
99fc5e10 CF |
1149 | |
1150 | cat >>confdefs.h <<_ACEOF | |
1151 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1152 | _ACEOF | |
1153 | ||
1154 | ||
1155 | cat >>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 |
1162 | if 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 |
1168 | fi |
1169 | for 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 |
1172 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1173 | sed 's/^/| /' "$ac_site_file" >&5 | |
1fd5e000 CF |
1174 | . "$ac_site_file" |
1175 | fi | |
1176 | done | |
1177 | ||
1178 | if 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 | |
1183 | echo "$as_me: loading cache $cache_file" >&6;} | |
1184 | case $cache_file in | |
1185 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1186 | *) . ./$cache_file;; | |
1187 | esac | |
1188 | fi | |
1fd5e000 | 1189 | else |
99fc5e10 CF |
1190 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1191 | echo "$as_me: creating cache $cache_file" >&6;} | |
1192 | >$cache_file | |
1fd5e000 CF |
1193 | fi |
1194 | ||
99fc5e10 CF |
1195 | # Check that the precious variables saved in the cache have kept the same |
1196 | # value. | |
1197 | ac_cache_corrupted=false | |
1198 | for 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 | |
1207 | echo "$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 | |
1211 | echo "$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 | |
1217 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1218 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1219 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1220 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1221 | echo "$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 |
1237 | done |
1238 | if $ac_cache_corrupted; then | |
1239 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1240 | echo "$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 | |
1242 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1243 | { (exit 1); exit 1; }; } | |
1fd5e000 CF |
1244 | fi |
1245 | ||
99fc5e10 CF |
1246 | ac_ext=c |
1247 | ac_cpp='$CPP $CPPFLAGS' | |
1248 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1249 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1250 | ac_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 | 1271 | INSTALL=`cd $srcdir/..; echo $(pwd)/install-sh -c` |
8494f61e | 1272 | |
1fd5e000 CF |
1273 | ac_aux_dir= |
1274 | for 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 |
1288 | done | |
1289 | if 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 |
1291 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1292 | { (exit 1); exit 1; }; } | |
1fd5e000 | 1293 | fi |
99fc5e10 CF |
1294 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
1295 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1296 | ac_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 |
1311 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
1312 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
95dc8840 | 1313 | if test -z "$INSTALL"; then |
99fc5e10 CF |
1314 | if test "${ac_cv_path_install+set}" = set; then |
1315 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1316 | else | |
1317 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1318 | for as_dir in $PATH | |
1319 | do | |
1320 | IFS=$as_save_IFS | |
1321 | test -z "$as_dir" && as_dir=. | |
1322 | # Account for people who put trailing slashes in PATH elements. | |
1323 | case $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 | ;; | |
1351 | esac | |
1352 | done | |
1353 | ||
95dc8840 CV |
1354 | |
1355 | fi | |
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 |
1365 | fi | |
99fc5e10 CF |
1366 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
1367 | echo "${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. | |
1371 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
1372 | ||
99fc5e10 | 1373 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
95dc8840 CV |
1374 | |
1375 | test -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 | |
1380 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1381 | { (exit 1); exit 1; }; } | |
1382 | ||
1383 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1384 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1385 | if test "${ac_cv_build+set}" = set; then | |
1386 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1387 | else | |
1388 | ac_cv_build_alias=$build_alias | |
1389 | test -z "$ac_cv_build_alias" && | |
1390 | ac_cv_build_alias=`$ac_config_guess` | |
1391 | test -z "$ac_cv_build_alias" && | |
1392 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1393 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1394 | { (exit 1); exit 1; }; } | |
1395 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1396 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1397 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1398 | { (exit 1); exit 1; }; } | |
95dc8840 | 1399 | |
99fc5e10 CF |
1400 | fi |
1401 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1402 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1403 | build=$ac_cv_build | |
1404 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1405 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1406 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1407 | ||
1408 | ||
1409 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1410 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1411 | if test "${ac_cv_host+set}" = set; then | |
1412 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1413 | else | |
1414 | ac_cv_host_alias=$host_alias | |
1415 | test -z "$ac_cv_host_alias" && | |
1416 | ac_cv_host_alias=$ac_cv_build_alias | |
1417 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1418 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1419 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1420 | { (exit 1); exit 1; }; } | |
95dc8840 | 1421 | |
99fc5e10 CF |
1422 | fi |
1423 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1424 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1425 | host=$ac_cv_host | |
1426 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1427 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1428 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1429 | ||
1430 | ||
1431 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1432 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1433 | if test "${ac_cv_target+set}" = set; then | |
1434 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1435 | else | |
1436 | ac_cv_target_alias=$target_alias | |
1437 | test "x$ac_cv_target_alias" = "x" && | |
1438 | ac_cv_target_alias=$ac_cv_host_alias | |
1439 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1440 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1441 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1442 | { (exit 1); exit 1; }; } | |
95dc8840 | 1443 | |
99fc5e10 CF |
1444 | fi |
1445 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1446 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1447 | target=$ac_cv_target | |
1448 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1449 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1450 | target_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 | 1455 | test -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 |
1460 | if 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. | |
1462 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
1463 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1464 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1465 | if test "${ac_cv_prog_CC+set}" = set; then | |
1466 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1467 | else | |
1468 | if test -n "$CC"; then | |
1469 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1470 | else | |
1471 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1472 | for as_dir in $PATH | |
1473 | do | |
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 | |
1482 | done | |
1483 | done | |
1fd5e000 | 1484 | |
99fc5e10 CF |
1485 | fi |
1486 | fi | |
1487 | CC=$ac_cv_prog_CC | |
1488 | if test -n "$CC"; then | |
1489 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1490 | echo "${ECHO_T}$CC" >&6 | |
1fd5e000 | 1491 | else |
99fc5e10 CF |
1492 | echo "$as_me:$LINENO: result: no" >&5 |
1493 | echo "${ECHO_T}no" >&6 | |
1494 | fi | |
1495 | ||
1fd5e000 | 1496 | fi |
99fc5e10 CF |
1497 | if 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. | |
1500 | set dummy gcc; ac_word=$2 | |
1501 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1502 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1503 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1504 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1505 | else | |
1506 | if test -n "$ac_ct_CC"; then | |
1507 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1508 | else | |
1509 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1510 | for as_dir in $PATH | |
1511 | do | |
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 | |
1520 | done | |
1521 | done | |
1fd5e000 | 1522 | |
99fc5e10 CF |
1523 | test -z "$ac_cv_prog_ac_ct_CC" && ac_cv_prog_ac_ct_CC="gcc" |
1524 | fi | |
1525 | fi | |
1526 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1527 | if test -n "$ac_ct_CC"; then | |
1528 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1529 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1530 | else | |
1531 | echo "$as_me:$LINENO: result: no" >&5 | |
1532 | echo "${ECHO_T}no" >&6 | |
1533 | fi | |
1534 | ||
1535 | CC=$ac_ct_CC | |
1536 | else | |
1537 | CC="$ac_cv_prog_CC" | |
1538 | fi | |
1539 | ||
1540 | : ${CC:=gcc} | |
1541 | ac_ext=c | |
1542 | ac_cpp='$CPP $CPPFLAGS' | |
1543 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1544 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1545 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1546 | if 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 | 1548 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
99fc5e10 CF |
1549 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1550 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1551 | if test "${ac_cv_prog_CC+set}" = set; then | |
1552 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1fd5e000 CF |
1553 | else |
1554 | if test -n "$CC"; then | |
1555 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1556 | else | |
99fc5e10 CF |
1557 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1558 | for as_dir in $PATH | |
1559 | do | |
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 | |
1568 | done | |
1569 | done | |
1570 | ||
1fd5e000 CF |
1571 | fi |
1572 | fi | |
99fc5e10 | 1573 | CC=$ac_cv_prog_CC |
1fd5e000 | 1574 | if test -n "$CC"; then |
99fc5e10 CF |
1575 | echo "$as_me:$LINENO: result: $CC" >&5 |
1576 | echo "${ECHO_T}$CC" >&6 | |
1fd5e000 | 1577 | else |
99fc5e10 CF |
1578 | echo "$as_me:$LINENO: result: no" >&5 |
1579 | echo "${ECHO_T}no" >&6 | |
1fd5e000 CF |
1580 | fi |
1581 | ||
99fc5e10 | 1582 | fi |
1fd5e000 | 1583 | if 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. |
1586 | set dummy gcc; ac_word=$2 | |
99fc5e10 CF |
1587 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1588 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1589 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1590 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1591 | else | |
1592 | if test -n "$ac_ct_CC"; then | |
1593 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1594 | else | |
1595 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1596 | for as_dir in $PATH | |
1597 | do | |
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 | |
1606 | done | |
1607 | done | |
1608 | ||
1609 | fi | |
1610 | fi | |
1611 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1612 | if test -n "$ac_ct_CC"; then | |
1613 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1614 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1615 | else | |
1616 | echo "$as_me:$LINENO: result: no" >&5 | |
1617 | echo "${ECHO_T}no" >&6 | |
1618 | fi | |
1619 | ||
1620 | CC=$ac_ct_CC | |
1621 | else | |
1622 | CC="$ac_cv_prog_CC" | |
1623 | fi | |
1624 | ||
1625 | if 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. | |
1628 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
1629 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1630 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1631 | if test "${ac_cv_prog_CC+set}" = set; then | |
1632 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1fd5e000 CF |
1633 | else |
1634 | if test -n "$CC"; then | |
1635 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1636 | else | |
99fc5e10 CF |
1637 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1638 | for as_dir in $PATH | |
1639 | do | |
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 | |
1648 | done | |
1649 | done | |
1650 | ||
1fd5e000 CF |
1651 | fi |
1652 | fi | |
99fc5e10 | 1653 | CC=$ac_cv_prog_CC |
1fd5e000 | 1654 | if test -n "$CC"; then |
99fc5e10 CF |
1655 | echo "$as_me:$LINENO: result: $CC" >&5 |
1656 | echo "${ECHO_T}$CC" >&6 | |
1fd5e000 | 1657 | else |
99fc5e10 CF |
1658 | echo "$as_me:$LINENO: result: no" >&5 |
1659 | echo "${ECHO_T}no" >&6 | |
1fd5e000 CF |
1660 | fi |
1661 | ||
99fc5e10 CF |
1662 | fi |
1663 | if 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. | |
1666 | set dummy cc; ac_word=$2 | |
1667 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1668 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1669 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1670 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1671 | else | |
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 | 1674 | else |
99fc5e10 CF |
1675 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1676 | for as_dir in $PATH | |
1677 | do | |
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 | |
1686 | done | |
1687 | done | |
1688 | ||
1689 | fi | |
1fd5e000 | 1690 | fi |
99fc5e10 CF |
1691 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
1692 | if test -n "$ac_ct_CC"; then | |
1693 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1694 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1695 | else | |
1696 | echo "$as_me:$LINENO: result: no" >&5 | |
1697 | echo "${ECHO_T}no" >&6 | |
1fd5e000 CF |
1698 | fi |
1699 | ||
99fc5e10 CF |
1700 | CC=$ac_ct_CC |
1701 | else | |
1702 | CC="$ac_cv_prog_CC" | |
1703 | fi | |
1704 | ||
1705 | fi | |
1fd5e000 CF |
1706 | if test -z "$CC"; then |
1707 | # Extract the first word of "cc", so it can be a program name with args. | |
1708 | set dummy cc; ac_word=$2 | |
99fc5e10 CF |
1709 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1710 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1711 | if test "${ac_cv_prog_CC+set}" = set; then | |
1712 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1fd5e000 CF |
1713 | else |
1714 | if test -n "$CC"; then | |
1715 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1716 | else | |
1fd5e000 | 1717 | ac_prog_rejected=no |
99fc5e10 CF |
1718 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1719 | for as_dir in $PATH | |
1720 | do | |
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 | |
1733 | done | |
1734 | done | |
1735 | ||
1fd5e000 CF |
1736 | if 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 |
1747 | fi | |
1748 | fi | |
1749 | fi | |
99fc5e10 | 1750 | CC=$ac_cv_prog_CC |
1fd5e000 | 1751 | if test -n "$CC"; then |
99fc5e10 CF |
1752 | echo "$as_me:$LINENO: result: $CC" >&5 |
1753 | echo "${ECHO_T}$CC" >&6 | |
1fd5e000 | 1754 | else |
99fc5e10 CF |
1755 | echo "$as_me:$LINENO: result: no" >&5 |
1756 | echo "${ECHO_T}no" >&6 | |
1757 | fi | |
1758 | ||
1fd5e000 | 1759 | fi |
99fc5e10 CF |
1760 | if 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. | |
1765 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
1766 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1767 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1768 | if test "${ac_cv_prog_CC+set}" = set; then | |
1769 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1770 | else | |
1771 | if test -n "$CC"; then | |
1772 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1773 | else | |
1774 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1775 | for as_dir in $PATH | |
1776 | do | |
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 | |
1785 | done | |
1786 | done | |
1fd5e000 | 1787 | |
99fc5e10 CF |
1788 | fi |
1789 | fi | |
1790 | CC=$ac_cv_prog_CC | |
1791 | if test -n "$CC"; then | |
1792 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1793 | echo "${ECHO_T}$CC" >&6 | |
1794 | else | |
1795 | echo "$as_me:$LINENO: result: no" >&5 | |
1796 | echo "${ECHO_T}no" >&6 | |
1fd5e000 CF |
1797 | fi |
1798 | ||
99fc5e10 CF |
1799 | test -n "$CC" && break |
1800 | done | |
1801 | fi | |
1802 | if test -z "$CC"; then | |
1803 | ac_ct_CC=$CC | |
1804 | for ac_prog in cl | |
1805 | do | |
1806 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1807 | set dummy $ac_prog; ac_word=$2 | |
1808 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1809 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1810 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1811 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1fd5e000 | 1812 | else |
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 | 1815 | else |
99fc5e10 CF |
1816 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1817 | for as_dir in $PATH | |
1818 | do | |
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 | |
1827 | done | |
1828 | done | |
1829 | ||
1830 | fi | |
1fd5e000 | 1831 | fi |
99fc5e10 CF |
1832 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
1833 | if test -n "$ac_ct_CC"; then | |
1834 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1835 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1836 | else | |
1837 | echo "$as_me:$LINENO: result: no" >&5 | |
1838 | echo "${ECHO_T}no" >&6 | |
1fd5e000 CF |
1839 | fi |
1840 | ||
99fc5e10 CF |
1841 | test -n "$ac_ct_CC" && break |
1842 | done | |
1fd5e000 | 1843 | |
99fc5e10 CF |
1844 | CC=$ac_ct_CC |
1845 | fi | |
1846 | ||
1847 | fi | |
1848 | ||
1849 | ||
1850 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
1851 | See \`config.log' for more details." >&5 | |
1852 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
1853 | See \`config.log' for more details." >&2;} | |
1854 | { (exit 1); exit 1; }; } | |
1855 | ||
1856 | # Provide some information about the compiler. | |
1857 | echo "$as_me:$LINENO:" \ | |
1858 | "checking for C compiler version" >&5 | |
1859 | ac_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 | ||
1876 | cat >conftest.$ac_ext <<_ACEOF | |
1877 | /* confdefs.h. */ | |
1878 | _ACEOF | |
1879 | cat confdefs.h >>conftest.$ac_ext | |
1880 | cat >>conftest.$ac_ext <<_ACEOF | |
1881 | /* end confdefs.h. */ | |
1882 | ||
1883 | int | |
1884 | main () | |
1885 | { | |
1886 | ||
1887 | ; | |
1888 | return 0; | |
1889 | } | |
1890 | _ACEOF | |
1891 | ac_clean_files_save=$ac_clean_files | |
1892 | ac_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. | |
1896 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | |
1897 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
1898 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
1899 | if { (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. | |
1910 | ac_cv_exeext= | |
1911 | # b.out is created by i960 compilers. | |
1912 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
1913 | do | |
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 | |
1935 | done | |
1fd5e000 | 1936 | else |
99fc5e10 CF |
1937 | echo "$as_me: failed program was:" >&5 |
1938 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1939 | ||
1940 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
1941 | See \`config.log' for more details." >&5 | |
1942 | echo "$as_me: error: C compiler cannot create executables | |
1943 | See \`config.log' for more details." >&2;} | |
1944 | { (exit 77); exit 77; }; } | |
1945 | fi | |
1946 | ||
1947 | ac_exeext=$ac_cv_exeext | |
1948 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
1949 | echo "${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. | |
1953 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
1954 | echo $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. | |
1957 | if 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. | |
1970 | If you meant to cross compile, use \`--host'. | |
1971 | See \`config.log' for more details." >&5 | |
1972 | echo "$as_me: error: cannot run C compiled programs. | |
1973 | If you meant to cross compile, use \`--host'. | |
1974 | See \`config.log' for more details." >&2;} | |
1975 | { (exit 1); exit 1; }; } | |
1976 | fi | |
1977 | fi | |
1978 | fi | |
1979 | echo "$as_me:$LINENO: result: yes" >&5 | |
1980 | echo "${ECHO_T}yes" >&6 | |
1981 | ||
1982 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
1983 | ac_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. | |
1986 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
1987 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
1988 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
1989 | echo "${ECHO_T}$cross_compiling" >&6 | |
1990 | ||
1991 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
1992 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
1993 | if { (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'. | |
2002 | for 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 | |
2011 | done | |
1fd5e000 | 2012 | else |
99fc5e10 CF |
2013 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
2014 | See \`config.log' for more details." >&5 | |
2015 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
2016 | See \`config.log' for more details." >&2;} | |
2017 | { (exit 1); exit 1; }; } | |
1fd5e000 | 2018 | fi |
1fd5e000 | 2019 | |
99fc5e10 CF |
2020 | rm -f conftest$ac_cv_exeext |
2021 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
2022 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
2023 | ||
2024 | rm -f conftest.$ac_ext | |
2025 | EXEEXT=$ac_cv_exeext | |
2026 | ac_exeext=$EXEEXT | |
2027 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
2028 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
2029 | if test "${ac_cv_objext+set}" = set; then | |
2030 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2031 | else | |
2032 | cat >conftest.$ac_ext <<_ACEOF | |
2033 | /* confdefs.h. */ | |
2034 | _ACEOF | |
2035 | cat confdefs.h >>conftest.$ac_ext | |
2036 | cat >>conftest.$ac_ext <<_ACEOF | |
2037 | /* end confdefs.h. */ | |
2038 | ||
2039 | int | |
2040 | main () | |
2041 | { | |
2042 | ||
2043 | ; | |
2044 | return 0; | |
2045 | } | |
2046 | _ACEOF | |
2047 | rm -f conftest.o conftest.obj | |
2048 | if { (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 | |
2059 | done | |
2060 | else | |
2061 | echo "$as_me: failed program was:" >&5 | |
2062 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2063 | ||
2064 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
2065 | See \`config.log' for more details." >&5 | |
2066 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
2067 | See \`config.log' for more details." >&2;} | |
2068 | { (exit 1); exit 1; }; } | |
1fd5e000 CF |
2069 | fi |
2070 | ||
99fc5e10 CF |
2071 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
2072 | fi | |
2073 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
2074 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
2075 | OBJEXT=$ac_cv_objext | |
2076 | ac_objext=$OBJEXT | |
2077 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
2078 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
2079 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
2080 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2081 | else | |
2082 | cat >conftest.$ac_ext <<_ACEOF | |
2083 | /* confdefs.h. */ | |
2084 | _ACEOF | |
2085 | cat confdefs.h >>conftest.$ac_ext | |
2086 | cat >>conftest.$ac_ext <<_ACEOF | |
2087 | /* end confdefs.h. */ | |
2088 | ||
2089 | int | |
2090 | main () | |
2091 | { | |
2092 | #ifndef __GNUC__ | |
2093 | choke me | |
2094 | #endif | |
2095 | ||
2096 | ; | |
2097 | return 0; | |
2098 | } | |
2099 | _ACEOF | |
2100 | rm -f conftest.$ac_objext | |
2101 | if { (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 | |
2123 | else | |
2124 | echo "$as_me: failed program was:" >&5 | |
2125 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2126 | ||
2127 | ac_compiler_gnu=no | |
2128 | fi | |
2129 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2130 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
2131 | ||
2132 | fi | |
2133 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
2134 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
2135 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
2136 | ac_test_CFLAGS=${CFLAGS+set} | |
2137 | ac_save_CFLAGS=$CFLAGS | |
2138 | CFLAGS="-g" | |
2139 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
2140 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
2141 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
2142 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2143 | else | |
2144 | cat >conftest.$ac_ext <<_ACEOF | |
2145 | /* confdefs.h. */ | |
2146 | _ACEOF | |
2147 | cat confdefs.h >>conftest.$ac_ext | |
2148 | cat >>conftest.$ac_ext <<_ACEOF | |
2149 | /* end confdefs.h. */ | |
2150 | ||
2151 | int | |
2152 | main () | |
2153 | { | |
2154 | ||
2155 | ; | |
2156 | return 0; | |
2157 | } | |
2158 | _ACEOF | |
2159 | rm -f conftest.$ac_objext | |
2160 | if { (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 | |
2182 | else | |
2183 | echo "$as_me: failed program was:" >&5 | |
2184 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2185 | ||
2186 | ac_cv_prog_cc_g=no | |
2187 | fi | |
2188 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2189 | fi | |
2190 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
2191 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
2192 | if test "$ac_test_CFLAGS" = set; then | |
2193 | CFLAGS=$ac_save_CFLAGS | |
2194 | elif 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 | |
2200 | else | |
2201 | if test "$GCC" = yes; then | |
1fd5e000 | 2202 | CFLAGS="-O2" |
99fc5e10 CF |
2203 | else |
2204 | CFLAGS= | |
1fd5e000 | 2205 | fi |
99fc5e10 CF |
2206 | fi |
2207 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
2208 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
2209 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
2210 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2211 | else | |
2212 | ac_cv_prog_cc_stdc=no | |
2213 | ac_save_CC=$CC | |
2214 | cat >conftest.$ac_ext <<_ACEOF | |
2215 | /* confdefs.h. */ | |
2216 | _ACEOF | |
2217 | cat confdefs.h >>conftest.$ac_ext | |
2218 | cat >>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. */ | |
2225 | struct buf { int x; }; | |
2226 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2227 | static char *e (p, i) | |
2228 | char **p; | |
2229 | int i; | |
2230 | { | |
2231 | return p[i]; | |
2232 | } | |
2233 | static 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. */ | |
2250 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
2251 | ||
2252 | int test (int i, double x); | |
2253 | struct s1 {int (*f) (int a);}; | |
2254 | struct s2 {int (*f) (double a);}; | |
2255 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2256 | int argc; | |
2257 | char **argv; | |
2258 | int | |
2259 | main () | |
2260 | { | |
2261 | return 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__ | |
2273 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2274 | do | |
2275 | CC="$ac_save_CC $ac_arg" | |
2276 | rm -f conftest.$ac_objext | |
2277 | if { (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 | |
2299 | break | |
2300 | else | |
2301 | echo "$as_me: failed program was:" >&5 | |
2302 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2303 | ||
2304 | fi | |
2305 | rm -f conftest.err conftest.$ac_objext | |
2306 | done | |
2307 | rm -f conftest.$ac_ext conftest.$ac_objext | |
2308 | CC=$ac_save_CC | |
2309 | ||
2310 | fi | |
2311 | ||
2312 | case "x$ac_cv_prog_cc_stdc" in | |
2313 | x|xno) | |
2314 | echo "$as_me:$LINENO: result: none needed" >&5 | |
2315 | echo "${ECHO_T}none needed" >&6 ;; | |
2316 | *) | |
2317 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
2318 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
2319 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
2320 | esac | |
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. | |
2326 | cat >conftest.$ac_ext <<_ACEOF | |
2327 | #ifndef __cplusplus | |
2328 | choke me | |
2329 | #endif | |
2330 | _ACEOF | |
2331 | rm -f conftest.$ac_objext | |
2332 | if { (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);' | |
2360 | do | |
2361 | cat >conftest.$ac_ext <<_ACEOF | |
2362 | /* confdefs.h. */ | |
2363 | _ACEOF | |
2364 | cat confdefs.h >>conftest.$ac_ext | |
2365 | cat >>conftest.$ac_ext <<_ACEOF | |
2366 | /* end confdefs.h. */ | |
2367 | $ac_declaration | |
2368 | #include <stdlib.h> | |
2369 | int | |
2370 | main () | |
2371 | { | |
2372 | exit (42); | |
2373 | ; | |
2374 | return 0; | |
2375 | } | |
2376 | _ACEOF | |
2377 | rm -f conftest.$ac_objext | |
2378 | if { (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 | 2400 | else |
99fc5e10 CF |
2401 | echo "$as_me: failed program was:" >&5 |
2402 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2403 | ||
2404 | continue | |
1fd5e000 | 2405 | fi |
99fc5e10 CF |
2406 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2407 | cat >conftest.$ac_ext <<_ACEOF | |
2408 | /* confdefs.h. */ | |
2409 | _ACEOF | |
2410 | cat confdefs.h >>conftest.$ac_ext | |
2411 | cat >>conftest.$ac_ext <<_ACEOF | |
2412 | /* end confdefs.h. */ | |
2413 | $ac_declaration | |
2414 | int | |
2415 | main () | |
2416 | { | |
2417 | exit (42); | |
2418 | ; | |
2419 | return 0; | |
2420 | } | |
2421 | _ACEOF | |
2422 | rm -f conftest.$ac_objext | |
2423 | if { (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 | |
2445 | else | |
2446 | echo "$as_me: failed program was:" >&5 | |
2447 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1fd5e000 | 2448 | |
99fc5e10 CF |
2449 | fi |
2450 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2451 | done | |
2452 | rm -f conftest* | |
2453 | if test -n "$ac_declaration"; then | |
2454 | echo '#ifdef __cplusplus' >>confdefs.h | |
2455 | echo $ac_declaration >>confdefs.h | |
2456 | echo '#endif' >>confdefs.h | |
2457 | fi | |
2458 | ||
2459 | else | |
2460 | echo "$as_me: failed program was:" >&5 | |
2461 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2462 | ||
2463 | fi | |
2464 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2465 | ac_ext=c | |
2466 | ac_cpp='$CPP $CPPFLAGS' | |
2467 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2468 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2469 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2470 | ||
2471 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5 | |
2472 | echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} | |
2473 | { (exit 1); exit 1; }; } | |
2474 | ||
2475 | if 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 | 2477 | set dummy ${ac_tool_prefix}g++; ac_word=$2 |
99fc5e10 CF |
2478 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2479 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2480 | if test "${ac_cv_prog_CXX+set}" = set; then | |
2481 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8494f61e CF |
2482 | else |
2483 | if test -n "$CXX"; then | |
2484 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
2485 | else | |
99fc5e10 CF |
2486 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2487 | for as_dir in $PATH | |
2488 | do | |
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 | |
2497 | done | |
2498 | done | |
2499 | ||
2500 | fi | |
2501 | fi | |
2502 | CXX=$ac_cv_prog_CXX | |
2503 | if test -n "$CXX"; then | |
2504 | echo "$as_me:$LINENO: result: $CXX" >&5 | |
2505 | echo "${ECHO_T}$CXX" >&6 | |
2506 | else | |
2507 | echo "$as_me:$LINENO: result: no" >&5 | |
2508 | echo "${ECHO_T}no" >&6 | |
2509 | fi | |
2510 | ||
2511 | fi | |
2512 | if 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. | |
2515 | set dummy g++; ac_word=$2 | |
2516 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2517 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2518 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
2519 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2520 | else | |
2521 | if test -n "$ac_ct_CXX"; then | |
2522 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
2523 | else | |
2524 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2525 | for as_dir in $PATH | |
2526 | do | |
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 | |
2535 | done | |
2536 | done | |
2537 | ||
2538 | test -z "$ac_cv_prog_ac_ct_CXX" && ac_cv_prog_ac_ct_CXX="g++" | |
2539 | fi | |
2540 | fi | |
2541 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
2542 | if test -n "$ac_ct_CXX"; then | |
2543 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
2544 | echo "${ECHO_T}$ac_ct_CXX" >&6 | |
2545 | else | |
2546 | echo "$as_me:$LINENO: result: no" >&5 | |
2547 | echo "${ECHO_T}no" >&6 | |
2548 | fi | |
2549 | ||
2550 | CXX=$ac_ct_CXX | |
2551 | else | |
2552 | CXX="$ac_cv_prog_CXX" | |
2553 | fi | |
2554 | ||
2555 | if 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. | |
2558 | set dummy ${ac_tool_prefix}g++; ac_word=$2 | |
2559 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2560 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2561 | if test "${ac_cv_prog_CXX+set}" = set; then | |
2562 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2563 | else | |
2564 | if test -n "$CXX"; then | |
2565 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
2566 | else | |
2567 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2568 | for as_dir in $PATH | |
2569 | do | |
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 | |
2578 | done | |
2579 | done | |
2580 | ||
2581 | fi | |
2582 | fi | |
2583 | CXX=$ac_cv_prog_CXX | |
2584 | if test -n "$CXX"; then | |
2585 | echo "$as_me:$LINENO: result: $CXX" >&5 | |
2586 | echo "${ECHO_T}$CXX" >&6 | |
2587 | else | |
2588 | echo "$as_me:$LINENO: result: no" >&5 | |
2589 | echo "${ECHO_T}no" >&6 | |
2590 | fi | |
2591 | ||
2592 | fi | |
2593 | if 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. | |
2596 | set dummy g++; ac_word=$2 | |
2597 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2598 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2599 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
2600 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2601 | else | |
2602 | if test -n "$ac_ct_CXX"; then | |
2603 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
2604 | else | |
2605 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2606 | for as_dir in $PATH | |
2607 | do | |
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 | |
2616 | done | |
2617 | done | |
2618 | ||
2619 | test -z "$ac_cv_prog_ac_ct_CXX" && ac_cv_prog_ac_ct_CXX="c++" | |
2620 | fi | |
2621 | fi | |
2622 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
2623 | if test -n "$ac_ct_CXX"; then | |
2624 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
2625 | echo "${ECHO_T}$ac_ct_CXX" >&6 | |
2626 | else | |
2627 | echo "$as_me:$LINENO: result: no" >&5 | |
2628 | echo "${ECHO_T}no" >&6 | |
2629 | fi | |
2630 | ||
2631 | CXX=$ac_ct_CXX | |
2632 | else | |
2633 | CXX="$ac_cv_prog_CXX" | |
2634 | fi | |
2635 | ||
2636 | : ${CXX:=g++} | |
2637 | ac_ext=cc | |
2638 | ac_cpp='$CXXCPP $CPPFLAGS' | |
2639 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2640 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2641 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
2642 | if 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. | |
2646 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2647 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2648 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2649 | if test "${ac_cv_prog_CXX+set}" = set; then | |
2650 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2651 | else | |
2652 | if test -n "$CXX"; then | |
2653 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
2654 | else | |
2655 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2656 | for as_dir in $PATH | |
2657 | do | |
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 | |
2666 | done | |
2667 | done | |
2668 | ||
8494f61e CF |
2669 | fi |
2670 | fi | |
99fc5e10 | 2671 | CXX=$ac_cv_prog_CXX |
8494f61e | 2672 | if test -n "$CXX"; then |
99fc5e10 CF |
2673 | echo "$as_me:$LINENO: result: $CXX" >&5 |
2674 | echo "${ECHO_T}$CXX" >&6 | |
8494f61e | 2675 | else |
99fc5e10 CF |
2676 | echo "$as_me:$LINENO: result: no" >&5 |
2677 | echo "${ECHO_T}no" >&6 | |
8494f61e CF |
2678 | fi |
2679 | ||
99fc5e10 CF |
2680 | test -n "$CXX" && break |
2681 | done | |
2682 | fi | |
2683 | if 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 | |
2686 | do | |
2687 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2688 | set dummy $ac_prog; ac_word=$2 | |
2689 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2690 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2691 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
2692 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8494f61e | 2693 | else |
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 | 2696 | else |
99fc5e10 CF |
2697 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2698 | for as_dir in $PATH | |
2699 | do | |
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 | |
2708 | done | |
2709 | done | |
2710 | ||
8494f61e CF |
2711 | fi |
2712 | fi | |
99fc5e10 CF |
2713 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
2714 | if test -n "$ac_ct_CXX"; then | |
2715 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
2716 | echo "${ECHO_T}$ac_ct_CXX" >&6 | |
8494f61e | 2717 | else |
99fc5e10 CF |
2718 | echo "$as_me:$LINENO: result: no" >&5 |
2719 | echo "${ECHO_T}no" >&6 | |
8494f61e CF |
2720 | fi |
2721 | ||
99fc5e10 CF |
2722 | test -n "$ac_ct_CXX" && break |
2723 | done | |
2724 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | |
2725 | ||
2726 | CXX=$ac_ct_CXX | |
8494f61e | 2727 | fi |
99fc5e10 CF |
2728 | |
2729 | ||
2730 | # Provide some information about the compiler. | |
2731 | echo "$as_me:$LINENO:" \ | |
2732 | "checking for C++ compiler version" >&5 | |
2733 | ac_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 | ||
2750 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
2751 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | |
2752 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
2753 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2754 | else | |
2755 | cat >conftest.$ac_ext <<_ACEOF | |
2756 | /* confdefs.h. */ | |
2757 | _ACEOF | |
2758 | cat confdefs.h >>conftest.$ac_ext | |
2759 | cat >>conftest.$ac_ext <<_ACEOF | |
2760 | /* end confdefs.h. */ | |
2761 | ||
2762 | int | |
2763 | main () | |
2764 | { | |
2765 | #ifndef __GNUC__ | |
2766 | choke me | |
2767 | #endif | |
2768 | ||
2769 | ; | |
2770 | return 0; | |
2771 | } | |
2772 | _ACEOF | |
2773 | rm -f conftest.$ac_objext | |
2774 | if { (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 | |
2796 | else | |
2797 | echo "$as_me: failed program was:" >&5 | |
2798 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2799 | ||
2800 | ac_compiler_gnu=no | |
8494f61e | 2801 | fi |
99fc5e10 CF |
2802 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2803 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
8494f61e | 2804 | |
99fc5e10 CF |
2805 | fi |
2806 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
2807 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | |
2808 | GXX=`test $ac_compiler_gnu = yes && echo yes` | |
2809 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
2810 | ac_save_CXXFLAGS=$CXXFLAGS | |
2811 | CXXFLAGS="-g" | |
2812 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
2813 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
2814 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
2815 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8494f61e | 2816 | else |
99fc5e10 CF |
2817 | cat >conftest.$ac_ext <<_ACEOF |
2818 | /* confdefs.h. */ | |
2819 | _ACEOF | |
2820 | cat confdefs.h >>conftest.$ac_ext | |
2821 | cat >>conftest.$ac_ext <<_ACEOF | |
2822 | /* end confdefs.h. */ | |
2823 | ||
2824 | int | |
2825 | main () | |
2826 | { | |
2827 | ||
2828 | ; | |
2829 | return 0; | |
2830 | } | |
2831 | _ACEOF | |
2832 | rm -f conftest.$ac_objext | |
2833 | if { (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 | 2855 | else |
99fc5e10 CF |
2856 | echo "$as_me: failed program was:" >&5 |
2857 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2858 | ||
2859 | ac_cv_prog_cxx_g=no | |
8494f61e | 2860 | fi |
99fc5e10 | 2861 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
8494f61e | 2862 | fi |
99fc5e10 CF |
2863 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
2864 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
2865 | if test "$ac_test_CXXFLAGS" = set; then | |
2866 | CXXFLAGS=$ac_save_CXXFLAGS | |
2867 | elif 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 | |
2873 | else | |
2874 | if test "$GXX" = yes; then | |
2875 | CXXFLAGS="-O2" | |
2876 | else | |
2877 | CXXFLAGS= | |
2878 | fi | |
2879 | fi | |
2880 | for 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);' | |
2887 | do | |
2888 | cat >conftest.$ac_ext <<_ACEOF | |
2889 | /* confdefs.h. */ | |
2890 | _ACEOF | |
2891 | cat confdefs.h >>conftest.$ac_ext | |
2892 | cat >>conftest.$ac_ext <<_ACEOF | |
2893 | /* end confdefs.h. */ | |
2894 | $ac_declaration | |
2895 | #include <stdlib.h> | |
2896 | int | |
2897 | main () | |
2898 | { | |
2899 | exit (42); | |
2900 | ; | |
2901 | return 0; | |
2902 | } | |
2903 | _ACEOF | |
2904 | rm -f conftest.$ac_objext | |
2905 | if { (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 | : | |
2927 | else | |
2928 | echo "$as_me: failed program was:" >&5 | |
2929 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2930 | ||
2931 | continue | |
2932 | fi | |
2933 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2934 | cat >conftest.$ac_ext <<_ACEOF | |
2935 | /* confdefs.h. */ | |
2936 | _ACEOF | |
2937 | cat confdefs.h >>conftest.$ac_ext | |
2938 | cat >>conftest.$ac_ext <<_ACEOF | |
2939 | /* end confdefs.h. */ | |
2940 | $ac_declaration | |
2941 | int | |
2942 | main () | |
2943 | { | |
2944 | exit (42); | |
2945 | ; | |
2946 | return 0; | |
2947 | } | |
2948 | _ACEOF | |
2949 | rm -f conftest.$ac_objext | |
2950 | if { (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 | 2972 | else |
99fc5e10 CF |
2973 | echo "$as_me: failed program was:" >&5 |
2974 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2975 | ||
2976 | fi | |
2977 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2978 | done | |
2979 | rm -f conftest* | |
2980 | if test -n "$ac_declaration"; then | |
2981 | echo '#ifdef __cplusplus' >>confdefs.h | |
2982 | echo $ac_declaration >>confdefs.h | |
2983 | echo '#endif' >>confdefs.h | |
8494f61e CF |
2984 | fi |
2985 | ||
99fc5e10 CF |
2986 | ac_ext=c |
2987 | ac_cpp='$CPP $CPPFLAGS' | |
2988 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2989 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2990 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2991 | ||
2992 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5 | |
2993 | echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} | |
2994 | { (exit 1); exit 1; }; } | |
8494f61e CF |
2995 | fi |
2996 | ||
eec74f4a | 2997 | CXXFLAGS='$(CFLAGS)' |
8494f61e | 2998 | |
1fd5e000 | 2999 | |
99fc5e10 CF |
3000 | ac_ext=c |
3001 | ac_cpp='$CPP $CPPFLAGS' | |
3002 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3003 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3004 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3005 | ||
3006 | ||
d012506e | 3007 | use_cygserver='yes' |
9c01984e CF |
3008 | # Check whether --enable-server or --disable-server was given. |
3009 | if test "${enable_server+set}" = set; then | |
3010 | enableval="$enable_server" | |
3011 | case "${enableval}" in | |
d012506e CF |
3012 | yes) ;; |
3013 | no) use_cygserver=;; | |
9c01984e CF |
3014 | esac |
3015 | ||
99fc5e10 CF |
3016 | fi; |
3017 | ||
3018 | ||
9c01984e | 3019 | |
99fc5e10 | 3020 | subdirs="$subdirs cygwin w32api" |
9c01984e | 3021 | |
99fc5e10 CF |
3022 | if test -d $srcdir/mingw; then |
3023 | ||
3024 | ||
3025 | subdirs="$subdirs mingw" | |
3026 | ||
3027 | fi | |
74162926 | 3028 | |
2e6d8441 CF |
3029 | case "$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 | ||
3040 | subdirs="$subdirs subauth" | |
3041 | ||
3042 | fi | |
99fc5e10 CF |
3043 | if test -n "$use_cygserver" -a -d $srcdir/cygserver; then |
3044 | ||
3045 | ||
3046 | subdirs="$subdirs cygserver" | |
3047 | ||
3048 | fi | |
2e6d8441 | 3049 | |
1fd5e000 | 3050 | |
99fc5e10 CF |
3051 | subdirs="$subdirs utils doc" |
3052 | ||
3053 | ;; | |
3054 | esac | |
2e6d8441 | 3055 | |
99fc5e10 CF |
3056 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
3057 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
3058 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` | |
3059 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
3060 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1fd5e000 | 3061 | else |
99fc5e10 | 3062 | cat >conftest.make <<\_ACEOF |
1fd5e000 | 3063 | all: |
99fc5e10 CF |
3064 | @echo 'ac_maketemp="$(MAKE)"' |
3065 | _ACEOF | |
1fd5e000 | 3066 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
99fc5e10 | 3067 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
1fd5e000 CF |
3068 | if test -n "$ac_maketemp"; then |
3069 | eval ac_cv_prog_make_${ac_make}_set=yes | |
3070 | else | |
3071 | eval ac_cv_prog_make_${ac_make}_set=no | |
3072 | fi | |
99fc5e10 | 3073 | rm -f conftest.make |
1fd5e000 CF |
3074 | fi |
3075 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
99fc5e10 CF |
3076 | echo "$as_me:$LINENO: result: yes" >&5 |
3077 | echo "${ECHO_T}yes" >&6 | |
1fd5e000 CF |
3078 | SET_MAKE= |
3079 | else | |
99fc5e10 CF |
3080 | echo "$as_me:$LINENO: result: no" >&5 |
3081 | echo "${ECHO_T}no" >&6 | |
1fd5e000 CF |
3082 | SET_MAKE="MAKE=${MAKE-make}" |
3083 | fi | |
3084 | ||
3085 | ||
99fc5e10 CF |
3086 | ac_config_files="$ac_config_files Makefile" |
3087 | cat >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 | |
3132 | if 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 | |
3139 | fi | |
3140 | rm -f confcache | |
3141 | ||
1fd5e000 CF |
3142 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
3143 | # Let make expand exec_prefix. | |
3144 | test "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 | 3150 | if test "x$srcdir" = x.; then |
99fc5e10 CF |
3151 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
3152 | s/:*\$(srcdir):*/:/; | |
3153 | s/:*\${srcdir}:*/:/; | |
3154 | s/:*@srcdir@:*/:/; | |
3155 | s/^\([^=]*=[ ]*\):*/\1/; | |
3156 | s/:*$//; | |
3157 | s/^[^=]*=[ ]*$//; | |
3158 | }' | |
1fd5e000 CF |
3159 | fi |
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. | |
3168 | cat >confdef2opt.sed <<\_ACEOF | |
3169 | t clear | |
3170 | : clear | |
3171 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g | |
3172 | t quote | |
3173 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g | |
3174 | t quote | |
3175 | d | |
3176 | : quote | |
3177 | s,[ `~#$^&*(){}\\|;'"<>?],\\&,g | |
3178 | s,\[,\\&,g | |
3179 | s,\],\\&,g | |
3180 | s,\$,$$,g | |
3181 | p | |
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. | |
3189 | ac_LF_and_DOT=`echo; echo .` | |
3190 | DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` | |
3191 | rm -f confdef2opt.sed | |
3192 | ||
3193 | ||
3194 | ac_libobjs= | |
3195 | ac_ltlibobjs= | |
3196 | for 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' | |
3203 | done | |
3204 | LIBOBJS=$ac_libobjs | |
1fd5e000 | 3205 | |
99fc5e10 CF |
3206 | LTLIBOBJS=$ac_ltlibobjs |
3207 | ||
3208 | ||
3209 | ||
3210 | : ${CONFIG_STATUS=./config.status} | |
3211 | ac_clean_files_save=$ac_clean_files | |
3212 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
3213 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
3214 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
3215 | cat >$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 | ||
3222 | debug=false | |
3223 | ac_cs_recheck=false | |
3224 | ac_cs_silent=false | |
3225 | SHELL=\${CONFIG_SHELL-$SHELL} | |
3226 | _ACEOF | |
3227 | ||
3228 | cat >>$CONFIG_STATUS <<\_ACEOF | |
3229 | ## --------------------- ## | |
3230 | ## M4sh Initialization. ## | |
3231 | ## --------------------- ## | |
3232 | ||
3233 | # Be Bourne compatible | |
3234 | if 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+"$@"}'='"$@"' | |
3240 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
3241 | set -o posix | |
3242 | fi | |
3243 | DUALCASE=1; export DUALCASE # for MKS sh | |
1fd5e000 | 3244 | |
99fc5e10 CF |
3245 | # Support unset when possible. |
3246 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
3247 | as_unset=unset | |
3248 | else | |
3249 | as_unset=false | |
3250 | fi | |
3251 | ||
3252 | ||
3253 | # Work around bugs in pre-3.0 UWIN ksh. | |
3254 | $as_unset ENV MAIL MAILPATH | |
3255 | PS1='$ ' | |
3256 | PS2='> ' | |
3257 | PS4='+ ' | |
3258 | ||
3259 | # NLS nuisances. | |
3260 | for 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 | 3264 | do |
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 |
3270 | done |
3271 | ||
99fc5e10 CF |
3272 | # Required to use basename. |
3273 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
3274 | as_expr=expr | |
3275 | else | |
3276 | as_expr=false | |
3277 | fi | |
1fd5e000 | 3278 | |
99fc5e10 CF |
3279 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
3280 | as_basename=basename | |
3281 | else | |
3282 | as_basename=false | |
3283 | fi | |
1fd5e000 | 3284 | |
1fd5e000 | 3285 | |
99fc5e10 CF |
3286 | # Name of the executable. |
3287 | as_me=`$as_basename "$0" || | |
3288 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
3289 | X"$0" : 'X\(//\)$' \| \ | |
3290 | X"$0" : 'X\(/\)$' \| \ | |
3291 | . : '\(.\)' 2>/dev/null || | |
3292 | echo 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. | |
3301 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
3302 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
3303 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
3304 | as_cr_digits='0123456789' | |
3305 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
3306 | ||
3307 | # The user is always right. | |
3308 | if 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 | |
3318 | fi | |
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 | |
3331 | for as_dir in $PATH | |
3332 | do | |
3333 | IFS=$as_save_IFS | |
3334 | test -z "$as_dir" && as_dir=. | |
3335 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
3336 | done | |
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 | |
3347 | echo "$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 | |
3353 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
3354 | do | |
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 | |
3374 | done | |
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 | |
3398 | echo "$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 | ||
3410 | case `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= ;; | |
3415 | esac | |
3416 | ||
3417 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
3418 | as_expr=expr | |
3419 | else | |
3420 | as_expr=false | |
3421 | fi | |
3422 | ||
3423 | rm -f conf$$ conf$$.exe conf$$.file | |
3424 | echo >conf$$.file | |
3425 | if 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 |
3434 | elif ln conf$$.file conf$$ 2>/dev/null; then |
3435 | as_ln_s=ln | |
3436 | else | |
3437 | as_ln_s='cp -p' | |
3438 | fi | |
3439 | rm -f conf$$ conf$$.exe conf$$.file | |
3440 | ||
3441 | if mkdir -p . 2>/dev/null; then | |
3442 | as_mkdir_p=: | |
3443 | else | |
3444 | test -d ./-p && rmdir ./-p | |
3445 | as_mkdir_p=false | |
3446 | fi | |
3447 | ||
3448 | as_executable_p="test -f" | |
3449 | ||
3450 | # Sed expression to map a string onto a valid CPP name. | |
3451 | as_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. | |
3454 | as_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. | |
3459 | as_nl=' | |
3460 | ' | |
3461 | IFS=" $as_nl" | |
3462 | ||
3463 | # CDPATH. | |
3464 | $as_unset CDPATH | |
3465 | ||
3466 | exec 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. | |
3471 | exec 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 | |
3478 | cat >&5 <<_CSEOF | |
3479 | ||
3480 | This file was extended by $as_me, which was | |
3481 | generated 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 | |
3490 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
3491 | echo >&5 | |
3492 | _ACEOF | |
3493 | ||
3494 | # Files that config.status was made for. | |
3495 | if test -n "$ac_config_files"; then | |
3496 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
3497 | fi | |
3498 | ||
3499 | if test -n "$ac_config_headers"; then | |
3500 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
3501 | fi | |
3502 | ||
3503 | if test -n "$ac_config_links"; then | |
3504 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
3505 | fi | |
3506 | ||
3507 | if test -n "$ac_config_commands"; then | |
3508 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
3509 | fi | |
3510 | ||
3511 | cat >>$CONFIG_STATUS <<\_ACEOF | |
3512 | ||
3513 | ac_cs_usage="\ | |
3514 | \`$as_me' instantiates files from templates according to the | |
3515 | current configuration. | |
3516 | ||
3517 | Usage: $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 | ||
3527 | Configuration files: | |
3528 | $config_files | |
3529 | ||
3530 | Report bugs to <bug-autoconf@gnu.org>." | |
3531 | _ACEOF | |
3532 | ||
3533 | cat >>$CONFIG_STATUS <<_ACEOF | |
3534 | ac_cs_version="\\ | |
3535 | config.status | |
3536 | configured by $0, generated by GNU Autoconf 2.59, | |
3537 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
3538 | ||
3539 | Copyright (C) 2003 Free Software Foundation, Inc. | |
3540 | This config.status script is free software; the Free Software Foundation | |
3541 | gives unlimited permission to copy, distribute and modify it." | |
3542 | srcdir=$srcdir | |
3543 | INSTALL="$INSTALL" | |
3544 | _ACEOF | |
3545 | ||
3546 | cat >>$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. | |
3549 | ac_need_defaults=: | |
3550 | while test $# != 0 | |
3551 | do | |
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 | |
3572 | cat >>$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 | |
3580 | Try \`$0 --help' for more information." >&5 | |
3581 | echo "$as_me: error: ambiguous option: $1 | |
3582 | Try \`$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 | |
3602 | Try \`$0 --help' for more information." >&5 | |
3603 | echo "$as_me: error: unrecognized option: $1 | |
3604 | Try \`$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 | 3611 | done |
99fc5e10 CF |
3612 | |
3613 | ac_configure_extra_args= | |
3614 | ||
3615 | if $ac_cs_silent; then | |
3616 | exec 6>/dev/null | |
3617 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
1fd5e000 | 3618 | fi |
1fd5e000 | 3619 | |
99fc5e10 CF |
3620 | _ACEOF |
3621 | cat >>$CONFIG_STATUS <<_ACEOF | |
3622 | if \$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 | |
3625 | fi | |
1fd5e000 | 3626 | |
99fc5e10 CF |
3627 | _ACEOF |
3628 | ||
3629 | ||
3630 | ||
3631 | ||
3632 | ||
3633 | cat >>$CONFIG_STATUS <<\_ACEOF | |
3634 | for ac_config_target in $ac_config_targets | |
3635 | do | |
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 | |
3640 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
3641 | { (exit 1); exit 1; }; };; | |
1fd5e000 | 3642 | esac |
99fc5e10 CF |
3643 | done |
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. | |
3649 | if $ac_need_defaults; then | |
3650 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
3651 | fi | |
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 | ||
3680 | cat >>$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 | |
3688 | if 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 | |
3692 | s,@SHELL@,$SHELL,;t t | |
3693 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
3694 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
3695 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
3696 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
3697 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
3698 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
3699 | s,@exec_prefix@,$exec_prefix,;t t | |
3700 | s,@prefix@,$prefix,;t t | |
3701 | s,@program_transform_name@,$program_transform_name,;t t | |
3702 | s,@bindir@,$bindir,;t t | |
3703 | s,@sbindir@,$sbindir,;t t | |
3704 | s,@libexecdir@,$libexecdir,;t t | |
3705 | s,@datadir@,$datadir,;t t | |
3706 | s,@sysconfdir@,$sysconfdir,;t t | |
3707 | s,@sharedstatedir@,$sharedstatedir,;t t | |
3708 | s,@localstatedir@,$localstatedir,;t t | |
3709 | s,@libdir@,$libdir,;t t | |
3710 | s,@includedir@,$includedir,;t t | |
3711 | s,@oldincludedir@,$oldincludedir,;t t | |
3712 | s,@infodir@,$infodir,;t t | |
3713 | s,@mandir@,$mandir,;t t | |
3714 | s,@build_alias@,$build_alias,;t t | |
3715 | s,@host_alias@,$host_alias,;t t | |
3716 | s,@target_alias@,$target_alias,;t t | |
3717 | s,@DEFS@,$DEFS,;t t | |
3718 | s,@ECHO_C@,$ECHO_C,;t t | |
3719 | s,@ECHO_N@,$ECHO_N,;t t | |
3720 | s,@ECHO_T@,$ECHO_T,;t t | |
3721 | s,@LIBS@,$LIBS,;t t | |
3722 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
3723 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
3724 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
3725 | s,@build@,$build,;t t | |
3726 | s,@build_cpu@,$build_cpu,;t t | |
3727 | s,@build_vendor@,$build_vendor,;t t | |
3728 | s,@build_os@,$build_os,;t t | |
3729 | s,@host@,$host,;t t | |
3730 | s,@host_cpu@,$host_cpu,;t t | |
3731 | s,@host_vendor@,$host_vendor,;t t | |
3732 | s,@host_os@,$host_os,;t t | |
3733 | s,@target@,$target,;t t | |
3734 | s,@target_cpu@,$target_cpu,;t t | |
3735 | s,@target_vendor@,$target_vendor,;t t | |
3736 | s,@target_os@,$target_os,;t t | |
3737 | s,@CC@,$CC,;t t | |
3738 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
3739 | s,@CFLAGS@,$CFLAGS,;t t | |
3740 | s,@LDFLAGS@,$LDFLAGS,;t t | |
3741 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
3742 | s,@EXEEXT@,$EXEEXT,;t t | |
3743 | s,@OBJEXT@,$OBJEXT,;t t | |
3744 | s,@CXX@,$CXX,;t t | |
3745 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t | |
3746 | s,@CXXFLAGS@,$CXXFLAGS,;t t | |
3747 | s,@subdirs@,$subdirs,;t t | |
3748 | s,@SET_MAKE@,$SET_MAKE,;t t | |
3749 | s,@LIBOBJS@,$LIBOBJS,;t t | |
3750 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
3751 | CEOF | |
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 | 3792 | fi # test -n "$CONFIG_FILES" |
1fd5e000 | 3793 | |
99fc5e10 CF |
3794 | _ACEOF |
3795 | cat >>$CONFIG_STATUS <<\_ACEOF | |
3796 | for 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 || | |
3815 | echo 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 || | |
3834 | echo 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 | |
3843 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
3844 | { (exit 1); exit 1; }; }; } | |
3845 | ||
3846 | ac_builddir=. | |
3847 | ||
3848 | if 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'` | |
3852 | else | |
3853 | ac_dir_suffix= ac_top_builddir= | |
3854 | fi | |
1fd5e000 | 3855 | |
99fc5e10 CF |
3856 | case $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 ;; | |
3870 | esac | |
3871 | ||
3872 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
3873 | # the directories may not exist. | |
3874 | case `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;; | |
3882 | esac | |
3883 | case $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;; | |
3891 | esac | |
3892 | case $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;; | |
3900 | esac | |
3901 | case $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;; | |
3909 | esac | |
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 | |
3919 | echo "$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 | |
3942 | echo "$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 | |
3955 | echo "$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 |
3961 | cat >>$CONFIG_STATUS <<_ACEOF | |
3962 | sed "$ac_vpsub | |
3963 | $extrasub | |
3964 | _ACEOF | |
3965 | cat >>$CONFIG_STATUS <<\_ACEOF | |
3966 | :t | |
3967 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
3968 | s,@configure_input@,$configure_input,;t t | |
3969 | s,@srcdir@,$ac_srcdir,;t t | |
3970 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
3971 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
3972 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
3973 | s,@builddir@,$ac_builddir,;t t | |
3974 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
3975 | s,@top_builddir@,$ac_top_builddir,;t t | |
3976 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
3977 | s,@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 |
3987 | done |
3988 | _ACEOF | |
1fd5e000 | 3989 | |
99fc5e10 | 3990 | cat >>$CONFIG_STATUS <<\_ACEOF |
1fd5e000 | 3991 | |
99fc5e10 CF |
3992 | { (exit 0); exit 0; } |
3993 | _ACEOF | |
1fd5e000 | 3994 | chmod +x $CONFIG_STATUS |
99fc5e10 CF |
3995 | ac_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. | |
4006 | if 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; } | |
4017 | fi | |
1fd5e000 | 4018 | |
99fc5e10 CF |
4019 | # |
4020 | # CONFIG_SUBDIRS section. | |
4021 | # | |
1fd5e000 CF |
4022 | if 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 |
4066 | echo "$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 || | |
4080 | echo 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 | |
4089 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
4090 | { (exit 1); exit 1; }; }; } | |
4091 | ||
4092 | ac_builddir=. | |
4093 | ||
4094 | if 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'` | |
4098 | else | |
4099 | ac_dir_suffix= ac_top_builddir= | |
4100 | fi | |
1fd5e000 | 4101 | |
99fc5e10 CF |
4102 | case $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 ;; | |
4116 | esac | |
1fd5e000 | 4117 | |
99fc5e10 CF |
4118 | # Do not use `cd foo && pwd` to compute absolute paths, because |
4119 | # the directories may not exist. | |
4120 | case `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;; | |
4128 | esac | |
4129 | case $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;; | |
4137 | esac | |
4138 | case $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;; | |
4146 | esac | |
4147 | case $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;; | |
4155 | esac | |
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 |
4169 | echo "$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 |
4183 | echo "$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 | |
4188 | echo "$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 |
4194 | fi | |
4195 |