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