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