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