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