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