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