]>
Commit | Line | Data |
---|---|---|
4ee9c684 | 1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
3 | # Generated by GNU Autoconf 2.59 for GNU Fortran Runtime Library 0.2. | |
4 | # | |
5 | # Copyright (C) 2003 Free Software Foundation, Inc. | |
6 | # This configure script is free software; the Free Software Foundation | |
7 | # gives unlimited permission to copy, distribute and modify it. | |
8 | ## --------------------- ## | |
9 | ## M4sh Initialization. ## | |
10 | ## --------------------- ## | |
11 | ||
12 | # Be Bourne compatible | |
13 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
14 | emulate sh | |
15 | NULLCMD=: | |
16 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
17 | # is contrary to our usage. Disable this feature. | |
18 | alias -g '${1+"$@"}'='"$@"' | |
19 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
20 | set -o posix | |
21 | fi | |
22 | DUALCASE=1; export DUALCASE # for MKS sh | |
23 | ||
24 | # Support unset when possible. | |
25 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
26 | as_unset=unset | |
27 | else | |
28 | as_unset=false | |
29 | fi | |
30 | ||
31 | ||
32 | # Work around bugs in pre-3.0 UWIN ksh. | |
33 | $as_unset ENV MAIL MAILPATH | |
34 | PS1='$ ' | |
35 | PS2='> ' | |
36 | PS4='+ ' | |
37 | ||
38 | # NLS nuisances. | |
39 | for as_var in \ | |
40 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
41 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
42 | LC_TELEPHONE LC_TIME | |
43 | do | |
44 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
45 | eval $as_var=C; export $as_var | |
46 | else | |
47 | $as_unset $as_var | |
48 | fi | |
49 | done | |
50 | ||
51 | # Required to use basename. | |
52 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
53 | as_expr=expr | |
54 | else | |
55 | as_expr=false | |
56 | fi | |
57 | ||
58 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
59 | as_basename=basename | |
60 | else | |
61 | as_basename=false | |
62 | fi | |
63 | ||
64 | ||
65 | # Name of the executable. | |
66 | as_me=`$as_basename "$0" || | |
67 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
68 | X"$0" : 'X\(//\)$' \| \ | |
69 | X"$0" : 'X\(/\)$' \| \ | |
70 | . : '\(.\)' 2>/dev/null || | |
71 | echo X/"$0" | | |
72 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
73 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
74 | /^X\/\(\/\).*/{ s//\1/; q; } | |
75 | s/.*/./; q'` | |
76 | ||
77 | ||
78 | # PATH needs CR, and LINENO needs CR and PATH. | |
79 | # Avoid depending upon Character Ranges. | |
80 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
81 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
82 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
83 | as_cr_digits='0123456789' | |
84 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
85 | ||
86 | # The user is always right. | |
87 | if test "${PATH_SEPARATOR+set}" != set; then | |
88 | echo "#! /bin/sh" >conf$$.sh | |
89 | echo "exit 0" >>conf$$.sh | |
90 | chmod +x conf$$.sh | |
91 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
92 | PATH_SEPARATOR=';' | |
93 | else | |
94 | PATH_SEPARATOR=: | |
95 | fi | |
96 | rm -f conf$$.sh | |
97 | fi | |
98 | ||
99 | ||
100 | as_lineno_1=$LINENO | |
101 | as_lineno_2=$LINENO | |
102 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
103 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
104 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
105 | # Find who we are. Look in the path if we contain no path at all | |
106 | # relative or not. | |
107 | case $0 in | |
108 | *[\\/]* ) as_myself=$0 ;; | |
109 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
110 | for as_dir in $PATH | |
111 | do | |
112 | IFS=$as_save_IFS | |
113 | test -z "$as_dir" && as_dir=. | |
114 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
115 | done | |
116 | ||
117 | ;; | |
118 | esac | |
119 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
120 | # in which case we are not to be found in the path. | |
121 | if test "x$as_myself" = x; then | |
122 | as_myself=$0 | |
123 | fi | |
124 | if test ! -f "$as_myself"; then | |
125 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 | |
126 | { (exit 1); exit 1; }; } | |
127 | fi | |
128 | case $CONFIG_SHELL in | |
129 | '') | |
130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
131 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
132 | do | |
133 | IFS=$as_save_IFS | |
134 | test -z "$as_dir" && as_dir=. | |
135 | for as_base in sh bash ksh sh5; do | |
136 | case $as_dir in | |
137 | /*) | |
138 | if ("$as_dir/$as_base" -c ' | |
139 | as_lineno_1=$LINENO | |
140 | as_lineno_2=$LINENO | |
141 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
142 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
143 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
144 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
145 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
146 | CONFIG_SHELL=$as_dir/$as_base | |
147 | export CONFIG_SHELL | |
148 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
149 | fi;; | |
150 | esac | |
151 | done | |
152 | done | |
153 | ;; | |
154 | esac | |
155 | ||
156 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
157 | # uniformly replaced by the line number. The first 'sed' inserts a | |
158 | # line-number line before each line; the second 'sed' does the real | |
159 | # work. The second script uses 'N' to pair each line-number line | |
160 | # with the numbered line, and appends trailing '-' during | |
161 | # substitution so that $LINENO is not a special case at line end. | |
162 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
163 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
164 | sed '=' <$as_myself | | |
165 | sed ' | |
166 | N | |
167 | s,$,-, | |
168 | : loop | |
169 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
170 | t loop | |
171 | s,-$,, | |
172 | s,^['$as_cr_digits']*\n,, | |
173 | ' >$as_me.lineno && | |
174 | chmod +x $as_me.lineno || | |
175 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
176 | { (exit 1); exit 1; }; } | |
177 | ||
178 | # Don't try to exec as it changes $[0], causing all sort of problems | |
179 | # (the dirname of $[0] is not the place where we might find the | |
180 | # original and so on. Autoconf is especially sensible to this). | |
181 | . ./$as_me.lineno | |
182 | # Exit status is that of the last command. | |
183 | exit | |
184 | } | |
185 | ||
186 | ||
187 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
188 | *c*,-n*) ECHO_N= ECHO_C=' | |
189 | ' ECHO_T=' ' ;; | |
190 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
191 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
192 | esac | |
193 | ||
194 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
195 | as_expr=expr | |
196 | else | |
197 | as_expr=false | |
198 | fi | |
199 | ||
200 | rm -f conf$$ conf$$.exe conf$$.file | |
201 | echo >conf$$.file | |
202 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
203 | # We could just check for DJGPP; but this test a) works b) is more generic | |
204 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
205 | if test -f conf$$.exe; then | |
206 | # Don't use ln at all; we don't have any links | |
207 | as_ln_s='cp -p' | |
208 | else | |
209 | as_ln_s='ln -s' | |
210 | fi | |
211 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
212 | as_ln_s=ln | |
213 | else | |
214 | as_ln_s='cp -p' | |
215 | fi | |
216 | rm -f conf$$ conf$$.exe conf$$.file | |
217 | ||
218 | if mkdir -p . 2>/dev/null; then | |
219 | as_mkdir_p=: | |
220 | else | |
221 | test -d ./-p && rmdir ./-p | |
222 | as_mkdir_p=false | |
223 | fi | |
224 | ||
225 | as_executable_p="test -f" | |
226 | ||
227 | # Sed expression to map a string onto a valid CPP name. | |
228 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
229 | ||
230 | # Sed expression to map a string onto a valid variable name. | |
231 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
232 | ||
233 | ||
234 | # IFS | |
235 | # We need space, tab and new line, in precisely that order. | |
236 | as_nl=' | |
237 | ' | |
238 | IFS=" $as_nl" | |
239 | ||
240 | # CDPATH. | |
241 | $as_unset CDPATH | |
242 | ||
243 | ||
244 | # Name of the host. | |
245 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
246 | # so uname gets run too. | |
247 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
248 | ||
249 | exec 6>&1 | |
250 | ||
251 | # | |
252 | # Initializations. | |
253 | # | |
254 | ac_default_prefix=/usr/local | |
255 | ac_config_libobj_dir=. | |
256 | cross_compiling=no | |
257 | subdirs= | |
258 | MFLAGS= | |
259 | MAKEFLAGS= | |
260 | SHELL=${CONFIG_SHELL-/bin/sh} | |
261 | ||
262 | # Maximum number of lines to put in a shell here document. | |
263 | # This variable seems obsolete. It should probably be removed, and | |
264 | # only ac_max_sed_lines should be used. | |
265 | : ${ac_max_here_lines=38} | |
266 | ||
267 | # Identity of this package. | |
268 | PACKAGE_NAME='GNU Fortran Runtime Library' | |
269 | PACKAGE_TARNAME='libgfortran' | |
270 | PACKAGE_VERSION='0.2' | |
271 | PACKAGE_STRING='GNU Fortran Runtime Library 0.2' | |
272 | PACKAGE_BUGREPORT='' | |
273 | ||
274 | # Factoring default headers for most tests. | |
275 | ac_includes_default="\ | |
276 | #include <stdio.h> | |
277 | #if HAVE_SYS_TYPES_H | |
278 | # include <sys/types.h> | |
279 | #endif | |
280 | #if HAVE_SYS_STAT_H | |
281 | # include <sys/stat.h> | |
282 | #endif | |
283 | #if STDC_HEADERS | |
284 | # include <stdlib.h> | |
285 | # include <stddef.h> | |
286 | #else | |
287 | # if HAVE_STDLIB_H | |
288 | # include <stdlib.h> | |
289 | # endif | |
290 | #endif | |
291 | #if HAVE_STRING_H | |
292 | # if !STDC_HEADERS && HAVE_MEMORY_H | |
293 | # include <memory.h> | |
294 | # endif | |
295 | # include <string.h> | |
296 | #endif | |
297 | #if HAVE_STRINGS_H | |
298 | # include <strings.h> | |
299 | #endif | |
300 | #if HAVE_INTTYPES_H | |
301 | # include <inttypes.h> | |
302 | #else | |
303 | # if HAVE_STDINT_H | |
304 | # include <stdint.h> | |
305 | # endif | |
306 | #endif | |
307 | #if HAVE_UNISTD_H | |
308 | # include <unistd.h> | |
309 | #endif" | |
310 | ||
90973b19 | 311 | 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 libtool_VERSION build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT multi_basedir gcc_version toolexecdir toolexeclibdir CC ac_ct_CC EXEEXT OBJEXT CFLAGS AS ac_ct_AS AR ac_ct_AR RANLIB ac_ct_RANLIB LN_S LIBTOOL enable_shared enable_static F77 FFLAGS LDFLAGS ac_ct_F77 CPP CPPFLAGS EGREP MATH_OBJ LIBOBJS LTLIBOBJS' |
4ee9c684 | 312 | ac_subst_files='' |
313 | ||
314 | # Initialize some variables set by options. | |
315 | ac_init_help= | |
316 | ac_init_version=false | |
317 | # The variables have the same names as the options, with | |
318 | # dashes changed to underlines. | |
319 | cache_file=/dev/null | |
320 | exec_prefix=NONE | |
321 | no_create= | |
322 | no_recursion= | |
323 | prefix=NONE | |
324 | program_prefix=NONE | |
325 | program_suffix=NONE | |
326 | program_transform_name=s,x,x, | |
327 | silent= | |
328 | site= | |
329 | srcdir= | |
330 | verbose= | |
331 | x_includes=NONE | |
332 | x_libraries=NONE | |
333 | ||
334 | # Installation directory options. | |
335 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
336 | # and all the variables that are supposed to be based on exec_prefix | |
337 | # by default will actually change. | |
338 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
339 | bindir='${exec_prefix}/bin' | |
340 | sbindir='${exec_prefix}/sbin' | |
341 | libexecdir='${exec_prefix}/libexec' | |
342 | datadir='${prefix}/share' | |
343 | sysconfdir='${prefix}/etc' | |
344 | sharedstatedir='${prefix}/com' | |
345 | localstatedir='${prefix}/var' | |
346 | libdir='${exec_prefix}/lib' | |
347 | includedir='${prefix}/include' | |
348 | oldincludedir='/usr/include' | |
349 | infodir='${prefix}/info' | |
350 | mandir='${prefix}/man' | |
351 | ||
352 | ac_prev= | |
353 | for ac_option | |
354 | do | |
355 | # If the previous option needs an argument, assign it. | |
356 | if test -n "$ac_prev"; then | |
357 | eval "$ac_prev=\$ac_option" | |
358 | ac_prev= | |
359 | continue | |
360 | fi | |
361 | ||
362 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` | |
363 | ||
364 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
365 | ||
366 | case $ac_option in | |
367 | ||
368 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
369 | ac_prev=bindir ;; | |
370 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
371 | bindir=$ac_optarg ;; | |
372 | ||
373 | -build | --build | --buil | --bui | --bu) | |
374 | ac_prev=build_alias ;; | |
375 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
376 | build_alias=$ac_optarg ;; | |
377 | ||
378 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
379 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
380 | ac_prev=cache_file ;; | |
381 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
382 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
383 | cache_file=$ac_optarg ;; | |
384 | ||
385 | --config-cache | -C) | |
386 | cache_file=config.cache ;; | |
387 | ||
388 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
389 | ac_prev=datadir ;; | |
390 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
391 | | --da=*) | |
392 | datadir=$ac_optarg ;; | |
393 | ||
394 | -disable-* | --disable-*) | |
395 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
396 | # Reject names that are not valid shell variable names. | |
397 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
398 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
399 | { (exit 1); exit 1; }; } | |
400 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
401 | eval "enable_$ac_feature=no" ;; | |
402 | ||
403 | -enable-* | --enable-*) | |
404 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
405 | # Reject names that are not valid shell variable names. | |
406 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
407 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
408 | { (exit 1); exit 1; }; } | |
409 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
410 | case $ac_option in | |
411 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
412 | *) ac_optarg=yes ;; | |
413 | esac | |
414 | eval "enable_$ac_feature='$ac_optarg'" ;; | |
415 | ||
416 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
417 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
418 | | --exec | --exe | --ex) | |
419 | ac_prev=exec_prefix ;; | |
420 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
421 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
422 | | --exec=* | --exe=* | --ex=*) | |
423 | exec_prefix=$ac_optarg ;; | |
424 | ||
425 | -gas | --gas | --ga | --g) | |
426 | # Obsolete; use --with-gas. | |
427 | with_gas=yes ;; | |
428 | ||
429 | -help | --help | --hel | --he | -h) | |
430 | ac_init_help=long ;; | |
431 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
432 | ac_init_help=recursive ;; | |
433 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
434 | ac_init_help=short ;; | |
435 | ||
436 | -host | --host | --hos | --ho) | |
437 | ac_prev=host_alias ;; | |
438 | -host=* | --host=* | --hos=* | --ho=*) | |
439 | host_alias=$ac_optarg ;; | |
440 | ||
441 | -includedir | --includedir | --includedi | --included | --include \ | |
442 | | --includ | --inclu | --incl | --inc) | |
443 | ac_prev=includedir ;; | |
444 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
445 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
446 | includedir=$ac_optarg ;; | |
447 | ||
448 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
449 | ac_prev=infodir ;; | |
450 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
451 | infodir=$ac_optarg ;; | |
452 | ||
453 | -libdir | --libdir | --libdi | --libd) | |
454 | ac_prev=libdir ;; | |
455 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
456 | libdir=$ac_optarg ;; | |
457 | ||
458 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
459 | | --libexe | --libex | --libe) | |
460 | ac_prev=libexecdir ;; | |
461 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
462 | | --libexe=* | --libex=* | --libe=*) | |
463 | libexecdir=$ac_optarg ;; | |
464 | ||
465 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
466 | | --localstate | --localstat | --localsta | --localst \ | |
467 | | --locals | --local | --loca | --loc | --lo) | |
468 | ac_prev=localstatedir ;; | |
469 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
470 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
471 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
472 | localstatedir=$ac_optarg ;; | |
473 | ||
474 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
475 | ac_prev=mandir ;; | |
476 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
477 | mandir=$ac_optarg ;; | |
478 | ||
479 | -nfp | --nfp | --nf) | |
480 | # Obsolete; use --without-fp. | |
481 | with_fp=no ;; | |
482 | ||
483 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
484 | | --no-cr | --no-c | -n) | |
485 | no_create=yes ;; | |
486 | ||
487 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
488 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
489 | no_recursion=yes ;; | |
490 | ||
491 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
492 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
493 | | --oldin | --oldi | --old | --ol | --o) | |
494 | ac_prev=oldincludedir ;; | |
495 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
496 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
497 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
498 | oldincludedir=$ac_optarg ;; | |
499 | ||
500 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
501 | ac_prev=prefix ;; | |
502 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
503 | prefix=$ac_optarg ;; | |
504 | ||
505 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
506 | | --program-pre | --program-pr | --program-p) | |
507 | ac_prev=program_prefix ;; | |
508 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
509 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
510 | program_prefix=$ac_optarg ;; | |
511 | ||
512 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
513 | | --program-suf | --program-su | --program-s) | |
514 | ac_prev=program_suffix ;; | |
515 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
516 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
517 | program_suffix=$ac_optarg ;; | |
518 | ||
519 | -program-transform-name | --program-transform-name \ | |
520 | | --program-transform-nam | --program-transform-na \ | |
521 | | --program-transform-n | --program-transform- \ | |
522 | | --program-transform | --program-transfor \ | |
523 | | --program-transfo | --program-transf \ | |
524 | | --program-trans | --program-tran \ | |
525 | | --progr-tra | --program-tr | --program-t) | |
526 | ac_prev=program_transform_name ;; | |
527 | -program-transform-name=* | --program-transform-name=* \ | |
528 | | --program-transform-nam=* | --program-transform-na=* \ | |
529 | | --program-transform-n=* | --program-transform-=* \ | |
530 | | --program-transform=* | --program-transfor=* \ | |
531 | | --program-transfo=* | --program-transf=* \ | |
532 | | --program-trans=* | --program-tran=* \ | |
533 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
534 | program_transform_name=$ac_optarg ;; | |
535 | ||
536 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
537 | | -silent | --silent | --silen | --sile | --sil) | |
538 | silent=yes ;; | |
539 | ||
540 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
541 | ac_prev=sbindir ;; | |
542 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
543 | | --sbi=* | --sb=*) | |
544 | sbindir=$ac_optarg ;; | |
545 | ||
546 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
547 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
548 | | --sharedst | --shareds | --shared | --share | --shar \ | |
549 | | --sha | --sh) | |
550 | ac_prev=sharedstatedir ;; | |
551 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
552 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
553 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
554 | | --sha=* | --sh=*) | |
555 | sharedstatedir=$ac_optarg ;; | |
556 | ||
557 | -site | --site | --sit) | |
558 | ac_prev=site ;; | |
559 | -site=* | --site=* | --sit=*) | |
560 | site=$ac_optarg ;; | |
561 | ||
562 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
563 | ac_prev=srcdir ;; | |
564 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
565 | srcdir=$ac_optarg ;; | |
566 | ||
567 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
568 | | --syscon | --sysco | --sysc | --sys | --sy) | |
569 | ac_prev=sysconfdir ;; | |
570 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
571 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
572 | sysconfdir=$ac_optarg ;; | |
573 | ||
574 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
575 | ac_prev=target_alias ;; | |
576 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
577 | target_alias=$ac_optarg ;; | |
578 | ||
579 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
580 | verbose=yes ;; | |
581 | ||
582 | -version | --version | --versio | --versi | --vers | -V) | |
583 | ac_init_version=: ;; | |
584 | ||
585 | -with-* | --with-*) | |
586 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
587 | # Reject names that are not valid shell variable names. | |
588 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
589 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
590 | { (exit 1); exit 1; }; } | |
591 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
592 | case $ac_option in | |
593 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
594 | *) ac_optarg=yes ;; | |
595 | esac | |
596 | eval "with_$ac_package='$ac_optarg'" ;; | |
597 | ||
598 | -without-* | --without-*) | |
599 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
600 | # Reject names that are not valid shell variable names. | |
601 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
602 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
603 | { (exit 1); exit 1; }; } | |
604 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
605 | eval "with_$ac_package=no" ;; | |
606 | ||
607 | --x) | |
608 | # Obsolete; use --with-x. | |
609 | with_x=yes ;; | |
610 | ||
611 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
612 | | --x-incl | --x-inc | --x-in | --x-i) | |
613 | ac_prev=x_includes ;; | |
614 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
615 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
616 | x_includes=$ac_optarg ;; | |
617 | ||
618 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
619 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
620 | ac_prev=x_libraries ;; | |
621 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
622 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
623 | x_libraries=$ac_optarg ;; | |
624 | ||
625 | -*) { echo "$as_me: error: unrecognized option: $ac_option | |
626 | Try \`$0 --help' for more information." >&2 | |
627 | { (exit 1); exit 1; }; } | |
628 | ;; | |
629 | ||
630 | *=*) | |
631 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
632 | # Reject names that are not valid shell variable names. | |
633 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
634 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
635 | { (exit 1); exit 1; }; } | |
636 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
637 | eval "$ac_envvar='$ac_optarg'" | |
638 | export $ac_envvar ;; | |
639 | ||
640 | *) | |
641 | # FIXME: should be removed in autoconf 3.0. | |
642 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
643 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
644 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
645 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
646 | ;; | |
647 | ||
648 | esac | |
649 | done | |
650 | ||
651 | if test -n "$ac_prev"; then | |
652 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
653 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
654 | { (exit 1); exit 1; }; } | |
655 | fi | |
656 | ||
657 | # Be sure to have absolute paths. | |
658 | for ac_var in exec_prefix prefix | |
659 | do | |
660 | eval ac_val=$`echo $ac_var` | |
661 | case $ac_val in | |
662 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
663 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
664 | { (exit 1); exit 1; }; };; | |
665 | esac | |
666 | done | |
667 | ||
668 | # Be sure to have absolute paths. | |
669 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
670 | localstatedir libdir includedir oldincludedir infodir mandir | |
671 | do | |
672 | eval ac_val=$`echo $ac_var` | |
673 | case $ac_val in | |
674 | [\\/$]* | ?:[\\/]* ) ;; | |
675 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
676 | { (exit 1); exit 1; }; };; | |
677 | esac | |
678 | done | |
679 | ||
680 | # There might be people who depend on the old broken behavior: `$host' | |
681 | # used to hold the argument of --host etc. | |
682 | # FIXME: To remove some day. | |
683 | build=$build_alias | |
684 | host=$host_alias | |
685 | target=$target_alias | |
686 | ||
687 | # FIXME: To remove some day. | |
688 | if test "x$host_alias" != x; then | |
689 | if test "x$build_alias" = x; then | |
690 | cross_compiling=maybe | |
691 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
692 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
693 | elif test "x$build_alias" != "x$host_alias"; then | |
694 | cross_compiling=yes | |
695 | fi | |
696 | fi | |
697 | ||
698 | ac_tool_prefix= | |
699 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
700 | ||
701 | test "$silent" = yes && exec 6>/dev/null | |
702 | ||
703 | ||
704 | # Find the source files, if location was not specified. | |
705 | if test -z "$srcdir"; then | |
706 | ac_srcdir_defaulted=yes | |
707 | # Try the directory containing this script, then its parent. | |
708 | ac_confdir=`(dirname "$0") 2>/dev/null || | |
709 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
710 | X"$0" : 'X\(//\)[^/]' \| \ | |
711 | X"$0" : 'X\(//\)$' \| \ | |
712 | X"$0" : 'X\(/\)' \| \ | |
713 | . : '\(.\)' 2>/dev/null || | |
714 | echo X"$0" | | |
715 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
716 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
717 | /^X\(\/\/\)$/{ s//\1/; q; } | |
718 | /^X\(\/\).*/{ s//\1/; q; } | |
719 | s/.*/./; q'` | |
720 | srcdir=$ac_confdir | |
721 | if test ! -r $srcdir/$ac_unique_file; then | |
722 | srcdir=.. | |
723 | fi | |
724 | else | |
725 | ac_srcdir_defaulted=no | |
726 | fi | |
727 | if test ! -r $srcdir/$ac_unique_file; then | |
728 | if test "$ac_srcdir_defaulted" = yes; then | |
729 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 | |
730 | { (exit 1); exit 1; }; } | |
731 | else | |
732 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
733 | { (exit 1); exit 1; }; } | |
734 | fi | |
735 | fi | |
736 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || | |
737 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | |
738 | { (exit 1); exit 1; }; } | |
739 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | |
740 | ac_env_build_alias_set=${build_alias+set} | |
741 | ac_env_build_alias_value=$build_alias | |
742 | ac_cv_env_build_alias_set=${build_alias+set} | |
743 | ac_cv_env_build_alias_value=$build_alias | |
744 | ac_env_host_alias_set=${host_alias+set} | |
745 | ac_env_host_alias_value=$host_alias | |
746 | ac_cv_env_host_alias_set=${host_alias+set} | |
747 | ac_cv_env_host_alias_value=$host_alias | |
748 | ac_env_target_alias_set=${target_alias+set} | |
749 | ac_env_target_alias_value=$target_alias | |
750 | ac_cv_env_target_alias_set=${target_alias+set} | |
751 | ac_cv_env_target_alias_value=$target_alias | |
4ee9c684 | 752 | ac_env_F77_set=${F77+set} |
753 | ac_env_F77_value=$F77 | |
754 | ac_cv_env_F77_set=${F77+set} | |
755 | ac_cv_env_F77_value=$F77 | |
756 | ac_env_FFLAGS_set=${FFLAGS+set} | |
757 | ac_env_FFLAGS_value=$FFLAGS | |
758 | ac_cv_env_FFLAGS_set=${FFLAGS+set} | |
759 | ac_cv_env_FFLAGS_value=$FFLAGS | |
90973b19 | 760 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
761 | ac_env_LDFLAGS_value=$LDFLAGS | |
762 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
763 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
4ee9c684 | 764 | ac_env_CPP_set=${CPP+set} |
765 | ac_env_CPP_value=$CPP | |
766 | ac_cv_env_CPP_set=${CPP+set} | |
767 | ac_cv_env_CPP_value=$CPP | |
90973b19 | 768 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
769 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
770 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
771 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
4ee9c684 | 772 | |
773 | # | |
774 | # Report the --help message. | |
775 | # | |
776 | if test "$ac_init_help" = "long"; then | |
777 | # Omit some internal or obsolete options to make the list less imposing. | |
778 | # This message is too long to be a string in the A/UX 3.1 sh. | |
779 | cat <<_ACEOF | |
780 | \`configure' configures GNU Fortran Runtime Library 0.2 to adapt to many kinds of systems. | |
781 | ||
782 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
783 | ||
784 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
785 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
786 | ||
787 | Defaults for the options are specified in brackets. | |
788 | ||
789 | Configuration: | |
790 | -h, --help display this help and exit | |
791 | --help=short display options specific to this package | |
792 | --help=recursive display the short help of all the included packages | |
793 | -V, --version display version information and exit | |
794 | -q, --quiet, --silent do not print \`checking...' messages | |
795 | --cache-file=FILE cache test results in FILE [disabled] | |
796 | -C, --config-cache alias for \`--cache-file=config.cache' | |
797 | -n, --no-create do not create output files | |
798 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
799 | ||
800 | _ACEOF | |
801 | ||
802 | cat <<_ACEOF | |
803 | Installation directories: | |
804 | --prefix=PREFIX install architecture-independent files in PREFIX | |
805 | [$ac_default_prefix] | |
806 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
807 | [PREFIX] | |
808 | ||
809 | By default, \`make install' will install all the files in | |
810 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
811 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
812 | for instance \`--prefix=\$HOME'. | |
813 | ||
814 | For better control, use the options below. | |
815 | ||
816 | Fine tuning of the installation directories: | |
817 | --bindir=DIR user executables [EPREFIX/bin] | |
818 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
819 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
820 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
821 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
822 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
823 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
824 | --libdir=DIR object code libraries [EPREFIX/lib] | |
825 | --includedir=DIR C header files [PREFIX/include] | |
826 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
827 | --infodir=DIR info documentation [PREFIX/info] | |
828 | --mandir=DIR man documentation [PREFIX/man] | |
829 | _ACEOF | |
830 | ||
831 | cat <<\_ACEOF | |
832 | ||
833 | Program names: | |
834 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
835 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
836 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
837 | ||
838 | System types: | |
839 | --build=BUILD configure for building on BUILD [guessed] | |
840 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
90973b19 | 841 | --target=TARGET configure for building compilers for TARGET [HOST] |
4ee9c684 | 842 | _ACEOF |
843 | fi | |
844 | ||
845 | if test -n "$ac_init_help"; then | |
846 | case $ac_init_help in | |
847 | short | recursive ) echo "Configuration of GNU Fortran Runtime Library 0.2:";; | |
848 | esac | |
849 | cat <<\_ACEOF | |
850 | ||
851 | Optional Features: | |
852 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
853 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
90973b19 | 854 | --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory |
4ee9c684 | 855 | --enable-maintainer-mode enable make rules and dependencies not useful |
856 | (and sometimes confusing) to the casual installer | |
90973b19 | 857 | --enable-multilib build many library versions (default) |
4ee9c684 | 858 | --enable-shared=PKGS build shared libraries default=yes |
859 | --enable-static=PKGS build static libraries default=yes | |
860 | --enable-fast-install=PKGS optimize for fast installation default=yes | |
861 | --disable-libtool-lock avoid locking (might break parallel builds) | |
90973b19 | 862 | --enable-cmath Include complex math functions |
4ee9c684 | 863 | |
864 | Optional Packages: | |
865 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
866 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
867 | --with-gnu-ld assume the C compiler uses GNU ld default=no | |
868 | --with-pic try to use only PIC/non-PIC objects default=use both | |
869 | ||
870 | Some influential environment variables: | |
871 | CC C compiler command | |
872 | CFLAGS C compiler flags | |
873 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
874 | nonstandard directory <lib dir> | |
875 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
876 | headers in a nonstandard directory <include dir> | |
877 | F77 Fortran 77 compiler command | |
878 | FFLAGS Fortran 77 compiler flags | |
879 | CPP C preprocessor | |
880 | ||
881 | Use these variables to override the choices made by `configure' or to help | |
882 | it to find libraries and programs with nonstandard names/locations. | |
883 | ||
884 | _ACEOF | |
885 | fi | |
886 | ||
887 | if test "$ac_init_help" = "recursive"; then | |
888 | # If there are subdirs, report their specific --help. | |
889 | ac_popdir=`pwd` | |
890 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
891 | test -d $ac_dir || continue | |
892 | ac_builddir=. | |
893 | ||
894 | if test "$ac_dir" != .; then | |
895 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
896 | # A "../" for each directory in $ac_dir_suffix. | |
897 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
898 | else | |
899 | ac_dir_suffix= ac_top_builddir= | |
900 | fi | |
901 | ||
902 | case $srcdir in | |
903 | .) # No --srcdir option. We are building in place. | |
904 | ac_srcdir=. | |
905 | if test -z "$ac_top_builddir"; then | |
906 | ac_top_srcdir=. | |
907 | else | |
908 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
909 | fi ;; | |
910 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
911 | ac_srcdir=$srcdir$ac_dir_suffix; | |
912 | ac_top_srcdir=$srcdir ;; | |
913 | *) # Relative path. | |
914 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
915 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
916 | esac | |
917 | ||
918 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
919 | # the directories may not exist. | |
920 | case `pwd` in | |
921 | .) ac_abs_builddir="$ac_dir";; | |
922 | *) | |
923 | case "$ac_dir" in | |
924 | .) ac_abs_builddir=`pwd`;; | |
925 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
926 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
927 | esac;; | |
928 | esac | |
929 | case $ac_abs_builddir in | |
930 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
931 | *) | |
932 | case ${ac_top_builddir}. in | |
933 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
934 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
935 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
936 | esac;; | |
937 | esac | |
938 | case $ac_abs_builddir in | |
939 | .) ac_abs_srcdir=$ac_srcdir;; | |
940 | *) | |
941 | case $ac_srcdir in | |
942 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
943 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
944 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
945 | esac;; | |
946 | esac | |
947 | case $ac_abs_builddir in | |
948 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
949 | *) | |
950 | case $ac_top_srcdir in | |
951 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
952 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
953 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
954 | esac;; | |
955 | esac | |
956 | ||
957 | cd $ac_dir | |
958 | # Check for guested configure; otherwise get Cygnus style configure. | |
959 | if test -f $ac_srcdir/configure.gnu; then | |
960 | echo | |
961 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
962 | elif test -f $ac_srcdir/configure; then | |
963 | echo | |
964 | $SHELL $ac_srcdir/configure --help=recursive | |
965 | elif test -f $ac_srcdir/configure.ac || | |
966 | test -f $ac_srcdir/configure.in; then | |
967 | echo | |
968 | $ac_configure --help | |
969 | else | |
970 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
971 | fi | |
a31bd8a4 | 972 | cd "$ac_popdir" |
4ee9c684 | 973 | done |
974 | fi | |
975 | ||
976 | test -n "$ac_init_help" && exit 0 | |
977 | if $ac_init_version; then | |
978 | cat <<\_ACEOF | |
979 | GNU Fortran Runtime Library configure 0.2 | |
980 | generated by GNU Autoconf 2.59 | |
981 | ||
982 | Copyright (C) 2003 Free Software Foundation, Inc. | |
983 | This configure script is free software; the Free Software Foundation | |
984 | gives unlimited permission to copy, distribute and modify it. | |
985 | _ACEOF | |
986 | exit 0 | |
987 | fi | |
988 | exec 5>config.log | |
989 | cat >&5 <<_ACEOF | |
990 | This file contains any messages produced by compilers while | |
991 | running configure, to aid debugging if configure makes a mistake. | |
992 | ||
993 | It was created by GNU Fortran Runtime Library $as_me 0.2, which was | |
994 | generated by GNU Autoconf 2.59. Invocation command line was | |
995 | ||
996 | $ $0 $@ | |
997 | ||
998 | _ACEOF | |
999 | { | |
1000 | cat <<_ASUNAME | |
1001 | ## --------- ## | |
1002 | ## Platform. ## | |
1003 | ## --------- ## | |
1004 | ||
1005 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1006 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1007 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1008 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1009 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1010 | ||
1011 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1012 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1013 | ||
1014 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1015 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1016 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1017 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1018 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1019 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1020 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1021 | ||
1022 | _ASUNAME | |
1023 | ||
1024 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1025 | for as_dir in $PATH | |
1026 | do | |
1027 | IFS=$as_save_IFS | |
1028 | test -z "$as_dir" && as_dir=. | |
1029 | echo "PATH: $as_dir" | |
1030 | done | |
1031 | ||
1032 | } >&5 | |
1033 | ||
1034 | cat >&5 <<_ACEOF | |
1035 | ||
1036 | ||
1037 | ## ----------- ## | |
1038 | ## Core tests. ## | |
1039 | ## ----------- ## | |
1040 | ||
1041 | _ACEOF | |
1042 | ||
1043 | ||
1044 | # Keep a trace of the command line. | |
1045 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1046 | # Strip out --silent because we don't want to record it for future runs. | |
1047 | # Also quote any args containing shell meta-characters. | |
1048 | # Make two passes to allow for proper duplicate-argument suppression. | |
1049 | ac_configure_args= | |
1050 | ac_configure_args0= | |
1051 | ac_configure_args1= | |
1052 | ac_sep= | |
1053 | ac_must_keep_next=false | |
1054 | for ac_pass in 1 2 | |
1055 | do | |
1056 | for ac_arg | |
1057 | do | |
1058 | case $ac_arg in | |
1059 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1060 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1061 | | -silent | --silent | --silen | --sile | --sil) | |
1062 | continue ;; | |
1063 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1064 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1065 | esac | |
1066 | case $ac_pass in | |
1067 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1068 | 2) | |
1069 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1070 | if test $ac_must_keep_next = true; then | |
1071 | ac_must_keep_next=false # Got value, back to normal. | |
1072 | else | |
1073 | case $ac_arg in | |
1074 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1075 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1076 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1077 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1078 | case "$ac_configure_args0 " in | |
1079 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1080 | esac | |
1081 | ;; | |
1082 | -* ) ac_must_keep_next=true ;; | |
1083 | esac | |
1084 | fi | |
1085 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1086 | # Get rid of the leading space. | |
1087 | ac_sep=" " | |
1088 | ;; | |
1089 | esac | |
1090 | done | |
1091 | done | |
1092 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1093 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1094 | ||
1095 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1096 | # config.log. We remove comments because anyway the quotes in there | |
1097 | # would cause problems or look ugly. | |
1098 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1099 | # such as our DU 5.0 friend, will then `close' the trap. | |
1100 | trap 'exit_status=$? | |
1101 | # Save into config.log some information that might help in debugging. | |
1102 | { | |
1103 | echo | |
1104 | ||
1105 | cat <<\_ASBOX | |
1106 | ## ---------------- ## | |
1107 | ## Cache variables. ## | |
1108 | ## ---------------- ## | |
1109 | _ASBOX | |
1110 | echo | |
1111 | # The following way of writing the cache mishandles newlines in values, | |
1112 | { | |
1113 | (set) 2>&1 | | |
1114 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1115 | *ac_space=\ *) | |
1116 | sed -n \ | |
1117 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
1118 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
1119 | ;; | |
1120 | *) | |
1121 | sed -n \ | |
1122 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
1123 | ;; | |
1124 | esac; | |
1125 | } | |
1126 | echo | |
1127 | ||
1128 | cat <<\_ASBOX | |
1129 | ## ----------------- ## | |
1130 | ## Output variables. ## | |
1131 | ## ----------------- ## | |
1132 | _ASBOX | |
1133 | echo | |
1134 | for ac_var in $ac_subst_vars | |
1135 | do | |
1136 | eval ac_val=$`echo $ac_var` | |
1137 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1138 | done | sort | |
1139 | echo | |
1140 | ||
1141 | if test -n "$ac_subst_files"; then | |
1142 | cat <<\_ASBOX | |
1143 | ## ------------- ## | |
1144 | ## Output files. ## | |
1145 | ## ------------- ## | |
1146 | _ASBOX | |
1147 | echo | |
1148 | for ac_var in $ac_subst_files | |
1149 | do | |
1150 | eval ac_val=$`echo $ac_var` | |
1151 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1152 | done | sort | |
1153 | echo | |
1154 | fi | |
1155 | ||
1156 | if test -s confdefs.h; then | |
1157 | cat <<\_ASBOX | |
1158 | ## ----------- ## | |
1159 | ## confdefs.h. ## | |
1160 | ## ----------- ## | |
1161 | _ASBOX | |
1162 | echo | |
1163 | sed "/^$/d" confdefs.h | sort | |
1164 | echo | |
1165 | fi | |
1166 | test "$ac_signal" != 0 && | |
1167 | echo "$as_me: caught signal $ac_signal" | |
1168 | echo "$as_me: exit $exit_status" | |
1169 | } >&5 | |
1170 | rm -f core *.core && | |
1171 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
1172 | exit $exit_status | |
1173 | ' 0 | |
1174 | for ac_signal in 1 2 13 15; do | |
1175 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1176 | done | |
1177 | ac_signal=0 | |
1178 | ||
1179 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1180 | rm -rf conftest* confdefs.h | |
1181 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1182 | echo >confdefs.h | |
1183 | ||
1184 | # Predefined preprocessor variables. | |
1185 | ||
1186 | cat >>confdefs.h <<_ACEOF | |
1187 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1188 | _ACEOF | |
1189 | ||
1190 | ||
1191 | cat >>confdefs.h <<_ACEOF | |
1192 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1193 | _ACEOF | |
1194 | ||
1195 | ||
1196 | cat >>confdefs.h <<_ACEOF | |
1197 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1198 | _ACEOF | |
1199 | ||
1200 | ||
1201 | cat >>confdefs.h <<_ACEOF | |
1202 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1203 | _ACEOF | |
1204 | ||
1205 | ||
1206 | cat >>confdefs.h <<_ACEOF | |
1207 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1208 | _ACEOF | |
1209 | ||
1210 | ||
1211 | # Let the site file select an alternate cache file if it wants to. | |
1212 | # Prefer explicitly selected file to automatically selected ones. | |
1213 | if test -z "$CONFIG_SITE"; then | |
1214 | if test "x$prefix" != xNONE; then | |
1215 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1216 | else | |
1217 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1218 | fi | |
1219 | fi | |
1220 | for ac_site_file in $CONFIG_SITE; do | |
1221 | if test -r "$ac_site_file"; then | |
1222 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1223 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1224 | sed 's/^/| /' "$ac_site_file" >&5 | |
1225 | . "$ac_site_file" | |
1226 | fi | |
1227 | done | |
1228 | ||
1229 | if test -r "$cache_file"; then | |
1230 | # Some versions of bash will fail to source /dev/null (special | |
1231 | # files actually), so we avoid doing that. | |
1232 | if test -f "$cache_file"; then | |
1233 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1234 | echo "$as_me: loading cache $cache_file" >&6;} | |
1235 | case $cache_file in | |
1236 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1237 | *) . ./$cache_file;; | |
1238 | esac | |
1239 | fi | |
1240 | else | |
1241 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1242 | echo "$as_me: creating cache $cache_file" >&6;} | |
1243 | >$cache_file | |
1244 | fi | |
1245 | ||
1246 | # Check that the precious variables saved in the cache have kept the same | |
1247 | # value. | |
1248 | ac_cache_corrupted=false | |
1249 | for ac_var in `(set) 2>&1 | | |
1250 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
1251 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1252 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1253 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1254 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1255 | case $ac_old_set,$ac_new_set in | |
1256 | set,) | |
1257 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1258 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1259 | ac_cache_corrupted=: ;; | |
1260 | ,set) | |
1261 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1262 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1263 | ac_cache_corrupted=: ;; | |
1264 | ,);; | |
1265 | *) | |
1266 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1267 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1268 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1269 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1270 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1271 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1272 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1273 | ac_cache_corrupted=: | |
1274 | fi;; | |
1275 | esac | |
1276 | # Pass precious variables to config.status. | |
1277 | if test "$ac_new_set" = set; then | |
1278 | case $ac_new_val in | |
1279 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1280 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1281 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1282 | esac | |
1283 | case " $ac_configure_args " in | |
1284 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1285 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1286 | esac | |
1287 | fi | |
1288 | done | |
1289 | if $ac_cache_corrupted; then | |
1290 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1291 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1292 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1293 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1294 | { (exit 1); exit 1; }; } | |
1295 | fi | |
1296 | ||
1297 | ac_ext=c | |
1298 | ac_cpp='$CPP $CPPFLAGS' | |
1299 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1300 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1301 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1302 | ||
1303 | ||
1304 | ||
1305 | ||
1306 | ||
1307 | ||
1308 | ||
1309 | ||
1310 | ||
1311 | ||
1312 | ||
1313 | ||
1314 | ||
1315 | ||
1316 | ||
1317 | ||
1318 | ||
1319 | ||
1320 | ||
1321 | ||
1322 | ||
1323 | ||
1324 | ||
1325 | ||
1326 | ||
1327 | ||
1328 | ||
90973b19 | 1329 | ac_config_headers="$ac_config_headers config.h" |
1330 | ||
1331 | ||
1332 | # For libtool versioning info, format is CURRENT:REVISION:AGE | |
1333 | libtool_VERSION=6:0:0 | |
1334 | ||
1335 | ||
1336 | # ------- | |
1337 | # Options | |
1338 | # ------- | |
1339 | ||
1340 | echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5 | |
1341 | echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6 | |
1342 | # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given. | |
1343 | if test "${enable_version_specific_runtime_libs+set}" = set; then | |
1344 | enableval="$enable_version_specific_runtime_libs" | |
1345 | case "$enableval" in | |
1346 | yes) version_specific_libs=yes ;; | |
1347 | no) version_specific_libs=no ;; | |
1348 | *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5 | |
1349 | echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;} | |
1350 | { (exit 1); exit 1; }; };; | |
1351 | esac | |
1352 | else | |
1353 | version_specific_libs=no | |
1354 | fi; | |
1355 | echo "$as_me:$LINENO: result: $version_specific_libs" >&5 | |
1356 | echo "${ECHO_T}$version_specific_libs" >&6 | |
1357 | ||
1358 | ||
1359 | # Gets build, host, target, *_vendor, *_cpu, *_os, etc. | |
1360 | # | |
1361 | # You will slowly go insane if you do not grok the following fact: when | |
1362 | # building this library, the top-level /target/ becomes the library's /host/. | |
1363 | # | |
1364 | # configure then causes --target to default to --host, exactly like any | |
1365 | # other package using autoconf. Therefore, 'target' and 'host' will | |
1366 | # always be the same. This makes sense both for native and cross compilers | |
1367 | # just think about it for a little while. :-) | |
1368 | # | |
1369 | # Also, if this library is being configured as part of a cross compiler, the | |
1370 | # top-level configure script will pass the "real" host as $with_cross_host. | |
1371 | # | |
1372 | # Do not delete or change the following two lines. For why, see | |
1373 | # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html | |
4ee9c684 | 1374 | ac_aux_dir= |
1375 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1376 | if test -f $ac_dir/install-sh; then | |
1377 | ac_aux_dir=$ac_dir | |
1378 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1379 | break | |
1380 | elif test -f $ac_dir/install.sh; then | |
1381 | ac_aux_dir=$ac_dir | |
1382 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1383 | break | |
1384 | elif test -f $ac_dir/shtool; then | |
1385 | ac_aux_dir=$ac_dir | |
1386 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1387 | break | |
1388 | fi | |
1389 | done | |
1390 | if test -z "$ac_aux_dir"; then | |
1391 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1392 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1393 | { (exit 1); exit 1; }; } | |
1394 | fi | |
1395 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1396 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1397 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1398 | ||
90973b19 | 1399 | # Make sure we can run config.sub. |
1400 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1401 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1402 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1403 | { (exit 1); exit 1; }; } | |
1404 | ||
1405 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1406 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1407 | if test "${ac_cv_build+set}" = set; then | |
1408 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1409 | else | |
1410 | ac_cv_build_alias=$build_alias | |
1411 | test -z "$ac_cv_build_alias" && | |
1412 | ac_cv_build_alias=`$ac_config_guess` | |
1413 | test -z "$ac_cv_build_alias" && | |
1414 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1415 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1416 | { (exit 1); exit 1; }; } | |
1417 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1418 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1419 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1420 | { (exit 1); exit 1; }; } | |
1421 | ||
1422 | fi | |
1423 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1424 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1425 | build=$ac_cv_build | |
1426 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1427 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1428 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1429 | ||
1430 | ||
1431 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1432 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1433 | if test "${ac_cv_host+set}" = set; then | |
1434 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1435 | else | |
1436 | ac_cv_host_alias=$host_alias | |
1437 | test -z "$ac_cv_host_alias" && | |
1438 | ac_cv_host_alias=$ac_cv_build_alias | |
1439 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1440 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1441 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1442 | { (exit 1); exit 1; }; } | |
1443 | ||
1444 | fi | |
1445 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1446 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1447 | host=$ac_cv_host | |
1448 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1449 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1450 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1451 | ||
1452 | ||
1453 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1454 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1455 | if test "${ac_cv_target+set}" = set; then | |
1456 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1457 | else | |
1458 | ac_cv_target_alias=$target_alias | |
1459 | test "x$ac_cv_target_alias" = "x" && | |
1460 | ac_cv_target_alias=$ac_cv_host_alias | |
1461 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1462 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1463 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1464 | { (exit 1); exit 1; }; } | |
1465 | ||
1466 | fi | |
1467 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1468 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1469 | target=$ac_cv_target | |
1470 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1471 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1472 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1473 | ||
1474 | ||
1475 | # The aliases save the names the user supplied, while $host etc. | |
1476 | # will get canonicalized. | |
1477 | test -n "$target_alias" && | |
1478 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1479 | NONENONEs,x,x, && | |
1480 | program_prefix=${target_alias}- | |
1481 | target_alias=${target_alias-$host_alias} | |
1482 | ||
1483 | # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the | |
1484 | # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am. | |
1485 | # 1.8.2: minimum required version | |
1486 | # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch | |
1487 | # of other PACKAGE_* variables will, however, and there's nothing | |
1488 | # we can do about that; they come from AC_INIT). | |
1489 | # foreign: we don't follow the normal rules for GNU packages (no COPYING | |
1490 | # file in the top srcdir, etc, etc), so stop complaining. | |
1491 | # no-dependencies: turns off auto dependency generation (just for now) | |
1492 | # -Wall: turns on all automake warnings... | |
1493 | # -Wno-portability: ...except this one, since GNU make is required. | |
1494 | am__api_version="1.8" | |
4ee9c684 | 1495 | # Find a good install program. We prefer a C program (faster), |
1496 | # so one script is as good as another. But avoid the broken or | |
1497 | # incompatible versions: | |
1498 | # SysV /etc/install, /usr/sbin/install | |
1499 | # SunOS /usr/etc/install | |
1500 | # IRIX /sbin/install | |
1501 | # AIX /bin/install | |
1502 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
1503 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
1504 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
1505 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1506 | # OS/2's system install, which has a completely different semantic | |
1507 | # ./install, which can be erroneously created by make from ./install.sh. | |
1508 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
1509 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
1510 | if test -z "$INSTALL"; then | |
1511 | if test "${ac_cv_path_install+set}" = set; then | |
1512 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1513 | else | |
1514 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1515 | for as_dir in $PATH | |
1516 | do | |
1517 | IFS=$as_save_IFS | |
1518 | test -z "$as_dir" && as_dir=. | |
1519 | # Account for people who put trailing slashes in PATH elements. | |
1520 | case $as_dir/ in | |
1521 | ./ | .// | /cC/* | \ | |
1522 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
1523 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
1524 | /usr/ucb/* ) ;; | |
1525 | *) | |
1526 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
1527 | # Don't use installbsd from OSF since it installs stuff as root | |
1528 | # by default. | |
1529 | for ac_prog in ginstall scoinst install; do | |
1530 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1531 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
1532 | if test $ac_prog = install && | |
1533 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1534 | # AIX install. It has an incompatible calling convention. | |
1535 | : | |
1536 | elif test $ac_prog = install && | |
1537 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1538 | # program-specific install script used by HP pwplus--don't use. | |
1539 | : | |
1540 | else | |
1541 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
1542 | break 3 | |
1543 | fi | |
1544 | fi | |
1545 | done | |
1546 | done | |
1547 | ;; | |
1548 | esac | |
1549 | done | |
1550 | ||
1551 | ||
1552 | fi | |
1553 | if test "${ac_cv_path_install+set}" = set; then | |
1554 | INSTALL=$ac_cv_path_install | |
1555 | else | |
1556 | # As a last resort, use the slow shell script. We don't cache a | |
1557 | # path for INSTALL within a source directory, because that will | |
1558 | # break other packages using the cache if that directory is | |
1559 | # removed, or if the path is relative. | |
1560 | INSTALL=$ac_install_sh | |
1561 | fi | |
1562 | fi | |
1563 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
1564 | echo "${ECHO_T}$INSTALL" >&6 | |
1565 | ||
1566 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
1567 | # It thinks the first close brace ends the variable substitution. | |
1568 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
1569 | ||
1570 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
1571 | ||
1572 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
1573 | ||
1574 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 | |
1575 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 | |
1576 | # Just in case | |
1577 | sleep 1 | |
1578 | echo timestamp > conftest.file | |
1579 | # Do `set' in a subshell so we don't clobber the current shell's | |
1580 | # arguments. Must try -L first in case configure is actually a | |
1581 | # symlink; some systems play weird games with the mod time of symlinks | |
1582 | # (eg FreeBSD returns the mod time of the symlink's containing | |
1583 | # directory). | |
1584 | if ( | |
1585 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` | |
1586 | if test "$*" = "X"; then | |
1587 | # -L didn't work. | |
1588 | set X `ls -t $srcdir/configure conftest.file` | |
1589 | fi | |
1590 | rm -f conftest.file | |
1591 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
1592 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
1593 | ||
1594 | # If neither matched, then we have a broken ls. This can happen | |
1595 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
1596 | # broken ls alias from the environment. This has actually | |
1597 | # happened. Such a system could not be considered "sane". | |
1598 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken | |
1599 | alias in your environment" >&5 | |
1600 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | |
1601 | alias in your environment" >&2;} | |
1602 | { (exit 1); exit 1; }; } | |
1603 | fi | |
1604 | ||
1605 | test "$2" = conftest.file | |
1606 | ) | |
1607 | then | |
1608 | # Ok. | |
1609 | : | |
1610 | else | |
1611 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! | |
1612 | Check your system clock" >&5 | |
1613 | echo "$as_me: error: newly created file is older than distributed files! | |
1614 | Check your system clock" >&2;} | |
1615 | { (exit 1); exit 1; }; } | |
1616 | fi | |
1617 | echo "$as_me:$LINENO: result: yes" >&5 | |
1618 | echo "${ECHO_T}yes" >&6 | |
1619 | test "$program_prefix" != NONE && | |
1620 | program_transform_name="s,^,$program_prefix,;$program_transform_name" | |
1621 | # Use a double $ so make ignores it. | |
1622 | test "$program_suffix" != NONE && | |
1623 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" | |
1624 | # Double any \ or $. echo might interpret backslashes. | |
1625 | # By default was `s,x,x', remove it if useless. | |
1626 | cat <<\_ACEOF >conftest.sed | |
1627 | s/[\\$]/&&/g;s/;s,x,x,$// | |
1628 | _ACEOF | |
1629 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
1630 | rm conftest.sed | |
1631 | ||
1632 | # expand $ac_aux_dir to an absolute path | |
1633 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
1634 | ||
1635 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | |
1636 | # Use eval to expand $SHELL | |
1637 | if eval "$MISSING --run true"; then | |
1638 | am_missing_run="$MISSING --run " | |
1639 | else | |
1640 | am_missing_run= | |
1641 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 | |
1642 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
1643 | fi | |
1644 | ||
cdafa1f6 | 1645 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then |
4ee9c684 | 1646 | # Keeping the `.' argument allows $(mkdir_p) to be used without |
1647 | # argument. Indeed, we sometimes output rules like | |
1648 | # $(mkdir_p) $(somedir) | |
1649 | # where $(somedir) is conditionally defined. | |
1650 | # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more | |
1651 | # expensive solution, as it forces Make to start a sub-shell.) | |
1652 | mkdir_p='mkdir -p -- .' | |
1653 | else | |
1654 | # On NextStep and OpenStep, the `mkdir' command does not | |
1655 | # recognize any option. It will interpret all options as | |
1656 | # directories to create, and then abort because `.' already | |
1657 | # exists. | |
cdafa1f6 | 1658 | for d in ./-p ./--version; |
4ee9c684 | 1659 | do |
1660 | test -d $d && rmdir $d | |
1661 | done | |
1662 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. | |
1663 | if test -f "$ac_aux_dir/mkinstalldirs"; then | |
1664 | mkdir_p='$(mkinstalldirs)' | |
1665 | else | |
1666 | mkdir_p='$(install_sh) -d' | |
1667 | fi | |
1668 | fi | |
1669 | ||
1670 | for ac_prog in gawk mawk nawk awk | |
1671 | do | |
1672 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1673 | set dummy $ac_prog; ac_word=$2 | |
1674 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1675 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1676 | if test "${ac_cv_prog_AWK+set}" = set; then | |
1677 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1678 | else | |
1679 | if test -n "$AWK"; then | |
1680 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
1681 | else | |
1682 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1683 | for as_dir in $PATH | |
1684 | do | |
1685 | IFS=$as_save_IFS | |
1686 | test -z "$as_dir" && as_dir=. | |
1687 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1688 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1689 | ac_cv_prog_AWK="$ac_prog" | |
1690 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1691 | break 2 | |
1692 | fi | |
1693 | done | |
1694 | done | |
1695 | ||
1696 | fi | |
1697 | fi | |
1698 | AWK=$ac_cv_prog_AWK | |
1699 | if test -n "$AWK"; then | |
1700 | echo "$as_me:$LINENO: result: $AWK" >&5 | |
1701 | echo "${ECHO_T}$AWK" >&6 | |
1702 | else | |
1703 | echo "$as_me:$LINENO: result: no" >&5 | |
1704 | echo "${ECHO_T}no" >&6 | |
1705 | fi | |
1706 | ||
1707 | test -n "$AWK" && break | |
1708 | done | |
1709 | ||
1710 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
1711 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
1712 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` | |
1713 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
1714 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1715 | else | |
1716 | cat >conftest.make <<\_ACEOF | |
1717 | all: | |
1718 | @echo 'ac_maketemp="$(MAKE)"' | |
1719 | _ACEOF | |
1720 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
1721 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
1722 | if test -n "$ac_maketemp"; then | |
1723 | eval ac_cv_prog_make_${ac_make}_set=yes | |
1724 | else | |
1725 | eval ac_cv_prog_make_${ac_make}_set=no | |
1726 | fi | |
1727 | rm -f conftest.make | |
1728 | fi | |
1729 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
1730 | echo "$as_me:$LINENO: result: yes" >&5 | |
1731 | echo "${ECHO_T}yes" >&6 | |
1732 | SET_MAKE= | |
1733 | else | |
1734 | echo "$as_me:$LINENO: result: no" >&5 | |
1735 | echo "${ECHO_T}no" >&6 | |
1736 | SET_MAKE="MAKE=${MAKE-make}" | |
1737 | fi | |
1738 | ||
1739 | rm -rf .tst 2>/dev/null | |
1740 | mkdir .tst 2>/dev/null | |
1741 | if test -d .tst; then | |
1742 | am__leading_dot=. | |
1743 | else | |
1744 | am__leading_dot=_ | |
1745 | fi | |
1746 | rmdir .tst 2>/dev/null | |
1747 | ||
1748 | # test to see if srcdir already configured | |
1749 | if test "`cd $srcdir && pwd`" != "`pwd`" && | |
1750 | test -f $srcdir/config.status; then | |
1751 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 | |
1752 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | |
1753 | { (exit 1); exit 1; }; } | |
1754 | fi | |
1755 | ||
1756 | # test whether we have cygpath | |
1757 | if test -z "$CYGPATH_W"; then | |
1758 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
1759 | CYGPATH_W='cygpath -w' | |
1760 | else | |
1761 | CYGPATH_W=echo | |
1762 | fi | |
1763 | fi | |
1764 | ||
1765 | ||
1766 | # Define the identity of the package. | |
1767 | PACKAGE='libgfortran' | |
1768 | VERSION='0.2' | |
1769 | ||
1770 | ||
4ee9c684 | 1771 | # Some tools Automake needs. |
1772 | ||
1773 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
1774 | ||
1775 | ||
1776 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
1777 | ||
1778 | ||
1779 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
1780 | ||
1781 | ||
1782 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
1783 | ||
1784 | ||
1785 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
1786 | ||
1787 | ||
1788 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
1789 | ||
1790 | install_sh=${install_sh-"$am_aux_dir/install-sh"} | |
1791 | ||
1792 | # Installed binaries are usually stripped using `strip' when the user | |
1793 | # run `make install-strip'. However `strip' might not be the right | |
1794 | # tool to use in cross-compilation environments, therefore Automake | |
1795 | # will honor the `STRIP' environment variable to overrule this program. | |
1796 | if test "$cross_compiling" != no; then | |
1797 | if test -n "$ac_tool_prefix"; then | |
1798 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
1799 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
1800 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1801 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1802 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
1803 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1804 | else | |
1805 | if test -n "$STRIP"; then | |
1806 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
1807 | else | |
1808 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1809 | for as_dir in $PATH | |
1810 | do | |
1811 | IFS=$as_save_IFS | |
1812 | test -z "$as_dir" && as_dir=. | |
1813 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1814 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1815 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
1816 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1817 | break 2 | |
1818 | fi | |
1819 | done | |
1820 | done | |
1821 | ||
1822 | fi | |
1823 | fi | |
1824 | STRIP=$ac_cv_prog_STRIP | |
1825 | if test -n "$STRIP"; then | |
1826 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
1827 | echo "${ECHO_T}$STRIP" >&6 | |
1828 | else | |
1829 | echo "$as_me:$LINENO: result: no" >&5 | |
1830 | echo "${ECHO_T}no" >&6 | |
1831 | fi | |
1832 | ||
1833 | fi | |
1834 | if test -z "$ac_cv_prog_STRIP"; then | |
1835 | ac_ct_STRIP=$STRIP | |
1836 | # Extract the first word of "strip", so it can be a program name with args. | |
1837 | set dummy strip; ac_word=$2 | |
1838 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1839 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1840 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
1841 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1842 | else | |
1843 | if test -n "$ac_ct_STRIP"; then | |
1844 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
1845 | else | |
1846 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1847 | for as_dir in $PATH | |
1848 | do | |
1849 | IFS=$as_save_IFS | |
1850 | test -z "$as_dir" && as_dir=. | |
1851 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1852 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1853 | ac_cv_prog_ac_ct_STRIP="strip" | |
1854 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1855 | break 2 | |
1856 | fi | |
1857 | done | |
1858 | done | |
1859 | ||
1860 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
1861 | fi | |
1862 | fi | |
1863 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
1864 | if test -n "$ac_ct_STRIP"; then | |
1865 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
1866 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
1867 | else | |
1868 | echo "$as_me:$LINENO: result: no" >&5 | |
1869 | echo "${ECHO_T}no" >&6 | |
1870 | fi | |
1871 | ||
1872 | STRIP=$ac_ct_STRIP | |
1873 | else | |
1874 | STRIP="$ac_cv_prog_STRIP" | |
1875 | fi | |
1876 | ||
1877 | fi | |
1878 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" | |
1879 | ||
1880 | # We need awk for the "check" target. The system "awk" is bad on | |
1881 | # some platforms. | |
1882 | ||
1883 | ||
1884 | ||
4ee9c684 | 1885 | |
1886 | echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
1887 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 | |
1888 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. | |
1889 | if test "${enable_maintainer_mode+set}" = set; then | |
1890 | enableval="$enable_maintainer_mode" | |
1891 | USE_MAINTAINER_MODE=$enableval | |
1892 | else | |
1893 | USE_MAINTAINER_MODE=no | |
1894 | fi; | |
1895 | echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 | |
1896 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 | |
1897 | ||
1898 | ||
1899 | if test $USE_MAINTAINER_MODE = yes; then | |
1900 | MAINTAINER_MODE_TRUE= | |
1901 | MAINTAINER_MODE_FALSE='#' | |
1902 | else | |
1903 | MAINTAINER_MODE_TRUE='#' | |
1904 | MAINTAINER_MODE_FALSE= | |
1905 | fi | |
1906 | ||
1907 | MAINT=$MAINTAINER_MODE_TRUE | |
1908 | ||
1909 | ||
90973b19 | 1910 | # Default to --enable-multilib |
1911 | # Check whether --enable-multilib or --disable-multilib was given. | |
1912 | if test "${enable_multilib+set}" = set; then | |
1913 | enableval="$enable_multilib" | |
1914 | case "$enableval" in | |
1915 | yes) multilib=yes ;; | |
1916 | no) multilib=no ;; | |
1917 | *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5 | |
1918 | echo "$as_me: error: bad value $enableval for multilib option" >&2;} | |
1919 | { (exit 1); exit 1; }; } ;; | |
1920 | esac | |
1921 | else | |
1922 | multilib=yes | |
1923 | fi; | |
1924 | ||
1925 | # We may get other options which we leave undocumented: | |
1926 | # --with-target-subdir, --with-multisrctop, --with-multisubdir | |
1927 | # See config-ml.in if you want the gory details. | |
1928 | ||
1929 | if test "$srcdir" = "."; then | |
1930 | if test "$with_target_subdir" != "."; then | |
1931 | multi_basedir="$srcdir/$with_multisrctop../.." | |
1932 | else | |
1933 | multi_basedir="$srcdir/$with_multisrctop.." | |
1934 | fi | |
1935 | else | |
1936 | multi_basedir="$srcdir/.." | |
1937 | fi | |
1938 | ||
1939 | ||
1940 | ac_config_commands="$ac_config_commands default-1" | |
1941 | ||
1942 | ||
1943 | # Handy for debugging: | |
1944 | #AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5 | |
1945 | ||
1946 | # Are we being configured with some form of cross compiler? | |
1947 | # NB: We don't actually need to know this just now, but when, say, a test | |
1948 | # suite is included, we'll have to know. | |
1949 | if test "$build" != "$host"; then | |
1950 | LIBGFOR_IS_NATIVE=false | |
1951 | GCC_NO_EXECUTABLES | |
1952 | else | |
1953 | LIBGFOR_IS_NATIVE=true | |
1954 | fi | |
1955 | ||
1956 | # Process the option "--enable-version-specific-runtime-libs" | |
1957 | gcc_version_trigger=${srcdir}/../gcc/version.c | |
1958 | gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'` | |
1959 | gcc_version=`echo ${gcc_version_full} | sed -e 's/\(^ *\) .*/\1/'` | |
1960 | ||
1961 | ||
1962 | # Calculate toolexeclibdir | |
1963 | # Also toolexecdir, though it's only used in toolexeclibdir | |
1964 | case ${version_specific_libs} in | |
1965 | yes) | |
1966 | # Need the gcc compiler version to know where to install libraries | |
1967 | # and header files if --enable-version-specific-runtime-libs option | |
1968 | # is selected. | |
1969 | toolexecdir='$(libdir)/gcc/$(target_alias)' | |
1970 | toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)' | |
1971 | ;; | |
1972 | no) | |
1973 | if test -n "$with_cross_host" && | |
1974 | test x"$with_cross_host" != x"no"; then | |
1975 | # Install a library built with a cross compiler in tooldir, not libdir. | |
1976 | toolexecdir='$(exec_prefix)/$(target_alias)' | |
1977 | toolexeclibdir='$(toolexecdir)/lib' | |
1978 | else | |
1979 | toolexecdir='$(libdir)/gcc-lib/$(target_alias)' | |
1980 | toolexeclibdir='$(libdir)' | |
1981 | fi | |
1982 | multi_os_directory=`$CC -print-multi-os-directory` | |
1983 | case $multi_os_directory in | |
1984 | .) ;; # Avoid trailing /. | |
1985 | *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;; | |
1986 | esac | |
1987 | ;; | |
1988 | esac | |
1989 | ||
1990 | ||
4ee9c684 | 1991 | |
90973b19 | 1992 | # Check the compiler. |
1993 | # The same as in boehm-gc and libstdc++. Have to borrow it from there. | |
1994 | # We must force CC to /not/ be precious variables; otherwise | |
1995 | # the wrong, non-multilib-adjusted value will be used in multilibs. | |
1996 | # As a side effect, we have to subst CFLAGS ourselves. | |
4ee9c684 | 1997 | |
1998 | ||
1999 | ||
4ee9c684 | 2000 | ac_ext=c |
2001 | ac_cpp='$CPP $CPPFLAGS' | |
2002 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2003 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2004 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2005 | if test -n "$ac_tool_prefix"; then | |
2006 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2007 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2008 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2009 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2010 | if test "${ac_cv_prog_CC+set}" = set; then | |
2011 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2012 | else | |
2013 | if test -n "$CC"; then | |
2014 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2015 | else | |
2016 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2017 | for as_dir in $PATH | |
2018 | do | |
2019 | IFS=$as_save_IFS | |
2020 | test -z "$as_dir" && as_dir=. | |
2021 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2022 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2023 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
2024 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2025 | break 2 | |
2026 | fi | |
2027 | done | |
2028 | done | |
2029 | ||
2030 | fi | |
2031 | fi | |
2032 | CC=$ac_cv_prog_CC | |
2033 | if test -n "$CC"; then | |
2034 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2035 | echo "${ECHO_T}$CC" >&6 | |
2036 | else | |
2037 | echo "$as_me:$LINENO: result: no" >&5 | |
2038 | echo "${ECHO_T}no" >&6 | |
2039 | fi | |
2040 | ||
2041 | fi | |
2042 | if test -z "$ac_cv_prog_CC"; then | |
2043 | ac_ct_CC=$CC | |
2044 | # Extract the first word of "gcc", so it can be a program name with args. | |
2045 | set dummy gcc; ac_word=$2 | |
2046 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2047 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2048 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2049 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2050 | else | |
2051 | if test -n "$ac_ct_CC"; then | |
2052 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2053 | else | |
2054 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2055 | for as_dir in $PATH | |
2056 | do | |
2057 | IFS=$as_save_IFS | |
2058 | test -z "$as_dir" && as_dir=. | |
2059 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2060 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2061 | ac_cv_prog_ac_ct_CC="gcc" | |
2062 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2063 | break 2 | |
2064 | fi | |
2065 | done | |
2066 | done | |
2067 | ||
2068 | fi | |
2069 | fi | |
2070 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2071 | if test -n "$ac_ct_CC"; then | |
2072 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2073 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
2074 | else | |
2075 | echo "$as_me:$LINENO: result: no" >&5 | |
2076 | echo "${ECHO_T}no" >&6 | |
2077 | fi | |
2078 | ||
2079 | CC=$ac_ct_CC | |
2080 | else | |
2081 | CC="$ac_cv_prog_CC" | |
2082 | fi | |
2083 | ||
2084 | if test -z "$CC"; then | |
2085 | if test -n "$ac_tool_prefix"; then | |
2086 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2087 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
2088 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2089 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2090 | if test "${ac_cv_prog_CC+set}" = set; then | |
2091 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2092 | else | |
2093 | if test -n "$CC"; then | |
2094 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2095 | else | |
2096 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2097 | for as_dir in $PATH | |
2098 | do | |
2099 | IFS=$as_save_IFS | |
2100 | test -z "$as_dir" && as_dir=. | |
2101 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2102 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2103 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
2104 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2105 | break 2 | |
2106 | fi | |
2107 | done | |
2108 | done | |
2109 | ||
2110 | fi | |
2111 | fi | |
2112 | CC=$ac_cv_prog_CC | |
2113 | if test -n "$CC"; then | |
2114 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2115 | echo "${ECHO_T}$CC" >&6 | |
2116 | else | |
2117 | echo "$as_me:$LINENO: result: no" >&5 | |
2118 | echo "${ECHO_T}no" >&6 | |
2119 | fi | |
2120 | ||
2121 | fi | |
2122 | if test -z "$ac_cv_prog_CC"; then | |
2123 | ac_ct_CC=$CC | |
2124 | # Extract the first word of "cc", so it can be a program name with args. | |
2125 | set dummy cc; ac_word=$2 | |
2126 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2127 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2128 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2129 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2130 | else | |
2131 | if test -n "$ac_ct_CC"; then | |
2132 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2133 | else | |
2134 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2135 | for as_dir in $PATH | |
2136 | do | |
2137 | IFS=$as_save_IFS | |
2138 | test -z "$as_dir" && as_dir=. | |
2139 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2140 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2141 | ac_cv_prog_ac_ct_CC="cc" | |
2142 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2143 | break 2 | |
2144 | fi | |
2145 | done | |
2146 | done | |
2147 | ||
2148 | fi | |
2149 | fi | |
2150 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2151 | if test -n "$ac_ct_CC"; then | |
2152 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2153 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
2154 | else | |
2155 | echo "$as_me:$LINENO: result: no" >&5 | |
2156 | echo "${ECHO_T}no" >&6 | |
2157 | fi | |
2158 | ||
2159 | CC=$ac_ct_CC | |
2160 | else | |
2161 | CC="$ac_cv_prog_CC" | |
2162 | fi | |
2163 | ||
2164 | fi | |
2165 | if test -z "$CC"; then | |
2166 | # Extract the first word of "cc", so it can be a program name with args. | |
2167 | set dummy cc; ac_word=$2 | |
2168 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2169 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2170 | if test "${ac_cv_prog_CC+set}" = set; then | |
2171 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2172 | else | |
2173 | if test -n "$CC"; then | |
2174 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2175 | else | |
2176 | ac_prog_rejected=no | |
2177 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2178 | for as_dir in $PATH | |
2179 | do | |
2180 | IFS=$as_save_IFS | |
2181 | test -z "$as_dir" && as_dir=. | |
2182 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2183 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2184 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
2185 | ac_prog_rejected=yes | |
2186 | continue | |
2187 | fi | |
2188 | ac_cv_prog_CC="cc" | |
2189 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2190 | break 2 | |
2191 | fi | |
2192 | done | |
2193 | done | |
2194 | ||
2195 | if test $ac_prog_rejected = yes; then | |
2196 | # We found a bogon in the path, so make sure we never use it. | |
2197 | set dummy $ac_cv_prog_CC | |
2198 | shift | |
2199 | if test $# != 0; then | |
2200 | # We chose a different compiler from the bogus one. | |
2201 | # However, it has the same basename, so the bogon will be chosen | |
2202 | # first if we set CC to just the basename; use the full file name. | |
2203 | shift | |
2204 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2205 | fi | |
2206 | fi | |
2207 | fi | |
2208 | fi | |
2209 | CC=$ac_cv_prog_CC | |
2210 | if test -n "$CC"; then | |
2211 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2212 | echo "${ECHO_T}$CC" >&6 | |
2213 | else | |
2214 | echo "$as_me:$LINENO: result: no" >&5 | |
2215 | echo "${ECHO_T}no" >&6 | |
2216 | fi | |
2217 | ||
2218 | fi | |
2219 | if test -z "$CC"; then | |
2220 | if test -n "$ac_tool_prefix"; then | |
2221 | for ac_prog in cl | |
2222 | do | |
2223 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2224 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2225 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2226 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2227 | if test "${ac_cv_prog_CC+set}" = set; then | |
2228 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2229 | else | |
2230 | if test -n "$CC"; then | |
2231 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2232 | else | |
2233 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2234 | for as_dir in $PATH | |
2235 | do | |
2236 | IFS=$as_save_IFS | |
2237 | test -z "$as_dir" && as_dir=. | |
2238 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2239 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2240 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
2241 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2242 | break 2 | |
2243 | fi | |
2244 | done | |
2245 | done | |
2246 | ||
2247 | fi | |
2248 | fi | |
2249 | CC=$ac_cv_prog_CC | |
2250 | if test -n "$CC"; then | |
2251 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2252 | echo "${ECHO_T}$CC" >&6 | |
2253 | else | |
2254 | echo "$as_me:$LINENO: result: no" >&5 | |
2255 | echo "${ECHO_T}no" >&6 | |
2256 | fi | |
2257 | ||
2258 | test -n "$CC" && break | |
2259 | done | |
2260 | fi | |
2261 | if test -z "$CC"; then | |
2262 | ac_ct_CC=$CC | |
2263 | for ac_prog in cl | |
2264 | do | |
2265 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2266 | set dummy $ac_prog; ac_word=$2 | |
2267 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2268 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2269 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2270 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2271 | else | |
2272 | if test -n "$ac_ct_CC"; then | |
2273 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2274 | else | |
2275 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2276 | for as_dir in $PATH | |
2277 | do | |
2278 | IFS=$as_save_IFS | |
2279 | test -z "$as_dir" && as_dir=. | |
2280 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2281 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2282 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
2283 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2284 | break 2 | |
2285 | fi | |
2286 | done | |
2287 | done | |
2288 | ||
2289 | fi | |
2290 | fi | |
2291 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2292 | if test -n "$ac_ct_CC"; then | |
2293 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2294 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
2295 | else | |
2296 | echo "$as_me:$LINENO: result: no" >&5 | |
2297 | echo "${ECHO_T}no" >&6 | |
2298 | fi | |
2299 | ||
2300 | test -n "$ac_ct_CC" && break | |
2301 | done | |
2302 | ||
2303 | CC=$ac_ct_CC | |
2304 | fi | |
2305 | ||
2306 | fi | |
2307 | ||
2308 | ||
2309 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
2310 | See \`config.log' for more details." >&5 | |
2311 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
2312 | See \`config.log' for more details." >&2;} | |
2313 | { (exit 1); exit 1; }; } | |
2314 | ||
2315 | # Provide some information about the compiler. | |
2316 | echo "$as_me:$LINENO:" \ | |
2317 | "checking for C compiler version" >&5 | |
2318 | ac_compiler=`set X $ac_compile; echo $2` | |
2319 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
2320 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
2321 | ac_status=$? | |
2322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2323 | (exit $ac_status); } | |
2324 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
2325 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
2326 | ac_status=$? | |
2327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2328 | (exit $ac_status); } | |
2329 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
2330 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
2331 | ac_status=$? | |
2332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2333 | (exit $ac_status); } | |
2334 | ||
2335 | cat >conftest.$ac_ext <<_ACEOF | |
2336 | /* confdefs.h. */ | |
2337 | _ACEOF | |
2338 | cat confdefs.h >>conftest.$ac_ext | |
2339 | cat >>conftest.$ac_ext <<_ACEOF | |
2340 | /* end confdefs.h. */ | |
2341 | ||
2342 | int | |
2343 | main () | |
2344 | { | |
2345 | ||
2346 | ; | |
2347 | return 0; | |
2348 | } | |
2349 | _ACEOF | |
2350 | ac_clean_files_save=$ac_clean_files | |
2351 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
2352 | # Try to create an executable without -o first, disregard a.out. | |
2353 | # It will help us diagnose broken compilers, and finding out an intuition | |
2354 | # of exeext. | |
2355 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | |
2356 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
2357 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2358 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
2359 | (eval $ac_link_default) 2>&5 | |
2360 | ac_status=$? | |
2361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2362 | (exit $ac_status); }; then | |
2363 | # Find the output, starting from the most likely. This scheme is | |
2364 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
2365 | # resort. | |
2366 | ||
2367 | # Be careful to initialize this variable, since it used to be cached. | |
2368 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
2369 | ac_cv_exeext= | |
2370 | # b.out is created by i960 compilers. | |
2371 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
2372 | do | |
2373 | test -f "$ac_file" || continue | |
2374 | case $ac_file in | |
2375 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
2376 | ;; | |
2377 | conftest.$ac_ext ) | |
2378 | # This is the source file. | |
2379 | ;; | |
2380 | [ab].out ) | |
2381 | # We found the default executable, but exeext='' is most | |
2382 | # certainly right. | |
2383 | break;; | |
2384 | *.* ) | |
2385 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2386 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
2387 | # but it would be cool to find out if it's true. Does anybody | |
2388 | # maintain Libtool? --akim. | |
2389 | export ac_cv_exeext | |
2390 | break;; | |
2391 | * ) | |
2392 | break;; | |
2393 | esac | |
2394 | done | |
2395 | else | |
2396 | echo "$as_me: failed program was:" >&5 | |
2397 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2398 | ||
2399 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
2400 | See \`config.log' for more details." >&5 | |
2401 | echo "$as_me: error: C compiler cannot create executables | |
2402 | See \`config.log' for more details." >&2;} | |
2403 | { (exit 77); exit 77; }; } | |
2404 | fi | |
2405 | ||
2406 | ac_exeext=$ac_cv_exeext | |
2407 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
2408 | echo "${ECHO_T}$ac_file" >&6 | |
2409 | ||
2410 | # Check the compiler produces executables we can run. If not, either | |
2411 | # the compiler is broken, or we cross compile. | |
2412 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
2413 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
2414 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
2415 | # If not cross compiling, check that we can run a simple program. | |
2416 | if test "$cross_compiling" != yes; then | |
2417 | if { ac_try='./$ac_file' | |
2418 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2419 | (eval $ac_try) 2>&5 | |
2420 | ac_status=$? | |
2421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2422 | (exit $ac_status); }; }; then | |
2423 | cross_compiling=no | |
2424 | else | |
2425 | if test "$cross_compiling" = maybe; then | |
2426 | cross_compiling=yes | |
2427 | else | |
2428 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
2429 | If you meant to cross compile, use \`--host'. | |
2430 | See \`config.log' for more details." >&5 | |
2431 | echo "$as_me: error: cannot run C compiled programs. | |
2432 | If you meant to cross compile, use \`--host'. | |
2433 | See \`config.log' for more details." >&2;} | |
2434 | { (exit 1); exit 1; }; } | |
2435 | fi | |
2436 | fi | |
2437 | fi | |
2438 | echo "$as_me:$LINENO: result: yes" >&5 | |
2439 | echo "${ECHO_T}yes" >&6 | |
2440 | ||
2441 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
2442 | ac_clean_files=$ac_clean_files_save | |
2443 | # Check the compiler produces executables we can run. If not, either | |
2444 | # the compiler is broken, or we cross compile. | |
2445 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
2446 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
2447 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2448 | echo "${ECHO_T}$cross_compiling" >&6 | |
2449 | ||
2450 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
2451 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
2452 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2453 | (eval $ac_link) 2>&5 | |
2454 | ac_status=$? | |
2455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2456 | (exit $ac_status); }; then | |
2457 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2458 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2459 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2460 | # `rm'. | |
2461 | for ac_file in conftest.exe conftest conftest.*; do | |
2462 | test -f "$ac_file" || continue | |
2463 | case $ac_file in | |
2464 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
2465 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2466 | export ac_cv_exeext | |
2467 | break;; | |
2468 | * ) break;; | |
2469 | esac | |
2470 | done | |
2471 | else | |
2472 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
2473 | See \`config.log' for more details." >&5 | |
2474 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
2475 | See \`config.log' for more details." >&2;} | |
2476 | { (exit 1); exit 1; }; } | |
2477 | fi | |
2478 | ||
2479 | rm -f conftest$ac_cv_exeext | |
2480 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
2481 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
2482 | ||
2483 | rm -f conftest.$ac_ext | |
2484 | EXEEXT=$ac_cv_exeext | |
2485 | ac_exeext=$EXEEXT | |
2486 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
2487 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
2488 | if test "${ac_cv_objext+set}" = set; then | |
2489 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2490 | else | |
2491 | cat >conftest.$ac_ext <<_ACEOF | |
2492 | /* confdefs.h. */ | |
2493 | _ACEOF | |
2494 | cat confdefs.h >>conftest.$ac_ext | |
2495 | cat >>conftest.$ac_ext <<_ACEOF | |
2496 | /* end confdefs.h. */ | |
2497 | ||
2498 | int | |
2499 | main () | |
2500 | { | |
2501 | ||
2502 | ; | |
2503 | return 0; | |
2504 | } | |
2505 | _ACEOF | |
2506 | rm -f conftest.o conftest.obj | |
2507 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2508 | (eval $ac_compile) 2>&5 | |
2509 | ac_status=$? | |
2510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2511 | (exit $ac_status); }; then | |
2512 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
2513 | case $ac_file in | |
2514 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
2515 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
2516 | break;; | |
2517 | esac | |
2518 | done | |
2519 | else | |
2520 | echo "$as_me: failed program was:" >&5 | |
2521 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2522 | ||
2523 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
2524 | See \`config.log' for more details." >&5 | |
2525 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
2526 | See \`config.log' for more details." >&2;} | |
2527 | { (exit 1); exit 1; }; } | |
2528 | fi | |
2529 | ||
2530 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2531 | fi | |
2532 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
2533 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
2534 | OBJEXT=$ac_cv_objext | |
2535 | ac_objext=$OBJEXT | |
2536 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
2537 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
2538 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
2539 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2540 | else | |
2541 | cat >conftest.$ac_ext <<_ACEOF | |
2542 | /* confdefs.h. */ | |
2543 | _ACEOF | |
2544 | cat confdefs.h >>conftest.$ac_ext | |
2545 | cat >>conftest.$ac_ext <<_ACEOF | |
2546 | /* end confdefs.h. */ | |
2547 | ||
2548 | int | |
2549 | main () | |
2550 | { | |
2551 | #ifndef __GNUC__ | |
2552 | choke me | |
2553 | #endif | |
2554 | ||
2555 | ; | |
2556 | return 0; | |
2557 | } | |
2558 | _ACEOF | |
2559 | rm -f conftest.$ac_objext | |
2560 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2561 | (eval $ac_compile) 2>conftest.er1 | |
2562 | ac_status=$? | |
2563 | grep -v '^ *+' conftest.er1 >conftest.err | |
2564 | rm -f conftest.er1 | |
2565 | cat conftest.err >&5 | |
2566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2567 | (exit $ac_status); } && | |
a31bd8a4 | 2568 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4ee9c684 | 2569 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2570 | (eval $ac_try) 2>&5 | |
2571 | ac_status=$? | |
2572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2573 | (exit $ac_status); }; } && | |
2574 | { ac_try='test -s conftest.$ac_objext' | |
2575 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2576 | (eval $ac_try) 2>&5 | |
2577 | ac_status=$? | |
2578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2579 | (exit $ac_status); }; }; then | |
2580 | ac_compiler_gnu=yes | |
2581 | else | |
2582 | echo "$as_me: failed program was:" >&5 | |
2583 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2584 | ||
2585 | ac_compiler_gnu=no | |
2586 | fi | |
2587 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2588 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
2589 | ||
2590 | fi | |
2591 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
2592 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
2593 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
2594 | ac_test_CFLAGS=${CFLAGS+set} | |
2595 | ac_save_CFLAGS=$CFLAGS | |
2596 | CFLAGS="-g" | |
2597 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
2598 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
2599 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
2600 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2601 | else | |
2602 | cat >conftest.$ac_ext <<_ACEOF | |
2603 | /* confdefs.h. */ | |
2604 | _ACEOF | |
2605 | cat confdefs.h >>conftest.$ac_ext | |
2606 | cat >>conftest.$ac_ext <<_ACEOF | |
2607 | /* end confdefs.h. */ | |
2608 | ||
2609 | int | |
2610 | main () | |
2611 | { | |
2612 | ||
2613 | ; | |
2614 | return 0; | |
2615 | } | |
2616 | _ACEOF | |
2617 | rm -f conftest.$ac_objext | |
2618 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2619 | (eval $ac_compile) 2>conftest.er1 | |
2620 | ac_status=$? | |
2621 | grep -v '^ *+' conftest.er1 >conftest.err | |
2622 | rm -f conftest.er1 | |
2623 | cat conftest.err >&5 | |
2624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2625 | (exit $ac_status); } && | |
a31bd8a4 | 2626 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4ee9c684 | 2627 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2628 | (eval $ac_try) 2>&5 | |
2629 | ac_status=$? | |
2630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2631 | (exit $ac_status); }; } && | |
2632 | { ac_try='test -s conftest.$ac_objext' | |
2633 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2634 | (eval $ac_try) 2>&5 | |
2635 | ac_status=$? | |
2636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2637 | (exit $ac_status); }; }; then | |
2638 | ac_cv_prog_cc_g=yes | |
2639 | else | |
2640 | echo "$as_me: failed program was:" >&5 | |
2641 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2642 | ||
2643 | ac_cv_prog_cc_g=no | |
2644 | fi | |
2645 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2646 | fi | |
2647 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
2648 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
2649 | if test "$ac_test_CFLAGS" = set; then | |
2650 | CFLAGS=$ac_save_CFLAGS | |
2651 | elif test $ac_cv_prog_cc_g = yes; then | |
2652 | if test "$GCC" = yes; then | |
2653 | CFLAGS="-g -O2" | |
2654 | else | |
2655 | CFLAGS="-g" | |
2656 | fi | |
2657 | else | |
2658 | if test "$GCC" = yes; then | |
2659 | CFLAGS="-O2" | |
2660 | else | |
2661 | CFLAGS= | |
2662 | fi | |
2663 | fi | |
2664 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
2665 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
2666 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
2667 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2668 | else | |
2669 | ac_cv_prog_cc_stdc=no | |
2670 | ac_save_CC=$CC | |
2671 | cat >conftest.$ac_ext <<_ACEOF | |
2672 | /* confdefs.h. */ | |
2673 | _ACEOF | |
2674 | cat confdefs.h >>conftest.$ac_ext | |
2675 | cat >>conftest.$ac_ext <<_ACEOF | |
2676 | /* end confdefs.h. */ | |
2677 | #include <stdarg.h> | |
2678 | #include <stdio.h> | |
2679 | #include <sys/types.h> | |
2680 | #include <sys/stat.h> | |
2681 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2682 | struct buf { int x; }; | |
2683 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2684 | static char *e (p, i) | |
2685 | char **p; | |
2686 | int i; | |
2687 | { | |
2688 | return p[i]; | |
2689 | } | |
2690 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2691 | { | |
2692 | char *s; | |
2693 | va_list v; | |
2694 | va_start (v,p); | |
2695 | s = g (p, va_arg (v,int)); | |
2696 | va_end (v); | |
2697 | return s; | |
2698 | } | |
2699 | ||
2700 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2701 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2702 | These don't provoke an error unfortunately, instead are silently treated | |
2703 | as 'x'. The following induces an error, until -std1 is added to get | |
2704 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
2705 | array size at least. It's necessary to write '\x00'==0 to get something | |
2706 | that's true only with -std1. */ | |
2707 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
2708 | ||
2709 | int test (int i, double x); | |
2710 | struct s1 {int (*f) (int a);}; | |
2711 | struct s2 {int (*f) (double a);}; | |
2712 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2713 | int argc; | |
2714 | char **argv; | |
2715 | int | |
2716 | main () | |
2717 | { | |
2718 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2719 | ; | |
2720 | return 0; | |
2721 | } | |
2722 | _ACEOF | |
2723 | # Don't try gcc -ansi; that turns off useful extensions and | |
2724 | # breaks some systems' header files. | |
2725 | # AIX -qlanglvl=ansi | |
2726 | # Ultrix and OSF/1 -std1 | |
2727 | # HP-UX 10.20 and later -Ae | |
2728 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2729 | # SVR4 -Xc -D__EXTENSIONS__ | |
2730 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2731 | do | |
2732 | CC="$ac_save_CC $ac_arg" | |
2733 | rm -f conftest.$ac_objext | |
2734 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2735 | (eval $ac_compile) 2>conftest.er1 | |
2736 | ac_status=$? | |
2737 | grep -v '^ *+' conftest.er1 >conftest.err | |
2738 | rm -f conftest.er1 | |
2739 | cat conftest.err >&5 | |
2740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2741 | (exit $ac_status); } && | |
a31bd8a4 | 2742 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4ee9c684 | 2743 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2744 | (eval $ac_try) 2>&5 | |
2745 | ac_status=$? | |
2746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2747 | (exit $ac_status); }; } && | |
2748 | { ac_try='test -s conftest.$ac_objext' | |
2749 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2750 | (eval $ac_try) 2>&5 | |
2751 | ac_status=$? | |
2752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2753 | (exit $ac_status); }; }; then | |
2754 | ac_cv_prog_cc_stdc=$ac_arg | |
2755 | break | |
2756 | else | |
2757 | echo "$as_me: failed program was:" >&5 | |
2758 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2759 | ||
2760 | fi | |
2761 | rm -f conftest.err conftest.$ac_objext | |
2762 | done | |
2763 | rm -f conftest.$ac_ext conftest.$ac_objext | |
2764 | CC=$ac_save_CC | |
2765 | ||
2766 | fi | |
2767 | ||
2768 | case "x$ac_cv_prog_cc_stdc" in | |
2769 | x|xno) | |
2770 | echo "$as_me:$LINENO: result: none needed" >&5 | |
2771 | echo "${ECHO_T}none needed" >&6 ;; | |
2772 | *) | |
2773 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
2774 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
2775 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
2776 | esac | |
2777 | ||
2778 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
2779 | # in C++ we need to declare it. In case someone uses the same compiler | |
2780 | # for both compiling C and C++ we need to have the C++ compiler decide | |
2781 | # the declaration of exit, since it's the most demanding environment. | |
2782 | cat >conftest.$ac_ext <<_ACEOF | |
2783 | #ifndef __cplusplus | |
2784 | choke me | |
2785 | #endif | |
2786 | _ACEOF | |
2787 | rm -f conftest.$ac_objext | |
2788 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2789 | (eval $ac_compile) 2>conftest.er1 | |
2790 | ac_status=$? | |
2791 | grep -v '^ *+' conftest.er1 >conftest.err | |
2792 | rm -f conftest.er1 | |
2793 | cat conftest.err >&5 | |
2794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2795 | (exit $ac_status); } && | |
a31bd8a4 | 2796 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4ee9c684 | 2797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2798 | (eval $ac_try) 2>&5 | |
2799 | ac_status=$? | |
2800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2801 | (exit $ac_status); }; } && | |
2802 | { ac_try='test -s conftest.$ac_objext' | |
2803 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2804 | (eval $ac_try) 2>&5 | |
2805 | ac_status=$? | |
2806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2807 | (exit $ac_status); }; }; then | |
2808 | for ac_declaration in \ | |
2809 | '' \ | |
2810 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
2811 | 'extern "C" void std::exit (int); using std::exit;' \ | |
2812 | 'extern "C" void exit (int) throw ();' \ | |
2813 | 'extern "C" void exit (int);' \ | |
2814 | 'void exit (int);' | |
2815 | do | |
2816 | cat >conftest.$ac_ext <<_ACEOF | |
2817 | /* confdefs.h. */ | |
2818 | _ACEOF | |
2819 | cat confdefs.h >>conftest.$ac_ext | |
2820 | cat >>conftest.$ac_ext <<_ACEOF | |
2821 | /* end confdefs.h. */ | |
2822 | $ac_declaration | |
2823 | #include <stdlib.h> | |
2824 | int | |
2825 | main () | |
2826 | { | |
2827 | exit (42); | |
2828 | ; | |
2829 | return 0; | |
2830 | } | |
2831 | _ACEOF | |
2832 | rm -f conftest.$ac_objext | |
2833 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2834 | (eval $ac_compile) 2>conftest.er1 | |
2835 | ac_status=$? | |
2836 | grep -v '^ *+' conftest.er1 >conftest.err | |
2837 | rm -f conftest.er1 | |
2838 | cat conftest.err >&5 | |
2839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2840 | (exit $ac_status); } && | |
a31bd8a4 | 2841 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4ee9c684 | 2842 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2843 | (eval $ac_try) 2>&5 | |
2844 | ac_status=$? | |
2845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2846 | (exit $ac_status); }; } && | |
2847 | { ac_try='test -s conftest.$ac_objext' | |
2848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2849 | (eval $ac_try) 2>&5 | |
2850 | ac_status=$? | |
2851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2852 | (exit $ac_status); }; }; then | |
2853 | : | |
2854 | else | |
2855 | echo "$as_me: failed program was:" >&5 | |
2856 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2857 | ||
2858 | continue | |
2859 | fi | |
2860 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2861 | cat >conftest.$ac_ext <<_ACEOF | |
2862 | /* confdefs.h. */ | |
2863 | _ACEOF | |
2864 | cat confdefs.h >>conftest.$ac_ext | |
2865 | cat >>conftest.$ac_ext <<_ACEOF | |
2866 | /* end confdefs.h. */ | |
2867 | $ac_declaration | |
2868 | int | |
2869 | main () | |
2870 | { | |
2871 | exit (42); | |
2872 | ; | |
2873 | return 0; | |
2874 | } | |
2875 | _ACEOF | |
2876 | rm -f conftest.$ac_objext | |
2877 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2878 | (eval $ac_compile) 2>conftest.er1 | |
2879 | ac_status=$? | |
2880 | grep -v '^ *+' conftest.er1 >conftest.err | |
2881 | rm -f conftest.er1 | |
2882 | cat conftest.err >&5 | |
2883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2884 | (exit $ac_status); } && | |
a31bd8a4 | 2885 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4ee9c684 | 2886 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2887 | (eval $ac_try) 2>&5 | |
2888 | ac_status=$? | |
2889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2890 | (exit $ac_status); }; } && | |
2891 | { ac_try='test -s conftest.$ac_objext' | |
2892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2893 | (eval $ac_try) 2>&5 | |
2894 | ac_status=$? | |
2895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2896 | (exit $ac_status); }; }; then | |
2897 | break | |
2898 | else | |
2899 | echo "$as_me: failed program was:" >&5 | |
2900 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2901 | ||
2902 | fi | |
2903 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2904 | done | |
2905 | rm -f conftest* | |
2906 | if test -n "$ac_declaration"; then | |
2907 | echo '#ifdef __cplusplus' >>confdefs.h | |
2908 | echo $ac_declaration >>confdefs.h | |
2909 | echo '#endif' >>confdefs.h | |
2910 | fi | |
2911 | ||
2912 | else | |
2913 | echo "$as_me: failed program was:" >&5 | |
2914 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2915 | ||
2916 | fi | |
2917 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2918 | ac_ext=c | |
2919 | ac_cpp='$CPP $CPPFLAGS' | |
2920 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2921 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2922 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4ee9c684 | 2923 | |
4ee9c684 | 2924 | |
4ee9c684 | 2925 | |
4ee9c684 | 2926 | |
2927 | ||
90973b19 | 2928 | # Add -Wall if we are using GCC. |
2929 | if test "x$GCC" = "xyes"; then | |
2930 | CFLAGS="$CFLAGS -Wall" | |
4ee9c684 | 2931 | fi |
2932 | ||
90973b19 | 2933 | # Find other programs we need. |
2934 | if test -n "$ac_tool_prefix"; then | |
2935 | # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. | |
2936 | set dummy ${ac_tool_prefix}as; ac_word=$2 | |
2937 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2938 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2939 | if test "${ac_cv_prog_AS+set}" = set; then | |
4ee9c684 | 2940 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2941 | else | |
90973b19 | 2942 | if test -n "$AS"; then |
2943 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
2944 | else | |
2945 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2946 | for as_dir in $PATH | |
2947 | do | |
2948 | IFS=$as_save_IFS | |
2949 | test -z "$as_dir" && as_dir=. | |
2950 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2951 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2952 | ac_cv_prog_AS="${ac_tool_prefix}as" | |
2953 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2954 | break 2 | |
4ee9c684 | 2955 | fi |
90973b19 | 2956 | done |
2957 | done | |
4ee9c684 | 2958 | |
90973b19 | 2959 | fi |
2960 | fi | |
2961 | AS=$ac_cv_prog_AS | |
2962 | if test -n "$AS"; then | |
2963 | echo "$as_me:$LINENO: result: $AS" >&5 | |
2964 | echo "${ECHO_T}$AS" >&6 | |
4ee9c684 | 2965 | else |
90973b19 | 2966 | echo "$as_me:$LINENO: result: no" >&5 |
2967 | echo "${ECHO_T}no" >&6 | |
4ee9c684 | 2968 | fi |
2969 | ||
2970 | fi | |
90973b19 | 2971 | if test -z "$ac_cv_prog_AS"; then |
2972 | ac_ct_AS=$AS | |
2973 | # Extract the first word of "as", so it can be a program name with args. | |
2974 | set dummy as; ac_word=$2 | |
2975 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2976 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2977 | if test "${ac_cv_prog_ac_ct_AS+set}" = set; then | |
2978 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2979 | else | |
2980 | if test -n "$ac_ct_AS"; then | |
2981 | ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. | |
2982 | else | |
2983 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2984 | for as_dir in $PATH | |
2985 | do | |
2986 | IFS=$as_save_IFS | |
2987 | test -z "$as_dir" && as_dir=. | |
2988 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2989 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2990 | ac_cv_prog_ac_ct_AS="as" | |
2991 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2992 | break 2 | |
2993 | fi | |
2994 | done | |
2995 | done | |
4ee9c684 | 2996 | |
90973b19 | 2997 | fi |
2998 | fi | |
2999 | ac_ct_AS=$ac_cv_prog_ac_ct_AS | |
3000 | if test -n "$ac_ct_AS"; then | |
3001 | echo "$as_me:$LINENO: result: $ac_ct_AS" >&5 | |
3002 | echo "${ECHO_T}$ac_ct_AS" >&6 | |
4ee9c684 | 3003 | else |
90973b19 | 3004 | echo "$as_me:$LINENO: result: no" >&5 |
3005 | echo "${ECHO_T}no" >&6 | |
4ee9c684 | 3006 | fi |
3007 | ||
90973b19 | 3008 | AS=$ac_ct_AS |
3009 | else | |
3010 | AS="$ac_cv_prog_AS" | |
4ee9c684 | 3011 | fi |
3012 | ||
4ee9c684 | 3013 | if test -n "$ac_tool_prefix"; then |
90973b19 | 3014 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
3015 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
4ee9c684 | 3016 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3017 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
90973b19 | 3018 | if test "${ac_cv_prog_AR+set}" = set; then |
4ee9c684 | 3019 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3020 | else | |
90973b19 | 3021 | if test -n "$AR"; then |
3022 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
4ee9c684 | 3023 | else |
3024 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3025 | for as_dir in $PATH | |
3026 | do | |
3027 | IFS=$as_save_IFS | |
3028 | test -z "$as_dir" && as_dir=. | |
3029 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3030 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
90973b19 | 3031 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
4ee9c684 | 3032 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3033 | break 2 | |
3034 | fi | |
3035 | done | |
3036 | done | |
3037 | ||
3038 | fi | |
3039 | fi | |
90973b19 | 3040 | AR=$ac_cv_prog_AR |
3041 | if test -n "$AR"; then | |
3042 | echo "$as_me:$LINENO: result: $AR" >&5 | |
3043 | echo "${ECHO_T}$AR" >&6 | |
4ee9c684 | 3044 | else |
3045 | echo "$as_me:$LINENO: result: no" >&5 | |
3046 | echo "${ECHO_T}no" >&6 | |
3047 | fi | |
3048 | ||
4ee9c684 | 3049 | fi |
90973b19 | 3050 | if test -z "$ac_cv_prog_AR"; then |
3051 | ac_ct_AR=$AR | |
3052 | # Extract the first word of "ar", so it can be a program name with args. | |
3053 | set dummy ar; ac_word=$2 | |
4ee9c684 | 3054 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3055 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
90973b19 | 3056 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
4ee9c684 | 3057 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3058 | else | |
90973b19 | 3059 | if test -n "$ac_ct_AR"; then |
3060 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
4ee9c684 | 3061 | else |
3062 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3063 | for as_dir in $PATH | |
3064 | do | |
3065 | IFS=$as_save_IFS | |
3066 | test -z "$as_dir" && as_dir=. | |
3067 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3068 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
90973b19 | 3069 | ac_cv_prog_ac_ct_AR="ar" |
4ee9c684 | 3070 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3071 | break 2 | |
3072 | fi | |
3073 | done | |
3074 | done | |
3075 | ||
3076 | fi | |
3077 | fi | |
90973b19 | 3078 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
3079 | if test -n "$ac_ct_AR"; then | |
3080 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
3081 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
4ee9c684 | 3082 | else |
3083 | echo "$as_me:$LINENO: result: no" >&5 | |
3084 | echo "${ECHO_T}no" >&6 | |
3085 | fi | |
3086 | ||
90973b19 | 3087 | AR=$ac_ct_AR |
3088 | else | |
3089 | AR="$ac_cv_prog_AR" | |
4ee9c684 | 3090 | fi |
3091 | ||
90973b19 | 3092 | if test -n "$ac_tool_prefix"; then |
3093 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3094 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
3095 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3096 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3097 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
4ee9c684 | 3098 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3099 | else | |
90973b19 | 3100 | if test -n "$RANLIB"; then |
3101 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
4ee9c684 | 3102 | else |
90973b19 | 3103 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3104 | for as_dir in $PATH | |
3105 | do | |
3106 | IFS=$as_save_IFS | |
3107 | test -z "$as_dir" && as_dir=. | |
3108 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3109 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3110 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
3111 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3112 | break 2 | |
3113 | fi | |
3114 | done | |
3115 | done | |
4ee9c684 | 3116 | |
4ee9c684 | 3117 | fi |
90973b19 | 3118 | fi |
3119 | RANLIB=$ac_cv_prog_RANLIB | |
3120 | if test -n "$RANLIB"; then | |
3121 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
3122 | echo "${ECHO_T}$RANLIB" >&6 | |
3123 | else | |
3124 | echo "$as_me:$LINENO: result: no" >&5 | |
3125 | echo "${ECHO_T}no" >&6 | |
3126 | fi | |
4ee9c684 | 3127 | |
3128 | fi | |
90973b19 | 3129 | if test -z "$ac_cv_prog_RANLIB"; then |
3130 | ac_ct_RANLIB=$RANLIB | |
3131 | # Extract the first word of "ranlib", so it can be a program name with args. | |
3132 | set dummy ranlib; ac_word=$2 | |
3133 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3134 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3135 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
4ee9c684 | 3136 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3137 | else | |
90973b19 | 3138 | if test -n "$ac_ct_RANLIB"; then |
3139 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
4ee9c684 | 3140 | else |
90973b19 | 3141 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3142 | for as_dir in $PATH | |
3143 | do | |
3144 | IFS=$as_save_IFS | |
3145 | test -z "$as_dir" && as_dir=. | |
3146 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3147 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3148 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
3149 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3150 | break 2 | |
3151 | fi | |
3152 | done | |
3153 | done | |
4ee9c684 | 3154 | |
90973b19 | 3155 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error" |
4ee9c684 | 3156 | fi |
4ee9c684 | 3157 | fi |
90973b19 | 3158 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
3159 | if test -n "$ac_ct_RANLIB"; then | |
3160 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
3161 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
4ee9c684 | 3162 | else |
90973b19 | 3163 | echo "$as_me:$LINENO: result: no" >&5 |
3164 | echo "${ECHO_T}no" >&6 | |
4ee9c684 | 3165 | fi |
3166 | ||
90973b19 | 3167 | RANLIB=$ac_ct_RANLIB |
3168 | else | |
3169 | RANLIB="$ac_cv_prog_RANLIB" | |
4ee9c684 | 3170 | fi |
90973b19 | 3171 | |
3172 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
3173 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
3174 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` | |
3175 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
4ee9c684 | 3176 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3177 | else | |
90973b19 | 3178 | cat >conftest.make <<\_ACEOF |
3179 | all: | |
3180 | @echo 'ac_maketemp="$(MAKE)"' | |
4ee9c684 | 3181 | _ACEOF |
90973b19 | 3182 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
3183 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
3184 | if test -n "$ac_maketemp"; then | |
3185 | eval ac_cv_prog_make_${ac_make}_set=yes | |
4ee9c684 | 3186 | else |
90973b19 | 3187 | eval ac_cv_prog_make_${ac_make}_set=no |
4ee9c684 | 3188 | fi |
90973b19 | 3189 | rm -f conftest.make |
3190 | fi | |
3191 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
3192 | echo "$as_me:$LINENO: result: yes" >&5 | |
3193 | echo "${ECHO_T}yes" >&6 | |
3194 | SET_MAKE= | |
4ee9c684 | 3195 | else |
90973b19 | 3196 | echo "$as_me:$LINENO: result: no" >&5 |
3197 | echo "${ECHO_T}no" >&6 | |
3198 | SET_MAKE="MAKE=${MAKE-make}" | |
4ee9c684 | 3199 | fi |
4ee9c684 | 3200 | |
90973b19 | 3201 | # Find a good install program. We prefer a C program (faster), |
3202 | # so one script is as good as another. But avoid the broken or | |
3203 | # incompatible versions: | |
3204 | # SysV /etc/install, /usr/sbin/install | |
3205 | # SunOS /usr/etc/install | |
3206 | # IRIX /sbin/install | |
3207 | # AIX /bin/install | |
3208 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3209 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3210 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3211 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3212 | # OS/2's system install, which has a completely different semantic | |
3213 | # ./install, which can be erroneously created by make from ./install.sh. | |
3214 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
3215 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
3216 | if test -z "$INSTALL"; then | |
3217 | if test "${ac_cv_path_install+set}" = set; then | |
3218 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4ee9c684 | 3219 | else |
90973b19 | 3220 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3221 | for as_dir in $PATH | |
3222 | do | |
3223 | IFS=$as_save_IFS | |
3224 | test -z "$as_dir" && as_dir=. | |
3225 | # Account for people who put trailing slashes in PATH elements. | |
3226 | case $as_dir/ in | |
3227 | ./ | .// | /cC/* | \ | |
3228 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
3229 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
3230 | /usr/ucb/* ) ;; | |
3231 | *) | |
3232 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3233 | # Don't use installbsd from OSF since it installs stuff as root | |
3234 | # by default. | |
3235 | for ac_prog in ginstall scoinst install; do | |
3236 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3237 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
3238 | if test $ac_prog = install && | |
3239 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3240 | # AIX install. It has an incompatible calling convention. | |
3241 | : | |
3242 | elif test $ac_prog = install && | |
3243 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3244 | # program-specific install script used by HP pwplus--don't use. | |
3245 | : | |
3246 | else | |
3247 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3248 | break 3 | |
3249 | fi | |
3250 | fi | |
3251 | done | |
3252 | done | |
3253 | ;; | |
3254 | esac | |
4ee9c684 | 3255 | done |
4ee9c684 | 3256 | |
4ee9c684 | 3257 | |
3258 | fi | |
90973b19 | 3259 | if test "${ac_cv_path_install+set}" = set; then |
3260 | INSTALL=$ac_cv_path_install | |
4ee9c684 | 3261 | else |
90973b19 | 3262 | # As a last resort, use the slow shell script. We don't cache a |
3263 | # path for INSTALL within a source directory, because that will | |
3264 | # break other packages using the cache if that directory is | |
3265 | # removed, or if the path is relative. | |
3266 | INSTALL=$ac_install_sh | |
4ee9c684 | 3267 | fi |
4ee9c684 | 3268 | fi |
90973b19 | 3269 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
3270 | echo "${ECHO_T}$INSTALL" >&6 | |
4ee9c684 | 3271 | |
90973b19 | 3272 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
3273 | # It thinks the first close brace ends the variable substitution. | |
3274 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
4ee9c684 | 3275 | |
90973b19 | 3276 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
4ee9c684 | 3277 | |
90973b19 | 3278 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
4ee9c684 | 3279 | |
4ee9c684 | 3280 | |
90973b19 | 3281 | # Configure libtool |
3282 | #AC_MSG_NOTICE([====== Starting libtool configuration]) | |
4ee9c684 | 3283 | |
90973b19 | 3284 | # Check whether --enable-shared or --disable-shared was given. |
3285 | if test "${enable_shared+set}" = set; then | |
3286 | enableval="$enable_shared" | |
3287 | p=${PACKAGE-default} | |
3288 | case $enableval in | |
3289 | yes) enable_shared=yes ;; | |
3290 | no) enable_shared=no ;; | |
3291 | *) | |
3292 | enable_shared=no | |
3293 | # Look at the argument we got. We use all the common list separators. | |
3294 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
3295 | for pkg in $enableval; do | |
3296 | if test "X$pkg" = "X$p"; then | |
3297 | enable_shared=yes | |
4ee9c684 | 3298 | fi |
90973b19 | 3299 | done |
3300 | IFS="$ac_save_ifs" | |
3301 | ;; | |
3302 | esac | |
4ee9c684 | 3303 | else |
90973b19 | 3304 | enable_shared=yes |
3305 | fi; | |
3306 | # Check whether --enable-static or --disable-static was given. | |
3307 | if test "${enable_static+set}" = set; then | |
3308 | enableval="$enable_static" | |
3309 | p=${PACKAGE-default} | |
3310 | case $enableval in | |
3311 | yes) enable_static=yes ;; | |
3312 | no) enable_static=no ;; | |
3313 | *) | |
3314 | enable_static=no | |
3315 | # Look at the argument we got. We use all the common list separators. | |
3316 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
3317 | for pkg in $enableval; do | |
3318 | if test "X$pkg" = "X$p"; then | |
3319 | enable_static=yes | |
3320 | fi | |
3321 | done | |
3322 | IFS="$ac_save_ifs" | |
3323 | ;; | |
3324 | esac | |
3325 | else | |
3326 | enable_static=yes | |
3327 | fi; | |
3328 | # Check whether --enable-fast-install or --disable-fast-install was given. | |
3329 | if test "${enable_fast_install+set}" = set; then | |
3330 | enableval="$enable_fast_install" | |
3331 | p=${PACKAGE-default} | |
3332 | case $enableval in | |
3333 | yes) enable_fast_install=yes ;; | |
3334 | no) enable_fast_install=no ;; | |
3335 | *) | |
3336 | enable_fast_install=no | |
3337 | # Look at the argument we got. We use all the common list separators. | |
3338 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
3339 | for pkg in $enableval; do | |
3340 | if test "X$pkg" = "X$p"; then | |
3341 | enable_fast_install=yes | |
3342 | fi | |
3343 | done | |
3344 | IFS="$ac_save_ifs" | |
3345 | ;; | |
3346 | esac | |
3347 | else | |
3348 | enable_fast_install=yes | |
3349 | fi; | |
4ee9c684 | 3350 | |
90973b19 | 3351 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
3352 | if test "${with_gnu_ld+set}" = set; then | |
3353 | withval="$with_gnu_ld" | |
3354 | test "$withval" = no || with_gnu_ld=yes | |
3355 | else | |
3356 | with_gnu_ld=no | |
3357 | fi; | |
3358 | ac_prog=ld | |
3359 | if test "$GCC" = yes; then | |
3360 | # Check if gcc -print-prog-name=ld gives a path. | |
3361 | echo "$as_me:$LINENO: checking for ld used by GCC" >&5 | |
3362 | echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 | |
3363 | case $host in | |
3364 | *-*-mingw*) | |
3365 | # gcc leaves a trailing carriage return which upsets mingw | |
3366 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
3367 | *) | |
3368 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
3369 | esac | |
3370 | case $ac_prog in | |
3371 | # Accept absolute paths. | |
3372 | [\\/]* | [A-Za-z]:[\\/]*) | |
3373 | re_direlt='/[^/][^/]*/\.\./' | |
3374 | # Canonicalize the path of ld | |
3375 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
3376 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
3377 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
3378 | done | |
3379 | test -z "$LD" && LD="$ac_prog" | |
3380 | ;; | |
3381 | "") | |
3382 | # If it fails, then pretend we aren't using GCC. | |
3383 | ac_prog=ld | |
3384 | ;; | |
3385 | *) | |
3386 | # If it is relative, then search for the first ld in PATH. | |
3387 | with_gnu_ld=unknown | |
3388 | ;; | |
3389 | esac | |
3390 | elif test "$with_gnu_ld" = yes; then | |
3391 | echo "$as_me:$LINENO: checking for GNU ld" >&5 | |
3392 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | |
3393 | else | |
3394 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | |
3395 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | |
3396 | fi | |
3397 | if test "${lt_cv_path_LD+set}" = set; then | |
3398 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3399 | else | |
3400 | if test -z "$LD"; then | |
3401 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | |
3402 | for ac_dir in $PATH; do | |
3403 | test -z "$ac_dir" && ac_dir=. | |
3404 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
3405 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
3406 | # Check to see if the program is GNU ld. I'd rather use --version, | |
3407 | # but apparently some GNU ld's only accept -v. | |
3408 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
3409 | if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then | |
3410 | test "$with_gnu_ld" != no && break | |
3411 | else | |
3412 | test "$with_gnu_ld" != yes && break | |
3413 | fi | |
3414 | fi | |
3415 | done | |
3416 | IFS="$ac_save_ifs" | |
3417 | else | |
3418 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
3419 | fi | |
3420 | fi | |
3421 | ||
3422 | LD="$lt_cv_path_LD" | |
3423 | if test -n "$LD"; then | |
3424 | echo "$as_me:$LINENO: result: $LD" >&5 | |
3425 | echo "${ECHO_T}$LD" >&6 | |
3426 | else | |
3427 | echo "$as_me:$LINENO: result: no" >&5 | |
3428 | echo "${ECHO_T}no" >&6 | |
3429 | fi | |
3430 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | |
3431 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
3432 | { (exit 1); exit 1; }; } | |
3433 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | |
3434 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | |
3435 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | |
3436 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3437 | else | |
3438 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
3439 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then | |
3440 | lt_cv_prog_gnu_ld=yes | |
3441 | else | |
3442 | lt_cv_prog_gnu_ld=no | |
3443 | fi | |
3444 | fi | |
3445 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 | |
3446 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 | |
3447 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
3448 | ||
3449 | ||
3450 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 | |
3451 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 | |
3452 | if test "${lt_cv_ld_reload_flag+set}" = set; then | |
3453 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3454 | else | |
3455 | lt_cv_ld_reload_flag='-r' | |
3456 | fi | |
3457 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 | |
3458 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 | |
3459 | reload_flag=$lt_cv_ld_reload_flag | |
3460 | test -n "$reload_flag" && reload_flag=" $reload_flag" | |
3461 | ||
3462 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 | |
3463 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 | |
3464 | if test "${lt_cv_path_NM+set}" = set; then | |
3465 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3466 | else | |
3467 | if test -n "$NM"; then | |
3468 | # Let the user override the test. | |
3469 | lt_cv_path_NM="$NM" | |
3470 | else | |
3471 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | |
3472 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do | |
3473 | test -z "$ac_dir" && ac_dir=. | |
3474 | tmp_nm=$ac_dir/${ac_tool_prefix}nm | |
3475 | if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then | |
3476 | # Check to see if the nm accepts a BSD-compat flag. | |
3477 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
3478 | # nm: unknown option "B" ignored | |
3479 | # Tru64's nm complains that /dev/null is an invalid object file | |
3480 | if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then | |
3481 | lt_cv_path_NM="$tmp_nm -B" | |
3482 | break | |
3483 | elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then | |
3484 | lt_cv_path_NM="$tmp_nm -p" | |
3485 | break | |
3486 | else | |
3487 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
3488 | continue # so that we can try to find one that supports BSD flags | |
3489 | fi | |
3490 | fi | |
3491 | done | |
3492 | IFS="$ac_save_ifs" | |
3493 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm | |
3494 | fi | |
3495 | fi | |
3496 | ||
3497 | NM="$lt_cv_path_NM" | |
3498 | echo "$as_me:$LINENO: result: $NM" >&5 | |
3499 | echo "${ECHO_T}$NM" >&6 | |
3500 | ||
3501 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
3502 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
3503 | LN_S=$as_ln_s | |
3504 | if test "$LN_S" = "ln -s"; then | |
3505 | echo "$as_me:$LINENO: result: yes" >&5 | |
3506 | echo "${ECHO_T}yes" >&6 | |
3507 | else | |
3508 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
3509 | echo "${ECHO_T}no, using $LN_S" >&6 | |
3510 | fi | |
3511 | ||
3512 | echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5 | |
3513 | echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6 | |
3514 | if test "${lt_cv_deplibs_check_method+set}" = set; then | |
3515 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3516 | else | |
3517 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
3518 | lt_cv_file_magic_test_file= | |
3519 | lt_cv_deplibs_check_method='unknown' | |
3520 | # Need to set the preceding variable on all platforms that support | |
3521 | # interlibrary dependencies. | |
3522 | # 'none' -- dependencies not supported. | |
3523 | # `unknown' -- same as none, but documents that we really don't know. | |
3524 | # 'pass_all' -- all dependencies passed with no checks. | |
3525 | # 'test_compile' -- check by making test program. | |
3526 | # 'file_magic [regex]' -- check by looking for files in library path | |
3527 | # which responds to the $file_magic_cmd with a given egrep regex. | |
3528 | # If you have `file' or equivalent on your system and you're not sure | |
3529 | # whether `pass_all' will *always* work, you probably want this one. | |
3530 | ||
3531 | case $host_os in | |
3532 | aix*) | |
3533 | lt_cv_deplibs_check_method=pass_all | |
3534 | ;; | |
3535 | ||
3536 | beos*) | |
3537 | lt_cv_deplibs_check_method=pass_all | |
3538 | ;; | |
3539 | ||
3540 | bsdi4*) | |
3541 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
3542 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
3543 | lt_cv_file_magic_test_file=/shlib/libc.so | |
3544 | ;; | |
3545 | ||
3546 | cygwin* | mingw* |pw32*) | |
3547 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
3548 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
3549 | ;; | |
3550 | ||
3551 | darwin* | rhapsody*) | |
3552 | # this will be overwritten by pass_all, but leave it in just in case | |
3553 | lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' | |
3554 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
3555 | case "$host_os" in | |
3556 | rhapsody* | darwin1.012) | |
3557 | lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System' | |
3558 | ;; | |
3559 | *) # Darwin 1.3 on | |
3560 | lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' | |
3561 | ;; | |
3562 | esac | |
3563 | lt_cv_deplibs_check_method=pass_all | |
3564 | ;; | |
3565 | ||
3566 | freebsd* | kfreebsd*-gnu) | |
3567 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | |
3568 | case $host_cpu in | |
3569 | i*86 ) | |
3570 | # Not sure whether the presence of OpenBSD here was a mistake. | |
3571 | # Let's accept both of them until this is cleared up. | |
3572 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' | |
3573 | lt_cv_file_magic_cmd=/usr/bin/file | |
3574 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
3575 | ;; | |
3576 | esac | |
3577 | else | |
3578 | lt_cv_deplibs_check_method=pass_all | |
3579 | fi | |
3580 | ;; | |
3581 | ||
3582 | gnu*) | |
3583 | lt_cv_deplibs_check_method=pass_all | |
3584 | ;; | |
3585 | ||
3586 | hpux10.20*|hpux11*) | |
3587 | case $host_cpu in | |
3588 | hppa*) | |
3589 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | |
3590 | lt_cv_file_magic_cmd=/usr/bin/file | |
3591 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
3592 | ;; | |
3593 | ia64*) | |
3594 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
3595 | lt_cv_file_magic_cmd=/usr/bin/file | |
3596 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
3597 | ;; | |
3598 | esac | |
3599 | ;; | |
3600 | ||
3601 | irix5* | irix6*) | |
3602 | case $host_os in | |
3603 | irix5*) | |
3604 | # this will be overridden with pass_all, but let us keep it just in case | |
3605 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" | |
3606 | ;; | |
3607 | *) | |
3608 | case $LD in | |
3609 | *-32|*"-32 ") libmagic=32-bit;; | |
3610 | *-n32|*"-n32 ") libmagic=N32;; | |
3611 | *-64|*"-64 ") libmagic=64-bit;; | |
3612 | *) libmagic=never-match;; | |
3613 | esac | |
3614 | # this will be overridden with pass_all, but let us keep it just in case | |
3615 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" | |
3616 | ;; | |
3617 | esac | |
3618 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` | |
3619 | lt_cv_deplibs_check_method=pass_all | |
3620 | ;; | |
3621 | ||
3622 | # This must be Linux ELF. | |
3623 | linux-gnu*) | |
3624 | case $host_cpu in | |
3625 | alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* | sh* ) | |
3626 | lt_cv_deplibs_check_method=pass_all ;; | |
3627 | *) | |
3628 | # glibc up to 2.1.1 does not perform some relocations on ARM | |
3629 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; | |
3630 | esac | |
3631 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` | |
3632 | ;; | |
3633 | ||
3634 | netbsd* | knetbsd*-gnu) | |
3635 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | |
3636 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' | |
3637 | else | |
3638 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$' | |
3639 | fi | |
3640 | ;; | |
3641 | ||
3642 | newsos6) | |
3643 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
3644 | lt_cv_file_magic_cmd=/usr/bin/file | |
3645 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
3646 | ;; | |
3647 | ||
3648 | osf3* | osf4* | osf5*) | |
3649 | # this will be overridden with pass_all, but let us keep it just in case | |
3650 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' | |
3651 | lt_cv_file_magic_test_file=/shlib/libc.so | |
3652 | lt_cv_deplibs_check_method=pass_all | |
3653 | ;; | |
3654 | ||
3655 | sco3.2v5*) | |
3656 | lt_cv_deplibs_check_method=pass_all | |
3657 | ;; | |
3658 | ||
3659 | solaris*) | |
3660 | lt_cv_deplibs_check_method=pass_all | |
3661 | lt_cv_file_magic_test_file=/lib/libc.so | |
3662 | ;; | |
3663 | ||
3664 | sysv5uw[78]* | sysv4*uw2*) | |
3665 | lt_cv_deplibs_check_method=pass_all | |
3666 | ;; | |
3667 | ||
3668 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
3669 | case $host_vendor in | |
3670 | ncr) | |
3671 | lt_cv_deplibs_check_method=pass_all | |
3672 | ;; | |
3673 | motorola) | |
3674 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' | |
3675 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
3676 | ;; | |
3677 | esac | |
3678 | ;; | |
3679 | esac | |
3680 | ||
3681 | fi | |
3682 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 | |
3683 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 | |
3684 | file_magic_cmd=$lt_cv_file_magic_cmd | |
3685 | deplibs_check_method=$lt_cv_deplibs_check_method | |
3686 | ||
3687 | ||
3688 | ||
3689 | ||
3690 | ||
3691 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! | |
3692 | ||
3693 | # Only perform the check for file, if the check method requires it | |
3694 | case $deplibs_check_method in | |
3695 | file_magic*) | |
3696 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
3697 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 | |
3698 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 | |
3699 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
3700 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3701 | else | |
3702 | case $MAGIC_CMD in | |
3703 | /*) | |
3704 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
3705 | ;; | |
3706 | ?:/*) | |
3707 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. | |
3708 | ;; | |
3709 | *) | |
3710 | ac_save_MAGIC_CMD="$MAGIC_CMD" | |
3711 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
3712 | ac_dummy="/usr/bin:$PATH" | |
3713 | for ac_dir in $ac_dummy; do | |
3714 | test -z "$ac_dir" && ac_dir=. | |
3715 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
3716 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
3717 | if test -n "$file_magic_test_file"; then | |
3718 | case $deplibs_check_method in | |
3719 | "file_magic "*) | |
3720 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
3721 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
3722 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
3723 | egrep "$file_magic_regex" > /dev/null; then | |
3724 | : | |
3725 | else | |
3726 | cat <<EOF 1>&2 | |
3727 | ||
3728 | *** Warning: the command libtool uses to detect shared libraries, | |
3729 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
3730 | *** The result is that libtool may fail to recognize shared libraries | |
3731 | *** as such. This will affect the creation of libtool libraries that | |
3732 | *** depend on shared libraries, but programs linked with such libtool | |
3733 | *** libraries will work regardless of this problem. Nevertheless, you | |
3734 | *** may want to report the problem to your system manager and/or to | |
3735 | *** bug-libtool@gnu.org | |
3736 | ||
3737 | EOF | |
3738 | fi ;; | |
3739 | esac | |
3740 | fi | |
3741 | break | |
3742 | fi | |
3743 | done | |
3744 | IFS="$ac_save_ifs" | |
3745 | MAGIC_CMD="$ac_save_MAGIC_CMD" | |
3746 | ;; | |
3747 | esac | |
3748 | fi | |
3749 | ||
3750 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
3751 | if test -n "$MAGIC_CMD"; then | |
3752 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
3753 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
3754 | else | |
3755 | echo "$as_me:$LINENO: result: no" >&5 | |
3756 | echo "${ECHO_T}no" >&6 | |
3757 | fi | |
3758 | ||
3759 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
3760 | if test -n "$ac_tool_prefix"; then | |
3761 | echo "$as_me:$LINENO: checking for file" >&5 | |
3762 | echo $ECHO_N "checking for file... $ECHO_C" >&6 | |
3763 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
3764 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3765 | else | |
3766 | case $MAGIC_CMD in | |
3767 | /*) | |
3768 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
3769 | ;; | |
3770 | ?:/*) | |
3771 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. | |
3772 | ;; | |
3773 | *) | |
3774 | ac_save_MAGIC_CMD="$MAGIC_CMD" | |
3775 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
3776 | ac_dummy="/usr/bin:$PATH" | |
3777 | for ac_dir in $ac_dummy; do | |
3778 | test -z "$ac_dir" && ac_dir=. | |
3779 | if test -f $ac_dir/file; then | |
3780 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
3781 | if test -n "$file_magic_test_file"; then | |
3782 | case $deplibs_check_method in | |
3783 | "file_magic "*) | |
3784 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
3785 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
3786 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
3787 | egrep "$file_magic_regex" > /dev/null; then | |
3788 | : | |
3789 | else | |
3790 | cat <<EOF 1>&2 | |
3791 | ||
3792 | *** Warning: the command libtool uses to detect shared libraries, | |
3793 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
3794 | *** The result is that libtool may fail to recognize shared libraries | |
3795 | *** as such. This will affect the creation of libtool libraries that | |
3796 | *** depend on shared libraries, but programs linked with such libtool | |
3797 | *** libraries will work regardless of this problem. Nevertheless, you | |
3798 | *** may want to report the problem to your system manager and/or to | |
3799 | *** bug-libtool@gnu.org | |
3800 | ||
3801 | EOF | |
3802 | fi ;; | |
3803 | esac | |
3804 | fi | |
3805 | break | |
3806 | fi | |
3807 | done | |
3808 | IFS="$ac_save_ifs" | |
3809 | MAGIC_CMD="$ac_save_MAGIC_CMD" | |
3810 | ;; | |
3811 | esac | |
3812 | fi | |
4ee9c684 | 3813 | |
90973b19 | 3814 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
3815 | if test -n "$MAGIC_CMD"; then | |
3816 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
3817 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
4ee9c684 | 3818 | else |
90973b19 | 3819 | echo "$as_me:$LINENO: result: no" >&5 |
3820 | echo "${ECHO_T}no" >&6 | |
3821 | fi | |
4ee9c684 | 3822 | |
90973b19 | 3823 | else |
3824 | MAGIC_CMD=: | |
3825 | fi | |
4ee9c684 | 3826 | fi |
4ee9c684 | 3827 | |
90973b19 | 3828 | fi |
3829 | ;; | |
3830 | esac | |
4ee9c684 | 3831 | |
90973b19 | 3832 | if test -n "$ac_tool_prefix"; then |
3833 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3834 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
3835 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3836 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3837 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
3838 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4ee9c684 | 3839 | else |
90973b19 | 3840 | if test -n "$RANLIB"; then |
3841 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3842 | else | |
3843 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3844 | for as_dir in $PATH | |
3845 | do | |
3846 | IFS=$as_save_IFS | |
3847 | test -z "$as_dir" && as_dir=. | |
3848 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3849 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3850 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
3851 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3852 | break 2 | |
3853 | fi | |
3854 | done | |
3855 | done | |
4ee9c684 | 3856 | |
90973b19 | 3857 | fi |
3858 | fi | |
3859 | RANLIB=$ac_cv_prog_RANLIB | |
3860 | if test -n "$RANLIB"; then | |
3861 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
3862 | echo "${ECHO_T}$RANLIB" >&6 | |
3863 | else | |
3864 | echo "$as_me:$LINENO: result: no" >&5 | |
3865 | echo "${ECHO_T}no" >&6 | |
4ee9c684 | 3866 | fi |
3867 | ||
90973b19 | 3868 | fi |
3869 | if test -z "$ac_cv_prog_RANLIB"; then | |
3870 | ac_ct_RANLIB=$RANLIB | |
3871 | # Extract the first word of "ranlib", so it can be a program name with args. | |
3872 | set dummy ranlib; ac_word=$2 | |
3873 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3874 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3875 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
3876 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3877 | else | |
3878 | if test -n "$ac_ct_RANLIB"; then | |
3879 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
3880 | else | |
3881 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3882 | for as_dir in $PATH | |
3883 | do | |
3884 | IFS=$as_save_IFS | |
3885 | test -z "$as_dir" && as_dir=. | |
3886 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3887 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3888 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
3889 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3890 | break 2 | |
3891 | fi | |
3892 | done | |
3893 | done | |
4ee9c684 | 3894 | |
90973b19 | 3895 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
3896 | fi | |
3897 | fi | |
3898 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
3899 | if test -n "$ac_ct_RANLIB"; then | |
3900 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
3901 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
4ee9c684 | 3902 | else |
90973b19 | 3903 | echo "$as_me:$LINENO: result: no" >&5 |
3904 | echo "${ECHO_T}no" >&6 | |
4ee9c684 | 3905 | fi |
4ee9c684 | 3906 | |
90973b19 | 3907 | RANLIB=$ac_ct_RANLIB |
3908 | else | |
3909 | RANLIB="$ac_cv_prog_RANLIB" | |
4ee9c684 | 3910 | fi |
3911 | ||
90973b19 | 3912 | if test -n "$ac_tool_prefix"; then |
3913 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
3914 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
3915 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3916 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3917 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
3918 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4ee9c684 | 3919 | else |
90973b19 | 3920 | if test -n "$STRIP"; then |
3921 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
3922 | else | |
3923 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3924 | for as_dir in $PATH | |
3925 | do | |
3926 | IFS=$as_save_IFS | |
3927 | test -z "$as_dir" && as_dir=. | |
3928 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3929 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3930 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
3931 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3932 | break 2 | |
3933 | fi | |
3934 | done | |
3935 | done | |
4ee9c684 | 3936 | |
90973b19 | 3937 | fi |
3938 | fi | |
3939 | STRIP=$ac_cv_prog_STRIP | |
3940 | if test -n "$STRIP"; then | |
3941 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
3942 | echo "${ECHO_T}$STRIP" >&6 | |
4ee9c684 | 3943 | else |
90973b19 | 3944 | echo "$as_me:$LINENO: result: no" >&5 |
3945 | echo "${ECHO_T}no" >&6 | |
3946 | fi | |
4ee9c684 | 3947 | |
4ee9c684 | 3948 | fi |
90973b19 | 3949 | if test -z "$ac_cv_prog_STRIP"; then |
3950 | ac_ct_STRIP=$STRIP | |
3951 | # Extract the first word of "strip", so it can be a program name with args. | |
3952 | set dummy strip; ac_word=$2 | |
3953 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3954 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3955 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
3956 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3957 | else | |
3958 | if test -n "$ac_ct_STRIP"; then | |
3959 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
3960 | else | |
3961 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3962 | for as_dir in $PATH | |
3963 | do | |
3964 | IFS=$as_save_IFS | |
3965 | test -z "$as_dir" && as_dir=. | |
3966 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3967 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3968 | ac_cv_prog_ac_ct_STRIP="strip" | |
3969 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3970 | break 2 | |
3971 | fi | |
3972 | done | |
3973 | done | |
3974 | ||
3975 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
4ee9c684 | 3976 | fi |
3977 | fi | |
90973b19 | 3978 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
3979 | if test -n "$ac_ct_STRIP"; then | |
3980 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
3981 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
3982 | else | |
3983 | echo "$as_me:$LINENO: result: no" >&5 | |
3984 | echo "${ECHO_T}no" >&6 | |
4ee9c684 | 3985 | fi |
4ee9c684 | 3986 | |
90973b19 | 3987 | STRIP=$ac_ct_STRIP |
3988 | else | |
3989 | STRIP="$ac_cv_prog_STRIP" | |
4ee9c684 | 3990 | fi |
3991 | ||
4ee9c684 | 3992 | |
90973b19 | 3993 | # Check for any special flags to pass to ltconfig. |
3994 | libtool_flags="--cache-file=$cache_file" | |
3995 | test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" | |
3996 | test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" | |
3997 | test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install" | |
3998 | test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc" | |
3999 | test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" | |
4ee9c684 | 4000 | |
4001 | ||
90973b19 | 4002 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
4003 | if test "${enable_libtool_lock+set}" = set; then | |
4004 | enableval="$enable_libtool_lock" | |
4ee9c684 | 4005 | |
90973b19 | 4006 | fi; |
4007 | test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" | |
4008 | test x"$silent" = xyes && libtool_flags="$libtool_flags --silent" | |
4ee9c684 | 4009 | |
4010 | ||
90973b19 | 4011 | # Check whether --with-pic or --without-pic was given. |
4012 | if test "${with_pic+set}" = set; then | |
4013 | withval="$with_pic" | |
4014 | pic_mode="$withval" | |
4ee9c684 | 4015 | else |
90973b19 | 4016 | pic_mode=default |
4017 | fi; | |
4018 | test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic" | |
4019 | test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic" | |
4ee9c684 | 4020 | |
90973b19 | 4021 | # Some flags need to be propagated to the compiler or linker for good |
4022 | # libtool support. | |
4023 | case $host in | |
4024 | *-*-irix6*) | |
4025 | # Find out which ABI we are using. | |
a31bd8a4 | 4026 | echo '#line 4026 "configure"' > conftest.$ac_ext |
90973b19 | 4027 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4028 | (eval $ac_compile) 2>&5 | |
4ee9c684 | 4029 | ac_status=$? |
4030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
90973b19 | 4031 | (exit $ac_status); }; then |
4032 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
4033 | case `/usr/bin/file conftest.$ac_objext` in | |
4034 | *32-bit*) | |
4035 | LD="${LD-ld} -melf32bsmip" | |
4036 | ;; | |
4037 | *N32*) | |
4038 | LD="${LD-ld} -melf32bmipn32" | |
4039 | ;; | |
4040 | *64-bit*) | |
4041 | LD="${LD-ld} -melf64bmip" | |
4042 | ;; | |
4043 | esac | |
4044 | else | |
4045 | case `/usr/bin/file conftest.$ac_objext` in | |
4046 | *32-bit*) | |
4047 | LD="${LD-ld} -32" | |
4048 | ;; | |
4049 | *N32*) | |
4050 | LD="${LD-ld} -n32" | |
4051 | ;; | |
4052 | *64-bit*) | |
4053 | LD="${LD-ld} -64" | |
4054 | ;; | |
4055 | esac | |
4056 | fi | |
4057 | fi | |
4058 | rm -rf conftest* | |
4059 | ;; | |
4ee9c684 | 4060 | |
90973b19 | 4061 | ia64-*-hpux*) |
4062 | # Find out which ABI we are using. | |
4063 | echo 'int i;' > conftest.$ac_ext | |
4064 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4065 | (eval $ac_compile) 2>&5 | |
4ee9c684 | 4066 | ac_status=$? |
4067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
90973b19 | 4068 | (exit $ac_status); }; then |
4069 | case "`/usr/bin/file conftest.o`" in | |
4070 | *ELF-32*) | |
4071 | HPUX_IA64_MODE="32" | |
4072 | ;; | |
4073 | *ELF-64*) | |
4074 | HPUX_IA64_MODE="64" | |
4075 | ;; | |
4076 | esac | |
4077 | fi | |
4078 | rm -rf conftest* | |
4079 | ;; | |
4ee9c684 | 4080 | |
90973b19 | 4081 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
4082 | # Find out which ABI we are using. | |
4083 | echo 'int i;' > conftest.$ac_ext | |
4084 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4085 | (eval $ac_compile) 2>&5 | |
4ee9c684 | 4086 | ac_status=$? |
4ee9c684 | 4087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
90973b19 | 4088 | (exit $ac_status); }; then |
4089 | case "`/usr/bin/file conftest.o`" in | |
4090 | *32-bit*) | |
4091 | case $host in | |
4092 | x86_64-*linux*) | |
4093 | LD="${LD-ld} -m elf_i386" | |
4094 | ;; | |
4095 | ppc64-*linux*|powerpc64-*linux*) | |
4096 | LD="${LD-ld} -m elf32ppclinux" | |
4097 | ;; | |
4098 | s390x-*linux*) | |
4099 | LD="${LD-ld} -m elf_s390" | |
4100 | ;; | |
4101 | sparc64-*linux*) | |
4102 | LD="${LD-ld} -m elf32_sparc" | |
4103 | ;; | |
4104 | esac | |
4105 | ;; | |
4106 | *64-bit*) | |
4107 | case $host in | |
4108 | x86_64-*linux*) | |
4109 | LD="${LD-ld} -m elf_x86_64" | |
4110 | ;; | |
4111 | ppc*-*linux*|powerpc*-*linux*) | |
4112 | LD="${LD-ld} -m elf64ppc" | |
4113 | ;; | |
4114 | s390*-*linux*) | |
4115 | LD="${LD-ld} -m elf64_s390" | |
4116 | ;; | |
4117 | sparc*-*linux*) | |
4118 | LD="${LD-ld} -m elf64_sparc" | |
4119 | ;; | |
4120 | esac | |
4121 | ;; | |
4122 | esac | |
4ee9c684 | 4123 | fi |
90973b19 | 4124 | rm -rf conftest* |
4125 | ;; | |
4ee9c684 | 4126 | |
90973b19 | 4127 | *-*-sco3.2v5*) |
4128 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
4129 | SAVE_CFLAGS="$CFLAGS" | |
4130 | CFLAGS="$CFLAGS -belf" | |
4131 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 | |
4132 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 | |
4133 | if test "${lt_cv_cc_needs_belf+set}" = set; then | |
4ee9c684 | 4134 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4135 | else | |
4ee9c684 | 4136 | |
4ee9c684 | 4137 | |
90973b19 | 4138 | ac_ext=c |
4139 | ac_cpp='$CPP $CPPFLAGS' | |
4140 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4141 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4142 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4ee9c684 | 4143 | |
90973b19 | 4144 | cat >conftest.$ac_ext <<_ACEOF |
4ee9c684 | 4145 | /* confdefs.h. */ |
4146 | _ACEOF | |
4147 | cat confdefs.h >>conftest.$ac_ext | |
4148 | cat >>conftest.$ac_ext <<_ACEOF | |
4149 | /* end confdefs.h. */ | |
4ee9c684 | 4150 | |
4151 | int | |
4152 | main () | |
4153 | { | |
90973b19 | 4154 | |
4ee9c684 | 4155 | ; |
4156 | return 0; | |
4157 | } | |
4158 | _ACEOF | |
4159 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4160 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4161 | (eval $ac_link) 2>conftest.er1 | |
4162 | ac_status=$? | |
4163 | grep -v '^ *+' conftest.er1 >conftest.err | |
4164 | rm -f conftest.er1 | |
4165 | cat conftest.err >&5 | |
4166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4167 | (exit $ac_status); } && | |
a31bd8a4 | 4168 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4ee9c684 | 4169 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4170 | (eval $ac_try) 2>&5 | |
4171 | ac_status=$? | |
4172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4173 | (exit $ac_status); }; } && | |
4174 | { ac_try='test -s conftest$ac_exeext' | |
4175 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4176 | (eval $ac_try) 2>&5 | |
4177 | ac_status=$? | |
4178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4179 | (exit $ac_status); }; }; then | |
90973b19 | 4180 | lt_cv_cc_needs_belf=yes |
4ee9c684 | 4181 | else |
4182 | echo "$as_me: failed program was:" >&5 | |
4183 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4184 | ||
90973b19 | 4185 | lt_cv_cc_needs_belf=no |
4ee9c684 | 4186 | fi |
4187 | rm -f conftest.err conftest.$ac_objext \ | |
4188 | conftest$ac_exeext conftest.$ac_ext | |
90973b19 | 4189 | ac_ext=c |
4190 | ac_cpp='$CPP $CPPFLAGS' | |
4191 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4192 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4193 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4194 | ||
4ee9c684 | 4195 | fi |
90973b19 | 4196 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
4197 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 | |
4198 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
4199 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
4200 | CFLAGS="$SAVE_CFLAGS" | |
4201 | fi | |
4202 | ;; | |
4203 | ||
4204 | ||
4205 | esac | |
4206 | ||
4207 | ||
4208 | # Save cache, so that ltconfig can load it | |
4209 | cat >confcache <<\_ACEOF | |
4210 | # This file is a shell script that caches the results of configure | |
4211 | # tests run on this system so they can be shared between configure | |
4212 | # scripts and configure runs, see configure's option --config-cache. | |
4213 | # It is not useful on other systems. If it contains results you don't | |
4214 | # want to keep, you may remove or edit it. | |
4215 | # | |
4216 | # config.status only pays attention to the cache file if you give it | |
4217 | # the --recheck option to rerun configure. | |
4218 | # | |
4219 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
4220 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
4221 | # following values. | |
4222 | ||
4ee9c684 | 4223 | _ACEOF |
4224 | ||
90973b19 | 4225 | # The following way of writing the cache mishandles newlines in values, |
4226 | # but we know of no workaround that is simple, portable, and efficient. | |
4227 | # So, don't put newlines in cache variables' values. | |
4228 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
4229 | # and sets the high bit in the cache file unless we assign to the vars. | |
4230 | { | |
4231 | (set) 2>&1 | | |
4232 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
4233 | *ac_space=\ *) | |
4234 | # `set' does not quote correctly, so add quotes (double-quote | |
4235 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
4236 | sed -n \ | |
4237 | "s/'/'\\\\''/g; | |
4238 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
4239 | ;; | |
4240 | *) | |
4241 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
4242 | sed -n \ | |
4243 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
4244 | ;; | |
4245 | esac; | |
4246 | } | | |
4247 | sed ' | |
4248 | t clear | |
4249 | : clear | |
4250 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
4251 | t end | |
4252 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
4253 | : end' >>confcache | |
4254 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
4255 | if test -w $cache_file; then | |
4256 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
4257 | cat confcache >$cache_file | |
4258 | else | |
4259 | echo "not updating unwritable cache $cache_file" | |
4260 | fi | |
4ee9c684 | 4261 | fi |
90973b19 | 4262 | rm -f confcache |
4ee9c684 | 4263 | |
90973b19 | 4264 | # Actually configure libtool. ac_aux_dir is where install-sh is found. |
4265 | AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ | |
4266 | MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ | |
4267 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \ | |
4268 | AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \ | |
4269 | objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \ | |
4270 | deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \ | |
4271 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ | |
4272 | $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \ | |
4273 | || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5 | |
4274 | echo "$as_me: error: libtool configure failed" >&2;} | |
4275 | { (exit 1); exit 1; }; } | |
4276 | ||
4277 | # Reload cache, that may have been modified by ltconfig | |
4278 | if test -r "$cache_file"; then | |
4279 | # Some versions of bash will fail to source /dev/null (special | |
4280 | # files actually), so we avoid doing that. | |
4281 | if test -f "$cache_file"; then | |
4282 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
4283 | echo "$as_me: loading cache $cache_file" >&6;} | |
4284 | case $cache_file in | |
4285 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
4286 | *) . ./$cache_file;; | |
4287 | esac | |
4288 | fi | |
4289 | else | |
4290 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
4291 | echo "$as_me: creating cache $cache_file" >&6;} | |
4292 | >$cache_file | |
4293 | fi | |
4ee9c684 | 4294 | |
4ee9c684 | 4295 | |
90973b19 | 4296 | # This can be used to rebuild libtool when needed |
4297 | LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh" | |
4ee9c684 | 4298 | |
90973b19 | 4299 | # Always use our own libtool. |
4300 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
4ee9c684 | 4301 | |
90973b19 | 4302 | # Redirect the config.log output again, so that the ltconfig log is not |
4303 | # clobbered by the next message. | |
4304 | exec 5>>./config.log | |
4ee9c684 | 4305 | |
4ee9c684 | 4306 | |
4ee9c684 | 4307 | |
4ee9c684 | 4308 | |
4ee9c684 | 4309 | |
4ee9c684 | 4310 | |
4ee9c684 | 4311 | |
4ee9c684 | 4312 | |
90973b19 | 4313 | #AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10 |
4314 | ||
4315 | # We need gfortran to compile parts of the library | |
4316 | # We can't use AC_PROG_F77 because it expects a fully working gfortran. | |
4317 | #AC_PROG_F77(gfortran) | |
4318 | F77="$GFORTRAN" | |
4319 | ac_ext=f | |
4320 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' | |
4321 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4322 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu | |
4323 | if test -n "$ac_tool_prefix"; then | |
4324 | for ac_prog in gfortran | |
4325 | do | |
4326 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4327 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4328 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4329 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4330 | if test "${ac_cv_prog_F77+set}" = set; then | |
4331 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4ee9c684 | 4332 | else |
90973b19 | 4333 | if test -n "$F77"; then |
4334 | ac_cv_prog_F77="$F77" # Let the user override the test. | |
4335 | else | |
4336 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4337 | for as_dir in $PATH | |
4338 | do | |
4339 | IFS=$as_save_IFS | |
4340 | test -z "$as_dir" && as_dir=. | |
4341 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4342 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4343 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" | |
4344 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4345 | break 2 | |
4346 | fi | |
4347 | done | |
4348 | done | |
4ee9c684 | 4349 | |
4ee9c684 | 4350 | fi |
4ee9c684 | 4351 | fi |
90973b19 | 4352 | F77=$ac_cv_prog_F77 |
4353 | if test -n "$F77"; then | |
4354 | echo "$as_me:$LINENO: result: $F77" >&5 | |
4355 | echo "${ECHO_T}$F77" >&6 | |
4356 | else | |
4357 | echo "$as_me:$LINENO: result: no" >&5 | |
4358 | echo "${ECHO_T}no" >&6 | |
4ee9c684 | 4359 | fi |
4ee9c684 | 4360 | |
90973b19 | 4361 | test -n "$F77" && break |
4362 | done | |
4363 | fi | |
4364 | if test -z "$F77"; then | |
4365 | ac_ct_F77=$F77 | |
4366 | for ac_prog in gfortran | |
4367 | do | |
4368 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4369 | set dummy $ac_prog; ac_word=$2 | |
4370 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4371 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4372 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then | |
4373 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4374 | else | |
4375 | if test -n "$ac_ct_F77"; then | |
4376 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. | |
4377 | else | |
4378 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4379 | for as_dir in $PATH | |
4380 | do | |
4381 | IFS=$as_save_IFS | |
4382 | test -z "$as_dir" && as_dir=. | |
4383 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4384 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4385 | ac_cv_prog_ac_ct_F77="$ac_prog" | |
4386 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4387 | break 2 | |
4388 | fi | |
4389 | done | |
4390 | done | |
4ee9c684 | 4391 | |
4392 | fi | |
90973b19 | 4393 | fi |
4394 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 | |
4395 | if test -n "$ac_ct_F77"; then | |
4396 | echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 | |
4397 | echo "${ECHO_T}$ac_ct_F77" >&6 | |
4398 | else | |
4399 | echo "$as_me:$LINENO: result: no" >&5 | |
4400 | echo "${ECHO_T}no" >&6 | |
4401 | fi | |
4402 | ||
4403 | test -n "$ac_ct_F77" && break | |
4404 | done | |
4405 | ||
4406 | F77=$ac_ct_F77 | |
4407 | fi | |
4408 | ||
4409 | ||
4410 | # Provide some information about the compiler. | |
a31bd8a4 | 4411 | echo "$as_me:4411:" \ |
90973b19 | 4412 | "checking for Fortran 77 compiler version" >&5 |
4413 | ac_compiler=`set X $ac_compile; echo $2` | |
4414 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
4415 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
4416 | ac_status=$? | |
4417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4418 | (exit $ac_status); } | |
4419 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
4420 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
4421 | ac_status=$? | |
4422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4423 | (exit $ac_status); } | |
4424 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
4425 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
4426 | ac_status=$? | |
4427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4428 | (exit $ac_status); } | |
4429 | rm -f a.out | |
4ee9c684 | 4430 | |
90973b19 | 4431 | # If we don't use `.F' as extension, the preprocessor is not run on the |
4432 | # input file. (Note that this only needs to work for GNU compilers.) | |
4433 | ac_save_ext=$ac_ext | |
4434 | ac_ext=F | |
4435 | echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 | |
4436 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 | |
4437 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then | |
4ee9c684 | 4438 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4439 | else | |
4440 | cat >conftest.$ac_ext <<_ACEOF | |
90973b19 | 4441 | program main |
4442 | #ifndef __GNUC__ | |
4443 | choke me | |
4444 | #endif | |
4445 | ||
4446 | end | |
4ee9c684 | 4447 | _ACEOF |
4448 | rm -f conftest.$ac_objext | |
4449 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4450 | (eval $ac_compile) 2>conftest.er1 | |
4451 | ac_status=$? | |
4452 | grep -v '^ *+' conftest.er1 >conftest.err | |
4453 | rm -f conftest.er1 | |
4454 | cat conftest.err >&5 | |
4455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4456 | (exit $ac_status); } && | |
a31bd8a4 | 4457 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
4ee9c684 | 4458 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4459 | (eval $ac_try) 2>&5 | |
4460 | ac_status=$? | |
4461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4462 | (exit $ac_status); }; } && | |
4463 | { ac_try='test -s conftest.$ac_objext' | |
4464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4465 | (eval $ac_try) 2>&5 | |
4466 | ac_status=$? | |
4467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4468 | (exit $ac_status); }; }; then | |
90973b19 | 4469 | ac_compiler_gnu=yes |
4ee9c684 | 4470 | else |
4471 | echo "$as_me: failed program was:" >&5 | |
4472 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4473 | ||
90973b19 | 4474 | ac_compiler_gnu=no |
4ee9c684 | 4475 | fi |
4476 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
90973b19 | 4477 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
4ee9c684 | 4478 | |
4479 | fi | |
90973b19 | 4480 | echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
4481 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 | |
4482 | ac_ext=$ac_save_ext | |
4483 | ac_test_FFLAGS=${FFLAGS+set} | |
4484 | ac_save_FFLAGS=$FFLAGS | |
4485 | FFLAGS= | |
4486 | echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 | |
4487 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 | |
4488 | if test "${ac_cv_prog_f77_g+set}" = set; then | |
4ee9c684 | 4489 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4490 | else | |
90973b19 | 4491 | FFLAGS=-g |
4492 | cat >conftest.$ac_ext <<_ACEOF | |
4493 | program main | |
4ee9c684 | 4494 | |
90973b19 | 4495 | end |
4ee9c684 | 4496 | _ACEOF |
4497 | rm -f conftest.$ac_objext | |
4498 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4499 | (eval $ac_compile) 2>conftest.er1 | |
4500 | ac_status=$? | |
4501 | grep -v '^ *+' conftest.er1 >conftest.err | |
4502 | rm -f conftest.er1 | |
4503 | cat conftest.err >&5 | |
4504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4505 | (exit $ac_status); } && | |
a31bd8a4 | 4506 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
4ee9c684 | 4507 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4508 | (eval $ac_try) 2>&5 | |
4509 | ac_status=$? | |
4510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4511 | (exit $ac_status); }; } && | |
4512 | { ac_try='test -s conftest.$ac_objext' | |
4513 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4514 | (eval $ac_try) 2>&5 | |
4515 | ac_status=$? | |
4516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4517 | (exit $ac_status); }; }; then | |
90973b19 | 4518 | ac_cv_prog_f77_g=yes |
4ee9c684 | 4519 | else |
4520 | echo "$as_me: failed program was:" >&5 | |
4521 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4522 | ||
90973b19 | 4523 | ac_cv_prog_f77_g=no |
4ee9c684 | 4524 | fi |
4525 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4526 | ||
4ee9c684 | 4527 | fi |
90973b19 | 4528 | echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
4529 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 | |
4530 | if test "$ac_test_FFLAGS" = set; then | |
4531 | FFLAGS=$ac_save_FFLAGS | |
4532 | elif test $ac_cv_prog_f77_g = yes; then | |
4533 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then | |
4534 | FFLAGS="-g -O2" | |
4535 | else | |
4536 | FFLAGS="-g" | |
4537 | fi | |
4538 | else | |
4539 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then | |
4540 | FFLAGS="-O2" | |
4541 | else | |
4542 | FFLAGS= | |
4543 | fi | |
4ee9c684 | 4544 | fi |
4545 | ||
90973b19 | 4546 | G77=`test $ac_compiler_gnu = yes && echo yes` |
4547 | ac_ext=c | |
4548 | ac_cpp='$CPP $CPPFLAGS' | |
4549 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4550 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4551 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4ee9c684 | 4552 | |
90973b19 | 4553 | FFLAGS="$FFLAGS -Wall -fno-repack-arrays -fno-underscoring" |
4ee9c684 | 4554 | |
90973b19 | 4555 | ac_ext=c |
4556 | ac_cpp='$CPP $CPPFLAGS' | |
4557 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4558 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4559 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4560 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
4561 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
4562 | # On Suns, sometimes $CPP names a directory. | |
4563 | if test -n "$CPP" && test -d "$CPP"; then | |
4564 | CPP= | |
4ee9c684 | 4565 | fi |
90973b19 | 4566 | if test -z "$CPP"; then |
4567 | if test "${ac_cv_prog_CPP+set}" = set; then | |
4568 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4ee9c684 | 4569 | else |
90973b19 | 4570 | # Double quotes because CPP needs to be expanded |
4571 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
4572 | do | |
4573 | ac_preproc_ok=false | |
4574 | for ac_c_preproc_warn_flag in '' yes | |
4575 | do | |
4576 | # Use a header file that comes with gcc, so configuring glibc | |
4577 | # with a fresh cross-compiler works. | |
4578 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4579 | # <limits.h> exists even on freestanding compilers. | |
4580 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4581 | # not just through cpp. "Syntax error" is here to catch this case. | |
4ee9c684 | 4582 | cat >conftest.$ac_ext <<_ACEOF |
4583 | /* confdefs.h. */ | |
4584 | _ACEOF | |
4585 | cat confdefs.h >>conftest.$ac_ext | |
4586 | cat >>conftest.$ac_ext <<_ACEOF | |
4587 | /* end confdefs.h. */ | |
90973b19 | 4588 | #ifdef __STDC__ |
4589 | # include <limits.h> | |
4ee9c684 | 4590 | #else |
90973b19 | 4591 | # include <assert.h> |
4ee9c684 | 4592 | #endif |
90973b19 | 4593 | Syntax error |
4ee9c684 | 4594 | _ACEOF |
90973b19 | 4595 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
4596 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4ee9c684 | 4597 | ac_status=$? |
90973b19 | 4598 | grep -v '^ *+' conftest.er1 >conftest.err |
4599 | rm -f conftest.er1 | |
4600 | cat conftest.err >&5 | |
4ee9c684 | 4601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
90973b19 | 4602 | (exit $ac_status); } >/dev/null; then |
4603 | if test -s conftest.err; then | |
4604 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4605 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4606 | else | |
4607 | ac_cpp_err= | |
4608 | fi | |
4609 | else | |
4610 | ac_cpp_err=yes | |
4611 | fi | |
4612 | if test -z "$ac_cpp_err"; then | |
4ee9c684 | 4613 | : |
4614 | else | |
90973b19 | 4615 | echo "$as_me: failed program was:" >&5 |
4ee9c684 | 4616 | sed 's/^/| /' conftest.$ac_ext >&5 |
4617 | ||
90973b19 | 4618 | # Broken: fails on valid input. |
4619 | continue | |
4ee9c684 | 4620 | fi |
90973b19 | 4621 | rm -f conftest.err conftest.$ac_ext |
4ee9c684 | 4622 | |
90973b19 | 4623 | # OK, works on sane cases. Now check whether non-existent headers |
4624 | # can be detected and how. | |
4625 | cat >conftest.$ac_ext <<_ACEOF | |
4ee9c684 | 4626 | /* confdefs.h. */ |
4627 | _ACEOF | |
4628 | cat confdefs.h >>conftest.$ac_ext | |
4629 | cat >>conftest.$ac_ext <<_ACEOF | |
4630 | /* end confdefs.h. */ | |
90973b19 | 4631 | #include <ac_nonexistent.h> |
4ee9c684 | 4632 | _ACEOF |
90973b19 | 4633 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
4634 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4ee9c684 | 4635 | ac_status=$? |
4636 | grep -v '^ *+' conftest.er1 >conftest.err | |
4637 | rm -f conftest.er1 | |
4638 | cat conftest.err >&5 | |
4639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
90973b19 | 4640 | (exit $ac_status); } >/dev/null; then |
4641 | if test -s conftest.err; then | |
4642 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4643 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4644 | else | |
4645 | ac_cpp_err= | |
4646 | fi | |
4647 | else | |
4648 | ac_cpp_err=yes | |
4649 | fi | |
4650 | if test -z "$ac_cpp_err"; then | |
4651 | # Broken: success on invalid input. | |
4652 | continue | |
4ee9c684 | 4653 | else |
4654 | echo "$as_me: failed program was:" >&5 | |
4655 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4656 | ||
90973b19 | 4657 | # Passes both tests. |
4658 | ac_preproc_ok=: | |
4659 | break | |
4ee9c684 | 4660 | fi |
90973b19 | 4661 | rm -f conftest.err conftest.$ac_ext |
4ee9c684 | 4662 | |
90973b19 | 4663 | done |
4664 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4665 | rm -f conftest.err conftest.$ac_ext | |
4666 | if $ac_preproc_ok; then | |
4667 | break | |
4668 | fi | |
4669 | ||
4670 | done | |
4671 | ac_cv_prog_CPP=$CPP | |
4672 | ||
4673 | fi | |
4674 | CPP=$ac_cv_prog_CPP | |
4675 | else | |
4676 | ac_cv_prog_CPP=$CPP | |
4677 | fi | |
4678 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
4679 | echo "${ECHO_T}$CPP" >&6 | |
4680 | ac_preproc_ok=false | |
4681 | for ac_c_preproc_warn_flag in '' yes | |
4682 | do | |
4683 | # Use a header file that comes with gcc, so configuring glibc | |
4684 | # with a fresh cross-compiler works. | |
4685 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4686 | # <limits.h> exists even on freestanding compilers. | |
4687 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4688 | # not just through cpp. "Syntax error" is here to catch this case. | |
4689 | cat >conftest.$ac_ext <<_ACEOF | |
4ee9c684 | 4690 | /* confdefs.h. */ |
4691 | _ACEOF | |
4692 | cat confdefs.h >>conftest.$ac_ext | |
4693 | cat >>conftest.$ac_ext <<_ACEOF | |
4694 | /* end confdefs.h. */ | |
90973b19 | 4695 | #ifdef __STDC__ |
4696 | # include <limits.h> | |
4697 | #else | |
4698 | # include <assert.h> | |
4699 | #endif | |
4700 | Syntax error | |
4ee9c684 | 4701 | _ACEOF |
4702 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4703 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4704 | ac_status=$? | |
4705 | grep -v '^ *+' conftest.er1 >conftest.err | |
4706 | rm -f conftest.er1 | |
4707 | cat conftest.err >&5 | |
4708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4709 | (exit $ac_status); } >/dev/null; then | |
4710 | if test -s conftest.err; then | |
4711 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4712 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4713 | else | |
4714 | ac_cpp_err= | |
4715 | fi | |
4716 | else | |
4717 | ac_cpp_err=yes | |
4718 | fi | |
4719 | if test -z "$ac_cpp_err"; then | |
90973b19 | 4720 | : |
4ee9c684 | 4721 | else |
4722 | echo "$as_me: failed program was:" >&5 | |
4723 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4724 | ||
90973b19 | 4725 | # Broken: fails on valid input. |
4726 | continue | |
4ee9c684 | 4727 | fi |
4728 | rm -f conftest.err conftest.$ac_ext | |
4ee9c684 | 4729 | |
90973b19 | 4730 | # OK, works on sane cases. Now check whether non-existent headers |
4731 | # can be detected and how. | |
4732 | cat >conftest.$ac_ext <<_ACEOF | |
4733 | /* confdefs.h. */ | |
4734 | _ACEOF | |
4735 | cat confdefs.h >>conftest.$ac_ext | |
4736 | cat >>conftest.$ac_ext <<_ACEOF | |
4737 | /* end confdefs.h. */ | |
4738 | #include <ac_nonexistent.h> | |
4ee9c684 | 4739 | _ACEOF |
90973b19 | 4740 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
4741 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4742 | ac_status=$? | |
4743 | grep -v '^ *+' conftest.er1 >conftest.err | |
4744 | rm -f conftest.er1 | |
4745 | cat conftest.err >&5 | |
4746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4747 | (exit $ac_status); } >/dev/null; then | |
4748 | if test -s conftest.err; then | |
4749 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4750 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4751 | else | |
4752 | ac_cpp_err= | |
4753 | fi | |
4754 | else | |
4755 | ac_cpp_err=yes | |
4756 | fi | |
4757 | if test -z "$ac_cpp_err"; then | |
4758 | # Broken: success on invalid input. | |
4759 | continue | |
4760 | else | |
4761 | echo "$as_me: failed program was:" >&5 | |
4762 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4ee9c684 | 4763 | |
90973b19 | 4764 | # Passes both tests. |
4765 | ac_preproc_ok=: | |
4766 | break | |
4ee9c684 | 4767 | fi |
90973b19 | 4768 | rm -f conftest.err conftest.$ac_ext |
4ee9c684 | 4769 | |
4770 | done | |
90973b19 | 4771 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
4772 | rm -f conftest.err conftest.$ac_ext | |
4773 | if $ac_preproc_ok; then | |
4774 | : | |
4775 | else | |
4776 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
4777 | See \`config.log' for more details." >&5 | |
4778 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
4779 | See \`config.log' for more details." >&2;} | |
4780 | { (exit 1); exit 1; }; } | |
4781 | fi | |
4ee9c684 | 4782 | |
90973b19 | 4783 | ac_ext=c |
4784 | ac_cpp='$CPP $CPPFLAGS' | |
4785 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4786 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4787 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4ee9c684 | 4788 | |
4789 | ||
90973b19 | 4790 | echo "$as_me:$LINENO: checking for egrep" >&5 |
4791 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
4792 | if test "${ac_cv_prog_egrep+set}" = set; then | |
4793 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4794 | else | |
4795 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
4796 | then ac_cv_prog_egrep='grep -E' | |
4797 | else ac_cv_prog_egrep='egrep' | |
4798 | fi | |
4799 | fi | |
4800 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
4801 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
4802 | EGREP=$ac_cv_prog_egrep | |
4ee9c684 | 4803 | |
4804 | ||
90973b19 | 4805 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
4806 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
4807 | if test "${ac_cv_header_stdc+set}" = set; then | |
4ee9c684 | 4808 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4ee9c684 | 4809 | else |
90973b19 | 4810 | cat >conftest.$ac_ext <<_ACEOF |
4ee9c684 | 4811 | /* confdefs.h. */ |
4812 | _ACEOF | |
4813 | cat confdefs.h >>conftest.$ac_ext | |
4814 | cat >>conftest.$ac_ext <<_ACEOF | |
4815 | /* end confdefs.h. */ | |
90973b19 | 4816 | #include <stdlib.h> |
4817 | #include <stdarg.h> | |
4818 | #include <string.h> | |
4819 | #include <float.h> | |
4820 | ||
4821 | int | |
4822 | main () | |
4823 | { | |
4824 | ||
4825 | ; | |
4826 | return 0; | |
4827 | } | |
4ee9c684 | 4828 | _ACEOF |
4829 | rm -f conftest.$ac_objext | |
4830 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4831 | (eval $ac_compile) 2>conftest.er1 | |
4832 | ac_status=$? | |
4833 | grep -v '^ *+' conftest.er1 >conftest.err | |
4834 | rm -f conftest.er1 | |
4835 | cat conftest.err >&5 | |
4836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4837 | (exit $ac_status); } && | |
a31bd8a4 | 4838 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4ee9c684 | 4839 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4840 | (eval $ac_try) 2>&5 | |
4841 | ac_status=$? | |
4842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4843 | (exit $ac_status); }; } && | |
4844 | { ac_try='test -s conftest.$ac_objext' | |
4845 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4846 | (eval $ac_try) 2>&5 | |
4847 | ac_status=$? | |
4848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4849 | (exit $ac_status); }; }; then | |
90973b19 | 4850 | ac_cv_header_stdc=yes |
4ee9c684 | 4851 | else |
4852 | echo "$as_me: failed program was:" >&5 | |
4853 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4854 | ||
90973b19 | 4855 | ac_cv_header_stdc=no |
4ee9c684 | 4856 | fi |
4857 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4ee9c684 | 4858 | |
90973b19 | 4859 | if test $ac_cv_header_stdc = yes; then |
4860 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4861 | cat >conftest.$ac_ext <<_ACEOF | |
4ee9c684 | 4862 | /* confdefs.h. */ |
4863 | _ACEOF | |
4864 | cat confdefs.h >>conftest.$ac_ext | |
4865 | cat >>conftest.$ac_ext <<_ACEOF | |
4866 | /* end confdefs.h. */ | |
90973b19 | 4867 | #include <string.h> |
4868 | ||
4ee9c684 | 4869 | _ACEOF |
90973b19 | 4870 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4871 | $EGREP "memchr" >/dev/null 2>&1; then | |
4872 | : | |
4ee9c684 | 4873 | else |
90973b19 | 4874 | ac_cv_header_stdc=no |
4ee9c684 | 4875 | fi |
90973b19 | 4876 | rm -f conftest* |
4877 | ||
4878 | fi | |
4879 | ||
4880 | if test $ac_cv_header_stdc = yes; then | |
4881 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4882 | cat >conftest.$ac_ext <<_ACEOF | |
4883 | /* confdefs.h. */ | |
4884 | _ACEOF | |
4885 | cat confdefs.h >>conftest.$ac_ext | |
4886 | cat >>conftest.$ac_ext <<_ACEOF | |
4887 | /* end confdefs.h. */ | |
4888 | #include <stdlib.h> | |
4889 | ||
4890 | _ACEOF | |
4891 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4892 | $EGREP "free" >/dev/null 2>&1; then | |
4893 | : | |
4ee9c684 | 4894 | else |
90973b19 | 4895 | ac_cv_header_stdc=no |
4896 | fi | |
4897 | rm -f conftest* | |
4898 | ||
4899 | fi | |
4900 | ||
4901 | if test $ac_cv_header_stdc = yes; then | |
4902 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4903 | if test "$cross_compiling" = yes; then | |
4904 | : | |
4905 | else | |
4906 | cat >conftest.$ac_ext <<_ACEOF | |
4907 | /* confdefs.h. */ | |
4908 | _ACEOF | |
4909 | cat confdefs.h >>conftest.$ac_ext | |
4910 | cat >>conftest.$ac_ext <<_ACEOF | |
4911 | /* end confdefs.h. */ | |
4912 | #include <ctype.h> | |
4913 | #if ((' ' & 0x0FF) == 0x020) | |
4914 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4915 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4916 | #else | |
4917 | # define ISLOWER(c) \ | |
4918 | (('a' <= (c) && (c) <= 'i') \ | |
4919 | || ('j' <= (c) && (c) <= 'r') \ | |
4920 | || ('s' <= (c) && (c) <= 'z')) | |
4921 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4922 | #endif | |
4923 | ||
4924 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4925 | int | |
4926 | main () | |
4927 | { | |
4928 | int i; | |
4929 | for (i = 0; i < 256; i++) | |
4930 | if (XOR (islower (i), ISLOWER (i)) | |
4931 | || toupper (i) != TOUPPER (i)) | |
4932 | exit(2); | |
4933 | exit (0); | |
4934 | } | |
4935 | _ACEOF | |
4936 | rm -f conftest$ac_exeext | |
4937 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4938 | (eval $ac_link) 2>&5 | |
4939 | ac_status=$? | |
4940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4941 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
4942 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4943 | (eval $ac_try) 2>&5 | |
4944 | ac_status=$? | |
4945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4946 | (exit $ac_status); }; }; then | |
4947 | : | |
4948 | else | |
4949 | echo "$as_me: program exited with status $ac_status" >&5 | |
4950 | echo "$as_me: failed program was:" >&5 | |
4ee9c684 | 4951 | sed 's/^/| /' conftest.$ac_ext >&5 |
4952 | ||
90973b19 | 4953 | ( exit $ac_status ) |
4954 | ac_cv_header_stdc=no | |
4ee9c684 | 4955 | fi |
90973b19 | 4956 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
4957 | fi | |
4958 | fi | |
4959 | fi | |
4960 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
4961 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
4962 | if test $ac_cv_header_stdc = yes; then | |
4ee9c684 | 4963 | |
90973b19 | 4964 | cat >>confdefs.h <<\_ACEOF |
4965 | #define STDC_HEADERS 1 | |
4966 | _ACEOF | |
4967 | ||
4968 | fi | |
4969 | ||
4970 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
4971 | ||
4972 | ||
4973 | ||
4974 | ||
4975 | ||
4976 | ||
4977 | ||
4978 | ||
4979 | ||
4980 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4981 | inttypes.h stdint.h unistd.h | |
4982 | do | |
4983 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4ee9c684 | 4984 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4985 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4986 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4987 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4988 | else | |
90973b19 | 4989 | cat >conftest.$ac_ext <<_ACEOF |
4990 | /* confdefs.h. */ | |
4991 | _ACEOF | |
4992 | cat confdefs.h >>conftest.$ac_ext | |
4993 | cat >>conftest.$ac_ext <<_ACEOF | |
4994 | /* end confdefs.h. */ | |
4995 | $ac_includes_default | |
4996 | ||
4997 | #include <$ac_header> | |
4998 | _ACEOF | |
4999 | rm -f conftest.$ac_objext | |
5000 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5001 | (eval $ac_compile) 2>conftest.er1 | |
5002 | ac_status=$? | |
5003 | grep -v '^ *+' conftest.er1 >conftest.err | |
5004 | rm -f conftest.er1 | |
5005 | cat conftest.err >&5 | |
5006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5007 | (exit $ac_status); } && | |
a31bd8a4 | 5008 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
90973b19 | 5009 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5010 | (eval $ac_try) 2>&5 | |
5011 | ac_status=$? | |
5012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5013 | (exit $ac_status); }; } && | |
5014 | { ac_try='test -s conftest.$ac_objext' | |
5015 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5016 | (eval $ac_try) 2>&5 | |
5017 | ac_status=$? | |
5018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5019 | (exit $ac_status); }; }; then | |
5020 | eval "$as_ac_Header=yes" | |
5021 | else | |
5022 | echo "$as_me: failed program was:" >&5 | |
5023 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5024 | ||
5025 | eval "$as_ac_Header=no" | |
5026 | fi | |
5027 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4ee9c684 | 5028 | fi |
5029 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5030 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4ee9c684 | 5031 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
5032 | cat >>confdefs.h <<_ACEOF | |
5033 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5034 | _ACEOF | |
5035 | ||
5036 | fi | |
5037 | ||
5038 | done | |
5039 | ||
90973b19 | 5040 | |
5041 | ||
5042 | ||
5043 | for ac_header in stdlib.h unistd.h | |
5044 | do | |
5045 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5046 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5047 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5048 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5049 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4ee9c684 | 5050 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5051 | fi | |
90973b19 | 5052 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
5053 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4ee9c684 | 5054 | else |
5055 | # Is the header compilable? | |
90973b19 | 5056 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
5057 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
4ee9c684 | 5058 | cat >conftest.$ac_ext <<_ACEOF |
5059 | /* confdefs.h. */ | |
5060 | _ACEOF | |
5061 | cat confdefs.h >>conftest.$ac_ext | |
5062 | cat >>conftest.$ac_ext <<_ACEOF | |
5063 | /* end confdefs.h. */ | |
5064 | $ac_includes_default | |
90973b19 | 5065 | #include <$ac_header> |
4ee9c684 | 5066 | _ACEOF |
5067 | rm -f conftest.$ac_objext | |
5068 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5069 | (eval $ac_compile) 2>conftest.er1 | |
5070 | ac_status=$? | |
5071 | grep -v '^ *+' conftest.er1 >conftest.err | |
5072 | rm -f conftest.er1 | |
5073 | cat conftest.err >&5 | |
5074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5075 | (exit $ac_status); } && | |
a31bd8a4 | 5076 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4ee9c684 | 5077 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5078 | (eval $ac_try) 2>&5 | |
5079 | ac_status=$? | |
5080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5081 | (exit $ac_status); }; } && | |
5082 | { ac_try='test -s conftest.$ac_objext' | |
5083 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5084 | (eval $ac_try) 2>&5 | |
5085 | ac_status=$? | |
5086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5087 | (exit $ac_status); }; }; then | |
5088 | ac_header_compiler=yes | |
5089 | else | |
5090 | echo "$as_me: failed program was:" >&5 | |
5091 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5092 | ||
5093 | ac_header_compiler=no | |
5094 | fi | |
5095 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5096 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5097 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
5098 | ||
5099 | # Is the header present? | |
90973b19 | 5100 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
5101 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
4ee9c684 | 5102 | cat >conftest.$ac_ext <<_ACEOF |
5103 | /* confdefs.h. */ | |
5104 | _ACEOF | |
5105 | cat confdefs.h >>conftest.$ac_ext | |
5106 | cat >>conftest.$ac_ext <<_ACEOF | |
5107 | /* end confdefs.h. */ | |
90973b19 | 5108 | #include <$ac_header> |
4ee9c684 | 5109 | _ACEOF |
5110 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5111 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5112 | ac_status=$? | |
5113 | grep -v '^ *+' conftest.er1 >conftest.err | |
5114 | rm -f conftest.er1 | |
5115 | cat conftest.err >&5 | |
5116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5117 | (exit $ac_status); } >/dev/null; then | |
5118 | if test -s conftest.err; then | |
5119 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5120 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5121 | else | |
5122 | ac_cpp_err= | |
5123 | fi | |
5124 | else | |
5125 | ac_cpp_err=yes | |
5126 | fi | |
5127 | if test -z "$ac_cpp_err"; then | |
5128 | ac_header_preproc=yes | |
5129 | else | |
5130 | echo "$as_me: failed program was:" >&5 | |
5131 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5132 | ||
5133 | ac_header_preproc=no | |
5134 | fi | |
5135 | rm -f conftest.err conftest.$ac_ext | |
5136 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5137 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5138 | ||
5139 | # So? What about this header? | |
5140 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
5141 | yes:no: ) | |
90973b19 | 5142 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5143 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5144 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5145 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
4ee9c684 | 5146 | ac_header_preproc=yes |
5147 | ;; | |
5148 | no:yes:* ) | |
90973b19 | 5149 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5150 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5151 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5152 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5153 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5154 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5155 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5156 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5157 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5158 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5159 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5160 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
4ee9c684 | 5161 | ( |
5162 | cat <<\_ASBOX | |
5163 | ## ------------------------------------------------------ ## | |
5164 | ## Report this to the GNU Fortran Runtime Library lists. ## | |
5165 | ## ------------------------------------------------------ ## | |
5166 | _ASBOX | |
5167 | ) | | |
5168 | sed "s/^/$as_me: WARNING: /" >&2 | |
5169 | ;; | |
5170 | esac | |
90973b19 | 5171 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5172 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5173 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4ee9c684 | 5174 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5175 | else | |
90973b19 | 5176 | eval "$as_ac_Header=\$ac_header_preproc" |
4ee9c684 | 5177 | fi |
90973b19 | 5178 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
5179 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5180 | ||
5181 | fi | |
5182 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
5183 | cat >>confdefs.h <<_ACEOF | |
5184 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5185 | _ACEOF | |
4ee9c684 | 5186 | |
90973b19 | 5187 | fi |
4ee9c684 | 5188 | |
90973b19 | 5189 | done |
4ee9c684 | 5190 | |
5191 | ||
90973b19 | 5192 | for ac_func in getpagesize |
4ee9c684 | 5193 | do |
5194 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5195 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
5196 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
5197 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
5198 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5199 | else | |
5200 | cat >conftest.$ac_ext <<_ACEOF | |
5201 | /* confdefs.h. */ | |
5202 | _ACEOF | |
5203 | cat confdefs.h >>conftest.$ac_ext | |
5204 | cat >>conftest.$ac_ext <<_ACEOF | |
5205 | /* end confdefs.h. */ | |
5206 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
5207 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
5208 | #define $ac_func innocuous_$ac_func | |
5209 | ||
5210 | /* System header to define __stub macros and hopefully few prototypes, | |
5211 | which can conflict with char $ac_func (); below. | |
5212 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5213 | <limits.h> exists even on freestanding compilers. */ | |
5214 | ||
5215 | #ifdef __STDC__ | |
5216 | # include <limits.h> | |
5217 | #else | |
5218 | # include <assert.h> | |
5219 | #endif | |
5220 | ||
5221 | #undef $ac_func | |
5222 | ||
5223 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5224 | #ifdef __cplusplus | |
5225 | extern "C" | |
5226 | { | |
5227 | #endif | |
5228 | /* We use char because int might match the return type of a gcc2 | |
5229 | builtin and then its argument prototype would still apply. */ | |
5230 | char $ac_func (); | |
5231 | /* The GNU C library defines this for functions which it implements | |
5232 | to always fail with ENOSYS. Some functions are actually named | |
5233 | something starting with __ and the normal name is an alias. */ | |
5234 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5235 | choke me | |
5236 | #else | |
5237 | char (*f) () = $ac_func; | |
5238 | #endif | |
5239 | #ifdef __cplusplus | |
5240 | } | |
5241 | #endif | |
5242 | ||
5243 | int | |
5244 | main () | |
5245 | { | |
5246 | return f != $ac_func; | |
5247 | ; | |
5248 | return 0; | |
5249 | } | |
5250 | _ACEOF | |
5251 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5252 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5253 | (eval $ac_link) 2>conftest.er1 | |
5254 | ac_status=$? | |
5255 | grep -v '^ *+' conftest.er1 >conftest.err | |
5256 | rm -f conftest.er1 | |
5257 | cat conftest.err >&5 | |
5258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5259 | (exit $ac_status); } && | |
a31bd8a4 | 5260 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4ee9c684 | 5261 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5262 | (eval $ac_try) 2>&5 | |
5263 | ac_status=$? | |
5264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5265 | (exit $ac_status); }; } && | |
5266 | { ac_try='test -s conftest$ac_exeext' | |
5267 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5268 | (eval $ac_try) 2>&5 | |
5269 | ac_status=$? | |
5270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5271 | (exit $ac_status); }; }; then | |
5272 | eval "$as_ac_var=yes" | |
5273 | else | |
5274 | echo "$as_me: failed program was:" >&5 | |
5275 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5276 | ||
5277 | eval "$as_ac_var=no" | |
5278 | fi | |
5279 | rm -f conftest.err conftest.$ac_objext \ | |
5280 | conftest$ac_exeext conftest.$ac_ext | |
5281 | fi | |
5282 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
5283 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
5284 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
5285 | cat >>confdefs.h <<_ACEOF | |
5286 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5287 | _ACEOF | |
5288 | ||
5289 | fi | |
5290 | done | |
5291 | ||
90973b19 | 5292 | echo "$as_me:$LINENO: checking for working mmap" >&5 |
5293 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 | |
5294 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then | |
4ee9c684 | 5295 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
90973b19 | 5296 | else |
5297 | if test "$cross_compiling" = yes; then | |
5298 | ac_cv_func_mmap_fixed_mapped=no | |
4ee9c684 | 5299 | else |
5300 | cat >conftest.$ac_ext <<_ACEOF | |
5301 | /* confdefs.h. */ | |
5302 | _ACEOF | |
5303 | cat confdefs.h >>conftest.$ac_ext | |
5304 | cat >>conftest.$ac_ext <<_ACEOF | |
5305 | /* end confdefs.h. */ | |
90973b19 | 5306 | $ac_includes_default |
5307 | /* malloc might have been renamed as rpl_malloc. */ | |
5308 | #undef malloc | |
5309 | ||
5310 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
5311 | Here is a matrix of mmap possibilities: | |
5312 | mmap private not fixed | |
5313 | mmap private fixed at somewhere currently unmapped | |
5314 | mmap private fixed at somewhere already mapped | |
5315 | mmap shared not fixed | |
5316 | mmap shared fixed at somewhere currently unmapped | |
5317 | mmap shared fixed at somewhere already mapped | |
5318 | For private mappings, we should verify that changes cannot be read() | |
5319 | back from the file, nor mmap's back from the file at a different | |
5320 | address. (There have been systems where private was not correctly | |
5321 | implemented like the infamous i386 svr4.0, and systems where the | |
5322 | VM page cache was not coherent with the file system buffer cache | |
5323 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
5324 | For shared mappings, we should conversely verify that changes get | |
5325 | propagated back to all the places they're supposed to be. | |
5326 | ||
5327 | Grep wants private fixed already mapped. | |
5328 | The main things grep needs to know about mmap are: | |
5329 | * does it exist and is it safe to write into the mmap'd area | |
5330 | * how to use it (BSD variants) */ | |
5331 | ||
5332 | #include <fcntl.h> | |
5333 | #include <sys/mman.h> | |
5334 | ||
5335 | #if !STDC_HEADERS && !HAVE_STDLIB_H | |
5336 | char *malloc (); | |
5337 | #endif | |
5338 | ||
5339 | /* This mess was copied from the GNU getpagesize.h. */ | |
5340 | #if !HAVE_GETPAGESIZE | |
5341 | /* Assume that all systems that can run configure have sys/param.h. */ | |
5342 | # if !HAVE_SYS_PARAM_H | |
5343 | # define HAVE_SYS_PARAM_H 1 | |
5344 | # endif | |
5345 | ||
5346 | # ifdef _SC_PAGESIZE | |
5347 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
5348 | # else /* no _SC_PAGESIZE */ | |
5349 | # if HAVE_SYS_PARAM_H | |
5350 | # include <sys/param.h> | |
5351 | # ifdef EXEC_PAGESIZE | |
5352 | # define getpagesize() EXEC_PAGESIZE | |
5353 | # else /* no EXEC_PAGESIZE */ | |
5354 | # ifdef NBPG | |
5355 | # define getpagesize() NBPG * CLSIZE | |
5356 | # ifndef CLSIZE | |
5357 | # define CLSIZE 1 | |
5358 | # endif /* no CLSIZE */ | |
5359 | # else /* no NBPG */ | |
5360 | # ifdef NBPC | |
5361 | # define getpagesize() NBPC | |
5362 | # else /* no NBPC */ | |
5363 | # ifdef PAGESIZE | |
5364 | # define getpagesize() PAGESIZE | |
5365 | # endif /* PAGESIZE */ | |
5366 | # endif /* no NBPC */ | |
5367 | # endif /* no NBPG */ | |
5368 | # endif /* no EXEC_PAGESIZE */ | |
5369 | # else /* no HAVE_SYS_PARAM_H */ | |
5370 | # define getpagesize() 8192 /* punt totally */ | |
5371 | # endif /* no HAVE_SYS_PARAM_H */ | |
5372 | # endif /* no _SC_PAGESIZE */ | |
5373 | ||
5374 | #endif /* no HAVE_GETPAGESIZE */ | |
4ee9c684 | 5375 | |
5376 | int | |
5377 | main () | |
5378 | { | |
90973b19 | 5379 | char *data, *data2, *data3; |
5380 | int i, pagesize; | |
5381 | int fd; | |
5382 | ||
5383 | pagesize = getpagesize (); | |
5384 | ||
5385 | /* First, make a file with some known garbage in it. */ | |
5386 | data = (char *) malloc (pagesize); | |
5387 | if (!data) | |
5388 | exit (1); | |
5389 | for (i = 0; i < pagesize; ++i) | |
5390 | *(data + i) = rand (); | |
5391 | umask (0); | |
5392 | fd = creat ("conftest.mmap", 0600); | |
5393 | if (fd < 0) | |
5394 | exit (1); | |
5395 | if (write (fd, data, pagesize) != pagesize) | |
5396 | exit (1); | |
5397 | close (fd); | |
5398 | ||
5399 | /* Next, try to mmap the file at a fixed address which already has | |
5400 | something else allocated at it. If we can, also make sure that | |
5401 | we see the same garbage. */ | |
5402 | fd = open ("conftest.mmap", O_RDWR); | |
5403 | if (fd < 0) | |
5404 | exit (1); | |
5405 | data2 = (char *) malloc (2 * pagesize); | |
5406 | if (!data2) | |
5407 | exit (1); | |
5408 | data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); | |
5409 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | |
5410 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
5411 | exit (1); | |
5412 | for (i = 0; i < pagesize; ++i) | |
5413 | if (*(data + i) != *(data2 + i)) | |
5414 | exit (1); | |
5415 | ||
5416 | /* Finally, make sure that changes to the mapped area do not | |
5417 | percolate back to the file as seen by read(). (This is a bug on | |
5418 | some variants of i386 svr4.0.) */ | |
5419 | for (i = 0; i < pagesize; ++i) | |
5420 | *(data2 + i) = *(data2 + i) + 1; | |
5421 | data3 = (char *) malloc (pagesize); | |
5422 | if (!data3) | |
5423 | exit (1); | |
5424 | if (read (fd, data3, pagesize) != pagesize) | |
5425 | exit (1); | |
5426 | for (i = 0; i < pagesize; ++i) | |
5427 | if (*(data + i) != *(data3 + i)) | |
5428 | exit (1); | |
5429 | close (fd); | |
5430 | exit (0); | |
4ee9c684 | 5431 | } |
5432 | _ACEOF | |
90973b19 | 5433 | rm -f conftest$ac_exeext |
5434 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5435 | (eval $ac_link) 2>&5 | |
4ee9c684 | 5436 | ac_status=$? |
5437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
90973b19 | 5438 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
4ee9c684 | 5439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5440 | (eval $ac_try) 2>&5 | |
5441 | ac_status=$? | |
5442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5443 | (exit $ac_status); }; }; then | |
90973b19 | 5444 | ac_cv_func_mmap_fixed_mapped=yes |
4ee9c684 | 5445 | else |
90973b19 | 5446 | echo "$as_me: program exited with status $ac_status" >&5 |
5447 | echo "$as_me: failed program was:" >&5 | |
4ee9c684 | 5448 | sed 's/^/| /' conftest.$ac_ext >&5 |
5449 | ||
90973b19 | 5450 | ( exit $ac_status ) |
5451 | ac_cv_func_mmap_fixed_mapped=no | |
4ee9c684 | 5452 | fi |
90973b19 | 5453 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
4ee9c684 | 5454 | fi |
90973b19 | 5455 | fi |
5456 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 | |
5457 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 | |
5458 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
4ee9c684 | 5459 | |
5460 | cat >>confdefs.h <<\_ACEOF | |
90973b19 | 5461 | #define HAVE_MMAP 1 |
4ee9c684 | 5462 | _ACEOF |
5463 | ||
5464 | fi | |
90973b19 | 5465 | rm -f conftest.mmap |
4ee9c684 | 5466 | |
90973b19 | 5467 | echo "$as_me:$LINENO: checking for off_t" >&5 |
5468 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
5469 | if test "${ac_cv_type_off_t+set}" = set; then | |
4ee9c684 | 5470 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5471 | else | |
90973b19 | 5472 | cat >conftest.$ac_ext <<_ACEOF |
5473 | /* confdefs.h. */ | |
5474 | _ACEOF | |
5475 | cat confdefs.h >>conftest.$ac_ext | |
5476 | cat >>conftest.$ac_ext <<_ACEOF | |
5477 | /* end confdefs.h. */ | |
5478 | $ac_includes_default | |
4ee9c684 | 5479 | int |
5480 | main () | |
5481 | { | |
90973b19 | 5482 | if ((off_t *) 0) |
5483 | return 0; | |
5484 | if (sizeof (off_t)) | |
5485 | return 0; | |
4ee9c684 | 5486 | ; |
5487 | return 0; | |
5488 | } | |
5489 | _ACEOF | |
90973b19 | 5490 | rm -f conftest.$ac_objext |
5491 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5492 | (eval $ac_compile) 2>conftest.er1 | |
4ee9c684 | 5493 | ac_status=$? |
5494 | grep -v '^ *+' conftest.er1 >conftest.err | |
5495 | rm -f conftest.er1 | |
5496 | cat conftest.err >&5 | |
5497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5498 | (exit $ac_status); } && | |
a31bd8a4 | 5499 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4ee9c684 | 5500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5501 | (eval $ac_try) 2>&5 | |
5502 | ac_status=$? | |
5503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5504 | (exit $ac_status); }; } && | |
90973b19 | 5505 | { ac_try='test -s conftest.$ac_objext' |
4ee9c684 | 5506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5507 | (eval $ac_try) 2>&5 | |
5508 | ac_status=$? | |
5509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5510 | (exit $ac_status); }; }; then | |
90973b19 | 5511 | ac_cv_type_off_t=yes |
4ee9c684 | 5512 | else |
5513 | echo "$as_me: failed program was:" >&5 | |
5514 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5515 | ||
90973b19 | 5516 | ac_cv_type_off_t=no |
4ee9c684 | 5517 | fi |
90973b19 | 5518 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4ee9c684 | 5519 | fi |
90973b19 | 5520 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
5521 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
5522 | if test $ac_cv_type_off_t = yes; then | |
5523 | : | |
5524 | else | |
5525 | ||
5526 | cat >>confdefs.h <<_ACEOF | |
5527 | #define off_t long | |
4ee9c684 | 5528 | _ACEOF |
5529 | ||
5530 | fi | |
4ee9c684 | 5531 | |
90973b19 | 5532 | |
5533 | # check header files | |
5534 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
5535 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
5536 | if test "${ac_cv_header_stdc+set}" = set; then | |
4ee9c684 | 5537 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5538 | else | |
5539 | cat >conftest.$ac_ext <<_ACEOF | |
5540 | /* confdefs.h. */ | |
5541 | _ACEOF | |
5542 | cat confdefs.h >>conftest.$ac_ext | |
5543 | cat >>conftest.$ac_ext <<_ACEOF | |
5544 | /* end confdefs.h. */ | |
90973b19 | 5545 | #include <stdlib.h> |
5546 | #include <stdarg.h> | |
5547 | #include <string.h> | |
5548 | #include <float.h> | |
5549 | ||
4ee9c684 | 5550 | int |
5551 | main () | |
5552 | { | |
90973b19 | 5553 | |
4ee9c684 | 5554 | ; |
5555 | return 0; | |
5556 | } | |
5557 | _ACEOF | |
5558 | rm -f conftest.$ac_objext | |
5559 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5560 | (eval $ac_compile) 2>conftest.er1 | |
5561 | ac_status=$? | |
5562 | grep -v '^ *+' conftest.er1 >conftest.err | |
5563 | rm -f conftest.er1 | |
5564 | cat conftest.err >&5 | |
5565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5566 | (exit $ac_status); } && | |
a31bd8a4 | 5567 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4ee9c684 | 5568 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5569 | (eval $ac_try) 2>&5 | |
5570 | ac_status=$? | |
5571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5572 | (exit $ac_status); }; } && | |
5573 | { ac_try='test -s conftest.$ac_objext' | |
5574 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5575 | (eval $ac_try) 2>&5 | |
5576 | ac_status=$? | |
5577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5578 | (exit $ac_status); }; }; then | |
90973b19 | 5579 | ac_cv_header_stdc=yes |
4ee9c684 | 5580 | else |
5581 | echo "$as_me: failed program was:" >&5 | |
5582 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5583 | ||
90973b19 | 5584 | ac_cv_header_stdc=no |
4ee9c684 | 5585 | fi |
5586 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
90973b19 | 5587 | |
5588 | if test $ac_cv_header_stdc = yes; then | |
5589 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4ee9c684 | 5590 | cat >conftest.$ac_ext <<_ACEOF |
5591 | /* confdefs.h. */ | |
5592 | _ACEOF | |
5593 | cat confdefs.h >>conftest.$ac_ext | |
5594 | cat >>conftest.$ac_ext <<_ACEOF | |
5595 | /* end confdefs.h. */ | |
90973b19 | 5596 | #include <string.h> |
4ee9c684 | 5597 | |
4ee9c684 | 5598 | _ACEOF |
90973b19 | 5599 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5600 | $EGREP "memchr" >/dev/null 2>&1; then | |
5601 | : | |
4ee9c684 | 5602 | else |
90973b19 | 5603 | ac_cv_header_stdc=no |
4ee9c684 | 5604 | fi |
90973b19 | 5605 | rm -f conftest* |
5606 | ||
4ee9c684 | 5607 | fi |
4ee9c684 | 5608 | |
90973b19 | 5609 | if test $ac_cv_header_stdc = yes; then |
5610 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
5611 | cat >conftest.$ac_ext <<_ACEOF | |
5612 | /* confdefs.h. */ | |
5613 | _ACEOF | |
5614 | cat confdefs.h >>conftest.$ac_ext | |
5615 | cat >>conftest.$ac_ext <<_ACEOF | |
5616 | /* end confdefs.h. */ | |
5617 | #include <stdlib.h> | |
5618 | ||
4ee9c684 | 5619 | _ACEOF |
90973b19 | 5620 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5621 | $EGREP "free" >/dev/null 2>&1; then | |
5622 | : | |
5623 | else | |
5624 | ac_cv_header_stdc=no | |
5625 | fi | |
5626 | rm -f conftest* | |
4ee9c684 | 5627 | |
90973b19 | 5628 | fi |
4ee9c684 | 5629 | |
90973b19 | 5630 | if test $ac_cv_header_stdc = yes; then |
5631 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
5632 | if test "$cross_compiling" = yes; then | |
5633 | : | |
4ee9c684 | 5634 | else |
5635 | cat >conftest.$ac_ext <<_ACEOF | |
5636 | /* confdefs.h. */ | |
5637 | _ACEOF | |
5638 | cat confdefs.h >>conftest.$ac_ext | |
5639 | cat >>conftest.$ac_ext <<_ACEOF | |
5640 | /* end confdefs.h. */ | |
90973b19 | 5641 | #include <ctype.h> |
5642 | #if ((' ' & 0x0FF) == 0x020) | |
5643 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5644 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4ee9c684 | 5645 | #else |
90973b19 | 5646 | # define ISLOWER(c) \ |
5647 | (('a' <= (c) && (c) <= 'i') \ | |
5648 | || ('j' <= (c) && (c) <= 'r') \ | |
5649 | || ('s' <= (c) && (c) <= 'z')) | |
5650 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4ee9c684 | 5651 | #endif |
5652 | ||
90973b19 | 5653 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
4ee9c684 | 5654 | int |
5655 | main () | |
5656 | { | |
90973b19 | 5657 | int i; |
5658 | for (i = 0; i < 256; i++) | |
5659 | if (XOR (islower (i), ISLOWER (i)) | |
5660 | || toupper (i) != TOUPPER (i)) | |
5661 | exit(2); | |
5662 | exit (0); | |
4ee9c684 | 5663 | } |
5664 | _ACEOF | |
90973b19 | 5665 | rm -f conftest$ac_exeext |
4ee9c684 | 5666 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
90973b19 | 5667 | (eval $ac_link) 2>&5 |
4ee9c684 | 5668 | ac_status=$? |
5669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
90973b19 | 5670 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
4ee9c684 | 5671 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5672 | (eval $ac_try) 2>&5 | |
5673 | ac_status=$? | |
90973b19 | 5674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5675 | (exit $ac_status); }; }; then | |
5676 | : | |
4ee9c684 | 5677 | else |
90973b19 | 5678 | echo "$as_me: program exited with status $ac_status" >&5 |
5679 | echo "$as_me: failed program was:" >&5 | |
5680 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4ee9c684 | 5681 | |
90973b19 | 5682 | ( exit $ac_status ) |
5683 | ac_cv_header_stdc=no | |
4ee9c684 | 5684 | fi |
90973b19 | 5685 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
4ee9c684 | 5686 | fi |
5687 | fi | |
4ee9c684 | 5688 | fi |
90973b19 | 5689 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
5690 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
5691 | if test $ac_cv_header_stdc = yes; then | |
4ee9c684 | 5692 | |
90973b19 | 5693 | cat >>confdefs.h <<\_ACEOF |
5694 | #define STDC_HEADERS 1 | |
5695 | _ACEOF | |
4ee9c684 | 5696 | |
5697 | fi | |
5698 | ||
4ee9c684 | 5699 | |
5700 | ||
4ee9c684 | 5701 | |
4ee9c684 | 5702 | |
5703 | ||
5704 | ||
90973b19 | 5705 | for ac_header in stdlib.h stdio.h string.h stddef.h math.h unistd.h |
5706 | do | |
5707 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5708 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5709 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5710 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5711 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5712 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5713 | fi | |
5714 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5715 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4ee9c684 | 5716 | else |
90973b19 | 5717 | # Is the header compilable? |
5718 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5719 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
5720 | cat >conftest.$ac_ext <<_ACEOF | |
5721 | /* confdefs.h. */ | |
5722 | _ACEOF | |
5723 | cat confdefs.h >>conftest.$ac_ext | |
5724 | cat >>conftest.$ac_ext <<_ACEOF | |
5725 | /* end confdefs.h. */ | |
5726 | $ac_includes_default | |
5727 | #include <$ac_header> | |
5728 | _ACEOF | |
5729 | rm -f conftest.$ac_objext | |
5730 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5731 | (eval $ac_compile) 2>conftest.er1 | |
5732 | ac_status=$? | |
5733 | grep -v '^ *+' conftest.er1 >conftest.err | |
5734 | rm -f conftest.er1 | |
5735 | cat conftest.err >&5 | |
5736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5737 | (exit $ac_status); } && | |
a31bd8a4 | 5738 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
90973b19 | 5739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5740 | (eval $ac_try) 2>&5 | |
5741 | ac_status=$? | |
5742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5743 | (exit $ac_status); }; } && | |
5744 | { ac_try='test -s conftest.$ac_objext' | |
5745 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5746 | (eval $ac_try) 2>&5 | |
5747 | ac_status=$? | |
5748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5749 | (exit $ac_status); }; }; then | |
5750 | ac_header_compiler=yes | |
4ee9c684 | 5751 | else |
90973b19 | 5752 | echo "$as_me: failed program was:" >&5 |
5753 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5754 | ||
5755 | ac_header_compiler=no | |
4ee9c684 | 5756 | fi |
90973b19 | 5757 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5758 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5759 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
5760 | ||
5761 | # Is the header present? | |
5762 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5763 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
5764 | cat >conftest.$ac_ext <<_ACEOF | |
5765 | /* confdefs.h. */ | |
5766 | _ACEOF | |
5767 | cat confdefs.h >>conftest.$ac_ext | |
5768 | cat >>conftest.$ac_ext <<_ACEOF | |
5769 | /* end confdefs.h. */ | |
5770 | #include <$ac_header> | |
5771 | _ACEOF | |
5772 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5773 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5774 | ac_status=$? | |
5775 | grep -v '^ *+' conftest.er1 >conftest.err | |
5776 | rm -f conftest.er1 | |
5777 | cat conftest.err >&5 | |
5778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5779 | (exit $ac_status); } >/dev/null; then | |
5780 | if test -s conftest.err; then | |
5781 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5782 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5783 | else | |
5784 | ac_cpp_err= | |
5785 | fi | |
4ee9c684 | 5786 | else |
90973b19 | 5787 | ac_cpp_err=yes |
4ee9c684 | 5788 | fi |
90973b19 | 5789 | if test -z "$ac_cpp_err"; then |
5790 | ac_header_preproc=yes | |
4ee9c684 | 5791 | else |
90973b19 | 5792 | echo "$as_me: failed program was:" >&5 |
5793 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5794 | ||
5795 | ac_header_preproc=no | |
4ee9c684 | 5796 | fi |
90973b19 | 5797 | rm -f conftest.err conftest.$ac_ext |
5798 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5799 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5800 | ||
5801 | # So? What about this header? | |
5802 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
5803 | yes:no: ) | |
5804 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
5805 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5806 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5807 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
5808 | ac_header_preproc=yes | |
5809 | ;; | |
5810 | no:yes:* ) | |
5811 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
5812 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5813 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5814 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5815 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5816 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5817 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5818 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5819 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5820 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5821 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5822 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
5823 | ( | |
5824 | cat <<\_ASBOX | |
5825 | ## ------------------------------------------------------ ## | |
5826 | ## Report this to the GNU Fortran Runtime Library lists. ## | |
5827 | ## ------------------------------------------------------ ## | |
5828 | _ASBOX | |
5829 | ) | | |
5830 | sed "s/^/$as_me: WARNING: /" >&2 | |
5831 | ;; | |
5832 | esac | |
5833 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5834 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5835 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4ee9c684 | 5836 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5837 | else | |
90973b19 | 5838 | eval "$as_ac_Header=\$ac_header_preproc" |
4ee9c684 | 5839 | fi |
90973b19 | 5840 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
5841 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4ee9c684 | 5842 | |
90973b19 | 5843 | fi |
5844 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
5845 | cat >>confdefs.h <<_ACEOF | |
5846 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5847 | _ACEOF | |
4ee9c684 | 5848 | |
4ee9c684 | 5849 | fi |
4ee9c684 | 5850 | |
90973b19 | 5851 | done |
5852 | ||
5853 | ||
5854 | ||
5855 | ||
5856 | ||
5857 | ||
5858 | for ac_header in time.h sys/params.h sys/time.h sys/times.h sys/resource.h | |
5859 | do | |
5860 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5861 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5862 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5863 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5864 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4ee9c684 | 5865 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
90973b19 | 5866 | fi |
5867 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5868 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4ee9c684 | 5869 | else |
90973b19 | 5870 | # Is the header compilable? |
5871 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5872 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
5873 | cat >conftest.$ac_ext <<_ACEOF | |
5874 | /* confdefs.h. */ | |
5875 | _ACEOF | |
5876 | cat confdefs.h >>conftest.$ac_ext | |
5877 | cat >>conftest.$ac_ext <<_ACEOF | |
5878 | /* end confdefs.h. */ | |
5879 | $ac_includes_default | |
5880 | #include <$ac_header> | |
5881 | _ACEOF | |
5882 | rm -f conftest.$ac_objext | |
5883 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5884 | (eval $ac_compile) 2>conftest.er1 | |
5885 | ac_status=$? | |
5886 | grep -v '^ *+' conftest.er1 >conftest.err | |
5887 | rm -f conftest.er1 | |
5888 | cat conftest.err >&5 | |
5889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5890 | (exit $ac_status); } && | |
a31bd8a4 | 5891 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
90973b19 | 5892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5893 | (eval $ac_try) 2>&5 | |
5894 | ac_status=$? | |
5895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5896 | (exit $ac_status); }; } && | |
5897 | { ac_try='test -s conftest.$ac_objext' | |
5898 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5899 | (eval $ac_try) 2>&5 | |
5900 | ac_status=$? | |
5901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5902 | (exit $ac_status); }; }; then | |
5903 | ac_header_compiler=yes | |
4ee9c684 | 5904 | else |
90973b19 | 5905 | echo "$as_me: failed program was:" >&5 |
5906 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4ee9c684 | 5907 | |
90973b19 | 5908 | ac_header_compiler=no |
5909 | fi | |
5910 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5911 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5912 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
4ee9c684 | 5913 | |
90973b19 | 5914 | # Is the header present? |
5915 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5916 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
5917 | cat >conftest.$ac_ext <<_ACEOF | |
5918 | /* confdefs.h. */ | |
5919 | _ACEOF | |
5920 | cat confdefs.h >>conftest.$ac_ext | |
5921 | cat >>conftest.$ac_ext <<_ACEOF | |
5922 | /* end confdefs.h. */ | |
5923 | #include <$ac_header> | |
5924 | _ACEOF | |
5925 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5926 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5927 | ac_status=$? | |
5928 | grep -v '^ *+' conftest.er1 >conftest.err | |
5929 | rm -f conftest.er1 | |
5930 | cat conftest.err >&5 | |
5931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5932 | (exit $ac_status); } >/dev/null; then | |
5933 | if test -s conftest.err; then | |
5934 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5935 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5936 | else | |
5937 | ac_cpp_err= | |
5938 | fi | |
4ee9c684 | 5939 | else |
90973b19 | 5940 | ac_cpp_err=yes |
4ee9c684 | 5941 | fi |
90973b19 | 5942 | if test -z "$ac_cpp_err"; then |
5943 | ac_header_preproc=yes | |
4ee9c684 | 5944 | else |
90973b19 | 5945 | echo "$as_me: failed program was:" >&5 |
5946 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4ee9c684 | 5947 | |
90973b19 | 5948 | ac_header_preproc=no |
5949 | fi | |
5950 | rm -f conftest.err conftest.$ac_ext | |
5951 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5952 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
4ee9c684 | 5953 | |
90973b19 | 5954 | # So? What about this header? |
5955 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
5956 | yes:no: ) | |
5957 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
5958 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5959 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5960 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
5961 | ac_header_preproc=yes | |
4ee9c684 | 5962 | ;; |
90973b19 | 5963 | no:yes:* ) |
5964 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
5965 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5966 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5967 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5968 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5969 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5970 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5971 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5972 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5973 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5974 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5975 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
5976 | ( | |
5977 | cat <<\_ASBOX | |
5978 | ## ------------------------------------------------------ ## | |
5979 | ## Report this to the GNU Fortran Runtime Library lists. ## | |
5980 | ## ------------------------------------------------------ ## | |
5981 | _ASBOX | |
5982 | ) | | |
5983 | sed "s/^/$as_me: WARNING: /" >&2 | |
4ee9c684 | 5984 | ;; |
90973b19 | 5985 | esac |
5986 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5987 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5988 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5989 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5990 | else | |
5991 | eval "$as_ac_Header=\$ac_header_preproc" | |
5992 | fi | |
5993 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5994 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4ee9c684 | 5995 | |
90973b19 | 5996 | fi |
5997 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
5998 | cat >>confdefs.h <<_ACEOF | |
5999 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6000 | _ACEOF | |
4ee9c684 | 6001 | |
90973b19 | 6002 | fi |
4ee9c684 | 6003 | |
90973b19 | 6004 | done |
4ee9c684 | 6005 | |
90973b19 | 6006 | if test "${ac_cv_header_complex_h+set}" = set; then |
6007 | echo "$as_me:$LINENO: checking for complex.h" >&5 | |
6008 | echo $ECHO_N "checking for complex.h... $ECHO_C" >&6 | |
6009 | if test "${ac_cv_header_complex_h+set}" = set; then | |
6010 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6011 | fi | |
6012 | echo "$as_me:$LINENO: result: $ac_cv_header_complex_h" >&5 | |
6013 | echo "${ECHO_T}$ac_cv_header_complex_h" >&6 | |
6014 | else | |
6015 | # Is the header compilable? | |
6016 | echo "$as_me:$LINENO: checking complex.h usability" >&5 | |
6017 | echo $ECHO_N "checking complex.h usability... $ECHO_C" >&6 | |
6018 | cat >conftest.$ac_ext <<_ACEOF | |
6019 | /* confdefs.h. */ | |
6020 | _ACEOF | |
6021 | cat confdefs.h >>conftest.$ac_ext | |
6022 | cat >>conftest.$ac_ext <<_ACEOF | |
6023 | /* end confdefs.h. */ | |
6024 | $ac_includes_default | |
6025 | #include <complex.h> | |
6026 | _ACEOF | |
6027 | rm -f conftest.$ac_objext | |
6028 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6029 | (eval $ac_compile) 2>conftest.er1 | |
6030 | ac_status=$? | |
6031 | grep -v '^ *+' conftest.er1 >conftest.err | |
6032 | rm -f conftest.er1 | |
6033 | cat conftest.err >&5 | |
6034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6035 | (exit $ac_status); } && | |
a31bd8a4 | 6036 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
90973b19 | 6037 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6038 | (eval $ac_try) 2>&5 | |
6039 | ac_status=$? | |
6040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6041 | (exit $ac_status); }; } && | |
6042 | { ac_try='test -s conftest.$ac_objext' | |
6043 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6044 | (eval $ac_try) 2>&5 | |
6045 | ac_status=$? | |
6046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6047 | (exit $ac_status); }; }; then | |
6048 | ac_header_compiler=yes | |
6049 | else | |
6050 | echo "$as_me: failed program was:" >&5 | |
6051 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4ee9c684 | 6052 | |
90973b19 | 6053 | ac_header_compiler=no |
6054 | fi | |
6055 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6056 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6057 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
4ee9c684 | 6058 | |
90973b19 | 6059 | # Is the header present? |
6060 | echo "$as_me:$LINENO: checking complex.h presence" >&5 | |
6061 | echo $ECHO_N "checking complex.h presence... $ECHO_C" >&6 | |
6062 | cat >conftest.$ac_ext <<_ACEOF | |
6063 | /* confdefs.h. */ | |
6064 | _ACEOF | |
6065 | cat confdefs.h >>conftest.$ac_ext | |
6066 | cat >>conftest.$ac_ext <<_ACEOF | |
6067 | /* end confdefs.h. */ | |
6068 | #include <complex.h> | |
6069 | _ACEOF | |
6070 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6071 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6072 | ac_status=$? | |
6073 | grep -v '^ *+' conftest.er1 >conftest.err | |
6074 | rm -f conftest.er1 | |
6075 | cat conftest.err >&5 | |
6076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6077 | (exit $ac_status); } >/dev/null; then | |
6078 | if test -s conftest.err; then | |
6079 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6080 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4ee9c684 | 6081 | else |
90973b19 | 6082 | ac_cpp_err= |
4ee9c684 | 6083 | fi |
90973b19 | 6084 | else |
6085 | ac_cpp_err=yes | |
6086 | fi | |
6087 | if test -z "$ac_cpp_err"; then | |
6088 | ac_header_preproc=yes | |
6089 | else | |
6090 | echo "$as_me: failed program was:" >&5 | |
6091 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4ee9c684 | 6092 | |
90973b19 | 6093 | ac_header_preproc=no |
6094 | fi | |
6095 | rm -f conftest.err conftest.$ac_ext | |
6096 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6097 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
4ee9c684 | 6098 | |
90973b19 | 6099 | # So? What about this header? |
6100 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6101 | yes:no: ) | |
6102 | { echo "$as_me:$LINENO: WARNING: complex.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6103 | echo "$as_me: WARNING: complex.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6104 | { echo "$as_me:$LINENO: WARNING: complex.h: proceeding with the compiler's result" >&5 | |
6105 | echo "$as_me: WARNING: complex.h: proceeding with the compiler's result" >&2;} | |
6106 | ac_header_preproc=yes | |
4ee9c684 | 6107 | ;; |
90973b19 | 6108 | no:yes:* ) |
6109 | { echo "$as_me:$LINENO: WARNING: complex.h: present but cannot be compiled" >&5 | |
6110 | echo "$as_me: WARNING: complex.h: present but cannot be compiled" >&2;} | |
6111 | { echo "$as_me:$LINENO: WARNING: complex.h: check for missing prerequisite headers?" >&5 | |
6112 | echo "$as_me: WARNING: complex.h: check for missing prerequisite headers?" >&2;} | |
6113 | { echo "$as_me:$LINENO: WARNING: complex.h: see the Autoconf documentation" >&5 | |
6114 | echo "$as_me: WARNING: complex.h: see the Autoconf documentation" >&2;} | |
6115 | { echo "$as_me:$LINENO: WARNING: complex.h: section \"Present But Cannot Be Compiled\"" >&5 | |
6116 | echo "$as_me: WARNING: complex.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
6117 | { echo "$as_me:$LINENO: WARNING: complex.h: proceeding with the preprocessor's result" >&5 | |
6118 | echo "$as_me: WARNING: complex.h: proceeding with the preprocessor's result" >&2;} | |
6119 | { echo "$as_me:$LINENO: WARNING: complex.h: in the future, the compiler will take precedence" >&5 | |
6120 | echo "$as_me: WARNING: complex.h: in the future, the compiler will take precedence" >&2;} | |
6121 | ( | |
6122 | cat <<\_ASBOX | |
6123 | ## ------------------------------------------------------ ## | |
6124 | ## Report this to the GNU Fortran Runtime Library lists. ## | |
6125 | ## ------------------------------------------------------ ## | |
6126 | _ASBOX | |
6127 | ) | | |
6128 | sed "s/^/$as_me: WARNING: /" >&2 | |
4ee9c684 | 6129 | ;; |
4ee9c684 | 6130 | esac |
90973b19 | 6131 | echo "$as_me:$LINENO: checking for complex.h" >&5 |
6132 | echo $ECHO_N "checking for complex.h... $ECHO_C" >&6 | |
6133 | if test "${ac_cv_header_complex_h+set}" = set; then | |
6134 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6135 | else | |
6136 | ac_cv_header_complex_h=$ac_header_preproc | |
6137 | fi | |
6138 | echo "$as_me:$LINENO: result: $ac_cv_header_complex_h" >&5 | |
6139 | echo "${ECHO_T}$ac_cv_header_complex_h" >&6 | |
4ee9c684 | 6140 | |
6141 | fi | |
90973b19 | 6142 | if test $ac_cv_header_complex_h = yes; then |
4ee9c684 | 6143 | |
90973b19 | 6144 | cat >>confdefs.h <<\_ACEOF |
6145 | #define HAVE_COMPLEX_H 1 | |
6146 | _ACEOF | |
4ee9c684 | 6147 | |
90973b19 | 6148 | fi |
4ee9c684 | 6149 | |
6150 | ||
4ee9c684 | 6151 | |
90973b19 | 6152 | # Check for complex math functions |
6153 | echo "$as_me:$LINENO: checking for csin in -lm" >&5 | |
6154 | echo $ECHO_N "checking for csin in -lm... $ECHO_C" >&6 | |
6155 | if test "${ac_cv_lib_m_csin+set}" = set; then | |
4ee9c684 | 6156 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6157 | else | |
90973b19 | 6158 | ac_check_lib_save_LIBS=$LIBS |
6159 | LIBS="-lm $LIBS" | |
6160 | cat >conftest.$ac_ext <<_ACEOF | |
6161 | /* confdefs.h. */ | |
6162 | _ACEOF | |
6163 | cat confdefs.h >>conftest.$ac_ext | |
6164 | cat >>conftest.$ac_ext <<_ACEOF | |
6165 | /* end confdefs.h. */ | |
4ee9c684 | 6166 | |
90973b19 | 6167 | /* Override any gcc2 internal prototype to avoid an error. */ |
6168 | #ifdef __cplusplus | |
6169 | extern "C" | |
6170 | #endif | |
6171 | /* We use char because int might match the return type of a gcc2 | |
6172 | builtin and then its argument prototype would still apply. */ | |
6173 | char csin (); | |
6174 | int | |
6175 | main () | |
6176 | { | |
6177 | csin (); | |
6178 | ; | |
6179 | return 0; | |
6180 | } | |
6181 | _ACEOF | |
6182 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6183 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6184 | (eval $ac_link) 2>conftest.er1 | |
6185 | ac_status=$? | |
6186 | grep -v '^ *+' conftest.er1 >conftest.err | |
6187 | rm -f conftest.er1 | |
6188 | cat conftest.err >&5 | |
6189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6190 | (exit $ac_status); } && | |
a31bd8a4 | 6191 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
90973b19 | 6192 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6193 | (eval $ac_try) 2>&5 | |
6194 | ac_status=$? | |
6195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6196 | (exit $ac_status); }; } && | |
6197 | { ac_try='test -s conftest$ac_exeext' | |
6198 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6199 | (eval $ac_try) 2>&5 | |
6200 | ac_status=$? | |
6201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6202 | (exit $ac_status); }; }; then | |
6203 | ac_cv_lib_m_csin=yes | |
6204 | else | |
6205 | echo "$as_me: failed program was:" >&5 | |
6206 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6207 | ||
6208 | ac_cv_lib_m_csin=no | |
6209 | fi | |
6210 | rm -f conftest.err conftest.$ac_objext \ | |
6211 | conftest$ac_exeext conftest.$ac_ext | |
6212 | LIBS=$ac_check_lib_save_LIBS | |
6213 | fi | |
6214 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_csin" >&5 | |
6215 | echo "${ECHO_T}$ac_cv_lib_m_csin" >&6 | |
6216 | if test $ac_cv_lib_m_csin = yes; then | |
6217 | need_math="no" | |
6218 | else | |
6219 | need_math="yes" | |
6220 | fi | |
6221 | ||
6222 | ||
6223 | # Check for complex math functions in -lmx also | |
6224 | echo "$as_me:$LINENO: checking for csin in -lmx" >&5 | |
6225 | echo $ECHO_N "checking for csin in -lmx... $ECHO_C" >&6 | |
6226 | if test "${ac_cv_lib_mx_csin+set}" = set; then | |
6227 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6228 | else | |
6229 | ac_check_lib_save_LIBS=$LIBS | |
6230 | LIBS="-lmx $LIBS" | |
6231 | cat >conftest.$ac_ext <<_ACEOF | |
6232 | /* confdefs.h. */ | |
6233 | _ACEOF | |
6234 | cat confdefs.h >>conftest.$ac_ext | |
6235 | cat >>conftest.$ac_ext <<_ACEOF | |
6236 | /* end confdefs.h. */ | |
6237 | ||
6238 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6239 | #ifdef __cplusplus | |
6240 | extern "C" | |
6241 | #endif | |
6242 | /* We use char because int might match the return type of a gcc2 | |
6243 | builtin and then its argument prototype would still apply. */ | |
6244 | char csin (); | |
6245 | int | |
6246 | main () | |
6247 | { | |
6248 | csin (); | |
6249 | ; | |
6250 | return 0; | |
6251 | } | |
6252 | _ACEOF | |
6253 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6254 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6255 | (eval $ac_link) 2>conftest.er1 | |
6256 | ac_status=$? | |
6257 | grep -v '^ *+' conftest.er1 >conftest.err | |
6258 | rm -f conftest.er1 | |
6259 | cat conftest.err >&5 | |
6260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6261 | (exit $ac_status); } && | |
a31bd8a4 | 6262 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
90973b19 | 6263 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6264 | (eval $ac_try) 2>&5 | |
6265 | ac_status=$? | |
6266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6267 | (exit $ac_status); }; } && | |
6268 | { ac_try='test -s conftest$ac_exeext' | |
6269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6270 | (eval $ac_try) 2>&5 | |
6271 | ac_status=$? | |
6272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6273 | (exit $ac_status); }; }; then | |
6274 | ac_cv_lib_mx_csin=yes | |
6275 | else | |
6276 | echo "$as_me: failed program was:" >&5 | |
6277 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4ee9c684 | 6278 | |
90973b19 | 6279 | ac_cv_lib_mx_csin=no |
4ee9c684 | 6280 | fi |
90973b19 | 6281 | rm -f conftest.err conftest.$ac_objext \ |
6282 | conftest$ac_exeext conftest.$ac_ext | |
6283 | LIBS=$ac_check_lib_save_LIBS | |
6284 | fi | |
6285 | echo "$as_me:$LINENO: result: $ac_cv_lib_mx_csin" >&5 | |
6286 | echo "${ECHO_T}$ac_cv_lib_mx_csin" >&6 | |
6287 | if test $ac_cv_lib_mx_csin = yes; then | |
6288 | need_math="no" | |
4ee9c684 | 6289 | else |
90973b19 | 6290 | need_math="yes" |
4ee9c684 | 6291 | fi |
6292 | ||
90973b19 | 6293 | |
6294 | # Check for library functions. | |
6295 | ||
6296 | ||
6297 | for ac_func in getrusage times | |
6298 | do | |
6299 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
6300 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6301 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
6302 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
4ee9c684 | 6303 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6304 | else | |
90973b19 | 6305 | cat >conftest.$ac_ext <<_ACEOF |
6306 | /* confdefs.h. */ | |
6307 | _ACEOF | |
6308 | cat confdefs.h >>conftest.$ac_ext | |
6309 | cat >>conftest.$ac_ext <<_ACEOF | |
6310 | /* end confdefs.h. */ | |
6311 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
6312 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6313 | #define $ac_func innocuous_$ac_func | |
4ee9c684 | 6314 | |
90973b19 | 6315 | /* System header to define __stub macros and hopefully few prototypes, |
6316 | which can conflict with char $ac_func (); below. | |
6317 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6318 | <limits.h> exists even on freestanding compilers. */ | |
4ee9c684 | 6319 | |
90973b19 | 6320 | #ifdef __STDC__ |
6321 | # include <limits.h> | |
6322 | #else | |
6323 | # include <assert.h> | |
6324 | #endif | |
4ee9c684 | 6325 | |
90973b19 | 6326 | #undef $ac_func |
6327 | ||
6328 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6329 | #ifdef __cplusplus | |
6330 | extern "C" | |
6331 | { | |
6332 | #endif | |
6333 | /* We use char because int might match the return type of a gcc2 | |
6334 | builtin and then its argument prototype would still apply. */ | |
6335 | char $ac_func (); | |
6336 | /* The GNU C library defines this for functions which it implements | |
6337 | to always fail with ENOSYS. Some functions are actually named | |
6338 | something starting with __ and the normal name is an alias. */ | |
6339 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6340 | choke me | |
6341 | #else | |
6342 | char (*f) () = $ac_func; | |
6343 | #endif | |
6344 | #ifdef __cplusplus | |
6345 | } | |
6346 | #endif | |
6347 | ||
6348 | int | |
6349 | main () | |
6350 | { | |
6351 | return f != $ac_func; | |
6352 | ; | |
6353 | return 0; | |
6354 | } | |
6355 | _ACEOF | |
6356 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6357 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6358 | (eval $ac_link) 2>conftest.er1 | |
6359 | ac_status=$? | |
6360 | grep -v '^ *+' conftest.er1 >conftest.err | |
6361 | rm -f conftest.er1 | |
6362 | cat conftest.err >&5 | |
6363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6364 | (exit $ac_status); } && | |
a31bd8a4 | 6365 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
90973b19 | 6366 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6367 | (eval $ac_try) 2>&5 | |
6368 | ac_status=$? | |
6369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6370 | (exit $ac_status); }; } && | |
6371 | { ac_try='test -s conftest$ac_exeext' | |
6372 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6373 | (eval $ac_try) 2>&5 | |
6374 | ac_status=$? | |
6375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6376 | (exit $ac_status); }; }; then | |
6377 | eval "$as_ac_var=yes" | |
4ee9c684 | 6378 | else |
90973b19 | 6379 | echo "$as_me: failed program was:" >&5 |
6380 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6381 | ||
6382 | eval "$as_ac_var=no" | |
6383 | fi | |
6384 | rm -f conftest.err conftest.$ac_objext \ | |
6385 | conftest$ac_exeext conftest.$ac_ext | |
4ee9c684 | 6386 | fi |
90973b19 | 6387 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
6388 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
6389 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
6390 | cat >>confdefs.h <<_ACEOF | |
6391 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
6392 | _ACEOF | |
4ee9c684 | 6393 | |
4ee9c684 | 6394 | fi |
90973b19 | 6395 | done |
4ee9c684 | 6396 | |
4ee9c684 | 6397 | |
a31bd8a4 | 6398 | # Check for some C99 functions |
6399 | echo "$as_me:$LINENO: checking for round in -lm" >&5 | |
6400 | echo $ECHO_N "checking for round in -lm... $ECHO_C" >&6 | |
6401 | if test "${ac_cv_lib_m_round+set}" = set; then | |
6402 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6403 | else | |
6404 | ac_check_lib_save_LIBS=$LIBS | |
6405 | LIBS="-lm $LIBS" | |
6406 | cat >conftest.$ac_ext <<_ACEOF | |
6407 | /* confdefs.h. */ | |
6408 | _ACEOF | |
6409 | cat confdefs.h >>conftest.$ac_ext | |
6410 | cat >>conftest.$ac_ext <<_ACEOF | |
6411 | /* end confdefs.h. */ | |
6412 | ||
6413 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6414 | #ifdef __cplusplus | |
6415 | extern "C" | |
6416 | #endif | |
6417 | /* We use char because int might match the return type of a gcc2 | |
6418 | builtin and then its argument prototype would still apply. */ | |
6419 | char round (); | |
6420 | int | |
6421 | main () | |
6422 | { | |
6423 | round (); | |
6424 | ; | |
6425 | return 0; | |
6426 | } | |
6427 | _ACEOF | |
6428 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6429 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6430 | (eval $ac_link) 2>conftest.er1 | |
6431 | ac_status=$? | |
6432 | grep -v '^ *+' conftest.er1 >conftest.err | |
6433 | rm -f conftest.er1 | |
6434 | cat conftest.err >&5 | |
6435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6436 | (exit $ac_status); } && | |
6437 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
6438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6439 | (eval $ac_try) 2>&5 | |
6440 | ac_status=$? | |
6441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6442 | (exit $ac_status); }; } && | |
6443 | { ac_try='test -s conftest$ac_exeext' | |
6444 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6445 | (eval $ac_try) 2>&5 | |
6446 | ac_status=$? | |
6447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6448 | (exit $ac_status); }; }; then | |
6449 | ac_cv_lib_m_round=yes | |
6450 | else | |
6451 | echo "$as_me: failed program was:" >&5 | |
6452 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6453 | ||
6454 | ac_cv_lib_m_round=no | |
6455 | fi | |
6456 | rm -f conftest.err conftest.$ac_objext \ | |
6457 | conftest$ac_exeext conftest.$ac_ext | |
6458 | LIBS=$ac_check_lib_save_LIBS | |
6459 | fi | |
6460 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_round" >&5 | |
6461 | echo "${ECHO_T}$ac_cv_lib_m_round" >&6 | |
6462 | if test $ac_cv_lib_m_round = yes; then | |
6463 | ||
6464 | cat >>confdefs.h <<\_ACEOF | |
6465 | #define HAVE_ROUND 1 | |
6466 | _ACEOF | |
6467 | ||
6468 | fi | |
6469 | ||
6470 | echo "$as_me:$LINENO: checking for roundf in -lm" >&5 | |
6471 | echo $ECHO_N "checking for roundf in -lm... $ECHO_C" >&6 | |
6472 | if test "${ac_cv_lib_m_roundf+set}" = set; then | |
6473 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6474 | else | |
6475 | ac_check_lib_save_LIBS=$LIBS | |
6476 | LIBS="-lm $LIBS" | |
6477 | cat >conftest.$ac_ext <<_ACEOF | |
6478 | /* confdefs.h. */ | |
6479 | _ACEOF | |
6480 | cat confdefs.h >>conftest.$ac_ext | |
6481 | cat >>conftest.$ac_ext <<_ACEOF | |
6482 | /* end confdefs.h. */ | |
6483 | ||
6484 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6485 | #ifdef __cplusplus | |
6486 | extern "C" | |
6487 | #endif | |
6488 | /* We use char because int might match the return type of a gcc2 | |
6489 | builtin and then its argument prototype would still apply. */ | |
6490 | char roundf (); | |
6491 | int | |
6492 | main () | |
6493 | { | |
6494 | roundf (); | |
6495 | ; | |
6496 | return 0; | |
6497 | } | |
6498 | _ACEOF | |
6499 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6500 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6501 | (eval $ac_link) 2>conftest.er1 | |
6502 | ac_status=$? | |
6503 | grep -v '^ *+' conftest.er1 >conftest.err | |
6504 | rm -f conftest.er1 | |
6505 | cat conftest.err >&5 | |
6506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6507 | (exit $ac_status); } && | |
6508 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
6509 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6510 | (eval $ac_try) 2>&5 | |
6511 | ac_status=$? | |
6512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6513 | (exit $ac_status); }; } && | |
6514 | { ac_try='test -s conftest$ac_exeext' | |
6515 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6516 | (eval $ac_try) 2>&5 | |
6517 | ac_status=$? | |
6518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6519 | (exit $ac_status); }; }; then | |
6520 | ac_cv_lib_m_roundf=yes | |
6521 | else | |
6522 | echo "$as_me: failed program was:" >&5 | |
6523 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6524 | ||
6525 | ac_cv_lib_m_roundf=no | |
6526 | fi | |
6527 | rm -f conftest.err conftest.$ac_objext \ | |
6528 | conftest$ac_exeext conftest.$ac_ext | |
6529 | LIBS=$ac_check_lib_save_LIBS | |
6530 | fi | |
6531 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_roundf" >&5 | |
6532 | echo "${ECHO_T}$ac_cv_lib_m_roundf" >&6 | |
6533 | if test $ac_cv_lib_m_roundf = yes; then | |
6534 | ||
6535 | cat >>confdefs.h <<\_ACEOF | |
6536 | #define HAVE_ROUNDF 1 | |
6537 | _ACEOF | |
6538 | ||
6539 | fi | |
6540 | ||
6541 | ||
90973b19 | 6542 | # Let the user override this |
6543 | # Check whether --enable-cmath or --disable-cmath was given. | |
6544 | if test "${enable_cmath+set}" = set; then | |
6545 | enableval="$enable_cmath" | |
6546 | need_math=$enableval | |
6547 | fi; | |
6548 | if test "$need_math" = "yes"; then | |
6549 | { echo "$as_me:$LINENO: Including complex math functions in libgfor" >&5 | |
6550 | echo "$as_me: Including complex math functions in libgfor" >&6;}; | |
6551 | extra_math_obj='$(gfor_cmath_obj)' | |
6552 | fi | |
6553 | ||
6554 | MATH_OBJ="$extra_math_obj" | |
6555 | ||
6556 | ||
6557 | # The standard autoconf HAVE_STRUCT_TIMEZONE doesn't actually check | |
6558 | # for struct timezone, as you might think. We also need to check how | |
6559 | # to call gettimeofday if we have it. | |
6560 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 | |
6561 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 | |
6562 | if test "${ac_cv_header_time+set}" = set; then | |
4ee9c684 | 6563 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6564 | else | |
90973b19 | 6565 | cat >conftest.$ac_ext <<_ACEOF |
6566 | /* confdefs.h. */ | |
6567 | _ACEOF | |
6568 | cat confdefs.h >>conftest.$ac_ext | |
6569 | cat >>conftest.$ac_ext <<_ACEOF | |
6570 | /* end confdefs.h. */ | |
6571 | #include <sys/types.h> | |
6572 | #include <sys/time.h> | |
6573 | #include <time.h> | |
6574 | ||
6575 | int | |
6576 | main () | |
6577 | { | |
6578 | if ((struct tm *) 0) | |
6579 | return 0; | |
6580 | ; | |
6581 | return 0; | |
6582 | } | |
6583 | _ACEOF | |
6584 | rm -f conftest.$ac_objext | |
6585 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6586 | (eval $ac_compile) 2>conftest.er1 | |
6587 | ac_status=$? | |
6588 | grep -v '^ *+' conftest.er1 >conftest.err | |
6589 | rm -f conftest.er1 | |
6590 | cat conftest.err >&5 | |
6591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6592 | (exit $ac_status); } && | |
a31bd8a4 | 6593 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
90973b19 | 6594 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6595 | (eval $ac_try) 2>&5 | |
6596 | ac_status=$? | |
6597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6598 | (exit $ac_status); }; } && | |
6599 | { ac_try='test -s conftest.$ac_objext' | |
6600 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6601 | (eval $ac_try) 2>&5 | |
6602 | ac_status=$? | |
6603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6604 | (exit $ac_status); }; }; then | |
6605 | ac_cv_header_time=yes | |
6606 | else | |
6607 | echo "$as_me: failed program was:" >&5 | |
6608 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4ee9c684 | 6609 | |
90973b19 | 6610 | ac_cv_header_time=no |
4ee9c684 | 6611 | fi |
90973b19 | 6612 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4ee9c684 | 6613 | fi |
90973b19 | 6614 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
6615 | echo "${ECHO_T}$ac_cv_header_time" >&6 | |
6616 | if test $ac_cv_header_time = yes; then | |
4ee9c684 | 6617 | |
90973b19 | 6618 | cat >>confdefs.h <<\_ACEOF |
6619 | #define TIME_WITH_SYS_TIME 1 | |
6620 | _ACEOF | |
4ee9c684 | 6621 | |
4ee9c684 | 6622 | fi |
6623 | ||
4ee9c684 | 6624 | |
90973b19 | 6625 | |
6626 | for ac_func in gettimeofday | |
6627 | do | |
6628 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
6629 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6630 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
6631 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
4ee9c684 | 6632 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6633 | else | |
90973b19 | 6634 | cat >conftest.$ac_ext <<_ACEOF |
6635 | /* confdefs.h. */ | |
6636 | _ACEOF | |
6637 | cat confdefs.h >>conftest.$ac_ext | |
6638 | cat >>conftest.$ac_ext <<_ACEOF | |
6639 | /* end confdefs.h. */ | |
6640 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
6641 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6642 | #define $ac_func innocuous_$ac_func | |
6643 | ||
6644 | /* System header to define __stub macros and hopefully few prototypes, | |
6645 | which can conflict with char $ac_func (); below. | |
6646 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6647 | <limits.h> exists even on freestanding compilers. */ | |
6648 | ||
6649 | #ifdef __STDC__ | |
6650 | # include <limits.h> | |
6651 | #else | |
6652 | # include <assert.h> | |
6653 | #endif | |
6654 | ||
6655 | #undef $ac_func | |
6656 | ||
6657 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6658 | #ifdef __cplusplus | |
6659 | extern "C" | |
6660 | { | |
6661 | #endif | |
6662 | /* We use char because int might match the return type of a gcc2 | |
6663 | builtin and then its argument prototype would still apply. */ | |
6664 | char $ac_func (); | |
6665 | /* The GNU C library defines this for functions which it implements | |
6666 | to always fail with ENOSYS. Some functions are actually named | |
6667 | something starting with __ and the normal name is an alias. */ | |
6668 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6669 | choke me | |
6670 | #else | |
6671 | char (*f) () = $ac_func; | |
6672 | #endif | |
6673 | #ifdef __cplusplus | |
6674 | } | |
6675 | #endif | |
6676 | ||
6677 | int | |
6678 | main () | |
6679 | { | |
6680 | return f != $ac_func; | |
6681 | ; | |
6682 | return 0; | |
6683 | } | |
6684 | _ACEOF | |
6685 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6686 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6687 | (eval $ac_link) 2>conftest.er1 | |
6688 | ac_status=$? | |
6689 | grep -v '^ *+' conftest.er1 >conftest.err | |
6690 | rm -f conftest.er1 | |
6691 | cat conftest.err >&5 | |
6692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6693 | (exit $ac_status); } && | |
a31bd8a4 | 6694 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
90973b19 | 6695 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6696 | (eval $ac_try) 2>&5 | |
6697 | ac_status=$? | |
6698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6699 | (exit $ac_status); }; } && | |
6700 | { ac_try='test -s conftest$ac_exeext' | |
6701 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6702 | (eval $ac_try) 2>&5 | |
6703 | ac_status=$? | |
6704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6705 | (exit $ac_status); }; }; then | |
6706 | eval "$as_ac_var=yes" | |
4ee9c684 | 6707 | else |
90973b19 | 6708 | echo "$as_me: failed program was:" >&5 |
6709 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4ee9c684 | 6710 | |
90973b19 | 6711 | eval "$as_ac_var=no" |
4ee9c684 | 6712 | fi |
90973b19 | 6713 | rm -f conftest.err conftest.$ac_objext \ |
6714 | conftest$ac_exeext conftest.$ac_ext | |
4ee9c684 | 6715 | fi |
90973b19 | 6716 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
6717 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
6718 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
6719 | cat >>confdefs.h <<_ACEOF | |
6720 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
6721 | _ACEOF | |
4ee9c684 | 6722 | |
6723 | fi | |
4ee9c684 | 6724 | done |
6725 | ||
90973b19 | 6726 | if test "$ac_cv_func_gettimeofday" = yes; then |
6727 | echo "$as_me:$LINENO: checking for struct timezone" >&5 | |
6728 | echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6 | |
6729 | if test "${gfor_cv_struct_timezone+set}" = set; then | |
6730 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6731 | else | |
6732 | cat >conftest.$ac_ext <<_ACEOF | |
6733 | /* confdefs.h. */ | |
6734 | _ACEOF | |
6735 | cat confdefs.h >>conftest.$ac_ext | |
6736 | cat >>conftest.$ac_ext <<_ACEOF | |
6737 | /* end confdefs.h. */ | |
6738 | #include <sys/time.h> | |
6739 | int | |
6740 | main () | |
6741 | { | |
6742 | struct timezone tz; | |
6743 | ; | |
6744 | return 0; | |
6745 | } | |
6746 | _ACEOF | |
6747 | rm -f conftest.$ac_objext | |
6748 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6749 | (eval $ac_compile) 2>conftest.er1 | |
6750 | ac_status=$? | |
6751 | grep -v '^ *+' conftest.er1 >conftest.err | |
6752 | rm -f conftest.er1 | |
6753 | cat conftest.err >&5 | |
6754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6755 | (exit $ac_status); } && | |
a31bd8a4 | 6756 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
90973b19 | 6757 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6758 | (eval $ac_try) 2>&5 | |
6759 | ac_status=$? | |
6760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6761 | (exit $ac_status); }; } && | |
6762 | { ac_try='test -s conftest.$ac_objext' | |
6763 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6764 | (eval $ac_try) 2>&5 | |
6765 | ac_status=$? | |
6766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6767 | (exit $ac_status); }; }; then | |
6768 | gfor_cv_struct_timezone=yes | |
4ee9c684 | 6769 | else |
90973b19 | 6770 | echo "$as_me: failed program was:" >&5 |
6771 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4ee9c684 | 6772 | |
90973b19 | 6773 | gfor_cv_struct_timezone=no |
4ee9c684 | 6774 | fi |
90973b19 | 6775 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6776 | fi | |
6777 | echo "$as_me:$LINENO: result: $gfor_cv_struct_timezone" >&5 | |
6778 | echo "${ECHO_T}$gfor_cv_struct_timezone" >&6 | |
6779 | if test $gfor_cv_struct_timezone = yes; then | |
6780 | if test "$cross_compiling" = yes; then | |
6781 | gfor_have_struct_timezone=yes | |
4ee9c684 | 6782 | else |
90973b19 | 6783 | cat >conftest.$ac_ext <<_ACEOF |
6784 | /* confdefs.h. */ | |
6785 | _ACEOF | |
6786 | cat confdefs.h >>conftest.$ac_ext | |
6787 | cat >>conftest.$ac_ext <<_ACEOF | |
6788 | /* end confdefs.h. */ | |
4ee9c684 | 6789 | |
90973b19 | 6790 | #ifdef TIME_WITH_SYS_TIME |
6791 | #include <sys/time.h> | |
6792 | #include <time.h> | |
6793 | #else | |
6794 | #ifdef HAVE_SYS_TIME_H | |
6795 | #include <sys/time.h> | |
6796 | #else | |
6797 | #include <time.h> | |
6798 | #endif | |
6799 | #endif | |
6800 | main () | |
6801 | { | |
6802 | struct timeval time; | |
6803 | struct timezone dummy; | |
6804 | if (gettimeofday (&time, &dummy)) | |
6805 | exit (1); | |
6806 | else | |
6807 | exit (0); | |
6808 | } | |
6809 | _ACEOF | |
6810 | rm -f conftest$ac_exeext | |
6811 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6812 | (eval $ac_link) 2>&5 | |
4ee9c684 | 6813 | ac_status=$? |
6814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
90973b19 | 6815 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
6816 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6817 | (eval $ac_try) 2>&5 | |
4ee9c684 | 6818 | ac_status=$? |
6819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
90973b19 | 6820 | (exit $ac_status); }; }; then |
6821 | gfor_have_struct_timezone=yes | |
4ee9c684 | 6822 | else |
90973b19 | 6823 | echo "$as_me: program exited with status $ac_status" >&5 |
6824 | echo "$as_me: failed program was:" >&5 | |
6825 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4ee9c684 | 6826 | |
90973b19 | 6827 | ( exit $ac_status ) |
6828 | gfor_have_struct_timezone=no | |
6829 | fi | |
6830 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
6831 | fi | |
6832 | if test $gfor_have_struct_timezone = yes; then | |
4ee9c684 | 6833 | |
90973b19 | 6834 | cat >>confdefs.h <<\_ACEOF |
6835 | #define HAVE_TIMEZONE 1 | |
6836 | _ACEOF | |
4ee9c684 | 6837 | |
90973b19 | 6838 | fi |
6839 | fi | |
6840 | ||
6841 | echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5 | |
6842 | echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6 | |
6843 | if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then | |
6844 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6845 | else | |
6846 | cat >conftest.$ac_ext <<_ACEOF | |
4ee9c684 | 6847 | /* confdefs.h. */ |
6848 | _ACEOF | |
6849 | cat confdefs.h >>conftest.$ac_ext | |
6850 | cat >>conftest.$ac_ext <<_ACEOF | |
6851 | /* end confdefs.h. */ | |
6852 | ||
90973b19 | 6853 | #ifdef TIME_WITH_SYS_TIME |
6854 | #include <sys/time.h> | |
6855 | #include <time.h> | |
6856 | #else | |
6857 | #ifdef HAVE_SYS_TIME_H | |
6858 | #include <sys/time.h> | |
6859 | #else | |
6860 | #include <time.h> | |
6861 | #endif | |
6862 | #endif | |
6863 | ||
4ee9c684 | 6864 | int |
6865 | main () | |
6866 | { | |
6867 | ||
90973b19 | 6868 | struct timeval time; |
6869 | #ifdef HAVE_TIMEZONE | |
6870 | struct timezone dummy; | |
6871 | #define DUMMY &dummy | |
6872 | #else | |
6873 | #define DUMMY NULL | |
6874 | #endif | |
6875 | gettimeofday (&time, DUMMY); | |
4ee9c684 | 6876 | ; |
6877 | return 0; | |
6878 | } | |
6879 | _ACEOF | |
6880 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6881 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6882 | (eval $ac_link) 2>conftest.er1 | |
6883 | ac_status=$? | |
6884 | grep -v '^ *+' conftest.er1 >conftest.err | |
6885 | rm -f conftest.er1 | |
6886 | cat conftest.err >&5 | |
6887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6888 | (exit $ac_status); } && | |
a31bd8a4 | 6889 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4ee9c684 | 6890 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6891 | (eval $ac_try) 2>&5 | |
6892 | ac_status=$? | |
6893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6894 | (exit $ac_status); }; } && | |
6895 | { ac_try='test -s conftest$ac_exeext' | |
6896 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6897 | (eval $ac_try) 2>&5 | |
6898 | ac_status=$? | |
6899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6900 | (exit $ac_status); }; }; then | |
90973b19 | 6901 | emacs_cv_gettimeofday_two_arguments=yes |
4ee9c684 | 6902 | else |
6903 | echo "$as_me: failed program was:" >&5 | |
6904 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6905 | ||
90973b19 | 6906 | emacs_cv_gettimeofday_two_arguments=no |
4ee9c684 | 6907 | fi |
6908 | rm -f conftest.err conftest.$ac_objext \ | |
6909 | conftest$ac_exeext conftest.$ac_ext | |
4ee9c684 | 6910 | fi |
90973b19 | 6911 | echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5 |
6912 | echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6 | |
6913 | if test $emacs_cv_gettimeofday_two_arguments = no; then | |
4ee9c684 | 6914 | |
90973b19 | 6915 | cat >>confdefs.h <<\_ACEOF |
6916 | #define GETTIMEOFDAY_ONE_ARGUMENT 1 | |
6917 | _ACEOF | |
4ee9c684 | 6918 | |
90973b19 | 6919 | fi |
6920 | fi | |
4ee9c684 | 6921 | |
4ee9c684 | 6922 | cat >confcache <<\_ACEOF |
6923 | # This file is a shell script that caches the results of configure | |
6924 | # tests run on this system so they can be shared between configure | |
6925 | # scripts and configure runs, see configure's option --config-cache. | |
6926 | # It is not useful on other systems. If it contains results you don't | |
6927 | # want to keep, you may remove or edit it. | |
6928 | # | |
6929 | # config.status only pays attention to the cache file if you give it | |
6930 | # the --recheck option to rerun configure. | |
6931 | # | |
6932 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
6933 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
6934 | # following values. | |
6935 | ||
6936 | _ACEOF | |
6937 | ||
6938 | # The following way of writing the cache mishandles newlines in values, | |
6939 | # but we know of no workaround that is simple, portable, and efficient. | |
6940 | # So, don't put newlines in cache variables' values. | |
6941 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
6942 | # and sets the high bit in the cache file unless we assign to the vars. | |
6943 | { | |
6944 | (set) 2>&1 | | |
6945 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
6946 | *ac_space=\ *) | |
6947 | # `set' does not quote correctly, so add quotes (double-quote | |
6948 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
6949 | sed -n \ | |
6950 | "s/'/'\\\\''/g; | |
6951 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
6952 | ;; | |
6953 | *) | |
6954 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
6955 | sed -n \ | |
6956 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
6957 | ;; | |
6958 | esac; | |
6959 | } | | |
6960 | sed ' | |
6961 | t clear | |
6962 | : clear | |
6963 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
6964 | t end | |
6965 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
6966 | : end' >>confcache | |
6967 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
6968 | if test -w $cache_file; then | |
6969 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
6970 | cat confcache >$cache_file | |
6971 | else | |
6972 | echo "not updating unwritable cache $cache_file" | |
6973 | fi | |
6974 | fi | |
6975 | rm -f confcache | |
6976 | ||
90973b19 | 6977 | if test ${multilib} = yes; then |
6978 | multilib_arg="--enable-multilib" | |
4ee9c684 | 6979 | else |
90973b19 | 6980 | multilib_arg= |
4ee9c684 | 6981 | fi |
4ee9c684 | 6982 | |
90973b19 | 6983 | # Write our Makefile. |
4ee9c684 | 6984 | ac_config_files="$ac_config_files Makefile" |
90973b19 | 6985 | |
4ee9c684 | 6986 | cat >confcache <<\_ACEOF |
6987 | # This file is a shell script that caches the results of configure | |
6988 | # tests run on this system so they can be shared between configure | |
6989 | # scripts and configure runs, see configure's option --config-cache. | |
6990 | # It is not useful on other systems. If it contains results you don't | |
6991 | # want to keep, you may remove or edit it. | |
6992 | # | |
6993 | # config.status only pays attention to the cache file if you give it | |
6994 | # the --recheck option to rerun configure. | |
6995 | # | |
6996 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
6997 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
6998 | # following values. | |
6999 | ||
7000 | _ACEOF | |
7001 | ||
7002 | # The following way of writing the cache mishandles newlines in values, | |
7003 | # but we know of no workaround that is simple, portable, and efficient. | |
7004 | # So, don't put newlines in cache variables' values. | |
7005 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
7006 | # and sets the high bit in the cache file unless we assign to the vars. | |
7007 | { | |
7008 | (set) 2>&1 | | |
7009 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
7010 | *ac_space=\ *) | |
7011 | # `set' does not quote correctly, so add quotes (double-quote | |
7012 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
7013 | sed -n \ | |
7014 | "s/'/'\\\\''/g; | |
7015 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
7016 | ;; | |
7017 | *) | |
7018 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7019 | sed -n \ | |
7020 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
7021 | ;; | |
7022 | esac; | |
7023 | } | | |
7024 | sed ' | |
7025 | t clear | |
7026 | : clear | |
7027 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
7028 | t end | |
7029 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
7030 | : end' >>confcache | |
7031 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
7032 | if test -w $cache_file; then | |
7033 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
7034 | cat confcache >$cache_file | |
7035 | else | |
7036 | echo "not updating unwritable cache $cache_file" | |
7037 | fi | |
7038 | fi | |
7039 | rm -f confcache | |
7040 | ||
7041 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
7042 | # Let make expand exec_prefix. | |
7043 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
7044 | ||
7045 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
7046 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
7047 | # trailing colons and then remove the whole line if VPATH becomes empty | |
7048 | # (actually we leave an empty line to preserve line numbers). | |
7049 | if test "x$srcdir" = x.; then | |
7050 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
7051 | s/:*\$(srcdir):*/:/; | |
7052 | s/:*\${srcdir}:*/:/; | |
7053 | s/:*@srcdir@:*/:/; | |
7054 | s/^\([^=]*=[ ]*\):*/\1/; | |
7055 | s/:*$//; | |
7056 | s/^[^=]*=[ ]*$//; | |
7057 | }' | |
7058 | fi | |
7059 | ||
7060 | DEFS=-DHAVE_CONFIG_H | |
7061 | ||
7062 | ac_libobjs= | |
7063 | ac_ltlibobjs= | |
7064 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
7065 | # 1. Remove the extension, and $U if already installed. | |
7066 | ac_i=`echo "$ac_i" | | |
7067 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | |
7068 | # 2. Add them. | |
7069 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
7070 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
7071 | done | |
7072 | LIBOBJS=$ac_libobjs | |
7073 | ||
7074 | LTLIBOBJS=$ac_ltlibobjs | |
7075 | ||
7076 | ||
7077 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then | |
7078 | { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. | |
7079 | Usually this means the macro was only invoked conditionally." >&5 | |
7080 | echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. | |
7081 | Usually this means the macro was only invoked conditionally." >&2;} | |
7082 | { (exit 1); exit 1; }; } | |
7083 | fi | |
4ee9c684 | 7084 | |
7085 | : ${CONFIG_STATUS=./config.status} | |
7086 | ac_clean_files_save=$ac_clean_files | |
7087 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
7088 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
7089 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
7090 | cat >$CONFIG_STATUS <<_ACEOF | |
7091 | #! $SHELL | |
7092 | # Generated by $as_me. | |
7093 | # Run this file to recreate the current configuration. | |
7094 | # Compiler output produced by configure, useful for debugging | |
7095 | # configure, is in config.log if it exists. | |
7096 | ||
7097 | debug=false | |
7098 | ac_cs_recheck=false | |
7099 | ac_cs_silent=false | |
7100 | SHELL=\${CONFIG_SHELL-$SHELL} | |
7101 | _ACEOF | |
7102 | ||
7103 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7104 | ## --------------------- ## | |
7105 | ## M4sh Initialization. ## | |
7106 | ## --------------------- ## | |
7107 | ||
7108 | # Be Bourne compatible | |
7109 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
7110 | emulate sh | |
7111 | NULLCMD=: | |
7112 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
7113 | # is contrary to our usage. Disable this feature. | |
7114 | alias -g '${1+"$@"}'='"$@"' | |
7115 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
7116 | set -o posix | |
7117 | fi | |
7118 | DUALCASE=1; export DUALCASE # for MKS sh | |
7119 | ||
7120 | # Support unset when possible. | |
7121 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
7122 | as_unset=unset | |
7123 | else | |
7124 | as_unset=false | |
7125 | fi | |
7126 | ||
7127 | ||
7128 | # Work around bugs in pre-3.0 UWIN ksh. | |
7129 | $as_unset ENV MAIL MAILPATH | |
7130 | PS1='$ ' | |
7131 | PS2='> ' | |
7132 | PS4='+ ' | |
7133 | ||
7134 | # NLS nuisances. | |
7135 | for as_var in \ | |
7136 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
7137 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
7138 | LC_TELEPHONE LC_TIME | |
7139 | do | |
7140 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
7141 | eval $as_var=C; export $as_var | |
7142 | else | |
7143 | $as_unset $as_var | |
7144 | fi | |
7145 | done | |
7146 | ||
7147 | # Required to use basename. | |
7148 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
7149 | as_expr=expr | |
7150 | else | |
7151 | as_expr=false | |
7152 | fi | |
7153 | ||
7154 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
7155 | as_basename=basename | |
7156 | else | |
7157 | as_basename=false | |
7158 | fi | |
7159 | ||
7160 | ||
7161 | # Name of the executable. | |
7162 | as_me=`$as_basename "$0" || | |
7163 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
7164 | X"$0" : 'X\(//\)$' \| \ | |
7165 | X"$0" : 'X\(/\)$' \| \ | |
7166 | . : '\(.\)' 2>/dev/null || | |
7167 | echo X/"$0" | | |
7168 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
7169 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
7170 | /^X\/\(\/\).*/{ s//\1/; q; } | |
7171 | s/.*/./; q'` | |
7172 | ||
7173 | ||
7174 | # PATH needs CR, and LINENO needs CR and PATH. | |
7175 | # Avoid depending upon Character Ranges. | |
7176 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
7177 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
7178 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
7179 | as_cr_digits='0123456789' | |
7180 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
7181 | ||
7182 | # The user is always right. | |
7183 | if test "${PATH_SEPARATOR+set}" != set; then | |
7184 | echo "#! /bin/sh" >conf$$.sh | |
7185 | echo "exit 0" >>conf$$.sh | |
7186 | chmod +x conf$$.sh | |
7187 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
7188 | PATH_SEPARATOR=';' | |
7189 | else | |
7190 | PATH_SEPARATOR=: | |
7191 | fi | |
7192 | rm -f conf$$.sh | |
7193 | fi | |
7194 | ||
7195 | ||
7196 | as_lineno_1=$LINENO | |
7197 | as_lineno_2=$LINENO | |
7198 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
7199 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
7200 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
7201 | # Find who we are. Look in the path if we contain no path at all | |
7202 | # relative or not. | |
7203 | case $0 in | |
7204 | *[\\/]* ) as_myself=$0 ;; | |
7205 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7206 | for as_dir in $PATH | |
7207 | do | |
7208 | IFS=$as_save_IFS | |
7209 | test -z "$as_dir" && as_dir=. | |
7210 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
7211 | done | |
7212 | ||
7213 | ;; | |
7214 | esac | |
7215 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
7216 | # in which case we are not to be found in the path. | |
7217 | if test "x$as_myself" = x; then | |
7218 | as_myself=$0 | |
7219 | fi | |
7220 | if test ! -f "$as_myself"; then | |
7221 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
7222 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
7223 | { (exit 1); exit 1; }; } | |
7224 | fi | |
7225 | case $CONFIG_SHELL in | |
7226 | '') | |
7227 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7228 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
7229 | do | |
7230 | IFS=$as_save_IFS | |
7231 | test -z "$as_dir" && as_dir=. | |
7232 | for as_base in sh bash ksh sh5; do | |
7233 | case $as_dir in | |
7234 | /*) | |
7235 | if ("$as_dir/$as_base" -c ' | |
7236 | as_lineno_1=$LINENO | |
7237 | as_lineno_2=$LINENO | |
7238 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
7239 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
7240 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
7241 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
7242 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
7243 | CONFIG_SHELL=$as_dir/$as_base | |
7244 | export CONFIG_SHELL | |
7245 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
7246 | fi;; | |
7247 | esac | |
7248 | done | |
7249 | done | |
7250 | ;; | |
7251 | esac | |
7252 | ||
7253 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
7254 | # uniformly replaced by the line number. The first 'sed' inserts a | |
7255 | # line-number line before each line; the second 'sed' does the real | |
7256 | # work. The second script uses 'N' to pair each line-number line | |
7257 | # with the numbered line, and appends trailing '-' during | |
7258 | # substitution so that $LINENO is not a special case at line end. | |
7259 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
7260 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
7261 | sed '=' <$as_myself | | |
7262 | sed ' | |
7263 | N | |
7264 | s,$,-, | |
7265 | : loop | |
7266 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
7267 | t loop | |
7268 | s,-$,, | |
7269 | s,^['$as_cr_digits']*\n,, | |
7270 | ' >$as_me.lineno && | |
7271 | chmod +x $as_me.lineno || | |
7272 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
7273 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
7274 | { (exit 1); exit 1; }; } | |
7275 | ||
7276 | # Don't try to exec as it changes $[0], causing all sort of problems | |
7277 | # (the dirname of $[0] is not the place where we might find the | |
7278 | # original and so on. Autoconf is especially sensible to this). | |
7279 | . ./$as_me.lineno | |
7280 | # Exit status is that of the last command. | |
7281 | exit | |
7282 | } | |
7283 | ||
7284 | ||
7285 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
7286 | *c*,-n*) ECHO_N= ECHO_C=' | |
7287 | ' ECHO_T=' ' ;; | |
7288 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
7289 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
7290 | esac | |
7291 | ||
7292 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
7293 | as_expr=expr | |
7294 | else | |
7295 | as_expr=false | |
7296 | fi | |
7297 | ||
7298 | rm -f conf$$ conf$$.exe conf$$.file | |
7299 | echo >conf$$.file | |
7300 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
7301 | # We could just check for DJGPP; but this test a) works b) is more generic | |
7302 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
7303 | if test -f conf$$.exe; then | |
7304 | # Don't use ln at all; we don't have any links | |
7305 | as_ln_s='cp -p' | |
7306 | else | |
7307 | as_ln_s='ln -s' | |
7308 | fi | |
7309 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
7310 | as_ln_s=ln | |
7311 | else | |
7312 | as_ln_s='cp -p' | |
7313 | fi | |
7314 | rm -f conf$$ conf$$.exe conf$$.file | |
7315 | ||
7316 | if mkdir -p . 2>/dev/null; then | |
7317 | as_mkdir_p=: | |
7318 | else | |
7319 | test -d ./-p && rmdir ./-p | |
7320 | as_mkdir_p=false | |
7321 | fi | |
7322 | ||
7323 | as_executable_p="test -f" | |
7324 | ||
7325 | # Sed expression to map a string onto a valid CPP name. | |
7326 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
7327 | ||
7328 | # Sed expression to map a string onto a valid variable name. | |
7329 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
7330 | ||
7331 | ||
7332 | # IFS | |
7333 | # We need space, tab and new line, in precisely that order. | |
7334 | as_nl=' | |
7335 | ' | |
7336 | IFS=" $as_nl" | |
7337 | ||
7338 | # CDPATH. | |
7339 | $as_unset CDPATH | |
7340 | ||
7341 | exec 6>&1 | |
7342 | ||
7343 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
7344 | # report actual input values of CONFIG_FILES etc. instead of their | |
7345 | # values after options handling. Logging --version etc. is OK. | |
7346 | exec 5>>config.log | |
7347 | { | |
7348 | echo | |
7349 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
7350 | ## Running $as_me. ## | |
7351 | _ASBOX | |
7352 | } >&5 | |
7353 | cat >&5 <<_CSEOF | |
7354 | ||
7355 | This file was extended by GNU Fortran Runtime Library $as_me 0.2, which was | |
7356 | generated by GNU Autoconf 2.59. Invocation command line was | |
7357 | ||
7358 | CONFIG_FILES = $CONFIG_FILES | |
7359 | CONFIG_HEADERS = $CONFIG_HEADERS | |
7360 | CONFIG_LINKS = $CONFIG_LINKS | |
7361 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
7362 | $ $0 $@ | |
7363 | ||
7364 | _CSEOF | |
7365 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
7366 | echo >&5 | |
7367 | _ACEOF | |
7368 | ||
7369 | # Files that config.status was made for. | |
7370 | if test -n "$ac_config_files"; then | |
7371 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
7372 | fi | |
7373 | ||
7374 | if test -n "$ac_config_headers"; then | |
7375 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
7376 | fi | |
7377 | ||
7378 | if test -n "$ac_config_links"; then | |
7379 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
7380 | fi | |
7381 | ||
7382 | if test -n "$ac_config_commands"; then | |
7383 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
7384 | fi | |
7385 | ||
7386 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7387 | ||
7388 | ac_cs_usage="\ | |
7389 | \`$as_me' instantiates files from templates according to the | |
7390 | current configuration. | |
7391 | ||
7392 | Usage: $0 [OPTIONS] [FILE]... | |
7393 | ||
7394 | -h, --help print this help, then exit | |
7395 | -V, --version print version number, then exit | |
7396 | -q, --quiet do not print progress messages | |
7397 | -d, --debug don't remove temporary files | |
7398 | --recheck update $as_me by reconfiguring in the same conditions | |
7399 | --file=FILE[:TEMPLATE] | |
7400 | instantiate the configuration file FILE | |
7401 | --header=FILE[:TEMPLATE] | |
7402 | instantiate the configuration header FILE | |
7403 | ||
7404 | Configuration files: | |
7405 | $config_files | |
7406 | ||
7407 | Configuration headers: | |
7408 | $config_headers | |
7409 | ||
7410 | Configuration commands: | |
7411 | $config_commands | |
7412 | ||
7413 | Report bugs to <bug-autoconf@gnu.org>." | |
7414 | _ACEOF | |
7415 | ||
7416 | cat >>$CONFIG_STATUS <<_ACEOF | |
7417 | ac_cs_version="\\ | |
7418 | GNU Fortran Runtime Library config.status 0.2 | |
7419 | configured by $0, generated by GNU Autoconf 2.59, | |
7420 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
7421 | ||
7422 | Copyright (C) 2003 Free Software Foundation, Inc. | |
7423 | This config.status script is free software; the Free Software Foundation | |
7424 | gives unlimited permission to copy, distribute and modify it." | |
7425 | srcdir=$srcdir | |
7426 | INSTALL="$INSTALL" | |
7427 | _ACEOF | |
7428 | ||
7429 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7430 | # If no file are specified by the user, then we need to provide default | |
7431 | # value. By we need to know if files were specified by the user. | |
7432 | ac_need_defaults=: | |
7433 | while test $# != 0 | |
7434 | do | |
7435 | case $1 in | |
7436 | --*=*) | |
7437 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
7438 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
7439 | ac_shift=: | |
7440 | ;; | |
7441 | -*) | |
7442 | ac_option=$1 | |
7443 | ac_optarg=$2 | |
7444 | ac_shift=shift | |
7445 | ;; | |
7446 | *) # This is not an option, so the user has probably given explicit | |
7447 | # arguments. | |
7448 | ac_option=$1 | |
7449 | ac_need_defaults=false;; | |
7450 | esac | |
7451 | ||
7452 | case $ac_option in | |
7453 | # Handling of the options. | |
7454 | _ACEOF | |
7455 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7456 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
7457 | ac_cs_recheck=: ;; | |
7458 | --version | --vers* | -V ) | |
7459 | echo "$ac_cs_version"; exit 0 ;; | |
7460 | --he | --h) | |
7461 | # Conflict between --help and --header | |
7462 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
7463 | Try \`$0 --help' for more information." >&5 | |
7464 | echo "$as_me: error: ambiguous option: $1 | |
7465 | Try \`$0 --help' for more information." >&2;} | |
7466 | { (exit 1); exit 1; }; };; | |
7467 | --help | --hel | -h ) | |
7468 | echo "$ac_cs_usage"; exit 0 ;; | |
7469 | --debug | --d* | -d ) | |
7470 | debug=: ;; | |
7471 | --file | --fil | --fi | --f ) | |
7472 | $ac_shift | |
7473 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
7474 | ac_need_defaults=false;; | |
7475 | --header | --heade | --head | --hea ) | |
7476 | $ac_shift | |
7477 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
7478 | ac_need_defaults=false;; | |
7479 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
7480 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
7481 | ac_cs_silent=: ;; | |
7482 | ||
7483 | # This is an error. | |
7484 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
7485 | Try \`$0 --help' for more information." >&5 | |
7486 | echo "$as_me: error: unrecognized option: $1 | |
7487 | Try \`$0 --help' for more information." >&2;} | |
7488 | { (exit 1); exit 1; }; } ;; | |
7489 | ||
7490 | *) ac_config_targets="$ac_config_targets $1" ;; | |
7491 | ||
7492 | esac | |
7493 | shift | |
7494 | done | |
7495 | ||
7496 | ac_configure_extra_args= | |
7497 | ||
7498 | if $ac_cs_silent; then | |
7499 | exec 6>/dev/null | |
7500 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
7501 | fi | |
7502 | ||
7503 | _ACEOF | |
7504 | cat >>$CONFIG_STATUS <<_ACEOF | |
7505 | if \$ac_cs_recheck; then | |
7506 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
7507 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
7508 | fi | |
7509 | ||
7510 | _ACEOF | |
7511 | ||
7512 | cat >>$CONFIG_STATUS <<_ACEOF | |
7513 | # | |
7514 | # INIT-COMMANDS section. | |
7515 | # | |
7516 | ||
90973b19 | 7517 | |
7518 | srcdir="$srcdir" | |
7519 | host="$host" | |
7520 | target="$target" | |
7521 | with_multisubdir="$with_multisubdir" | |
7522 | with_multisrctop="$with_multisrctop" | |
7523 | with_target_subdir="$with_target_subdir" | |
7524 | ac_configure_args="${multilib_arg} ${ac_configure_args}" | |
7525 | multi_basedir="$multi_basedir" | |
7526 | CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
7527 | CC="$CC" | |
4ee9c684 | 7528 | |
7529 | _ACEOF | |
7530 | ||
7531 | ||
7532 | ||
7533 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7534 | for ac_config_target in $ac_config_targets | |
7535 | do | |
7536 | case "$ac_config_target" in | |
7537 | # Handling of arguments. | |
7538 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
90973b19 | 7539 | "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; |
4ee9c684 | 7540 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
7541 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
7542 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
7543 | { (exit 1); exit 1; }; };; | |
7544 | esac | |
7545 | done | |
7546 | ||
7547 | # If the user did not use the arguments to specify the items to instantiate, | |
7548 | # then the envvar interface is used. Set only those that are not. | |
7549 | # We use the long form for the default assignment because of an extremely | |
7550 | # bizarre bug on SunOS 4.1.3. | |
7551 | if $ac_need_defaults; then | |
7552 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
7553 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
7554 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
7555 | fi | |
7556 | ||
7557 | # Have a temporary directory for convenience. Make it in the build tree | |
7558 | # simply because there is no reason to put it here, and in addition, | |
7559 | # creating and moving files from /tmp can sometimes cause problems. | |
7560 | # Create a temporary directory, and hook for its removal unless debugging. | |
7561 | $debug || | |
7562 | { | |
7563 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
7564 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
7565 | } | |
7566 | ||
7567 | # Create a (secure) tmp directory for tmp files. | |
7568 | ||
7569 | { | |
7570 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
7571 | test -n "$tmp" && test -d "$tmp" | |
7572 | } || | |
7573 | { | |
7574 | tmp=./confstat$$-$RANDOM | |
7575 | (umask 077 && mkdir $tmp) | |
7576 | } || | |
7577 | { | |
7578 | echo "$me: cannot create a temporary directory in ." >&2 | |
7579 | { (exit 1); exit 1; } | |
7580 | } | |
7581 | ||
7582 | _ACEOF | |
7583 | ||
7584 | cat >>$CONFIG_STATUS <<_ACEOF | |
7585 | ||
7586 | # | |
7587 | # CONFIG_FILES section. | |
7588 | # | |
7589 | ||
7590 | # No need to generate the scripts if there are no CONFIG_FILES. | |
7591 | # This happens for instance when ./config.status config.h | |
7592 | if test -n "\$CONFIG_FILES"; then | |
7593 | # Protect against being on the right side of a sed subst in config.status. | |
7594 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
7595 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
7596 | s,@SHELL@,$SHELL,;t t | |
7597 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
7598 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
7599 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
7600 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
7601 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
7602 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
7603 | s,@exec_prefix@,$exec_prefix,;t t | |
7604 | s,@prefix@,$prefix,;t t | |
7605 | s,@program_transform_name@,$program_transform_name,;t t | |
7606 | s,@bindir@,$bindir,;t t | |
7607 | s,@sbindir@,$sbindir,;t t | |
7608 | s,@libexecdir@,$libexecdir,;t t | |
7609 | s,@datadir@,$datadir,;t t | |
7610 | s,@sysconfdir@,$sysconfdir,;t t | |
7611 | s,@sharedstatedir@,$sharedstatedir,;t t | |
7612 | s,@localstatedir@,$localstatedir,;t t | |
7613 | s,@libdir@,$libdir,;t t | |
7614 | s,@includedir@,$includedir,;t t | |
7615 | s,@oldincludedir@,$oldincludedir,;t t | |
7616 | s,@infodir@,$infodir,;t t | |
7617 | s,@mandir@,$mandir,;t t | |
7618 | s,@build_alias@,$build_alias,;t t | |
7619 | s,@host_alias@,$host_alias,;t t | |
7620 | s,@target_alias@,$target_alias,;t t | |
7621 | s,@DEFS@,$DEFS,;t t | |
7622 | s,@ECHO_C@,$ECHO_C,;t t | |
7623 | s,@ECHO_N@,$ECHO_N,;t t | |
7624 | s,@ECHO_T@,$ECHO_T,;t t | |
7625 | s,@LIBS@,$LIBS,;t t | |
90973b19 | 7626 | s,@libtool_VERSION@,$libtool_VERSION,;t t |
7627 | s,@build@,$build,;t t | |
7628 | s,@build_cpu@,$build_cpu,;t t | |
7629 | s,@build_vendor@,$build_vendor,;t t | |
7630 | s,@build_os@,$build_os,;t t | |
7631 | s,@host@,$host,;t t | |
7632 | s,@host_cpu@,$host_cpu,;t t | |
7633 | s,@host_vendor@,$host_vendor,;t t | |
7634 | s,@host_os@,$host_os,;t t | |
7635 | s,@target@,$target,;t t | |
7636 | s,@target_cpu@,$target_cpu,;t t | |
7637 | s,@target_vendor@,$target_vendor,;t t | |
7638 | s,@target_os@,$target_os,;t t | |
4ee9c684 | 7639 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
7640 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
7641 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
7642 | s,@CYGPATH_W@,$CYGPATH_W,;t t | |
7643 | s,@PACKAGE@,$PACKAGE,;t t | |
7644 | s,@VERSION@,$VERSION,;t t | |
7645 | s,@ACLOCAL@,$ACLOCAL,;t t | |
7646 | s,@AUTOCONF@,$AUTOCONF,;t t | |
7647 | s,@AUTOMAKE@,$AUTOMAKE,;t t | |
7648 | s,@AUTOHEADER@,$AUTOHEADER,;t t | |
7649 | s,@MAKEINFO@,$MAKEINFO,;t t | |
7650 | s,@AMTAR@,$AMTAR,;t t | |
7651 | s,@install_sh@,$install_sh,;t t | |
7652 | s,@STRIP@,$STRIP,;t t | |
7653 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | |
7654 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t | |
7655 | s,@mkdir_p@,$mkdir_p,;t t | |
7656 | s,@AWK@,$AWK,;t t | |
7657 | s,@SET_MAKE@,$SET_MAKE,;t t | |
7658 | s,@am__leading_dot@,$am__leading_dot,;t t | |
7659 | s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t | |
7660 | s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t | |
7661 | s,@MAINT@,$MAINT,;t t | |
90973b19 | 7662 | s,@multi_basedir@,$multi_basedir,;t t |
7663 | s,@gcc_version@,$gcc_version,;t t | |
7664 | s,@toolexecdir@,$toolexecdir,;t t | |
7665 | s,@toolexeclibdir@,$toolexeclibdir,;t t | |
4ee9c684 | 7666 | s,@CC@,$CC,;t t |
4ee9c684 | 7667 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
7668 | s,@EXEEXT@,$EXEEXT,;t t | |
7669 | s,@OBJEXT@,$OBJEXT,;t t | |
90973b19 | 7670 | s,@CFLAGS@,$CFLAGS,;t t |
7671 | s,@AS@,$AS,;t t | |
7672 | s,@ac_ct_AS@,$ac_ct_AS,;t t | |
7673 | s,@AR@,$AR,;t t | |
7674 | s,@ac_ct_AR@,$ac_ct_AR,;t t | |
7675 | s,@RANLIB@,$RANLIB,;t t | |
7676 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
7677 | s,@LN_S@,$LN_S,;t t | |
7678 | s,@LIBTOOL@,$LIBTOOL,;t t | |
7679 | s,@enable_shared@,$enable_shared,;t t | |
7680 | s,@enable_static@,$enable_static,;t t | |
4ee9c684 | 7681 | s,@F77@,$F77,;t t |
7682 | s,@FFLAGS@,$FFLAGS,;t t | |
90973b19 | 7683 | s,@LDFLAGS@,$LDFLAGS,;t t |
4ee9c684 | 7684 | s,@ac_ct_F77@,$ac_ct_F77,;t t |
7685 | s,@CPP@,$CPP,;t t | |
90973b19 | 7686 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
4ee9c684 | 7687 | s,@EGREP@,$EGREP,;t t |
7688 | s,@MATH_OBJ@,$MATH_OBJ,;t t | |
4ee9c684 | 7689 | s,@LIBOBJS@,$LIBOBJS,;t t |
7690 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
7691 | CEOF | |
7692 | ||
7693 | _ACEOF | |
7694 | ||
7695 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7696 | # Split the substitutions into bite-sized pieces for seds with | |
7697 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
7698 | ac_max_sed_lines=48 | |
7699 | ac_sed_frag=1 # Number of current file. | |
7700 | ac_beg=1 # First line for current file. | |
7701 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
7702 | ac_more_lines=: | |
7703 | ac_sed_cmds= | |
7704 | while $ac_more_lines; do | |
7705 | if test $ac_beg -gt 1; then | |
7706 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
7707 | else | |
7708 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
7709 | fi | |
7710 | if test ! -s $tmp/subs.frag; then | |
7711 | ac_more_lines=false | |
7712 | else | |
7713 | # The purpose of the label and of the branching condition is to | |
7714 | # speed up the sed processing (if there are no `@' at all, there | |
7715 | # is no need to browse any of the substitutions). | |
7716 | # These are the two extra sed commands mentioned above. | |
7717 | (echo ':t | |
7718 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
7719 | if test -z "$ac_sed_cmds"; then | |
7720 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
7721 | else | |
7722 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
7723 | fi | |
7724 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
7725 | ac_beg=$ac_end | |
7726 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
7727 | fi | |
7728 | done | |
7729 | if test -z "$ac_sed_cmds"; then | |
7730 | ac_sed_cmds=cat | |
7731 | fi | |
7732 | fi # test -n "$CONFIG_FILES" | |
7733 | ||
7734 | _ACEOF | |
7735 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7736 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
7737 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
7738 | case $ac_file in | |
7739 | - | *:- | *:-:* ) # input from stdin | |
7740 | cat >$tmp/stdin | |
7741 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
7742 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
7743 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
7744 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
7745 | * ) ac_file_in=$ac_file.in ;; | |
7746 | esac | |
7747 | ||
7748 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | |
7749 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
7750 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
7751 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
7752 | X"$ac_file" : 'X\(//\)$' \| \ | |
7753 | X"$ac_file" : 'X\(/\)' \| \ | |
7754 | . : '\(.\)' 2>/dev/null || | |
7755 | echo X"$ac_file" | | |
7756 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
7757 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
7758 | /^X\(\/\/\)$/{ s//\1/; q; } | |
7759 | /^X\(\/\).*/{ s//\1/; q; } | |
7760 | s/.*/./; q'` | |
7761 | { if $as_mkdir_p; then | |
7762 | mkdir -p "$ac_dir" | |
7763 | else | |
7764 | as_dir="$ac_dir" | |
7765 | as_dirs= | |
7766 | while test ! -d "$as_dir"; do | |
7767 | as_dirs="$as_dir $as_dirs" | |
7768 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
7769 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
7770 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
7771 | X"$as_dir" : 'X\(//\)$' \| \ | |
7772 | X"$as_dir" : 'X\(/\)' \| \ | |
7773 | . : '\(.\)' 2>/dev/null || | |
7774 | echo X"$as_dir" | | |
7775 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
7776 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
7777 | /^X\(\/\/\)$/{ s//\1/; q; } | |
7778 | /^X\(\/\).*/{ s//\1/; q; } | |
7779 | s/.*/./; q'` | |
7780 | done | |
7781 | test ! -n "$as_dirs" || mkdir $as_dirs | |
7782 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
7783 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
7784 | { (exit 1); exit 1; }; }; } | |
7785 | ||
7786 | ac_builddir=. | |
7787 | ||
7788 | if test "$ac_dir" != .; then | |
7789 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
7790 | # A "../" for each directory in $ac_dir_suffix. | |
7791 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
7792 | else | |
7793 | ac_dir_suffix= ac_top_builddir= | |
7794 | fi | |
7795 | ||
7796 | case $srcdir in | |
7797 | .) # No --srcdir option. We are building in place. | |
7798 | ac_srcdir=. | |
7799 | if test -z "$ac_top_builddir"; then | |
7800 | ac_top_srcdir=. | |
7801 | else | |
7802 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
7803 | fi ;; | |
7804 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
7805 | ac_srcdir=$srcdir$ac_dir_suffix; | |
7806 | ac_top_srcdir=$srcdir ;; | |
7807 | *) # Relative path. | |
7808 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
7809 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
7810 | esac | |
7811 | ||
7812 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
7813 | # the directories may not exist. | |
7814 | case `pwd` in | |
7815 | .) ac_abs_builddir="$ac_dir";; | |
7816 | *) | |
7817 | case "$ac_dir" in | |
7818 | .) ac_abs_builddir=`pwd`;; | |
7819 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
7820 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
7821 | esac;; | |
7822 | esac | |
7823 | case $ac_abs_builddir in | |
7824 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
7825 | *) | |
7826 | case ${ac_top_builddir}. in | |
7827 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
7828 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
7829 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
7830 | esac;; | |
7831 | esac | |
7832 | case $ac_abs_builddir in | |
7833 | .) ac_abs_srcdir=$ac_srcdir;; | |
7834 | *) | |
7835 | case $ac_srcdir in | |
7836 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
7837 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
7838 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
7839 | esac;; | |
7840 | esac | |
7841 | case $ac_abs_builddir in | |
7842 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
7843 | *) | |
7844 | case $ac_top_srcdir in | |
7845 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
7846 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
7847 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
7848 | esac;; | |
7849 | esac | |
7850 | ||
7851 | ||
7852 | case $INSTALL in | |
7853 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
7854 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
7855 | esac | |
7856 | ||
7857 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
7858 | # use $as_me), people would be surprised to read: | |
7859 | # /* config.h. Generated by config.status. */ | |
7860 | if test x"$ac_file" = x-; then | |
7861 | configure_input= | |
7862 | else | |
7863 | configure_input="$ac_file. " | |
7864 | fi | |
7865 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
7866 | sed 's,.*/,,'` by configure." | |
7867 | ||
7868 | # First look for the input files in the build tree, otherwise in the | |
7869 | # src tree. | |
7870 | ac_file_inputs=`IFS=: | |
7871 | for f in $ac_file_in; do | |
7872 | case $f in | |
7873 | -) echo $tmp/stdin ;; | |
7874 | [\\/$]*) | |
7875 | # Absolute (can't be DOS-style, as IFS=:) | |
7876 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
7877 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
7878 | { (exit 1); exit 1; }; } | |
7879 | echo "$f";; | |
7880 | *) # Relative | |
7881 | if test -f "$f"; then | |
7882 | # Build tree | |
7883 | echo "$f" | |
7884 | elif test -f "$srcdir/$f"; then | |
7885 | # Source tree | |
7886 | echo "$srcdir/$f" | |
7887 | else | |
7888 | # /dev/null tree | |
7889 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
7890 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
7891 | { (exit 1); exit 1; }; } | |
7892 | fi;; | |
7893 | esac | |
7894 | done` || { (exit 1); exit 1; } | |
a31bd8a4 | 7895 | |
7896 | if test x"$ac_file" != x-; then | |
7897 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
7898 | echo "$as_me: creating $ac_file" >&6;} | |
7899 | rm -f "$ac_file" | |
7900 | fi | |
4ee9c684 | 7901 | _ACEOF |
7902 | cat >>$CONFIG_STATUS <<_ACEOF | |
7903 | sed "$ac_vpsub | |
7904 | $extrasub | |
7905 | _ACEOF | |
7906 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7907 | :t | |
7908 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
7909 | s,@configure_input@,$configure_input,;t t | |
7910 | s,@srcdir@,$ac_srcdir,;t t | |
7911 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
7912 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
7913 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
7914 | s,@builddir@,$ac_builddir,;t t | |
7915 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
7916 | s,@top_builddir@,$ac_top_builddir,;t t | |
7917 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
7918 | s,@INSTALL@,$ac_INSTALL,;t t | |
7919 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
7920 | rm -f $tmp/stdin | |
7921 | if test x"$ac_file" != x-; then | |
7922 | mv $tmp/out $ac_file | |
7923 | else | |
7924 | cat $tmp/out | |
7925 | rm -f $tmp/out | |
7926 | fi | |
7927 | ||
7928 | done | |
7929 | _ACEOF | |
7930 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7931 | ||
7932 | # | |
7933 | # CONFIG_HEADER section. | |
7934 | # | |
7935 | ||
7936 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
7937 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
7938 | # | |
7939 | # ac_d sets the value in "#define NAME VALUE" lines. | |
7940 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
7941 | ac_dB='[ ].*$,\1#\2' | |
7942 | ac_dC=' ' | |
7943 | ac_dD=',;t' | |
7944 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
7945 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
7946 | ac_uB='$,\1#\2define\3' | |
7947 | ac_uC=' ' | |
7948 | ac_uD=',;t' | |
7949 | ||
7950 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
7951 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
7952 | case $ac_file in | |
7953 | - | *:- | *:-:* ) # input from stdin | |
7954 | cat >$tmp/stdin | |
7955 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
7956 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
7957 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
7958 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
7959 | * ) ac_file_in=$ac_file.in ;; | |
7960 | esac | |
7961 | ||
7962 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
7963 | echo "$as_me: creating $ac_file" >&6;} | |
7964 | ||
7965 | # First look for the input files in the build tree, otherwise in the | |
7966 | # src tree. | |
7967 | ac_file_inputs=`IFS=: | |
7968 | for f in $ac_file_in; do | |
7969 | case $f in | |
7970 | -) echo $tmp/stdin ;; | |
7971 | [\\/$]*) | |
7972 | # Absolute (can't be DOS-style, as IFS=:) | |
7973 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
7974 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
7975 | { (exit 1); exit 1; }; } | |
7976 | # Do quote $f, to prevent DOS paths from being IFS'd. | |
7977 | echo "$f";; | |
7978 | *) # Relative | |
7979 | if test -f "$f"; then | |
7980 | # Build tree | |
7981 | echo "$f" | |
7982 | elif test -f "$srcdir/$f"; then | |
7983 | # Source tree | |
7984 | echo "$srcdir/$f" | |
7985 | else | |
7986 | # /dev/null tree | |
7987 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
7988 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
7989 | { (exit 1); exit 1; }; } | |
7990 | fi;; | |
7991 | esac | |
7992 | done` || { (exit 1); exit 1; } | |
7993 | # Remove the trailing spaces. | |
7994 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
7995 | ||
7996 | _ACEOF | |
7997 | ||
7998 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
7999 | # `conftest.undefs', that substitutes the proper values into | |
8000 | # config.h.in to produce config.h. The first handles `#define' | |
8001 | # templates, and the second `#undef' templates. | |
8002 | # And first: Protect against being on the right side of a sed subst in | |
8003 | # config.status. Protect against being in an unquoted here document | |
8004 | # in config.status. | |
8005 | rm -f conftest.defines conftest.undefs | |
8006 | # Using a here document instead of a string reduces the quoting nightmare. | |
8007 | # Putting comments in sed scripts is not portable. | |
8008 | # | |
8009 | # `end' is used to avoid that the second main sed command (meant for | |
8010 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
8011 | # See the Autoconf documentation for `clear'. | |
8012 | cat >confdef2sed.sed <<\_ACEOF | |
8013 | s/[\\&,]/\\&/g | |
8014 | s,[\\$`],\\&,g | |
8015 | t clear | |
8016 | : clear | |
8017 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | |
8018 | t end | |
8019 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
8020 | : end | |
8021 | _ACEOF | |
8022 | # If some macros were called several times there might be several times | |
8023 | # the same #defines, which is useless. Nevertheless, we may not want to | |
8024 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
8025 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
8026 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
8027 | rm -f confdef2sed.sed | |
8028 | ||
8029 | # This sed command replaces #undef with comments. This is necessary, for | |
8030 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
8031 | # on some systems where configure will not decide to define it. | |
8032 | cat >>conftest.undefs <<\_ACEOF | |
8033 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
8034 | _ACEOF | |
8035 | ||
8036 | # Break up conftest.defines because some shells have a limit on the size | |
8037 | # of here documents, and old seds have small limits too (100 cmds). | |
8038 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
8039 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
8040 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
8041 | echo ' :' >>$CONFIG_STATUS | |
8042 | rm -f conftest.tail | |
8043 | while grep . conftest.defines >/dev/null | |
8044 | do | |
8045 | # Write a limited-size here document to $tmp/defines.sed. | |
8046 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
8047 | # Speed up: don't consider the non `#define' lines. | |
8048 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
8049 | # Work around the forget-to-reset-the-flag bug. | |
8050 | echo 't clr' >>$CONFIG_STATUS | |
8051 | echo ': clr' >>$CONFIG_STATUS | |
8052 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
8053 | echo 'CEOF | |
8054 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
8055 | rm -f $tmp/in | |
8056 | mv $tmp/out $tmp/in | |
8057 | ' >>$CONFIG_STATUS | |
8058 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
8059 | rm -f conftest.defines | |
8060 | mv conftest.tail conftest.defines | |
8061 | done | |
8062 | rm -f conftest.defines | |
8063 | echo ' fi # grep' >>$CONFIG_STATUS | |
8064 | echo >>$CONFIG_STATUS | |
8065 | ||
8066 | # Break up conftest.undefs because some shells have a limit on the size | |
8067 | # of here documents, and old seds have small limits too (100 cmds). | |
8068 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
8069 | rm -f conftest.tail | |
8070 | while grep . conftest.undefs >/dev/null | |
8071 | do | |
8072 | # Write a limited-size here document to $tmp/undefs.sed. | |
8073 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
8074 | # Speed up: don't consider the non `#undef' | |
8075 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
8076 | # Work around the forget-to-reset-the-flag bug. | |
8077 | echo 't clr' >>$CONFIG_STATUS | |
8078 | echo ': clr' >>$CONFIG_STATUS | |
8079 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
8080 | echo 'CEOF | |
8081 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
8082 | rm -f $tmp/in | |
8083 | mv $tmp/out $tmp/in | |
8084 | ' >>$CONFIG_STATUS | |
8085 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
8086 | rm -f conftest.undefs | |
8087 | mv conftest.tail conftest.undefs | |
8088 | done | |
8089 | rm -f conftest.undefs | |
8090 | ||
8091 | cat >>$CONFIG_STATUS <<\_ACEOF | |
8092 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
8093 | # use $as_me), people would be surprised to read: | |
8094 | # /* config.h. Generated by config.status. */ | |
8095 | if test x"$ac_file" = x-; then | |
8096 | echo "/* Generated by configure. */" >$tmp/config.h | |
8097 | else | |
8098 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
8099 | fi | |
8100 | cat $tmp/in >>$tmp/config.h | |
8101 | rm -f $tmp/in | |
8102 | if test x"$ac_file" != x-; then | |
8103 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
8104 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
8105 | echo "$as_me: $ac_file is unchanged" >&6;} | |
8106 | else | |
8107 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
8108 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8109 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
8110 | X"$ac_file" : 'X\(//\)$' \| \ | |
8111 | X"$ac_file" : 'X\(/\)' \| \ | |
8112 | . : '\(.\)' 2>/dev/null || | |
8113 | echo X"$ac_file" | | |
8114 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
8115 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
8116 | /^X\(\/\/\)$/{ s//\1/; q; } | |
8117 | /^X\(\/\).*/{ s//\1/; q; } | |
8118 | s/.*/./; q'` | |
8119 | { if $as_mkdir_p; then | |
8120 | mkdir -p "$ac_dir" | |
8121 | else | |
8122 | as_dir="$ac_dir" | |
8123 | as_dirs= | |
8124 | while test ! -d "$as_dir"; do | |
8125 | as_dirs="$as_dir $as_dirs" | |
8126 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
8127 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8128 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
8129 | X"$as_dir" : 'X\(//\)$' \| \ | |
8130 | X"$as_dir" : 'X\(/\)' \| \ | |
8131 | . : '\(.\)' 2>/dev/null || | |
8132 | echo X"$as_dir" | | |
8133 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
8134 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
8135 | /^X\(\/\/\)$/{ s//\1/; q; } | |
8136 | /^X\(\/\).*/{ s//\1/; q; } | |
8137 | s/.*/./; q'` | |
8138 | done | |
8139 | test ! -n "$as_dirs" || mkdir $as_dirs | |
8140 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
8141 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
8142 | { (exit 1); exit 1; }; }; } | |
8143 | ||
8144 | rm -f $ac_file | |
8145 | mv $tmp/config.h $ac_file | |
8146 | fi | |
8147 | else | |
8148 | cat $tmp/config.h | |
8149 | rm -f $tmp/config.h | |
8150 | fi | |
8151 | # Compute $ac_file's index in $config_headers. | |
8152 | _am_stamp_count=1 | |
8153 | for _am_header in $config_headers :; do | |
8154 | case $_am_header in | |
8155 | $ac_file | $ac_file:* ) | |
8156 | break ;; | |
8157 | * ) | |
8158 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
8159 | esac | |
8160 | done | |
8161 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || | |
8162 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8163 | X$ac_file : 'X\(//\)[^/]' \| \ | |
8164 | X$ac_file : 'X\(//\)$' \| \ | |
8165 | X$ac_file : 'X\(/\)' \| \ | |
8166 | . : '\(.\)' 2>/dev/null || | |
8167 | echo X$ac_file | | |
8168 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
8169 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
8170 | /^X\(\/\/\)$/{ s//\1/; q; } | |
8171 | /^X\(\/\).*/{ s//\1/; q; } | |
8172 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
8173 | done | |
8174 | _ACEOF | |
8175 | cat >>$CONFIG_STATUS <<\_ACEOF | |
8176 | ||
8177 | # | |
8178 | # CONFIG_COMMANDS section. | |
8179 | # | |
8180 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
8181 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
8182 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
8183 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
8184 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8185 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
8186 | X"$ac_dest" : 'X\(//\)$' \| \ | |
8187 | X"$ac_dest" : 'X\(/\)' \| \ | |
8188 | . : '\(.\)' 2>/dev/null || | |
8189 | echo X"$ac_dest" | | |
8190 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
8191 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
8192 | /^X\(\/\/\)$/{ s//\1/; q; } | |
8193 | /^X\(\/\).*/{ s//\1/; q; } | |
8194 | s/.*/./; q'` | |
8195 | { if $as_mkdir_p; then | |
8196 | mkdir -p "$ac_dir" | |
8197 | else | |
8198 | as_dir="$ac_dir" | |
8199 | as_dirs= | |
8200 | while test ! -d "$as_dir"; do | |
8201 | as_dirs="$as_dir $as_dirs" | |
8202 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
8203 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8204 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
8205 | X"$as_dir" : 'X\(//\)$' \| \ | |
8206 | X"$as_dir" : 'X\(/\)' \| \ | |
8207 | . : '\(.\)' 2>/dev/null || | |
8208 | echo X"$as_dir" | | |
8209 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
8210 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
8211 | /^X\(\/\/\)$/{ s//\1/; q; } | |
8212 | /^X\(\/\).*/{ s//\1/; q; } | |
8213 | s/.*/./; q'` | |
8214 | done | |
8215 | test ! -n "$as_dirs" || mkdir $as_dirs | |
8216 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
8217 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
8218 | { (exit 1); exit 1; }; }; } | |
8219 | ||
8220 | ac_builddir=. | |
8221 | ||
8222 | if test "$ac_dir" != .; then | |
8223 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
8224 | # A "../" for each directory in $ac_dir_suffix. | |
8225 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
8226 | else | |
8227 | ac_dir_suffix= ac_top_builddir= | |
8228 | fi | |
8229 | ||
8230 | case $srcdir in | |
8231 | .) # No --srcdir option. We are building in place. | |
8232 | ac_srcdir=. | |
8233 | if test -z "$ac_top_builddir"; then | |
8234 | ac_top_srcdir=. | |
8235 | else | |
8236 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
8237 | fi ;; | |
8238 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
8239 | ac_srcdir=$srcdir$ac_dir_suffix; | |
8240 | ac_top_srcdir=$srcdir ;; | |
8241 | *) # Relative path. | |
8242 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
8243 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
8244 | esac | |
8245 | ||
8246 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
8247 | # the directories may not exist. | |
8248 | case `pwd` in | |
8249 | .) ac_abs_builddir="$ac_dir";; | |
8250 | *) | |
8251 | case "$ac_dir" in | |
8252 | .) ac_abs_builddir=`pwd`;; | |
8253 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
8254 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
8255 | esac;; | |
8256 | esac | |
8257 | case $ac_abs_builddir in | |
8258 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
8259 | *) | |
8260 | case ${ac_top_builddir}. in | |
8261 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
8262 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
8263 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
8264 | esac;; | |
8265 | esac | |
8266 | case $ac_abs_builddir in | |
8267 | .) ac_abs_srcdir=$ac_srcdir;; | |
8268 | *) | |
8269 | case $ac_srcdir in | |
8270 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
8271 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
8272 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
8273 | esac;; | |
8274 | esac | |
8275 | case $ac_abs_builddir in | |
8276 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
8277 | *) | |
8278 | case $ac_top_srcdir in | |
8279 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
8280 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
8281 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
8282 | esac;; | |
8283 | esac | |
8284 | ||
8285 | ||
8286 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
8287 | echo "$as_me: executing $ac_dest commands" >&6;} | |
8288 | case $ac_dest in | |
90973b19 | 8289 | default-1 ) |
8290 | # Only add multilib support code if we just rebuilt the top-level | |
8291 | # Makefile. | |
8292 | case " $CONFIG_FILES " in | |
8293 | *" Makefile "*) | |
8294 | ac_file=Makefile . ${multi_basedir}/config-ml.in | |
8295 | ;; | |
8296 | esac ;; | |
4ee9c684 | 8297 | esac |
8298 | done | |
8299 | _ACEOF | |
8300 | ||
8301 | cat >>$CONFIG_STATUS <<\_ACEOF | |
8302 | ||
8303 | { (exit 0); exit 0; } | |
8304 | _ACEOF | |
8305 | chmod +x $CONFIG_STATUS | |
8306 | ac_clean_files=$ac_clean_files_save | |
8307 | ||
8308 | ||
8309 | # configure is writing to config.log, and then calls config.status. | |
8310 | # config.status does its own redirection, appending to config.log. | |
8311 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
8312 | # by configure, so config.status won't be able to write to it; its | |
8313 | # output is simply discarded. So we exec the FD to /dev/null, | |
8314 | # effectively closing config.log, so it can be properly (re)opened and | |
8315 | # appended to by config.status. When coming back to configure, we | |
8316 | # need to make the FD available again. | |
8317 | if test "$no_create" != yes; then | |
8318 | ac_cs_success=: | |
8319 | ac_config_status_args= | |
8320 | test "$silent" = yes && | |
8321 | ac_config_status_args="$ac_config_status_args --quiet" | |
8322 | exec 5>/dev/null | |
8323 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
8324 | exec 5>>config.log | |
8325 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
8326 | # would make configure fail if this is the last instruction. | |
8327 | $ac_cs_success || { (exit 1); exit 1; } | |
8328 | fi | |
8329 |