]>
Commit | Line | Data |
---|---|---|
953ff289 DN |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
3 | # Generated by GNU Autoconf 2.59 for GNU OpenMP Runtime Library 1.0. | |
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 OpenMP Runtime Library' | |
269 | PACKAGE_TARNAME='libgomp' | |
270 | PACKAGE_VERSION='1.0' | |
271 | PACKAGE_STRING='GNU OpenMP Runtime Library 1.0' | |
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 | ||
03b8fe49 | 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 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 install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar multi_basedir toolexecdir toolexeclibdir CC ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CFLAGS AR ac_ct_AR RANLIB ac_ct_RANLIB PERL LN_S LIBTOOL enable_shared enable_static MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT FC FCFLAGS LDFLAGS ac_ct_FC libtool_VERSION CPP CPPFLAGS EGREP SECTION_LDFLAGS OPT_LDFLAGS LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE config_path XCFLAGS XLDFLAGS link_gomp USE_FORTRAN_TRUE USE_FORTRAN_FALSE OMP_LOCK_SIZE OMP_LOCK_ALIGN OMP_NEST_LOCK_SIZE OMP_NEST_LOCK_ALIGN OMP_LOCK_KIND OMP_NEST_LOCK_KIND LIBOBJS LTLIBOBJS' |
953ff289 DN |
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 | |
752 | ac_env_FC_set=${FC+set} | |
753 | ac_env_FC_value=$FC | |
754 | ac_cv_env_FC_set=${FC+set} | |
755 | ac_cv_env_FC_value=$FC | |
756 | ac_env_FCFLAGS_set=${FCFLAGS+set} | |
757 | ac_env_FCFLAGS_value=$FCFLAGS | |
758 | ac_cv_env_FCFLAGS_set=${FCFLAGS+set} | |
759 | ac_cv_env_FCFLAGS_value=$FCFLAGS | |
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 | |
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 | |
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 | |
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 OpenMP Runtime Library 1.0 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] | |
841 | --target=TARGET configure for building compilers for TARGET [HOST] | |
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 OpenMP Runtime Library 1.0:";; | |
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] | |
854 | --enable-version-specific-runtime-libs | |
855 | Specify that runtime libraries should be installed | |
856 | in a compiler-specific directory [default=no] | |
fe5568e9 JJ |
857 | --enable-linux-futex Use the Linux futex system call |
858 | [default=default] | |
953ff289 DN |
859 | --enable-multilib build many library versions (default) |
860 | --disable-dependency-tracking speeds up one-time build | |
861 | --enable-dependency-tracking do not reject slow dependency extractors | |
862 | --enable-shared=PKGS build shared libraries default=yes | |
863 | --enable-static=PKGS build static libraries default=yes | |
864 | --enable-fast-install=PKGS optimize for fast installation default=yes | |
865 | --disable-libtool-lock avoid locking (might break parallel builds) | |
c41303c6 RH |
866 | --enable-maintainer-mode enable make rules and dependencies not useful |
867 | (and sometimes confusing) to the casual installer | |
2fb31455 | 868 | --enable-tls Use thread-local storage [default=yes] |
953ff289 DN |
869 | --enable-symvers=STYLE enables symbol versioning of the shared library |
870 | [default=yes] | |
871 | ||
872 | Optional Packages: | |
873 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
874 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
875 | --with-gnu-ld assume the C compiler uses GNU ld default=no | |
876 | --with-pic try to use only PIC/non-PIC objects default=use both | |
877 | ||
878 | Some influential environment variables: | |
879 | CC C compiler command | |
880 | CFLAGS C compiler flags | |
881 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
882 | nonstandard directory <lib dir> | |
883 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
884 | headers in a nonstandard directory <include dir> | |
885 | FC Fortran compiler command | |
886 | FCFLAGS Fortran compiler flags | |
887 | CPP C preprocessor | |
888 | ||
889 | Use these variables to override the choices made by `configure' or to help | |
890 | it to find libraries and programs with nonstandard names/locations. | |
891 | ||
892 | _ACEOF | |
893 | fi | |
894 | ||
895 | if test "$ac_init_help" = "recursive"; then | |
896 | # If there are subdirs, report their specific --help. | |
897 | ac_popdir=`pwd` | |
898 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
899 | test -d $ac_dir || continue | |
900 | ac_builddir=. | |
901 | ||
902 | if test "$ac_dir" != .; then | |
903 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
904 | # A "../" for each directory in $ac_dir_suffix. | |
905 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
906 | else | |
907 | ac_dir_suffix= ac_top_builddir= | |
908 | fi | |
909 | ||
910 | case $srcdir in | |
911 | .) # No --srcdir option. We are building in place. | |
912 | ac_srcdir=. | |
913 | if test -z "$ac_top_builddir"; then | |
914 | ac_top_srcdir=. | |
915 | else | |
916 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
917 | fi ;; | |
918 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
919 | ac_srcdir=$srcdir$ac_dir_suffix; | |
920 | ac_top_srcdir=$srcdir ;; | |
921 | *) # Relative path. | |
922 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
923 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
924 | esac | |
925 | ||
926 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
927 | # the directories may not exist. | |
928 | case `pwd` in | |
929 | .) ac_abs_builddir="$ac_dir";; | |
930 | *) | |
931 | case "$ac_dir" in | |
932 | .) ac_abs_builddir=`pwd`;; | |
933 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
934 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
935 | esac;; | |
936 | esac | |
937 | case $ac_abs_builddir in | |
938 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
939 | *) | |
940 | case ${ac_top_builddir}. in | |
941 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
942 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
943 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
944 | esac;; | |
945 | esac | |
946 | case $ac_abs_builddir in | |
947 | .) ac_abs_srcdir=$ac_srcdir;; | |
948 | *) | |
949 | case $ac_srcdir in | |
950 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
951 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
952 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
953 | esac;; | |
954 | esac | |
955 | case $ac_abs_builddir in | |
956 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
957 | *) | |
958 | case $ac_top_srcdir in | |
959 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
960 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
961 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
962 | esac;; | |
963 | esac | |
964 | ||
965 | cd $ac_dir | |
966 | # Check for guested configure; otherwise get Cygnus style configure. | |
967 | if test -f $ac_srcdir/configure.gnu; then | |
968 | echo | |
969 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
970 | elif test -f $ac_srcdir/configure; then | |
971 | echo | |
972 | $SHELL $ac_srcdir/configure --help=recursive | |
973 | elif test -f $ac_srcdir/configure.ac || | |
974 | test -f $ac_srcdir/configure.in; then | |
975 | echo | |
976 | $ac_configure --help | |
977 | else | |
978 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
979 | fi | |
d349482e | 980 | cd $ac_popdir |
953ff289 DN |
981 | done |
982 | fi | |
983 | ||
984 | test -n "$ac_init_help" && exit 0 | |
985 | if $ac_init_version; then | |
986 | cat <<\_ACEOF | |
987 | GNU OpenMP Runtime Library configure 1.0 | |
988 | generated by GNU Autoconf 2.59 | |
989 | ||
990 | Copyright (C) 2003 Free Software Foundation, Inc. | |
991 | This configure script is free software; the Free Software Foundation | |
992 | gives unlimited permission to copy, distribute and modify it. | |
993 | _ACEOF | |
994 | exit 0 | |
995 | fi | |
996 | exec 5>config.log | |
997 | cat >&5 <<_ACEOF | |
998 | This file contains any messages produced by compilers while | |
999 | running configure, to aid debugging if configure makes a mistake. | |
1000 | ||
1001 | It was created by GNU OpenMP Runtime Library $as_me 1.0, which was | |
1002 | generated by GNU Autoconf 2.59. Invocation command line was | |
1003 | ||
1004 | $ $0 $@ | |
1005 | ||
1006 | _ACEOF | |
1007 | { | |
1008 | cat <<_ASUNAME | |
1009 | ## --------- ## | |
1010 | ## Platform. ## | |
1011 | ## --------- ## | |
1012 | ||
1013 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1014 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1015 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1016 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1017 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1018 | ||
1019 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1020 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1021 | ||
1022 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1023 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1024 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1025 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1026 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1027 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1028 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1029 | ||
1030 | _ASUNAME | |
1031 | ||
1032 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1033 | for as_dir in $PATH | |
1034 | do | |
1035 | IFS=$as_save_IFS | |
1036 | test -z "$as_dir" && as_dir=. | |
1037 | echo "PATH: $as_dir" | |
1038 | done | |
1039 | ||
1040 | } >&5 | |
1041 | ||
1042 | cat >&5 <<_ACEOF | |
1043 | ||
1044 | ||
1045 | ## ----------- ## | |
1046 | ## Core tests. ## | |
1047 | ## ----------- ## | |
1048 | ||
1049 | _ACEOF | |
1050 | ||
1051 | ||
1052 | # Keep a trace of the command line. | |
1053 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1054 | # Strip out --silent because we don't want to record it for future runs. | |
1055 | # Also quote any args containing shell meta-characters. | |
1056 | # Make two passes to allow for proper duplicate-argument suppression. | |
1057 | ac_configure_args= | |
1058 | ac_configure_args0= | |
1059 | ac_configure_args1= | |
1060 | ac_sep= | |
1061 | ac_must_keep_next=false | |
1062 | for ac_pass in 1 2 | |
1063 | do | |
1064 | for ac_arg | |
1065 | do | |
1066 | case $ac_arg in | |
1067 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1068 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1069 | | -silent | --silent | --silen | --sile | --sil) | |
1070 | continue ;; | |
1071 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1072 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1073 | esac | |
1074 | case $ac_pass in | |
1075 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1076 | 2) | |
1077 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1078 | if test $ac_must_keep_next = true; then | |
1079 | ac_must_keep_next=false # Got value, back to normal. | |
1080 | else | |
1081 | case $ac_arg in | |
1082 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1083 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1084 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1085 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1086 | case "$ac_configure_args0 " in | |
1087 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1088 | esac | |
1089 | ;; | |
1090 | -* ) ac_must_keep_next=true ;; | |
1091 | esac | |
1092 | fi | |
1093 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1094 | # Get rid of the leading space. | |
1095 | ac_sep=" " | |
1096 | ;; | |
1097 | esac | |
1098 | done | |
1099 | done | |
1100 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1101 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1102 | ||
1103 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1104 | # config.log. We remove comments because anyway the quotes in there | |
1105 | # would cause problems or look ugly. | |
1106 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1107 | # such as our DU 5.0 friend, will then `close' the trap. | |
1108 | trap 'exit_status=$? | |
1109 | # Save into config.log some information that might help in debugging. | |
1110 | { | |
1111 | echo | |
1112 | ||
1113 | cat <<\_ASBOX | |
1114 | ## ---------------- ## | |
1115 | ## Cache variables. ## | |
1116 | ## ---------------- ## | |
1117 | _ASBOX | |
1118 | echo | |
1119 | # The following way of writing the cache mishandles newlines in values, | |
1120 | { | |
1121 | (set) 2>&1 | | |
1122 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1123 | *ac_space=\ *) | |
1124 | sed -n \ | |
1125 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
1126 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
1127 | ;; | |
1128 | *) | |
1129 | sed -n \ | |
1130 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
1131 | ;; | |
1132 | esac; | |
1133 | } | |
1134 | echo | |
1135 | ||
1136 | cat <<\_ASBOX | |
1137 | ## ----------------- ## | |
1138 | ## Output variables. ## | |
1139 | ## ----------------- ## | |
1140 | _ASBOX | |
1141 | echo | |
1142 | for ac_var in $ac_subst_vars | |
1143 | do | |
1144 | eval ac_val=$`echo $ac_var` | |
1145 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1146 | done | sort | |
1147 | echo | |
1148 | ||
1149 | if test -n "$ac_subst_files"; then | |
1150 | cat <<\_ASBOX | |
1151 | ## ------------- ## | |
1152 | ## Output files. ## | |
1153 | ## ------------- ## | |
1154 | _ASBOX | |
1155 | echo | |
1156 | for ac_var in $ac_subst_files | |
1157 | do | |
1158 | eval ac_val=$`echo $ac_var` | |
1159 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1160 | done | sort | |
1161 | echo | |
1162 | fi | |
1163 | ||
1164 | if test -s confdefs.h; then | |
1165 | cat <<\_ASBOX | |
1166 | ## ----------- ## | |
1167 | ## confdefs.h. ## | |
1168 | ## ----------- ## | |
1169 | _ASBOX | |
1170 | echo | |
1171 | sed "/^$/d" confdefs.h | sort | |
1172 | echo | |
1173 | fi | |
1174 | test "$ac_signal" != 0 && | |
1175 | echo "$as_me: caught signal $ac_signal" | |
1176 | echo "$as_me: exit $exit_status" | |
1177 | } >&5 | |
1178 | rm -f core *.core && | |
1179 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
1180 | exit $exit_status | |
1181 | ' 0 | |
1182 | for ac_signal in 1 2 13 15; do | |
1183 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1184 | done | |
1185 | ac_signal=0 | |
1186 | ||
1187 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1188 | rm -rf conftest* confdefs.h | |
1189 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1190 | echo >confdefs.h | |
1191 | ||
1192 | # Predefined preprocessor variables. | |
1193 | ||
1194 | cat >>confdefs.h <<_ACEOF | |
1195 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1196 | _ACEOF | |
1197 | ||
1198 | ||
1199 | cat >>confdefs.h <<_ACEOF | |
1200 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1201 | _ACEOF | |
1202 | ||
1203 | ||
1204 | cat >>confdefs.h <<_ACEOF | |
1205 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1206 | _ACEOF | |
1207 | ||
1208 | ||
1209 | cat >>confdefs.h <<_ACEOF | |
1210 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1211 | _ACEOF | |
1212 | ||
1213 | ||
1214 | cat >>confdefs.h <<_ACEOF | |
1215 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1216 | _ACEOF | |
1217 | ||
1218 | ||
1219 | # Let the site file select an alternate cache file if it wants to. | |
1220 | # Prefer explicitly selected file to automatically selected ones. | |
1221 | if test -z "$CONFIG_SITE"; then | |
1222 | if test "x$prefix" != xNONE; then | |
1223 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1224 | else | |
1225 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1226 | fi | |
1227 | fi | |
1228 | for ac_site_file in $CONFIG_SITE; do | |
1229 | if test -r "$ac_site_file"; then | |
1230 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1231 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1232 | sed 's/^/| /' "$ac_site_file" >&5 | |
1233 | . "$ac_site_file" | |
1234 | fi | |
1235 | done | |
1236 | ||
1237 | if test -r "$cache_file"; then | |
1238 | # Some versions of bash will fail to source /dev/null (special | |
1239 | # files actually), so we avoid doing that. | |
1240 | if test -f "$cache_file"; then | |
1241 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1242 | echo "$as_me: loading cache $cache_file" >&6;} | |
1243 | case $cache_file in | |
1244 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1245 | *) . ./$cache_file;; | |
1246 | esac | |
1247 | fi | |
1248 | else | |
1249 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1250 | echo "$as_me: creating cache $cache_file" >&6;} | |
1251 | >$cache_file | |
1252 | fi | |
1253 | ||
1254 | # Check that the precious variables saved in the cache have kept the same | |
1255 | # value. | |
1256 | ac_cache_corrupted=false | |
1257 | for ac_var in `(set) 2>&1 | | |
1258 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
1259 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1260 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1261 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1262 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1263 | case $ac_old_set,$ac_new_set in | |
1264 | set,) | |
1265 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1266 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1267 | ac_cache_corrupted=: ;; | |
1268 | ,set) | |
1269 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1270 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1271 | ac_cache_corrupted=: ;; | |
1272 | ,);; | |
1273 | *) | |
1274 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1275 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1276 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1277 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1278 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1279 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1280 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1281 | ac_cache_corrupted=: | |
1282 | fi;; | |
1283 | esac | |
1284 | # Pass precious variables to config.status. | |
1285 | if test "$ac_new_set" = set; then | |
1286 | case $ac_new_val in | |
1287 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1288 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1289 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1290 | esac | |
1291 | case " $ac_configure_args " in | |
1292 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1293 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1294 | esac | |
1295 | fi | |
1296 | done | |
1297 | if $ac_cache_corrupted; then | |
1298 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1299 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1300 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1301 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1302 | { (exit 1); exit 1; }; } | |
1303 | fi | |
1304 | ||
1305 | ac_ext=c | |
1306 | ac_cpp='$CPP $CPPFLAGS' | |
1307 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1308 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1309 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1310 | ||
1311 | ||
1312 | ||
1313 | ||
1314 | ||
1315 | ||
1316 | ||
1317 | ||
1318 | ||
1319 | ||
1320 | ||
1321 | ||
1322 | ||
1323 | ||
1324 | ||
1325 | ||
1326 | ||
1327 | ||
1328 | ||
1329 | ||
1330 | ||
1331 | ||
1332 | ||
1333 | ||
1334 | ||
1335 | ||
1336 | ||
1337 | ac_config_headers="$ac_config_headers config.h" | |
1338 | ||
1339 | ||
1340 | # ------- | |
1341 | # Options | |
1342 | # ------- | |
1343 | ||
1344 | echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5 | |
1345 | echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6 | |
1346 | # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given. | |
1347 | if test "${enable_version_specific_runtime_libs+set}" = set; then | |
1348 | enableval="$enable_version_specific_runtime_libs" | |
1349 | ||
1350 | case "$enableval" in | |
1351 | yes|no) ;; | |
1352 | *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific-runtime-libs" >&5 | |
1353 | echo "$as_me: error: Unknown argument to enable/disable version-specific-runtime-libs" >&2;} | |
1354 | { (exit 1); exit 1; }; } ;; | |
1355 | esac | |
1356 | ||
1357 | else | |
1358 | enable_version_specific_runtime_libs=no | |
1359 | fi; | |
1360 | ||
1361 | echo "$as_me:$LINENO: result: $enable_version_specific_runtime_libs" >&5 | |
1362 | echo "${ECHO_T}$enable_version_specific_runtime_libs" >&6 | |
1363 | ||
1364 | echo "$as_me:$LINENO: checking for --enable-linux-futex" >&5 | |
1365 | echo $ECHO_N "checking for --enable-linux-futex... $ECHO_C" >&6 | |
1366 | # Check whether --enable-linux-futex or --disable-linux-futex was given. | |
1367 | if test "${enable_linux_futex+set}" = set; then | |
1368 | enableval="$enable_linux_futex" | |
1369 | ||
1370 | case "$enableval" in | |
fe5568e9 JJ |
1371 | yes|no|default) ;; |
1372 | *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable linux-futex" >&5 | |
1373 | echo "$as_me: error: Unknown argument to enable/disable linux-futex" >&2;} | |
953ff289 | 1374 | { (exit 1); exit 1; }; } ;; |
fe5568e9 | 1375 | esac |
953ff289 DN |
1376 | |
1377 | else | |
fe5568e9 | 1378 | enable_linux_futex=default |
953ff289 DN |
1379 | fi; |
1380 | ||
1381 | echo "$as_me:$LINENO: result: $enable_linux_futex" >&5 | |
1382 | echo "${ECHO_T}$enable_linux_futex" >&6 | |
1383 | ||
1384 | # ------- | |
1385 | # ------- | |
1386 | ||
1387 | # Gets build, host, target, *_vendor, *_cpu, *_os, etc. | |
1388 | # | |
1389 | # You will slowly go insane if you do not grok the following fact: when | |
1390 | # building this library, the top-level /target/ becomes the library's /host/. | |
1391 | # | |
1392 | # configure then causes --target to default to --host, exactly like any | |
1393 | # other package using autoconf. Therefore, 'target' and 'host' will | |
1394 | # always be the same. This makes sense both for native and cross compilers | |
1395 | # just think about it for a little while. :-) | |
1396 | # | |
1397 | # Also, if this library is being configured as part of a cross compiler, the | |
1398 | # top-level configure script will pass the "real" host as $with_cross_host. | |
1399 | # | |
1400 | # Do not delete or change the following two lines. For why, see | |
1401 | # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html | |
1402 | ac_aux_dir= | |
1403 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1404 | if test -f $ac_dir/install-sh; then | |
1405 | ac_aux_dir=$ac_dir | |
1406 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1407 | break | |
1408 | elif test -f $ac_dir/install.sh; then | |
1409 | ac_aux_dir=$ac_dir | |
1410 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1411 | break | |
1412 | elif test -f $ac_dir/shtool; then | |
1413 | ac_aux_dir=$ac_dir | |
1414 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1415 | break | |
1416 | fi | |
1417 | done | |
1418 | if test -z "$ac_aux_dir"; then | |
1419 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1420 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1421 | { (exit 1); exit 1; }; } | |
1422 | fi | |
1423 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1424 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1425 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1426 | ||
1427 | # Make sure we can run config.sub. | |
1428 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1429 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1430 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1431 | { (exit 1); exit 1; }; } | |
1432 | ||
1433 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1434 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1435 | if test "${ac_cv_build+set}" = set; then | |
1436 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1437 | else | |
1438 | ac_cv_build_alias=$build_alias | |
1439 | test -z "$ac_cv_build_alias" && | |
1440 | ac_cv_build_alias=`$ac_config_guess` | |
1441 | test -z "$ac_cv_build_alias" && | |
1442 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1443 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1444 | { (exit 1); exit 1; }; } | |
1445 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1446 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1447 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1448 | { (exit 1); exit 1; }; } | |
1449 | ||
1450 | fi | |
1451 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1452 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1453 | build=$ac_cv_build | |
1454 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1455 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1456 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1457 | ||
1458 | ||
1459 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1460 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1461 | if test "${ac_cv_host+set}" = set; then | |
1462 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1463 | else | |
1464 | ac_cv_host_alias=$host_alias | |
1465 | test -z "$ac_cv_host_alias" && | |
1466 | ac_cv_host_alias=$ac_cv_build_alias | |
1467 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1468 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1469 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1470 | { (exit 1); exit 1; }; } | |
1471 | ||
1472 | fi | |
1473 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1474 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1475 | host=$ac_cv_host | |
1476 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1477 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1478 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1479 | ||
1480 | ||
1481 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1482 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1483 | if test "${ac_cv_target+set}" = set; then | |
1484 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1485 | else | |
1486 | ac_cv_target_alias=$target_alias | |
1487 | test "x$ac_cv_target_alias" = "x" && | |
1488 | ac_cv_target_alias=$ac_cv_host_alias | |
1489 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1490 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1491 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1492 | { (exit 1); exit 1; }; } | |
1493 | ||
1494 | fi | |
1495 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1496 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1497 | target=$ac_cv_target | |
1498 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1499 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1500 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1501 | ||
1502 | ||
1503 | # The aliases save the names the user supplied, while $host etc. | |
1504 | # will get canonicalized. | |
1505 | test -n "$target_alias" && | |
1506 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1507 | NONENONEs,x,x, && | |
1508 | program_prefix=${target_alias}- | |
1509 | target_alias=${target_alias-$host_alias} | |
1510 | ||
1511 | # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the | |
1512 | # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am. | |
1513 | # 1.9.0: minimum required version | |
1514 | # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch | |
1515 | # of other PACKAGE_* variables will, however, and there's nothing | |
1516 | # we can do about that; they come from AC_INIT). | |
1517 | # foreign: we don't follow the normal rules for GNU packages (no COPYING | |
1518 | # file in the top srcdir, etc, etc), so stop complaining. | |
1519 | # no-dependencies: turns off auto dependency generation (just for now) | |
1520 | # -Wall: turns on all automake warnings... | |
1521 | # -Wno-portability: ...except this one, since GNU make is required. | |
1522 | # -Wno-override: ... and this one, since we do want this in testsuite. | |
1523 | am__api_version="1.9" | |
1524 | # Find a good install program. We prefer a C program (faster), | |
1525 | # so one script is as good as another. But avoid the broken or | |
1526 | # incompatible versions: | |
1527 | # SysV /etc/install, /usr/sbin/install | |
1528 | # SunOS /usr/etc/install | |
1529 | # IRIX /sbin/install | |
1530 | # AIX /bin/install | |
1531 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
1532 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
1533 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
1534 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1535 | # OS/2's system install, which has a completely different semantic | |
1536 | # ./install, which can be erroneously created by make from ./install.sh. | |
1537 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
1538 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
1539 | if test -z "$INSTALL"; then | |
1540 | if test "${ac_cv_path_install+set}" = set; then | |
1541 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1542 | else | |
1543 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1544 | for as_dir in $PATH | |
1545 | do | |
1546 | IFS=$as_save_IFS | |
1547 | test -z "$as_dir" && as_dir=. | |
1548 | # Account for people who put trailing slashes in PATH elements. | |
1549 | case $as_dir/ in | |
1550 | ./ | .// | /cC/* | \ | |
1551 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
1552 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
1553 | /usr/ucb/* ) ;; | |
1554 | *) | |
1555 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
1556 | # Don't use installbsd from OSF since it installs stuff as root | |
1557 | # by default. | |
1558 | for ac_prog in ginstall scoinst install; do | |
1559 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1560 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
1561 | if test $ac_prog = install && | |
1562 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1563 | # AIX install. It has an incompatible calling convention. | |
1564 | : | |
1565 | elif test $ac_prog = install && | |
1566 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1567 | # program-specific install script used by HP pwplus--don't use. | |
1568 | : | |
1569 | else | |
1570 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
1571 | break 3 | |
1572 | fi | |
1573 | fi | |
1574 | done | |
1575 | done | |
1576 | ;; | |
1577 | esac | |
1578 | done | |
1579 | ||
1580 | ||
1581 | fi | |
1582 | if test "${ac_cv_path_install+set}" = set; then | |
1583 | INSTALL=$ac_cv_path_install | |
1584 | else | |
1585 | # As a last resort, use the slow shell script. We don't cache a | |
1586 | # path for INSTALL within a source directory, because that will | |
1587 | # break other packages using the cache if that directory is | |
1588 | # removed, or if the path is relative. | |
1589 | INSTALL=$ac_install_sh | |
1590 | fi | |
1591 | fi | |
1592 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
1593 | echo "${ECHO_T}$INSTALL" >&6 | |
1594 | ||
1595 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
1596 | # It thinks the first close brace ends the variable substitution. | |
1597 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
1598 | ||
1599 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
1600 | ||
1601 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
1602 | ||
1603 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 | |
1604 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 | |
1605 | # Just in case | |
1606 | sleep 1 | |
1607 | echo timestamp > conftest.file | |
1608 | # Do `set' in a subshell so we don't clobber the current shell's | |
1609 | # arguments. Must try -L first in case configure is actually a | |
1610 | # symlink; some systems play weird games with the mod time of symlinks | |
1611 | # (eg FreeBSD returns the mod time of the symlink's containing | |
1612 | # directory). | |
1613 | if ( | |
1614 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` | |
1615 | if test "$*" = "X"; then | |
1616 | # -L didn't work. | |
1617 | set X `ls -t $srcdir/configure conftest.file` | |
1618 | fi | |
1619 | rm -f conftest.file | |
1620 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
1621 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
1622 | ||
1623 | # If neither matched, then we have a broken ls. This can happen | |
1624 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
1625 | # broken ls alias from the environment. This has actually | |
1626 | # happened. Such a system could not be considered "sane". | |
1627 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken | |
1628 | alias in your environment" >&5 | |
1629 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | |
1630 | alias in your environment" >&2;} | |
1631 | { (exit 1); exit 1; }; } | |
1632 | fi | |
1633 | ||
1634 | test "$2" = conftest.file | |
1635 | ) | |
1636 | then | |
1637 | # Ok. | |
1638 | : | |
1639 | else | |
1640 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! | |
1641 | Check your system clock" >&5 | |
1642 | echo "$as_me: error: newly created file is older than distributed files! | |
1643 | Check your system clock" >&2;} | |
1644 | { (exit 1); exit 1; }; } | |
1645 | fi | |
1646 | echo "$as_me:$LINENO: result: yes" >&5 | |
1647 | echo "${ECHO_T}yes" >&6 | |
1648 | test "$program_prefix" != NONE && | |
1649 | program_transform_name="s,^,$program_prefix,;$program_transform_name" | |
1650 | # Use a double $ so make ignores it. | |
1651 | test "$program_suffix" != NONE && | |
1652 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" | |
1653 | # Double any \ or $. echo might interpret backslashes. | |
1654 | # By default was `s,x,x', remove it if useless. | |
1655 | cat <<\_ACEOF >conftest.sed | |
1656 | s/[\\$]/&&/g;s/;s,x,x,$// | |
1657 | _ACEOF | |
1658 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
1659 | rm conftest.sed | |
1660 | ||
1661 | # expand $ac_aux_dir to an absolute path | |
1662 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
1663 | ||
1664 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | |
1665 | # Use eval to expand $SHELL | |
1666 | if eval "$MISSING --run true"; then | |
1667 | am_missing_run="$MISSING --run " | |
1668 | else | |
1669 | am_missing_run= | |
1670 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 | |
1671 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
1672 | fi | |
1673 | ||
1674 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then | |
1675 | # We used to keeping the `.' as first argument, in order to | |
1676 | # allow $(mkdir_p) to be used without argument. As in | |
1677 | # $(mkdir_p) $(somedir) | |
1678 | # where $(somedir) is conditionally defined. However this is wrong | |
1679 | # for two reasons: | |
1680 | # 1. if the package is installed by a user who cannot write `.' | |
1681 | # make install will fail, | |
1682 | # 2. the above comment should most certainly read | |
1683 | # $(mkdir_p) $(DESTDIR)$(somedir) | |
1684 | # so it does not work when $(somedir) is undefined and | |
1685 | # $(DESTDIR) is not. | |
1686 | # To support the latter case, we have to write | |
1687 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), | |
1688 | # so the `.' trick is pointless. | |
1689 | mkdir_p='mkdir -p --' | |
1690 | else | |
1691 | # On NextStep and OpenStep, the `mkdir' command does not | |
1692 | # recognize any option. It will interpret all options as | |
1693 | # directories to create, and then abort because `.' already | |
1694 | # exists. | |
1695 | for d in ./-p ./--version; | |
1696 | do | |
1697 | test -d $d && rmdir $d | |
1698 | done | |
1699 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. | |
1700 | if test -f "$ac_aux_dir/mkinstalldirs"; then | |
1701 | mkdir_p='$(mkinstalldirs)' | |
1702 | else | |
1703 | mkdir_p='$(install_sh) -d' | |
1704 | fi | |
1705 | fi | |
1706 | ||
1707 | for ac_prog in gawk mawk nawk awk | |
1708 | do | |
1709 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1710 | set dummy $ac_prog; ac_word=$2 | |
1711 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1712 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1713 | if test "${ac_cv_prog_AWK+set}" = set; then | |
1714 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1715 | else | |
1716 | if test -n "$AWK"; then | |
1717 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
1718 | else | |
1719 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1720 | for as_dir in $PATH | |
1721 | do | |
1722 | IFS=$as_save_IFS | |
1723 | test -z "$as_dir" && as_dir=. | |
1724 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1725 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1726 | ac_cv_prog_AWK="$ac_prog" | |
1727 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1728 | break 2 | |
1729 | fi | |
1730 | done | |
1731 | done | |
1732 | ||
1733 | fi | |
1734 | fi | |
1735 | AWK=$ac_cv_prog_AWK | |
1736 | if test -n "$AWK"; then | |
1737 | echo "$as_me:$LINENO: result: $AWK" >&5 | |
1738 | echo "${ECHO_T}$AWK" >&6 | |
1739 | else | |
1740 | echo "$as_me:$LINENO: result: no" >&5 | |
1741 | echo "${ECHO_T}no" >&6 | |
1742 | fi | |
1743 | ||
1744 | test -n "$AWK" && break | |
1745 | done | |
1746 | ||
1747 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
1748 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
1749 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` | |
1750 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
1751 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1752 | else | |
1753 | cat >conftest.make <<\_ACEOF | |
1754 | all: | |
1755 | @echo 'ac_maketemp="$(MAKE)"' | |
1756 | _ACEOF | |
1757 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
1758 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
1759 | if test -n "$ac_maketemp"; then | |
1760 | eval ac_cv_prog_make_${ac_make}_set=yes | |
1761 | else | |
1762 | eval ac_cv_prog_make_${ac_make}_set=no | |
1763 | fi | |
1764 | rm -f conftest.make | |
1765 | fi | |
1766 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
1767 | echo "$as_me:$LINENO: result: yes" >&5 | |
1768 | echo "${ECHO_T}yes" >&6 | |
1769 | SET_MAKE= | |
1770 | else | |
1771 | echo "$as_me:$LINENO: result: no" >&5 | |
1772 | echo "${ECHO_T}no" >&6 | |
1773 | SET_MAKE="MAKE=${MAKE-make}" | |
1774 | fi | |
1775 | ||
1776 | rm -rf .tst 2>/dev/null | |
1777 | mkdir .tst 2>/dev/null | |
1778 | if test -d .tst; then | |
1779 | am__leading_dot=. | |
1780 | else | |
1781 | am__leading_dot=_ | |
1782 | fi | |
1783 | rmdir .tst 2>/dev/null | |
1784 | ||
1785 | # test to see if srcdir already configured | |
1786 | if test "`cd $srcdir && pwd`" != "`pwd`" && | |
1787 | test -f $srcdir/config.status; then | |
1788 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 | |
1789 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | |
1790 | { (exit 1); exit 1; }; } | |
1791 | fi | |
1792 | ||
1793 | # test whether we have cygpath | |
1794 | if test -z "$CYGPATH_W"; then | |
1795 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
1796 | CYGPATH_W='cygpath -w' | |
1797 | else | |
1798 | CYGPATH_W=echo | |
1799 | fi | |
1800 | fi | |
1801 | ||
1802 | ||
1803 | # Define the identity of the package. | |
1804 | PACKAGE='libgomp' | |
1805 | VERSION='1.0' | |
1806 | ||
1807 | ||
1808 | cat >>confdefs.h <<_ACEOF | |
1809 | #define PACKAGE "$PACKAGE" | |
1810 | _ACEOF | |
1811 | ||
1812 | ||
1813 | cat >>confdefs.h <<_ACEOF | |
1814 | #define VERSION "$VERSION" | |
1815 | _ACEOF | |
1816 | ||
1817 | # Some tools Automake needs. | |
1818 | ||
1819 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
1820 | ||
1821 | ||
1822 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
1823 | ||
1824 | ||
1825 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
1826 | ||
1827 | ||
1828 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
1829 | ||
1830 | ||
1831 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
1832 | ||
1833 | install_sh=${install_sh-"$am_aux_dir/install-sh"} | |
1834 | ||
1835 | # Installed binaries are usually stripped using `strip' when the user | |
1836 | # run `make install-strip'. However `strip' might not be the right | |
1837 | # tool to use in cross-compilation environments, therefore Automake | |
1838 | # will honor the `STRIP' environment variable to overrule this program. | |
1839 | if test "$cross_compiling" != no; then | |
1840 | if test -n "$ac_tool_prefix"; then | |
1841 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
1842 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
1843 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1844 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1845 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
1846 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1847 | else | |
1848 | if test -n "$STRIP"; then | |
1849 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
1850 | else | |
1851 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1852 | for as_dir in $PATH | |
1853 | do | |
1854 | IFS=$as_save_IFS | |
1855 | test -z "$as_dir" && as_dir=. | |
1856 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1857 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1858 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
1859 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1860 | break 2 | |
1861 | fi | |
1862 | done | |
1863 | done | |
1864 | ||
1865 | fi | |
1866 | fi | |
1867 | STRIP=$ac_cv_prog_STRIP | |
1868 | if test -n "$STRIP"; then | |
1869 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
1870 | echo "${ECHO_T}$STRIP" >&6 | |
1871 | else | |
1872 | echo "$as_me:$LINENO: result: no" >&5 | |
1873 | echo "${ECHO_T}no" >&6 | |
1874 | fi | |
1875 | ||
1876 | fi | |
1877 | if test -z "$ac_cv_prog_STRIP"; then | |
1878 | ac_ct_STRIP=$STRIP | |
1879 | # Extract the first word of "strip", so it can be a program name with args. | |
1880 | set dummy strip; ac_word=$2 | |
1881 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1882 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1883 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
1884 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1885 | else | |
1886 | if test -n "$ac_ct_STRIP"; then | |
1887 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
1888 | else | |
1889 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1890 | for as_dir in $PATH | |
1891 | do | |
1892 | IFS=$as_save_IFS | |
1893 | test -z "$as_dir" && as_dir=. | |
1894 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1895 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1896 | ac_cv_prog_ac_ct_STRIP="strip" | |
1897 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1898 | break 2 | |
1899 | fi | |
1900 | done | |
1901 | done | |
1902 | ||
1903 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
1904 | fi | |
1905 | fi | |
1906 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
1907 | if test -n "$ac_ct_STRIP"; then | |
1908 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
1909 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
1910 | else | |
1911 | echo "$as_me:$LINENO: result: no" >&5 | |
1912 | echo "${ECHO_T}no" >&6 | |
1913 | fi | |
1914 | ||
1915 | STRIP=$ac_ct_STRIP | |
1916 | else | |
1917 | STRIP="$ac_cv_prog_STRIP" | |
1918 | fi | |
1919 | ||
1920 | fi | |
1921 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" | |
1922 | ||
1923 | # We need awk for the "check" target. The system "awk" is bad on | |
1924 | # some platforms. | |
1925 | # Always define AMTAR for backward compatibility. | |
1926 | ||
1927 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
1928 | ||
1929 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
1930 | ||
1931 | ||
1932 | ||
1933 | ||
1934 | ||
1935 | # Default to --enable-multilib | |
1936 | # Check whether --enable-multilib or --disable-multilib was given. | |
1937 | if test "${enable_multilib+set}" = set; then | |
1938 | enableval="$enable_multilib" | |
1939 | case "$enableval" in | |
1940 | yes) multilib=yes ;; | |
1941 | no) multilib=no ;; | |
1942 | *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5 | |
1943 | echo "$as_me: error: bad value $enableval for multilib option" >&2;} | |
1944 | { (exit 1); exit 1; }; } ;; | |
1945 | esac | |
1946 | else | |
1947 | multilib=yes | |
1948 | fi; | |
1949 | ||
1950 | # We may get other options which we leave undocumented: | |
1951 | # --with-target-subdir, --with-multisrctop, --with-multisubdir | |
1952 | # See config-ml.in if you want the gory details. | |
1953 | ||
1954 | if test "$srcdir" = "."; then | |
1955 | if test "$with_target_subdir" != "."; then | |
1956 | multi_basedir="$srcdir/$with_multisrctop../.." | |
1957 | else | |
1958 | multi_basedir="$srcdir/$with_multisrctop.." | |
1959 | fi | |
1960 | else | |
1961 | multi_basedir="$srcdir/.." | |
1962 | fi | |
1963 | ||
1964 | ||
5b043f08 GK |
1965 | # Even if the default multilib is not a cross compilation, |
1966 | # it may be that some of the other multilibs are. | |
1967 | if test $cross_compiling = no && test $multilib = yes \ | |
1968 | && test "x${with_multisubdir}" != x ; then | |
1969 | cross_compiling=maybe | |
1970 | fi | |
1971 | ||
953ff289 DN |
1972 | ac_config_commands="$ac_config_commands default-1" |
1973 | ||
1974 | ||
1975 | # Calculate toolexeclibdir | |
1976 | # Also toolexecdir, though it's only used in toolexeclibdir | |
1977 | case ${enable_version_specific_runtime_libs} in | |
1978 | yes) | |
1979 | # Need the gcc compiler version to know where to install libraries | |
1980 | # and header files if --enable-version-specific-runtime-libs option | |
1981 | # is selected. | |
1982 | toolexecdir='$(libdir)/gcc/$(target_alias)' | |
1983 | toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)' | |
1984 | ;; | |
1985 | no) | |
1986 | if test -n "$with_cross_host" && | |
1987 | test x"$with_cross_host" != x"no"; then | |
1988 | # Install a library built with a cross compiler in tooldir, not libdir. | |
1989 | toolexecdir='$(exec_prefix)/$(target_alias)' | |
1990 | toolexeclibdir='$(toolexecdir)/lib' | |
1991 | else | |
1992 | toolexecdir='$(libdir)/gcc-lib/$(target_alias)' | |
1993 | toolexeclibdir='$(libdir)' | |
1994 | fi | |
1995 | multi_os_directory=`$CC -print-multi-os-directory` | |
1996 | case $multi_os_directory in | |
1997 | .) ;; # Avoid trailing /. | |
1998 | *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;; | |
1999 | esac | |
2000 | ;; | |
2001 | esac | |
2002 | ||
2003 | ||
2004 | ||
2005 | # Check the compiler. | |
2006 | # The same as in boehm-gc and libstdc++. Have to borrow it from there. | |
2007 | # We must force CC to /not/ be precious variables; otherwise | |
2008 | # the wrong, non-multilib-adjusted value will be used in multilibs. | |
2009 | # As a side effect, we have to subst CFLAGS ourselves. | |
2010 | ||
2011 | ||
2012 | ||
2013 | ac_ext=c | |
2014 | ac_cpp='$CPP $CPPFLAGS' | |
2015 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2016 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2017 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2018 | if test -n "$ac_tool_prefix"; then | |
2019 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2020 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2021 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2022 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2023 | if test "${ac_cv_prog_CC+set}" = set; then | |
2024 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2025 | else | |
2026 | if test -n "$CC"; then | |
2027 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2028 | else | |
2029 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2030 | for as_dir in $PATH | |
2031 | do | |
2032 | IFS=$as_save_IFS | |
2033 | test -z "$as_dir" && as_dir=. | |
2034 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2035 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2036 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
2037 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2038 | break 2 | |
2039 | fi | |
2040 | done | |
2041 | done | |
2042 | ||
2043 | fi | |
2044 | fi | |
2045 | CC=$ac_cv_prog_CC | |
2046 | if test -n "$CC"; then | |
2047 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2048 | echo "${ECHO_T}$CC" >&6 | |
2049 | else | |
2050 | echo "$as_me:$LINENO: result: no" >&5 | |
2051 | echo "${ECHO_T}no" >&6 | |
2052 | fi | |
2053 | ||
2054 | fi | |
2055 | if test -z "$ac_cv_prog_CC"; then | |
2056 | ac_ct_CC=$CC | |
2057 | # Extract the first word of "gcc", so it can be a program name with args. | |
2058 | set dummy gcc; ac_word=$2 | |
2059 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2060 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2061 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2062 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2063 | else | |
2064 | if test -n "$ac_ct_CC"; then | |
2065 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2066 | else | |
2067 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2068 | for as_dir in $PATH | |
2069 | do | |
2070 | IFS=$as_save_IFS | |
2071 | test -z "$as_dir" && as_dir=. | |
2072 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2073 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2074 | ac_cv_prog_ac_ct_CC="gcc" | |
2075 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2076 | break 2 | |
2077 | fi | |
2078 | done | |
2079 | done | |
2080 | ||
2081 | fi | |
2082 | fi | |
2083 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2084 | if test -n "$ac_ct_CC"; then | |
2085 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2086 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
2087 | else | |
2088 | echo "$as_me:$LINENO: result: no" >&5 | |
2089 | echo "${ECHO_T}no" >&6 | |
2090 | fi | |
2091 | ||
2092 | CC=$ac_ct_CC | |
2093 | else | |
2094 | CC="$ac_cv_prog_CC" | |
2095 | fi | |
2096 | ||
2097 | if test -z "$CC"; then | |
2098 | if test -n "$ac_tool_prefix"; then | |
2099 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2100 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
2101 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2102 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2103 | if test "${ac_cv_prog_CC+set}" = set; then | |
2104 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2105 | else | |
2106 | if test -n "$CC"; then | |
2107 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2108 | else | |
2109 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2110 | for as_dir in $PATH | |
2111 | do | |
2112 | IFS=$as_save_IFS | |
2113 | test -z "$as_dir" && as_dir=. | |
2114 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2115 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2116 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
2117 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2118 | break 2 | |
2119 | fi | |
2120 | done | |
2121 | done | |
2122 | ||
2123 | fi | |
2124 | fi | |
2125 | CC=$ac_cv_prog_CC | |
2126 | if test -n "$CC"; then | |
2127 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2128 | echo "${ECHO_T}$CC" >&6 | |
2129 | else | |
2130 | echo "$as_me:$LINENO: result: no" >&5 | |
2131 | echo "${ECHO_T}no" >&6 | |
2132 | fi | |
2133 | ||
2134 | fi | |
2135 | if test -z "$ac_cv_prog_CC"; then | |
2136 | ac_ct_CC=$CC | |
2137 | # Extract the first word of "cc", so it can be a program name with args. | |
2138 | set dummy cc; ac_word=$2 | |
2139 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2140 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2141 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2142 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2143 | else | |
2144 | if test -n "$ac_ct_CC"; then | |
2145 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2146 | else | |
2147 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2148 | for as_dir in $PATH | |
2149 | do | |
2150 | IFS=$as_save_IFS | |
2151 | test -z "$as_dir" && as_dir=. | |
2152 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2153 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2154 | ac_cv_prog_ac_ct_CC="cc" | |
2155 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2156 | break 2 | |
2157 | fi | |
2158 | done | |
2159 | done | |
2160 | ||
2161 | fi | |
2162 | fi | |
2163 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2164 | if test -n "$ac_ct_CC"; then | |
2165 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2166 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
2167 | else | |
2168 | echo "$as_me:$LINENO: result: no" >&5 | |
2169 | echo "${ECHO_T}no" >&6 | |
2170 | fi | |
2171 | ||
2172 | CC=$ac_ct_CC | |
2173 | else | |
2174 | CC="$ac_cv_prog_CC" | |
2175 | fi | |
2176 | ||
2177 | fi | |
2178 | if test -z "$CC"; then | |
2179 | # Extract the first word of "cc", so it can be a program name with args. | |
2180 | set dummy cc; ac_word=$2 | |
2181 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2182 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2183 | if test "${ac_cv_prog_CC+set}" = set; then | |
2184 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2185 | else | |
2186 | if test -n "$CC"; then | |
2187 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2188 | else | |
2189 | ac_prog_rejected=no | |
2190 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2191 | for as_dir in $PATH | |
2192 | do | |
2193 | IFS=$as_save_IFS | |
2194 | test -z "$as_dir" && as_dir=. | |
2195 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2196 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2197 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
2198 | ac_prog_rejected=yes | |
2199 | continue | |
2200 | fi | |
2201 | ac_cv_prog_CC="cc" | |
2202 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2203 | break 2 | |
2204 | fi | |
2205 | done | |
2206 | done | |
2207 | ||
2208 | if test $ac_prog_rejected = yes; then | |
2209 | # We found a bogon in the path, so make sure we never use it. | |
2210 | set dummy $ac_cv_prog_CC | |
2211 | shift | |
2212 | if test $# != 0; then | |
2213 | # We chose a different compiler from the bogus one. | |
2214 | # However, it has the same basename, so the bogon will be chosen | |
2215 | # first if we set CC to just the basename; use the full file name. | |
2216 | shift | |
2217 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2218 | fi | |
2219 | fi | |
2220 | fi | |
2221 | fi | |
2222 | CC=$ac_cv_prog_CC | |
2223 | if test -n "$CC"; then | |
2224 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2225 | echo "${ECHO_T}$CC" >&6 | |
2226 | else | |
2227 | echo "$as_me:$LINENO: result: no" >&5 | |
2228 | echo "${ECHO_T}no" >&6 | |
2229 | fi | |
2230 | ||
2231 | fi | |
2232 | if test -z "$CC"; then | |
2233 | if test -n "$ac_tool_prefix"; then | |
2234 | for ac_prog in cl | |
2235 | do | |
2236 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2237 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2238 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2239 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2240 | if test "${ac_cv_prog_CC+set}" = set; then | |
2241 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2242 | else | |
2243 | if test -n "$CC"; then | |
2244 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2245 | else | |
2246 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2247 | for as_dir in $PATH | |
2248 | do | |
2249 | IFS=$as_save_IFS | |
2250 | test -z "$as_dir" && as_dir=. | |
2251 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2252 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2253 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
2254 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2255 | break 2 | |
2256 | fi | |
2257 | done | |
2258 | done | |
2259 | ||
2260 | fi | |
2261 | fi | |
2262 | CC=$ac_cv_prog_CC | |
2263 | if test -n "$CC"; then | |
2264 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2265 | echo "${ECHO_T}$CC" >&6 | |
2266 | else | |
2267 | echo "$as_me:$LINENO: result: no" >&5 | |
2268 | echo "${ECHO_T}no" >&6 | |
2269 | fi | |
2270 | ||
2271 | test -n "$CC" && break | |
2272 | done | |
2273 | fi | |
2274 | if test -z "$CC"; then | |
2275 | ac_ct_CC=$CC | |
2276 | for ac_prog in cl | |
2277 | do | |
2278 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2279 | set dummy $ac_prog; ac_word=$2 | |
2280 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2281 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2282 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2283 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2284 | else | |
2285 | if test -n "$ac_ct_CC"; then | |
2286 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2287 | else | |
2288 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2289 | for as_dir in $PATH | |
2290 | do | |
2291 | IFS=$as_save_IFS | |
2292 | test -z "$as_dir" && as_dir=. | |
2293 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2294 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2295 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
2296 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2297 | break 2 | |
2298 | fi | |
2299 | done | |
2300 | done | |
2301 | ||
2302 | fi | |
2303 | fi | |
2304 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2305 | if test -n "$ac_ct_CC"; then | |
2306 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2307 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
2308 | else | |
2309 | echo "$as_me:$LINENO: result: no" >&5 | |
2310 | echo "${ECHO_T}no" >&6 | |
2311 | fi | |
2312 | ||
2313 | test -n "$ac_ct_CC" && break | |
2314 | done | |
2315 | ||
2316 | CC=$ac_ct_CC | |
2317 | fi | |
2318 | ||
2319 | fi | |
2320 | ||
2321 | ||
2322 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
2323 | See \`config.log' for more details." >&5 | |
2324 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
2325 | See \`config.log' for more details." >&2;} | |
2326 | { (exit 1); exit 1; }; } | |
2327 | ||
2328 | # Provide some information about the compiler. | |
2329 | echo "$as_me:$LINENO:" \ | |
2330 | "checking for C compiler version" >&5 | |
2331 | ac_compiler=`set X $ac_compile; echo $2` | |
2332 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
2333 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
2334 | ac_status=$? | |
2335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2336 | (exit $ac_status); } | |
2337 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
2338 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
2339 | ac_status=$? | |
2340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2341 | (exit $ac_status); } | |
2342 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
2343 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
2344 | ac_status=$? | |
2345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2346 | (exit $ac_status); } | |
2347 | ||
2348 | cat >conftest.$ac_ext <<_ACEOF | |
2349 | /* confdefs.h. */ | |
2350 | _ACEOF | |
2351 | cat confdefs.h >>conftest.$ac_ext | |
2352 | cat >>conftest.$ac_ext <<_ACEOF | |
2353 | /* end confdefs.h. */ | |
2354 | ||
2355 | int | |
2356 | main () | |
2357 | { | |
2358 | ||
2359 | ; | |
2360 | return 0; | |
2361 | } | |
2362 | _ACEOF | |
2363 | ac_clean_files_save=$ac_clean_files | |
2364 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
2365 | # Try to create an executable without -o first, disregard a.out. | |
2366 | # It will help us diagnose broken compilers, and finding out an intuition | |
2367 | # of exeext. | |
2368 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | |
2369 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
2370 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2371 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
2372 | (eval $ac_link_default) 2>&5 | |
2373 | ac_status=$? | |
2374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2375 | (exit $ac_status); }; then | |
2376 | # Find the output, starting from the most likely. This scheme is | |
2377 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
2378 | # resort. | |
2379 | ||
2380 | # Be careful to initialize this variable, since it used to be cached. | |
2381 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
2382 | ac_cv_exeext= | |
2383 | # b.out is created by i960 compilers. | |
2384 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
2385 | do | |
2386 | test -f "$ac_file" || continue | |
2387 | case $ac_file in | |
2388 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
2389 | ;; | |
2390 | conftest.$ac_ext ) | |
2391 | # This is the source file. | |
2392 | ;; | |
2393 | [ab].out ) | |
2394 | # We found the default executable, but exeext='' is most | |
2395 | # certainly right. | |
2396 | break;; | |
2397 | *.* ) | |
2398 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2399 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
2400 | # but it would be cool to find out if it's true. Does anybody | |
2401 | # maintain Libtool? --akim. | |
2402 | export ac_cv_exeext | |
2403 | break;; | |
2404 | * ) | |
2405 | break;; | |
2406 | esac | |
2407 | done | |
2408 | else | |
2409 | echo "$as_me: failed program was:" >&5 | |
2410 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2411 | ||
2412 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
2413 | See \`config.log' for more details." >&5 | |
2414 | echo "$as_me: error: C compiler cannot create executables | |
2415 | See \`config.log' for more details." >&2;} | |
2416 | { (exit 77); exit 77; }; } | |
2417 | fi | |
2418 | ||
2419 | ac_exeext=$ac_cv_exeext | |
2420 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
2421 | echo "${ECHO_T}$ac_file" >&6 | |
2422 | ||
2423 | # Check the compiler produces executables we can run. If not, either | |
2424 | # the compiler is broken, or we cross compile. | |
2425 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
2426 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
2427 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
2428 | # If not cross compiling, check that we can run a simple program. | |
2429 | if test "$cross_compiling" != yes; then | |
2430 | if { ac_try='./$ac_file' | |
2431 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2432 | (eval $ac_try) 2>&5 | |
2433 | ac_status=$? | |
2434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2435 | (exit $ac_status); }; }; then | |
2436 | cross_compiling=no | |
2437 | else | |
2438 | if test "$cross_compiling" = maybe; then | |
2439 | cross_compiling=yes | |
2440 | else | |
2441 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
2442 | If you meant to cross compile, use \`--host'. | |
2443 | See \`config.log' for more details." >&5 | |
2444 | echo "$as_me: error: cannot run C compiled programs. | |
2445 | If you meant to cross compile, use \`--host'. | |
2446 | See \`config.log' for more details." >&2;} | |
2447 | { (exit 1); exit 1; }; } | |
2448 | fi | |
2449 | fi | |
2450 | fi | |
2451 | echo "$as_me:$LINENO: result: yes" >&5 | |
2452 | echo "${ECHO_T}yes" >&6 | |
2453 | ||
2454 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
2455 | ac_clean_files=$ac_clean_files_save | |
2456 | # Check the compiler produces executables we can run. If not, either | |
2457 | # the compiler is broken, or we cross compile. | |
2458 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
2459 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
2460 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2461 | echo "${ECHO_T}$cross_compiling" >&6 | |
2462 | ||
2463 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
2464 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
2465 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2466 | (eval $ac_link) 2>&5 | |
2467 | ac_status=$? | |
2468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2469 | (exit $ac_status); }; then | |
2470 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2471 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2472 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2473 | # `rm'. | |
2474 | for ac_file in conftest.exe conftest conftest.*; do | |
2475 | test -f "$ac_file" || continue | |
2476 | case $ac_file in | |
2477 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
2478 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2479 | export ac_cv_exeext | |
2480 | break;; | |
2481 | * ) break;; | |
2482 | esac | |
2483 | done | |
2484 | else | |
2485 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
2486 | See \`config.log' for more details." >&5 | |
2487 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
2488 | See \`config.log' for more details." >&2;} | |
2489 | { (exit 1); exit 1; }; } | |
2490 | fi | |
2491 | ||
2492 | rm -f conftest$ac_cv_exeext | |
2493 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
2494 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
2495 | ||
2496 | rm -f conftest.$ac_ext | |
2497 | EXEEXT=$ac_cv_exeext | |
2498 | ac_exeext=$EXEEXT | |
2499 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
2500 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
2501 | if test "${ac_cv_objext+set}" = set; then | |
2502 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2503 | else | |
2504 | cat >conftest.$ac_ext <<_ACEOF | |
2505 | /* confdefs.h. */ | |
2506 | _ACEOF | |
2507 | cat confdefs.h >>conftest.$ac_ext | |
2508 | cat >>conftest.$ac_ext <<_ACEOF | |
2509 | /* end confdefs.h. */ | |
2510 | ||
2511 | int | |
2512 | main () | |
2513 | { | |
2514 | ||
2515 | ; | |
2516 | return 0; | |
2517 | } | |
2518 | _ACEOF | |
2519 | rm -f conftest.o conftest.obj | |
2520 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2521 | (eval $ac_compile) 2>&5 | |
2522 | ac_status=$? | |
2523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2524 | (exit $ac_status); }; then | |
2525 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
2526 | case $ac_file in | |
2527 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
2528 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
2529 | break;; | |
2530 | esac | |
2531 | done | |
2532 | else | |
2533 | echo "$as_me: failed program was:" >&5 | |
2534 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2535 | ||
2536 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
2537 | See \`config.log' for more details." >&5 | |
2538 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
2539 | See \`config.log' for more details." >&2;} | |
2540 | { (exit 1); exit 1; }; } | |
2541 | fi | |
2542 | ||
2543 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2544 | fi | |
2545 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
2546 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
2547 | OBJEXT=$ac_cv_objext | |
2548 | ac_objext=$OBJEXT | |
2549 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
2550 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
2551 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
2552 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2553 | else | |
2554 | cat >conftest.$ac_ext <<_ACEOF | |
2555 | /* confdefs.h. */ | |
2556 | _ACEOF | |
2557 | cat confdefs.h >>conftest.$ac_ext | |
2558 | cat >>conftest.$ac_ext <<_ACEOF | |
2559 | /* end confdefs.h. */ | |
2560 | ||
2561 | int | |
2562 | main () | |
2563 | { | |
2564 | #ifndef __GNUC__ | |
2565 | choke me | |
2566 | #endif | |
2567 | ||
2568 | ; | |
2569 | return 0; | |
2570 | } | |
2571 | _ACEOF | |
2572 | rm -f conftest.$ac_objext | |
2573 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2574 | (eval $ac_compile) 2>conftest.er1 | |
2575 | ac_status=$? | |
2576 | grep -v '^ *+' conftest.er1 >conftest.err | |
2577 | rm -f conftest.er1 | |
2578 | cat conftest.err >&5 | |
2579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2580 | (exit $ac_status); } && | |
d349482e AT |
2581 | { ac_try='test -z "$ac_c_werror_flag" |
2582 | || test ! -s conftest.err' | |
953ff289 DN |
2583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2584 | (eval $ac_try) 2>&5 | |
2585 | ac_status=$? | |
2586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2587 | (exit $ac_status); }; } && | |
2588 | { ac_try='test -s conftest.$ac_objext' | |
2589 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2590 | (eval $ac_try) 2>&5 | |
2591 | ac_status=$? | |
2592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2593 | (exit $ac_status); }; }; then | |
2594 | ac_compiler_gnu=yes | |
2595 | else | |
2596 | echo "$as_me: failed program was:" >&5 | |
2597 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2598 | ||
2599 | ac_compiler_gnu=no | |
2600 | fi | |
2601 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2602 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
2603 | ||
2604 | fi | |
2605 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
2606 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
2607 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
2608 | ac_test_CFLAGS=${CFLAGS+set} | |
2609 | ac_save_CFLAGS=$CFLAGS | |
2610 | CFLAGS="-g" | |
2611 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
2612 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
2613 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
2614 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2615 | else | |
2616 | cat >conftest.$ac_ext <<_ACEOF | |
2617 | /* confdefs.h. */ | |
2618 | _ACEOF | |
2619 | cat confdefs.h >>conftest.$ac_ext | |
2620 | cat >>conftest.$ac_ext <<_ACEOF | |
2621 | /* end confdefs.h. */ | |
2622 | ||
2623 | int | |
2624 | main () | |
2625 | { | |
2626 | ||
2627 | ; | |
2628 | return 0; | |
2629 | } | |
2630 | _ACEOF | |
2631 | rm -f conftest.$ac_objext | |
2632 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2633 | (eval $ac_compile) 2>conftest.er1 | |
2634 | ac_status=$? | |
2635 | grep -v '^ *+' conftest.er1 >conftest.err | |
2636 | rm -f conftest.er1 | |
2637 | cat conftest.err >&5 | |
2638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2639 | (exit $ac_status); } && | |
d349482e AT |
2640 | { ac_try='test -z "$ac_c_werror_flag" |
2641 | || test ! -s conftest.err' | |
953ff289 DN |
2642 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2643 | (eval $ac_try) 2>&5 | |
2644 | ac_status=$? | |
2645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2646 | (exit $ac_status); }; } && | |
2647 | { ac_try='test -s conftest.$ac_objext' | |
2648 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2649 | (eval $ac_try) 2>&5 | |
2650 | ac_status=$? | |
2651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2652 | (exit $ac_status); }; }; then | |
2653 | ac_cv_prog_cc_g=yes | |
2654 | else | |
2655 | echo "$as_me: failed program was:" >&5 | |
2656 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2657 | ||
2658 | ac_cv_prog_cc_g=no | |
2659 | fi | |
2660 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2661 | fi | |
2662 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
2663 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
2664 | if test "$ac_test_CFLAGS" = set; then | |
2665 | CFLAGS=$ac_save_CFLAGS | |
2666 | elif test $ac_cv_prog_cc_g = yes; then | |
2667 | if test "$GCC" = yes; then | |
2668 | CFLAGS="-g -O2" | |
2669 | else | |
2670 | CFLAGS="-g" | |
2671 | fi | |
2672 | else | |
2673 | if test "$GCC" = yes; then | |
2674 | CFLAGS="-O2" | |
2675 | else | |
2676 | CFLAGS= | |
2677 | fi | |
2678 | fi | |
2679 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
2680 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
2681 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
2682 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2683 | else | |
2684 | ac_cv_prog_cc_stdc=no | |
2685 | ac_save_CC=$CC | |
2686 | cat >conftest.$ac_ext <<_ACEOF | |
2687 | /* confdefs.h. */ | |
2688 | _ACEOF | |
2689 | cat confdefs.h >>conftest.$ac_ext | |
2690 | cat >>conftest.$ac_ext <<_ACEOF | |
2691 | /* end confdefs.h. */ | |
2692 | #include <stdarg.h> | |
2693 | #include <stdio.h> | |
2694 | #include <sys/types.h> | |
2695 | #include <sys/stat.h> | |
2696 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2697 | struct buf { int x; }; | |
2698 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2699 | static char *e (p, i) | |
2700 | char **p; | |
2701 | int i; | |
2702 | { | |
2703 | return p[i]; | |
2704 | } | |
2705 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2706 | { | |
2707 | char *s; | |
2708 | va_list v; | |
2709 | va_start (v,p); | |
2710 | s = g (p, va_arg (v,int)); | |
2711 | va_end (v); | |
2712 | return s; | |
2713 | } | |
2714 | ||
2715 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2716 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2717 | These don't provoke an error unfortunately, instead are silently treated | |
2718 | as 'x'. The following induces an error, until -std1 is added to get | |
2719 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
2720 | array size at least. It's necessary to write '\x00'==0 to get something | |
2721 | that's true only with -std1. */ | |
2722 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
2723 | ||
2724 | int test (int i, double x); | |
2725 | struct s1 {int (*f) (int a);}; | |
2726 | struct s2 {int (*f) (double a);}; | |
2727 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2728 | int argc; | |
2729 | char **argv; | |
2730 | int | |
2731 | main () | |
2732 | { | |
2733 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2734 | ; | |
2735 | return 0; | |
2736 | } | |
2737 | _ACEOF | |
2738 | # Don't try gcc -ansi; that turns off useful extensions and | |
2739 | # breaks some systems' header files. | |
2740 | # AIX -qlanglvl=ansi | |
2741 | # Ultrix and OSF/1 -std1 | |
2742 | # HP-UX 10.20 and later -Ae | |
2743 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2744 | # SVR4 -Xc -D__EXTENSIONS__ | |
2745 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2746 | do | |
2747 | CC="$ac_save_CC $ac_arg" | |
2748 | rm -f conftest.$ac_objext | |
2749 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2750 | (eval $ac_compile) 2>conftest.er1 | |
2751 | ac_status=$? | |
2752 | grep -v '^ *+' conftest.er1 >conftest.err | |
2753 | rm -f conftest.er1 | |
2754 | cat conftest.err >&5 | |
2755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2756 | (exit $ac_status); } && | |
d349482e AT |
2757 | { ac_try='test -z "$ac_c_werror_flag" |
2758 | || test ! -s conftest.err' | |
953ff289 DN |
2759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2760 | (eval $ac_try) 2>&5 | |
2761 | ac_status=$? | |
2762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2763 | (exit $ac_status); }; } && | |
2764 | { ac_try='test -s conftest.$ac_objext' | |
2765 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2766 | (eval $ac_try) 2>&5 | |
2767 | ac_status=$? | |
2768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2769 | (exit $ac_status); }; }; then | |
2770 | ac_cv_prog_cc_stdc=$ac_arg | |
2771 | break | |
2772 | else | |
2773 | echo "$as_me: failed program was:" >&5 | |
2774 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2775 | ||
2776 | fi | |
2777 | rm -f conftest.err conftest.$ac_objext | |
2778 | done | |
2779 | rm -f conftest.$ac_ext conftest.$ac_objext | |
2780 | CC=$ac_save_CC | |
2781 | ||
2782 | fi | |
2783 | ||
2784 | case "x$ac_cv_prog_cc_stdc" in | |
2785 | x|xno) | |
2786 | echo "$as_me:$LINENO: result: none needed" >&5 | |
2787 | echo "${ECHO_T}none needed" >&6 ;; | |
2788 | *) | |
2789 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
2790 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
2791 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
2792 | esac | |
2793 | ||
2794 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
2795 | # in C++ we need to declare it. In case someone uses the same compiler | |
2796 | # for both compiling C and C++ we need to have the C++ compiler decide | |
2797 | # the declaration of exit, since it's the most demanding environment. | |
2798 | cat >conftest.$ac_ext <<_ACEOF | |
2799 | #ifndef __cplusplus | |
2800 | choke me | |
2801 | #endif | |
2802 | _ACEOF | |
2803 | rm -f conftest.$ac_objext | |
2804 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2805 | (eval $ac_compile) 2>conftest.er1 | |
2806 | ac_status=$? | |
2807 | grep -v '^ *+' conftest.er1 >conftest.err | |
2808 | rm -f conftest.er1 | |
2809 | cat conftest.err >&5 | |
2810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2811 | (exit $ac_status); } && | |
d349482e AT |
2812 | { ac_try='test -z "$ac_c_werror_flag" |
2813 | || test ! -s conftest.err' | |
953ff289 DN |
2814 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2815 | (eval $ac_try) 2>&5 | |
2816 | ac_status=$? | |
2817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2818 | (exit $ac_status); }; } && | |
2819 | { ac_try='test -s conftest.$ac_objext' | |
2820 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2821 | (eval $ac_try) 2>&5 | |
2822 | ac_status=$? | |
2823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2824 | (exit $ac_status); }; }; then | |
2825 | for ac_declaration in \ | |
2826 | '' \ | |
2827 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
2828 | 'extern "C" void std::exit (int); using std::exit;' \ | |
2829 | 'extern "C" void exit (int) throw ();' \ | |
2830 | 'extern "C" void exit (int);' \ | |
2831 | 'void exit (int);' | |
2832 | do | |
2833 | cat >conftest.$ac_ext <<_ACEOF | |
2834 | /* confdefs.h. */ | |
2835 | _ACEOF | |
2836 | cat confdefs.h >>conftest.$ac_ext | |
2837 | cat >>conftest.$ac_ext <<_ACEOF | |
2838 | /* end confdefs.h. */ | |
2839 | $ac_declaration | |
2840 | #include <stdlib.h> | |
2841 | int | |
2842 | main () | |
2843 | { | |
2844 | exit (42); | |
2845 | ; | |
2846 | return 0; | |
2847 | } | |
2848 | _ACEOF | |
2849 | rm -f conftest.$ac_objext | |
2850 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2851 | (eval $ac_compile) 2>conftest.er1 | |
2852 | ac_status=$? | |
2853 | grep -v '^ *+' conftest.er1 >conftest.err | |
2854 | rm -f conftest.er1 | |
2855 | cat conftest.err >&5 | |
2856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2857 | (exit $ac_status); } && | |
d349482e AT |
2858 | { ac_try='test -z "$ac_c_werror_flag" |
2859 | || test ! -s conftest.err' | |
953ff289 DN |
2860 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2861 | (eval $ac_try) 2>&5 | |
2862 | ac_status=$? | |
2863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2864 | (exit $ac_status); }; } && | |
2865 | { ac_try='test -s conftest.$ac_objext' | |
2866 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2867 | (eval $ac_try) 2>&5 | |
2868 | ac_status=$? | |
2869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2870 | (exit $ac_status); }; }; then | |
2871 | : | |
2872 | else | |
2873 | echo "$as_me: failed program was:" >&5 | |
2874 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2875 | ||
2876 | continue | |
2877 | fi | |
2878 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2879 | cat >conftest.$ac_ext <<_ACEOF | |
2880 | /* confdefs.h. */ | |
2881 | _ACEOF | |
2882 | cat confdefs.h >>conftest.$ac_ext | |
2883 | cat >>conftest.$ac_ext <<_ACEOF | |
2884 | /* end confdefs.h. */ | |
2885 | $ac_declaration | |
2886 | int | |
2887 | main () | |
2888 | { | |
2889 | exit (42); | |
2890 | ; | |
2891 | return 0; | |
2892 | } | |
2893 | _ACEOF | |
2894 | rm -f conftest.$ac_objext | |
2895 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2896 | (eval $ac_compile) 2>conftest.er1 | |
2897 | ac_status=$? | |
2898 | grep -v '^ *+' conftest.er1 >conftest.err | |
2899 | rm -f conftest.er1 | |
2900 | cat conftest.err >&5 | |
2901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2902 | (exit $ac_status); } && | |
d349482e AT |
2903 | { ac_try='test -z "$ac_c_werror_flag" |
2904 | || test ! -s conftest.err' | |
953ff289 DN |
2905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2906 | (eval $ac_try) 2>&5 | |
2907 | ac_status=$? | |
2908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2909 | (exit $ac_status); }; } && | |
2910 | { ac_try='test -s conftest.$ac_objext' | |
2911 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2912 | (eval $ac_try) 2>&5 | |
2913 | ac_status=$? | |
2914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2915 | (exit $ac_status); }; }; then | |
2916 | break | |
2917 | else | |
2918 | echo "$as_me: failed program was:" >&5 | |
2919 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2920 | ||
2921 | fi | |
2922 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2923 | done | |
2924 | rm -f conftest* | |
2925 | if test -n "$ac_declaration"; then | |
2926 | echo '#ifdef __cplusplus' >>confdefs.h | |
2927 | echo $ac_declaration >>confdefs.h | |
2928 | echo '#endif' >>confdefs.h | |
2929 | fi | |
2930 | ||
2931 | else | |
2932 | echo "$as_me: failed program was:" >&5 | |
2933 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2934 | ||
2935 | fi | |
2936 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2937 | ac_ext=c | |
2938 | ac_cpp='$CPP $CPPFLAGS' | |
2939 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2940 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2941 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2942 | DEPDIR="${am__leading_dot}deps" | |
2943 | ||
2944 | ac_config_commands="$ac_config_commands depfiles" | |
2945 | ||
2946 | ||
2947 | am_make=${MAKE-make} | |
2948 | cat > confinc << 'END' | |
2949 | am__doit: | |
2950 | @echo done | |
2951 | .PHONY: am__doit | |
2952 | END | |
2953 | # If we don't find an include directive, just comment out the code. | |
2954 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 | |
2955 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 | |
2956 | am__include="#" | |
2957 | am__quote= | |
2958 | _am_result=none | |
2959 | # First try GNU make style include. | |
2960 | echo "include confinc" > confmf | |
2961 | # We grep out `Entering directory' and `Leaving directory' | |
2962 | # messages which can occur if `w' ends up in MAKEFLAGS. | |
2963 | # In particular we don't look at `^make:' because GNU make might | |
2964 | # be invoked under some other name (usually "gmake"), in which | |
2965 | # case it prints its new name instead of `make'. | |
2966 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then | |
2967 | am__include=include | |
2968 | am__quote= | |
2969 | _am_result=GNU | |
2970 | fi | |
2971 | # Now try BSD make style include. | |
2972 | if test "$am__include" = "#"; then | |
2973 | echo '.include "confinc"' > confmf | |
2974 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then | |
2975 | am__include=.include | |
2976 | am__quote="\"" | |
2977 | _am_result=BSD | |
2978 | fi | |
2979 | fi | |
2980 | ||
2981 | ||
2982 | echo "$as_me:$LINENO: result: $_am_result" >&5 | |
2983 | echo "${ECHO_T}$_am_result" >&6 | |
2984 | rm -f confinc confmf | |
2985 | ||
2986 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. | |
2987 | if test "${enable_dependency_tracking+set}" = set; then | |
2988 | enableval="$enable_dependency_tracking" | |
2989 | ||
2990 | fi; | |
2991 | if test "x$enable_dependency_tracking" != xno; then | |
2992 | am_depcomp="$ac_aux_dir/depcomp" | |
2993 | AMDEPBACKSLASH='\' | |
2994 | fi | |
2995 | ||
2996 | ||
2997 | if test "x$enable_dependency_tracking" != xno; then | |
2998 | AMDEP_TRUE= | |
2999 | AMDEP_FALSE='#' | |
3000 | else | |
3001 | AMDEP_TRUE='#' | |
3002 | AMDEP_FALSE= | |
3003 | fi | |
3004 | ||
3005 | ||
3006 | ||
3007 | ||
3008 | depcc="$CC" am_compiler_list= | |
3009 | ||
3010 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 | |
3011 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 | |
3012 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then | |
3013 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3014 | else | |
3015 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
3016 | # We make a subdir and do the tests there. Otherwise we can end up | |
3017 | # making bogus files that we don't know about and never remove. For | |
3018 | # instance it was reported that on HP-UX the gcc test will end up | |
3019 | # making a dummy file named `D' -- because `-MD' means `put the output | |
3020 | # in D'. | |
3021 | mkdir conftest.dir | |
3022 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
3023 | # using a relative directory. | |
3024 | cp "$am_depcomp" conftest.dir | |
3025 | cd conftest.dir | |
3026 | # We will build objects and dependencies in a subdirectory because | |
3027 | # it helps to detect inapplicable dependency modes. For instance | |
3028 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
3029 | # side effect of compilation, but ICC will put the dependencies in | |
3030 | # the current directory while Tru64 will put them in the object | |
3031 | # directory. | |
3032 | mkdir sub | |
3033 | ||
3034 | am_cv_CC_dependencies_compiler_type=none | |
3035 | if test "$am_compiler_list" = ""; then | |
3036 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3037 | fi | |
3038 | for depmode in $am_compiler_list; do | |
3039 | # Setup a source with many dependencies, because some compilers | |
3040 | # like to wrap large dependency lists on column 80 (with \), and | |
3041 | # we should not choose a depcomp mode which is confused by this. | |
3042 | # | |
3043 | # We need to recreate these files for each test, as the compiler may | |
3044 | # overwrite some of them when testing with obscure command lines. | |
3045 | # This happens at least with the AIX C compiler. | |
3046 | : > sub/conftest.c | |
3047 | for i in 1 2 3 4 5 6; do | |
3048 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
3049 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
3050 | # Solaris 8's {/usr,}/bin/sh. | |
3051 | touch sub/conftst$i.h | |
3052 | done | |
3053 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3054 | ||
3055 | case $depmode in | |
3056 | nosideeffect) | |
3057 | # after this tag, mechanisms are not by side-effect, so they'll | |
3058 | # only be used when explicitly requested | |
3059 | if test "x$enable_dependency_tracking" = xyes; then | |
3060 | continue | |
3061 | else | |
3062 | break | |
3063 | fi | |
3064 | ;; | |
3065 | none) break ;; | |
3066 | esac | |
3067 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
3068 | # mode. It turns out that the SunPro C++ compiler does not properly | |
3069 | # handle `-M -o', and we need to detect this. | |
3070 | if depmode=$depmode \ | |
3071 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
3072 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
3073 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
3074 | >/dev/null 2>conftest.err && | |
3075 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
3076 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
3077 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
3078 | # icc doesn't choke on unknown options, it will just issue warnings | |
3079 | # or remarks (even with -Werror). So we grep stderr for any message | |
3080 | # that says an option was ignored or not supported. | |
3081 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3082 | # icc: Command line warning: ignoring option '-M'; no argument required | |
3083 | # The diagnosis changed in icc 8.0: | |
3084 | # icc: Command line remark: option '-MP' not supported | |
3085 | if (grep 'ignoring option' conftest.err || | |
3086 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
3087 | am_cv_CC_dependencies_compiler_type=$depmode | |
3088 | break | |
3089 | fi | |
3090 | fi | |
3091 | done | |
3092 | ||
3093 | cd .. | |
3094 | rm -rf conftest.dir | |
3095 | else | |
3096 | am_cv_CC_dependencies_compiler_type=none | |
3097 | fi | |
3098 | ||
3099 | fi | |
3100 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
3101 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 | |
3102 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
3103 | ||
3104 | ||
3105 | ||
3106 | if | |
3107 | test "x$enable_dependency_tracking" != xno \ | |
3108 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
3109 | am__fastdepCC_TRUE= | |
3110 | am__fastdepCC_FALSE='#' | |
3111 | else | |
3112 | am__fastdepCC_TRUE='#' | |
3113 | am__fastdepCC_FALSE= | |
3114 | fi | |
3115 | ||
3116 | ||
3117 | ||
3118 | ||
3119 | ||
3120 | ||
3121 | # In order to override CFLAGS_FOR_TARGET, all of our special flags go | |
3122 | # in XCFLAGS. But we need them in CFLAGS during configury. So put them | |
3123 | # in both places for now and restore CFLAGS at the end of config. | |
3124 | save_CFLAGS="$CFLAGS" | |
3125 | ||
3126 | # Add -Wall -Werror if we are using GCC. | |
3127 | if test "x$GCC" = "xyes"; then | |
3128 | XCFLAGS="$XCFLAGS -Wall -Werror" | |
3129 | fi | |
3130 | ||
3131 | # Find other programs we need. | |
3132 | if test -n "$ac_tool_prefix"; then | |
3133 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
3134 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
3135 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3136 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3137 | if test "${ac_cv_prog_AR+set}" = set; then | |
3138 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3139 | else | |
3140 | if test -n "$AR"; then | |
3141 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
3142 | else | |
3143 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3144 | for as_dir in $PATH | |
3145 | do | |
3146 | IFS=$as_save_IFS | |
3147 | test -z "$as_dir" && as_dir=. | |
3148 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3149 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3150 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
3151 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3152 | break 2 | |
3153 | fi | |
3154 | done | |
3155 | done | |
3156 | ||
3157 | fi | |
3158 | fi | |
3159 | AR=$ac_cv_prog_AR | |
3160 | if test -n "$AR"; then | |
3161 | echo "$as_me:$LINENO: result: $AR" >&5 | |
3162 | echo "${ECHO_T}$AR" >&6 | |
3163 | else | |
3164 | echo "$as_me:$LINENO: result: no" >&5 | |
3165 | echo "${ECHO_T}no" >&6 | |
3166 | fi | |
3167 | ||
3168 | fi | |
3169 | if test -z "$ac_cv_prog_AR"; then | |
3170 | ac_ct_AR=$AR | |
3171 | # Extract the first word of "ar", so it can be a program name with args. | |
3172 | set dummy ar; ac_word=$2 | |
3173 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3174 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3175 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
3176 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3177 | else | |
3178 | if test -n "$ac_ct_AR"; then | |
3179 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
3180 | else | |
3181 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3182 | for as_dir in $PATH | |
3183 | do | |
3184 | IFS=$as_save_IFS | |
3185 | test -z "$as_dir" && as_dir=. | |
3186 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3187 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3188 | ac_cv_prog_ac_ct_AR="ar" | |
3189 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3190 | break 2 | |
3191 | fi | |
3192 | done | |
3193 | done | |
3194 | ||
3195 | fi | |
3196 | fi | |
3197 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
3198 | if test -n "$ac_ct_AR"; then | |
3199 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
3200 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
3201 | else | |
3202 | echo "$as_me:$LINENO: result: no" >&5 | |
3203 | echo "${ECHO_T}no" >&6 | |
3204 | fi | |
3205 | ||
3206 | AR=$ac_ct_AR | |
3207 | else | |
3208 | AR="$ac_cv_prog_AR" | |
3209 | fi | |
3210 | ||
3211 | if test -n "$ac_tool_prefix"; then | |
3212 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3213 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
3214 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3215 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3216 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
3217 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3218 | else | |
3219 | if test -n "$RANLIB"; then | |
3220 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3221 | else | |
3222 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3223 | for as_dir in $PATH | |
3224 | do | |
3225 | IFS=$as_save_IFS | |
3226 | test -z "$as_dir" && as_dir=. | |
3227 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3228 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3229 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
3230 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3231 | break 2 | |
3232 | fi | |
3233 | done | |
3234 | done | |
3235 | ||
3236 | fi | |
3237 | fi | |
3238 | RANLIB=$ac_cv_prog_RANLIB | |
3239 | if test -n "$RANLIB"; then | |
3240 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
3241 | echo "${ECHO_T}$RANLIB" >&6 | |
3242 | else | |
3243 | echo "$as_me:$LINENO: result: no" >&5 | |
3244 | echo "${ECHO_T}no" >&6 | |
3245 | fi | |
3246 | ||
3247 | fi | |
3248 | if test -z "$ac_cv_prog_RANLIB"; then | |
3249 | ac_ct_RANLIB=$RANLIB | |
3250 | # Extract the first word of "ranlib", so it can be a program name with args. | |
3251 | set dummy ranlib; ac_word=$2 | |
3252 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3253 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3254 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
3255 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3256 | else | |
3257 | if test -n "$ac_ct_RANLIB"; then | |
3258 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
3259 | else | |
3260 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3261 | for as_dir in $PATH | |
3262 | do | |
3263 | IFS=$as_save_IFS | |
3264 | test -z "$as_dir" && as_dir=. | |
3265 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3266 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3267 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
3268 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3269 | break 2 | |
3270 | fi | |
3271 | done | |
3272 | done | |
3273 | ||
3274 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error" | |
3275 | fi | |
3276 | fi | |
3277 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
3278 | if test -n "$ac_ct_RANLIB"; then | |
3279 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
3280 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
3281 | else | |
3282 | echo "$as_me:$LINENO: result: no" >&5 | |
3283 | echo "${ECHO_T}no" >&6 | |
3284 | fi | |
3285 | ||
3286 | RANLIB=$ac_ct_RANLIB | |
3287 | else | |
3288 | RANLIB="$ac_cv_prog_RANLIB" | |
3289 | fi | |
3290 | ||
3291 | # Extract the first word of "perl", so it can be a program name with args. | |
3292 | set dummy perl; ac_word=$2 | |
3293 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3294 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3295 | if test "${ac_cv_path_PERL+set}" = set; then | |
3296 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3297 | else | |
3298 | case $PERL in | |
3299 | [\\/]* | ?:[\\/]*) | |
3300 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. | |
3301 | ;; | |
3302 | *) | |
3303 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3304 | for as_dir in $PATH | |
3305 | do | |
3306 | IFS=$as_save_IFS | |
3307 | test -z "$as_dir" && as_dir=. | |
3308 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3309 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3310 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" | |
3311 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3312 | break 2 | |
3313 | fi | |
3314 | done | |
3315 | done | |
3316 | ||
3317 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error" | |
3318 | ;; | |
3319 | esac | |
3320 | fi | |
3321 | PERL=$ac_cv_path_PERL | |
3322 | ||
3323 | if test -n "$PERL"; then | |
3324 | echo "$as_me:$LINENO: result: $PERL" >&5 | |
3325 | echo "${ECHO_T}$PERL" >&6 | |
3326 | else | |
3327 | echo "$as_me:$LINENO: result: no" >&5 | |
3328 | echo "${ECHO_T}no" >&6 | |
3329 | fi | |
3330 | ||
3331 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
3332 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
3333 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` | |
3334 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
3335 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3336 | else | |
3337 | cat >conftest.make <<\_ACEOF | |
3338 | all: | |
3339 | @echo 'ac_maketemp="$(MAKE)"' | |
3340 | _ACEOF | |
3341 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
3342 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
3343 | if test -n "$ac_maketemp"; then | |
3344 | eval ac_cv_prog_make_${ac_make}_set=yes | |
3345 | else | |
3346 | eval ac_cv_prog_make_${ac_make}_set=no | |
3347 | fi | |
3348 | rm -f conftest.make | |
3349 | fi | |
3350 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
3351 | echo "$as_me:$LINENO: result: yes" >&5 | |
3352 | echo "${ECHO_T}yes" >&6 | |
3353 | SET_MAKE= | |
3354 | else | |
3355 | echo "$as_me:$LINENO: result: no" >&5 | |
3356 | echo "${ECHO_T}no" >&6 | |
3357 | SET_MAKE="MAKE=${MAKE-make}" | |
3358 | fi | |
3359 | ||
3360 | # Find a good install program. We prefer a C program (faster), | |
3361 | # so one script is as good as another. But avoid the broken or | |
3362 | # incompatible versions: | |
3363 | # SysV /etc/install, /usr/sbin/install | |
3364 | # SunOS /usr/etc/install | |
3365 | # IRIX /sbin/install | |
3366 | # AIX /bin/install | |
3367 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3368 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3369 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3370 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3371 | # OS/2's system install, which has a completely different semantic | |
3372 | # ./install, which can be erroneously created by make from ./install.sh. | |
3373 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
3374 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
3375 | if test -z "$INSTALL"; then | |
3376 | if test "${ac_cv_path_install+set}" = set; then | |
3377 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3378 | else | |
3379 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3380 | for as_dir in $PATH | |
3381 | do | |
3382 | IFS=$as_save_IFS | |
3383 | test -z "$as_dir" && as_dir=. | |
3384 | # Account for people who put trailing slashes in PATH elements. | |
3385 | case $as_dir/ in | |
3386 | ./ | .// | /cC/* | \ | |
3387 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
3388 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
3389 | /usr/ucb/* ) ;; | |
3390 | *) | |
3391 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3392 | # Don't use installbsd from OSF since it installs stuff as root | |
3393 | # by default. | |
3394 | for ac_prog in ginstall scoinst install; do | |
3395 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3396 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
3397 | if test $ac_prog = install && | |
3398 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3399 | # AIX install. It has an incompatible calling convention. | |
3400 | : | |
3401 | elif test $ac_prog = install && | |
3402 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3403 | # program-specific install script used by HP pwplus--don't use. | |
3404 | : | |
3405 | else | |
3406 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3407 | break 3 | |
3408 | fi | |
3409 | fi | |
3410 | done | |
3411 | done | |
3412 | ;; | |
3413 | esac | |
3414 | done | |
3415 | ||
3416 | ||
3417 | fi | |
3418 | if test "${ac_cv_path_install+set}" = set; then | |
3419 | INSTALL=$ac_cv_path_install | |
3420 | else | |
3421 | # As a last resort, use the slow shell script. We don't cache a | |
3422 | # path for INSTALL within a source directory, because that will | |
3423 | # break other packages using the cache if that directory is | |
3424 | # removed, or if the path is relative. | |
3425 | INSTALL=$ac_install_sh | |
3426 | fi | |
3427 | fi | |
3428 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
3429 | echo "${ECHO_T}$INSTALL" >&6 | |
3430 | ||
3431 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
3432 | # It thinks the first close brace ends the variable substitution. | |
3433 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
3434 | ||
3435 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
3436 | ||
3437 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
3438 | ||
3439 | ||
3440 | # Configure libtool | |
3441 | # Check whether --enable-shared or --disable-shared was given. | |
3442 | if test "${enable_shared+set}" = set; then | |
3443 | enableval="$enable_shared" | |
3444 | p=${PACKAGE-default} | |
3445 | case $enableval in | |
3446 | yes) enable_shared=yes ;; | |
3447 | no) enable_shared=no ;; | |
3448 | *) | |
3449 | enable_shared=no | |
3450 | # Look at the argument we got. We use all the common list separators. | |
3451 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
3452 | for pkg in $enableval; do | |
3453 | if test "X$pkg" = "X$p"; then | |
3454 | enable_shared=yes | |
3455 | fi | |
3456 | done | |
3457 | IFS="$ac_save_ifs" | |
3458 | ;; | |
3459 | esac | |
3460 | else | |
3461 | enable_shared=yes | |
3462 | fi; | |
3463 | # Check whether --enable-static or --disable-static was given. | |
3464 | if test "${enable_static+set}" = set; then | |
3465 | enableval="$enable_static" | |
3466 | p=${PACKAGE-default} | |
3467 | case $enableval in | |
3468 | yes) enable_static=yes ;; | |
3469 | no) enable_static=no ;; | |
3470 | *) | |
3471 | enable_static=no | |
3472 | # Look at the argument we got. We use all the common list separators. | |
3473 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
3474 | for pkg in $enableval; do | |
3475 | if test "X$pkg" = "X$p"; then | |
3476 | enable_static=yes | |
3477 | fi | |
3478 | done | |
3479 | IFS="$ac_save_ifs" | |
3480 | ;; | |
3481 | esac | |
3482 | else | |
3483 | enable_static=yes | |
3484 | fi; | |
3485 | # Check whether --enable-fast-install or --disable-fast-install was given. | |
3486 | if test "${enable_fast_install+set}" = set; then | |
3487 | enableval="$enable_fast_install" | |
3488 | p=${PACKAGE-default} | |
3489 | case $enableval in | |
3490 | yes) enable_fast_install=yes ;; | |
3491 | no) enable_fast_install=no ;; | |
3492 | *) | |
3493 | enable_fast_install=no | |
3494 | # Look at the argument we got. We use all the common list separators. | |
3495 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
3496 | for pkg in $enableval; do | |
3497 | if test "X$pkg" = "X$p"; then | |
3498 | enable_fast_install=yes | |
3499 | fi | |
3500 | done | |
3501 | IFS="$ac_save_ifs" | |
3502 | ;; | |
3503 | esac | |
3504 | else | |
3505 | enable_fast_install=yes | |
3506 | fi; | |
3507 | ||
3508 | # Check whether --with-gnu-ld or --without-gnu-ld was given. | |
3509 | if test "${with_gnu_ld+set}" = set; then | |
3510 | withval="$with_gnu_ld" | |
3511 | test "$withval" = no || with_gnu_ld=yes | |
3512 | else | |
3513 | with_gnu_ld=no | |
3514 | fi; | |
3515 | ac_prog=ld | |
3516 | if test "$GCC" = yes; then | |
3517 | # Check if gcc -print-prog-name=ld gives a path. | |
3518 | echo "$as_me:$LINENO: checking for ld used by GCC" >&5 | |
3519 | echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 | |
3520 | case $host in | |
3521 | *-*-mingw*) | |
3522 | # gcc leaves a trailing carriage return which upsets mingw | |
3523 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
3524 | *) | |
3525 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
3526 | esac | |
3527 | case $ac_prog in | |
3528 | # Accept absolute paths. | |
3529 | [\\/]* | [A-Za-z]:[\\/]*) | |
3530 | re_direlt='/[^/][^/]*/\.\./' | |
3531 | # Canonicalize the path of ld | |
3532 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
3533 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
3534 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
3535 | done | |
3536 | test -z "$LD" && LD="$ac_prog" | |
3537 | ;; | |
3538 | "") | |
3539 | # If it fails, then pretend we aren't using GCC. | |
3540 | ac_prog=ld | |
3541 | ;; | |
3542 | *) | |
3543 | # If it is relative, then search for the first ld in PATH. | |
3544 | with_gnu_ld=unknown | |
3545 | ;; | |
3546 | esac | |
3547 | elif test "$with_gnu_ld" = yes; then | |
3548 | echo "$as_me:$LINENO: checking for GNU ld" >&5 | |
3549 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | |
3550 | else | |
3551 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | |
3552 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | |
3553 | fi | |
3554 | if test "${lt_cv_path_LD+set}" = set; then | |
3555 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3556 | else | |
3557 | if test -z "$LD"; then | |
3558 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | |
3559 | for ac_dir in $PATH; do | |
3560 | test -z "$ac_dir" && ac_dir=. | |
3561 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
3562 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
3563 | # Check to see if the program is GNU ld. I'd rather use --version, | |
3564 | # but apparently some GNU ld's only accept -v. | |
3565 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
3566 | if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then | |
3567 | test "$with_gnu_ld" != no && break | |
3568 | else | |
3569 | test "$with_gnu_ld" != yes && break | |
3570 | fi | |
3571 | fi | |
3572 | done | |
3573 | IFS="$ac_save_ifs" | |
3574 | else | |
3575 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
3576 | fi | |
3577 | fi | |
3578 | ||
3579 | LD="$lt_cv_path_LD" | |
3580 | if test -n "$LD"; then | |
3581 | echo "$as_me:$LINENO: result: $LD" >&5 | |
3582 | echo "${ECHO_T}$LD" >&6 | |
3583 | else | |
3584 | echo "$as_me:$LINENO: result: no" >&5 | |
3585 | echo "${ECHO_T}no" >&6 | |
3586 | fi | |
3587 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | |
3588 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
3589 | { (exit 1); exit 1; }; } | |
3590 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | |
3591 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | |
3592 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | |
3593 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3594 | else | |
3595 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
3596 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then | |
3597 | lt_cv_prog_gnu_ld=yes | |
3598 | else | |
3599 | lt_cv_prog_gnu_ld=no | |
3600 | fi | |
3601 | fi | |
3602 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 | |
3603 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 | |
3604 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
3605 | ||
3606 | ||
3607 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 | |
3608 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 | |
3609 | if test "${lt_cv_ld_reload_flag+set}" = set; then | |
3610 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3611 | else | |
3612 | lt_cv_ld_reload_flag='-r' | |
3613 | fi | |
3614 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 | |
3615 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 | |
3616 | reload_flag=$lt_cv_ld_reload_flag | |
3617 | test -n "$reload_flag" && reload_flag=" $reload_flag" | |
3618 | ||
3619 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 | |
3620 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 | |
3621 | if test "${lt_cv_path_NM+set}" = set; then | |
3622 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3623 | else | |
3624 | if test -n "$NM"; then | |
3625 | # Let the user override the test. | |
3626 | lt_cv_path_NM="$NM" | |
3627 | else | |
3628 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | |
3629 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do | |
3630 | test -z "$ac_dir" && ac_dir=. | |
3631 | tmp_nm=$ac_dir/${ac_tool_prefix}nm | |
3632 | if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then | |
3633 | # Check to see if the nm accepts a BSD-compat flag. | |
3634 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
3635 | # nm: unknown option "B" ignored | |
3636 | # Tru64's nm complains that /dev/null is an invalid object file | |
3637 | if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then | |
3638 | lt_cv_path_NM="$tmp_nm -B" | |
3639 | break | |
3640 | elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then | |
3641 | lt_cv_path_NM="$tmp_nm -p" | |
3642 | break | |
3643 | else | |
3644 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
3645 | continue # so that we can try to find one that supports BSD flags | |
3646 | fi | |
3647 | fi | |
3648 | done | |
3649 | IFS="$ac_save_ifs" | |
3650 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm | |
3651 | fi | |
3652 | fi | |
3653 | ||
3654 | NM="$lt_cv_path_NM" | |
3655 | echo "$as_me:$LINENO: result: $NM" >&5 | |
3656 | echo "${ECHO_T}$NM" >&6 | |
3657 | ||
3658 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
3659 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
3660 | LN_S=$as_ln_s | |
3661 | if test "$LN_S" = "ln -s"; then | |
3662 | echo "$as_me:$LINENO: result: yes" >&5 | |
3663 | echo "${ECHO_T}yes" >&6 | |
3664 | else | |
3665 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
3666 | echo "${ECHO_T}no, using $LN_S" >&6 | |
3667 | fi | |
3668 | ||
3669 | echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5 | |
3670 | echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6 | |
3671 | if test "${lt_cv_deplibs_check_method+set}" = set; then | |
3672 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3673 | else | |
3674 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
3675 | lt_cv_file_magic_test_file= | |
3676 | lt_cv_deplibs_check_method='unknown' | |
3677 | # Need to set the preceding variable on all platforms that support | |
3678 | # interlibrary dependencies. | |
3679 | # 'none' -- dependencies not supported. | |
3680 | # `unknown' -- same as none, but documents that we really don't know. | |
3681 | # 'pass_all' -- all dependencies passed with no checks. | |
3682 | # 'test_compile' -- check by making test program. | |
3683 | # 'file_magic [regex]' -- check by looking for files in library path | |
3684 | # which responds to the $file_magic_cmd with a given egrep regex. | |
3685 | # If you have `file' or equivalent on your system and you're not sure | |
3686 | # whether `pass_all' will *always* work, you probably want this one. | |
3687 | ||
3688 | case $host_os in | |
3689 | aix*) | |
3690 | lt_cv_deplibs_check_method=pass_all | |
3691 | ;; | |
3692 | ||
3693 | beos*) | |
3694 | lt_cv_deplibs_check_method=pass_all | |
3695 | ;; | |
3696 | ||
3697 | bsdi4*) | |
3698 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
3699 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
3700 | lt_cv_file_magic_test_file=/shlib/libc.so | |
3701 | ;; | |
3702 | ||
3703 | cygwin* | mingw* |pw32*) | |
3704 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
3705 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
3706 | ;; | |
3707 | ||
3708 | darwin* | rhapsody*) | |
3709 | # this will be overwritten by pass_all, but leave it in just in case | |
3710 | lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' | |
3711 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
3712 | case "$host_os" in | |
3713 | rhapsody* | darwin1.012) | |
3714 | lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System' | |
3715 | ;; | |
3716 | *) # Darwin 1.3 on | |
3717 | lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' | |
3718 | ;; | |
3719 | esac | |
3720 | lt_cv_deplibs_check_method=pass_all | |
3721 | ;; | |
3722 | ||
3723 | freebsd* | kfreebsd*-gnu) | |
3724 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | |
3725 | case $host_cpu in | |
3726 | i*86 ) | |
3727 | # Not sure whether the presence of OpenBSD here was a mistake. | |
3728 | # Let's accept both of them until this is cleared up. | |
3729 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' | |
3730 | lt_cv_file_magic_cmd=/usr/bin/file | |
3731 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
3732 | ;; | |
3733 | esac | |
3734 | else | |
3735 | lt_cv_deplibs_check_method=pass_all | |
3736 | fi | |
3737 | ;; | |
3738 | ||
3739 | gnu*) | |
3740 | lt_cv_deplibs_check_method=pass_all | |
3741 | ;; | |
3742 | ||
3743 | hpux10.20*|hpux11*) | |
3744 | case $host_cpu in | |
3745 | hppa*) | |
3746 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | |
3747 | lt_cv_file_magic_cmd=/usr/bin/file | |
3748 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
3749 | ;; | |
3750 | ia64*) | |
3751 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
3752 | lt_cv_file_magic_cmd=/usr/bin/file | |
3753 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
3754 | ;; | |
3755 | esac | |
3756 | ;; | |
3757 | ||
3758 | irix5* | irix6*) | |
3759 | case $host_os in | |
3760 | irix5*) | |
3761 | # this will be overridden with pass_all, but let us keep it just in case | |
3762 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" | |
3763 | ;; | |
3764 | *) | |
3765 | case $LD in | |
3766 | *-32|*"-32 ") libmagic=32-bit;; | |
3767 | *-n32|*"-n32 ") libmagic=N32;; | |
3768 | *-64|*"-64 ") libmagic=64-bit;; | |
3769 | *) libmagic=never-match;; | |
3770 | esac | |
3771 | # this will be overridden with pass_all, but let us keep it just in case | |
3772 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" | |
3773 | ;; | |
3774 | esac | |
3775 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` | |
3776 | lt_cv_deplibs_check_method=pass_all | |
3777 | ;; | |
3778 | ||
3779 | # This must be Linux ELF. | |
3780 | linux-gnu*) | |
3781 | lt_cv_deplibs_check_method=pass_all | |
3782 | ;; | |
3783 | ||
3784 | netbsd* | knetbsd*-gnu) | |
3785 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | |
3786 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' | |
3787 | else | |
3788 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$' | |
3789 | fi | |
3790 | ;; | |
3791 | ||
3792 | newsos6) | |
3793 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
3794 | lt_cv_file_magic_cmd=/usr/bin/file | |
3795 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
3796 | ;; | |
3797 | ||
3798 | osf3* | osf4* | osf5*) | |
3799 | # this will be overridden with pass_all, but let us keep it just in case | |
3800 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' | |
3801 | lt_cv_file_magic_test_file=/shlib/libc.so | |
3802 | lt_cv_deplibs_check_method=pass_all | |
3803 | ;; | |
3804 | ||
3805 | sco3.2v5*) | |
3806 | lt_cv_deplibs_check_method=pass_all | |
3807 | ;; | |
3808 | ||
3809 | solaris*) | |
3810 | lt_cv_deplibs_check_method=pass_all | |
3811 | lt_cv_file_magic_test_file=/lib/libc.so | |
3812 | ;; | |
3813 | ||
3814 | sysv5uw[78]* | sysv4*uw2*) | |
3815 | lt_cv_deplibs_check_method=pass_all | |
3816 | ;; | |
3817 | ||
3818 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
3819 | case $host_vendor in | |
3820 | ncr) | |
3821 | lt_cv_deplibs_check_method=pass_all | |
3822 | ;; | |
3823 | motorola) | |
3824 | 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]' | |
3825 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
3826 | ;; | |
3827 | esac | |
3828 | ;; | |
3829 | esac | |
3830 | ||
3831 | fi | |
3832 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 | |
3833 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 | |
3834 | file_magic_cmd=$lt_cv_file_magic_cmd | |
3835 | deplibs_check_method=$lt_cv_deplibs_check_method | |
3836 | ||
3837 | ||
3838 | ||
3839 | ||
3840 | ||
3841 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! | |
3842 | ||
3843 | # find the maximum length of command line arguments | |
3844 | echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 | |
3845 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 | |
3846 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then | |
3847 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3848 | else | |
3849 | i=0 | |
3850 | teststring="ABCD" | |
3851 | ||
3852 | case $build_os in | |
3853 | msdosdjgpp*) | |
3854 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
3855 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
3856 | # during glob expansion). Even if it were fixed, the result of this | |
3857 | # check would be larger than it should be. | |
3858 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
3859 | ;; | |
3860 | ||
3861 | cygwin* | mingw*) | |
3862 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
3863 | # about 5 minutes as the teststring grows exponentially. | |
3864 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
3865 | # you end up with a "frozen" computer, even though with patience | |
3866 | # the test eventually succeeds (with a max line length of 256k). | |
3867 | # Instead, let's just punt: use the minimum linelength reported by | |
3868 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
3869 | lt_cv_sys_max_cmd_len=8192; | |
3870 | ;; | |
3871 | ||
3872 | amigaos*) | |
3873 | # On AmigaOS with pdksh, this test takes hours, literally. | |
3874 | # So we just punt and use a minimum line length of 8192. | |
3875 | lt_cv_sys_max_cmd_len=8192; | |
3876 | ;; | |
3877 | ||
3878 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
3879 | # This has been around since 386BSD, at least. Likely further. | |
3880 | if test -x /sbin/sysctl; then | |
3881 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
3882 | elif test -x /usr/sbin/sysctl; then | |
3883 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
3884 | else | |
3885 | lt_cv_sys_max_cmd_len=65536 # usable default for *BSD | |
3886 | fi | |
3887 | # And add a safety zone | |
3888 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
3889 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
3890 | ;; | |
3891 | esac | |
3892 | ||
3893 | fi | |
3894 | ||
3895 | if test -n "$lt_cv_sys_max_cmd_len" ; then | |
3896 | echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 | |
3897 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 | |
3898 | else | |
3899 | echo "$as_me:$LINENO: result: none" >&5 | |
3900 | echo "${ECHO_T}none" >&6 | |
3901 | fi | |
3902 | ||
3903 | ||
3904 | # Only perform the check for file, if the check method requires it | |
3905 | case $deplibs_check_method in | |
3906 | file_magic*) | |
3907 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
3908 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 | |
3909 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 | |
3910 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
3911 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3912 | else | |
3913 | case $MAGIC_CMD in | |
3914 | /*) | |
3915 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
3916 | ;; | |
3917 | ?:/*) | |
3918 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. | |
3919 | ;; | |
3920 | *) | |
3921 | ac_save_MAGIC_CMD="$MAGIC_CMD" | |
3922 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
3923 | ac_dummy="/usr/bin:$PATH" | |
3924 | for ac_dir in $ac_dummy; do | |
3925 | test -z "$ac_dir" && ac_dir=. | |
3926 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
3927 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
3928 | if test -n "$file_magic_test_file"; then | |
3929 | case $deplibs_check_method in | |
3930 | "file_magic "*) | |
3931 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
3932 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
3933 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
3934 | egrep "$file_magic_regex" > /dev/null; then | |
3935 | : | |
3936 | else | |
3937 | cat <<EOF 1>&2 | |
3938 | ||
3939 | *** Warning: the command libtool uses to detect shared libraries, | |
3940 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
3941 | *** The result is that libtool may fail to recognize shared libraries | |
3942 | *** as such. This will affect the creation of libtool libraries that | |
3943 | *** depend on shared libraries, but programs linked with such libtool | |
3944 | *** libraries will work regardless of this problem. Nevertheless, you | |
3945 | *** may want to report the problem to your system manager and/or to | |
3946 | *** bug-libtool@gnu.org | |
3947 | ||
3948 | EOF | |
3949 | fi ;; | |
3950 | esac | |
3951 | fi | |
3952 | break | |
3953 | fi | |
3954 | done | |
3955 | IFS="$ac_save_ifs" | |
3956 | MAGIC_CMD="$ac_save_MAGIC_CMD" | |
3957 | ;; | |
3958 | esac | |
3959 | fi | |
3960 | ||
3961 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
3962 | if test -n "$MAGIC_CMD"; then | |
3963 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
3964 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
3965 | else | |
3966 | echo "$as_me:$LINENO: result: no" >&5 | |
3967 | echo "${ECHO_T}no" >&6 | |
3968 | fi | |
3969 | ||
3970 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
3971 | if test -n "$ac_tool_prefix"; then | |
3972 | echo "$as_me:$LINENO: checking for file" >&5 | |
3973 | echo $ECHO_N "checking for file... $ECHO_C" >&6 | |
3974 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
3975 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3976 | else | |
3977 | case $MAGIC_CMD in | |
3978 | /*) | |
3979 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
3980 | ;; | |
3981 | ?:/*) | |
3982 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. | |
3983 | ;; | |
3984 | *) | |
3985 | ac_save_MAGIC_CMD="$MAGIC_CMD" | |
3986 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
3987 | ac_dummy="/usr/bin:$PATH" | |
3988 | for ac_dir in $ac_dummy; do | |
3989 | test -z "$ac_dir" && ac_dir=. | |
3990 | if test -f $ac_dir/file; then | |
3991 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
3992 | if test -n "$file_magic_test_file"; then | |
3993 | case $deplibs_check_method in | |
3994 | "file_magic "*) | |
3995 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
3996 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
3997 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
3998 | egrep "$file_magic_regex" > /dev/null; then | |
3999 | : | |
4000 | else | |
4001 | cat <<EOF 1>&2 | |
4002 | ||
4003 | *** Warning: the command libtool uses to detect shared libraries, | |
4004 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
4005 | *** The result is that libtool may fail to recognize shared libraries | |
4006 | *** as such. This will affect the creation of libtool libraries that | |
4007 | *** depend on shared libraries, but programs linked with such libtool | |
4008 | *** libraries will work regardless of this problem. Nevertheless, you | |
4009 | *** may want to report the problem to your system manager and/or to | |
4010 | *** bug-libtool@gnu.org | |
4011 | ||
4012 | EOF | |
4013 | fi ;; | |
4014 | esac | |
4015 | fi | |
4016 | break | |
4017 | fi | |
4018 | done | |
4019 | IFS="$ac_save_ifs" | |
4020 | MAGIC_CMD="$ac_save_MAGIC_CMD" | |
4021 | ;; | |
4022 | esac | |
4023 | fi | |
4024 | ||
4025 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
4026 | if test -n "$MAGIC_CMD"; then | |
4027 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
4028 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
4029 | else | |
4030 | echo "$as_me:$LINENO: result: no" >&5 | |
4031 | echo "${ECHO_T}no" >&6 | |
4032 | fi | |
4033 | ||
4034 | else | |
4035 | MAGIC_CMD=: | |
4036 | fi | |
4037 | fi | |
4038 | ||
4039 | fi | |
4040 | ;; | |
4041 | esac | |
4042 | ||
4043 | if test -n "$ac_tool_prefix"; then | |
4044 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
4045 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
4046 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4047 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4048 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
4049 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4050 | else | |
4051 | if test -n "$RANLIB"; then | |
4052 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
4053 | else | |
4054 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4055 | for as_dir in $PATH | |
4056 | do | |
4057 | IFS=$as_save_IFS | |
4058 | test -z "$as_dir" && as_dir=. | |
4059 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4060 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4061 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
4062 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4063 | break 2 | |
4064 | fi | |
4065 | done | |
4066 | done | |
4067 | ||
4068 | fi | |
4069 | fi | |
4070 | RANLIB=$ac_cv_prog_RANLIB | |
4071 | if test -n "$RANLIB"; then | |
4072 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
4073 | echo "${ECHO_T}$RANLIB" >&6 | |
4074 | else | |
4075 | echo "$as_me:$LINENO: result: no" >&5 | |
4076 | echo "${ECHO_T}no" >&6 | |
4077 | fi | |
4078 | ||
4079 | fi | |
4080 | if test -z "$ac_cv_prog_RANLIB"; then | |
4081 | ac_ct_RANLIB=$RANLIB | |
4082 | # Extract the first word of "ranlib", so it can be a program name with args. | |
4083 | set dummy ranlib; ac_word=$2 | |
4084 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4085 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4086 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
4087 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4088 | else | |
4089 | if test -n "$ac_ct_RANLIB"; then | |
4090 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
4091 | else | |
4092 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4093 | for as_dir in $PATH | |
4094 | do | |
4095 | IFS=$as_save_IFS | |
4096 | test -z "$as_dir" && as_dir=. | |
4097 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4098 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4099 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
4100 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4101 | break 2 | |
4102 | fi | |
4103 | done | |
4104 | done | |
4105 | ||
4106 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
4107 | fi | |
4108 | fi | |
4109 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
4110 | if test -n "$ac_ct_RANLIB"; then | |
4111 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
4112 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
4113 | else | |
4114 | echo "$as_me:$LINENO: result: no" >&5 | |
4115 | echo "${ECHO_T}no" >&6 | |
4116 | fi | |
4117 | ||
4118 | RANLIB=$ac_ct_RANLIB | |
4119 | else | |
4120 | RANLIB="$ac_cv_prog_RANLIB" | |
4121 | fi | |
4122 | ||
4123 | if test -n "$ac_tool_prefix"; then | |
4124 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
4125 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
4126 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4127 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4128 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
4129 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4130 | else | |
4131 | if test -n "$STRIP"; then | |
4132 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
4133 | else | |
4134 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4135 | for as_dir in $PATH | |
4136 | do | |
4137 | IFS=$as_save_IFS | |
4138 | test -z "$as_dir" && as_dir=. | |
4139 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4140 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4141 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
4142 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4143 | break 2 | |
4144 | fi | |
4145 | done | |
4146 | done | |
4147 | ||
4148 | fi | |
4149 | fi | |
4150 | STRIP=$ac_cv_prog_STRIP | |
4151 | if test -n "$STRIP"; then | |
4152 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
4153 | echo "${ECHO_T}$STRIP" >&6 | |
4154 | else | |
4155 | echo "$as_me:$LINENO: result: no" >&5 | |
4156 | echo "${ECHO_T}no" >&6 | |
4157 | fi | |
4158 | ||
4159 | fi | |
4160 | if test -z "$ac_cv_prog_STRIP"; then | |
4161 | ac_ct_STRIP=$STRIP | |
4162 | # Extract the first word of "strip", so it can be a program name with args. | |
4163 | set dummy strip; ac_word=$2 | |
4164 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4165 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4166 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
4167 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4168 | else | |
4169 | if test -n "$ac_ct_STRIP"; then | |
4170 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
4171 | else | |
4172 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4173 | for as_dir in $PATH | |
4174 | do | |
4175 | IFS=$as_save_IFS | |
4176 | test -z "$as_dir" && as_dir=. | |
4177 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4178 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4179 | ac_cv_prog_ac_ct_STRIP="strip" | |
4180 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4181 | break 2 | |
4182 | fi | |
4183 | done | |
4184 | done | |
4185 | ||
4186 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
4187 | fi | |
4188 | fi | |
4189 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
4190 | if test -n "$ac_ct_STRIP"; then | |
4191 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
4192 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
4193 | else | |
4194 | echo "$as_me:$LINENO: result: no" >&5 | |
4195 | echo "${ECHO_T}no" >&6 | |
4196 | fi | |
4197 | ||
4198 | STRIP=$ac_ct_STRIP | |
4199 | else | |
4200 | STRIP="$ac_cv_prog_STRIP" | |
4201 | fi | |
4202 | ||
4203 | ||
4204 | # Check for any special flags to pass to ltconfig. | |
4205 | libtool_flags="--cache-file=$cache_file" | |
4206 | test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" | |
4207 | test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" | |
4208 | test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install" | |
4209 | test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc" | |
4210 | test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" | |
4211 | ||
4212 | ||
4213 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. | |
4214 | if test "${enable_libtool_lock+set}" = set; then | |
4215 | enableval="$enable_libtool_lock" | |
4216 | ||
4217 | fi; | |
4218 | test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" | |
4219 | test x"$silent" = xyes && libtool_flags="$libtool_flags --silent" | |
4220 | ||
4221 | ||
4222 | # Check whether --with-pic or --without-pic was given. | |
4223 | if test "${with_pic+set}" = set; then | |
4224 | withval="$with_pic" | |
4225 | pic_mode="$withval" | |
4226 | else | |
4227 | pic_mode=default | |
4228 | fi; | |
4229 | test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic" | |
4230 | test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic" | |
4231 | ||
4232 | # Some flags need to be propagated to the compiler or linker for good | |
4233 | # libtool support. | |
4234 | case $host in | |
4235 | *-*-irix6*) | |
4236 | # Find out which ABI we are using. | |
5b043f08 | 4237 | echo '#line 4237 "configure"' > conftest.$ac_ext |
953ff289 DN |
4238 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4239 | (eval $ac_compile) 2>&5 | |
4240 | ac_status=$? | |
4241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4242 | (exit $ac_status); }; then | |
4243 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
4244 | case `/usr/bin/file conftest.$ac_objext` in | |
4245 | *32-bit*) | |
4246 | LD="${LD-ld} -melf32bsmip" | |
4247 | ;; | |
4248 | *N32*) | |
4249 | LD="${LD-ld} -melf32bmipn32" | |
4250 | ;; | |
4251 | *64-bit*) | |
4252 | LD="${LD-ld} -melf64bmip" | |
4253 | ;; | |
4254 | esac | |
4255 | else | |
4256 | case `/usr/bin/file conftest.$ac_objext` in | |
4257 | *32-bit*) | |
4258 | LD="${LD-ld} -32" | |
4259 | ;; | |
4260 | *N32*) | |
4261 | LD="${LD-ld} -n32" | |
4262 | ;; | |
4263 | *64-bit*) | |
4264 | LD="${LD-ld} -64" | |
4265 | ;; | |
4266 | esac | |
4267 | fi | |
4268 | fi | |
4269 | rm -rf conftest* | |
4270 | ;; | |
4271 | ||
4272 | ia64-*-hpux*) | |
4273 | # Find out which ABI we are using. | |
4274 | echo 'int i;' > conftest.$ac_ext | |
4275 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4276 | (eval $ac_compile) 2>&5 | |
4277 | ac_status=$? | |
4278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4279 | (exit $ac_status); }; then | |
4280 | case "`/usr/bin/file conftest.o`" in | |
4281 | *ELF-32*) | |
4282 | HPUX_IA64_MODE="32" | |
4283 | ;; | |
4284 | *ELF-64*) | |
4285 | HPUX_IA64_MODE="64" | |
4286 | ;; | |
4287 | esac | |
4288 | fi | |
4289 | rm -rf conftest* | |
4290 | ;; | |
4291 | ||
4292 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) | |
4293 | # Find out which ABI we are using. | |
4294 | echo 'int i;' > conftest.$ac_ext | |
4295 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4296 | (eval $ac_compile) 2>&5 | |
4297 | ac_status=$? | |
4298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4299 | (exit $ac_status); }; then | |
4300 | case "`/usr/bin/file conftest.o`" in | |
4301 | *32-bit*) | |
4302 | case $host in | |
4303 | x86_64-*linux*) | |
4304 | LD="${LD-ld} -m elf_i386" | |
4305 | ;; | |
4306 | ppc64-*linux*|powerpc64-*linux*) | |
4307 | LD="${LD-ld} -m elf32ppclinux" | |
4308 | ;; | |
4309 | s390x-*linux*) | |
4310 | LD="${LD-ld} -m elf_s390" | |
4311 | ;; | |
4312 | sparc64-*linux*) | |
4313 | LD="${LD-ld} -m elf32_sparc" | |
4314 | ;; | |
4315 | esac | |
4316 | ;; | |
4317 | *64-bit*) | |
4318 | case $host in | |
4319 | x86_64-*linux*) | |
4320 | LD="${LD-ld} -m elf_x86_64" | |
4321 | ;; | |
4322 | ppc*-*linux*|powerpc*-*linux*) | |
4323 | LD="${LD-ld} -m elf64ppc" | |
4324 | ;; | |
4325 | s390*-*linux*) | |
4326 | LD="${LD-ld} -m elf64_s390" | |
4327 | ;; | |
4328 | sparc*-*linux*) | |
4329 | LD="${LD-ld} -m elf64_sparc" | |
4330 | ;; | |
4331 | esac | |
4332 | ;; | |
4333 | esac | |
4334 | fi | |
4335 | rm -rf conftest* | |
4336 | ;; | |
4337 | ||
4338 | *-*-sco3.2v5*) | |
4339 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
4340 | SAVE_CFLAGS="$CFLAGS" | |
4341 | CFLAGS="$CFLAGS -belf" | |
4342 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 | |
4343 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 | |
4344 | if test "${lt_cv_cc_needs_belf+set}" = set; then | |
4345 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4346 | else | |
4347 | ||
4348 | ||
4349 | ac_ext=c | |
4350 | ac_cpp='$CPP $CPPFLAGS' | |
4351 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4352 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4353 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4354 | ||
4355 | cat >conftest.$ac_ext <<_ACEOF | |
4356 | /* confdefs.h. */ | |
4357 | _ACEOF | |
4358 | cat confdefs.h >>conftest.$ac_ext | |
4359 | cat >>conftest.$ac_ext <<_ACEOF | |
4360 | /* end confdefs.h. */ | |
4361 | ||
4362 | int | |
4363 | main () | |
4364 | { | |
4365 | ||
4366 | ; | |
4367 | return 0; | |
4368 | } | |
4369 | _ACEOF | |
4370 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4371 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4372 | (eval $ac_link) 2>conftest.er1 | |
4373 | ac_status=$? | |
4374 | grep -v '^ *+' conftest.er1 >conftest.err | |
4375 | rm -f conftest.er1 | |
4376 | cat conftest.err >&5 | |
4377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4378 | (exit $ac_status); } && | |
d349482e AT |
4379 | { ac_try='test -z "$ac_c_werror_flag" |
4380 | || test ! -s conftest.err' | |
953ff289 DN |
4381 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4382 | (eval $ac_try) 2>&5 | |
4383 | ac_status=$? | |
4384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4385 | (exit $ac_status); }; } && | |
4386 | { ac_try='test -s conftest$ac_exeext' | |
4387 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4388 | (eval $ac_try) 2>&5 | |
4389 | ac_status=$? | |
4390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4391 | (exit $ac_status); }; }; then | |
4392 | lt_cv_cc_needs_belf=yes | |
4393 | else | |
4394 | echo "$as_me: failed program was:" >&5 | |
4395 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4396 | ||
4397 | lt_cv_cc_needs_belf=no | |
4398 | fi | |
4399 | rm -f conftest.err conftest.$ac_objext \ | |
4400 | conftest$ac_exeext conftest.$ac_ext | |
4401 | ac_ext=c | |
4402 | ac_cpp='$CPP $CPPFLAGS' | |
4403 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4404 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4405 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4406 | ||
4407 | fi | |
4408 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 | |
4409 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 | |
4410 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
4411 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
4412 | CFLAGS="$SAVE_CFLAGS" | |
4413 | fi | |
4414 | ;; | |
4415 | ||
4416 | ||
4417 | esac | |
4418 | ||
4419 | ||
4420 | # Save cache, so that ltconfig can load it | |
4421 | cat >confcache <<\_ACEOF | |
4422 | # This file is a shell script that caches the results of configure | |
4423 | # tests run on this system so they can be shared between configure | |
4424 | # scripts and configure runs, see configure's option --config-cache. | |
4425 | # It is not useful on other systems. If it contains results you don't | |
4426 | # want to keep, you may remove or edit it. | |
4427 | # | |
4428 | # config.status only pays attention to the cache file if you give it | |
4429 | # the --recheck option to rerun configure. | |
4430 | # | |
4431 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
4432 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
4433 | # following values. | |
4434 | ||
4435 | _ACEOF | |
4436 | ||
4437 | # The following way of writing the cache mishandles newlines in values, | |
4438 | # but we know of no workaround that is simple, portable, and efficient. | |
4439 | # So, don't put newlines in cache variables' values. | |
4440 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
4441 | # and sets the high bit in the cache file unless we assign to the vars. | |
4442 | { | |
4443 | (set) 2>&1 | | |
4444 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
4445 | *ac_space=\ *) | |
4446 | # `set' does not quote correctly, so add quotes (double-quote | |
4447 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
4448 | sed -n \ | |
4449 | "s/'/'\\\\''/g; | |
4450 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
4451 | ;; | |
4452 | *) | |
4453 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
4454 | sed -n \ | |
4455 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
4456 | ;; | |
4457 | esac; | |
4458 | } | | |
4459 | sed ' | |
4460 | t clear | |
4461 | : clear | |
4462 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
4463 | t end | |
4464 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
4465 | : end' >>confcache | |
4466 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
4467 | if test -w $cache_file; then | |
4468 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
4469 | cat confcache >$cache_file | |
4470 | else | |
4471 | echo "not updating unwritable cache $cache_file" | |
4472 | fi | |
4473 | fi | |
4474 | rm -f confcache | |
4475 | ||
4476 | # Actually configure libtool. ac_aux_dir is where install-sh is found. | |
4477 | AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ | |
4478 | MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ | |
4479 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \ | |
4480 | AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \ | |
4481 | objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \ | |
4482 | deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \ | |
4483 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ | |
4484 | $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \ | |
4485 | || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5 | |
4486 | echo "$as_me: error: libtool configure failed" >&2;} | |
4487 | { (exit 1); exit 1; }; } | |
4488 | ||
4489 | # Reload cache, that may have been modified by ltconfig | |
4490 | if test -r "$cache_file"; then | |
4491 | # Some versions of bash will fail to source /dev/null (special | |
4492 | # files actually), so we avoid doing that. | |
4493 | if test -f "$cache_file"; then | |
4494 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
4495 | echo "$as_me: loading cache $cache_file" >&6;} | |
4496 | case $cache_file in | |
4497 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
4498 | *) . ./$cache_file;; | |
4499 | esac | |
4500 | fi | |
4501 | else | |
4502 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
4503 | echo "$as_me: creating cache $cache_file" >&6;} | |
4504 | >$cache_file | |
4505 | fi | |
4506 | ||
4507 | ||
4508 | # This can be used to rebuild libtool when needed | |
4509 | LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh" | |
4510 | ||
4511 | # Always use our own libtool. | |
4512 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
4513 | ||
4514 | # Redirect the config.log output again, so that the ltconfig log is not | |
4515 | # clobbered by the next message. | |
4516 | exec 5>>./config.log | |
4517 | ||
4518 | ||
4519 | ||
4520 | ||
4521 | ||
4522 | ||
4523 | ||
4524 | ||
4525 | ||
c41303c6 RH |
4526 | echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
4527 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 | |
4528 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. | |
4529 | if test "${enable_maintainer_mode+set}" = set; then | |
4530 | enableval="$enable_maintainer_mode" | |
4531 | USE_MAINTAINER_MODE=$enableval | |
4532 | else | |
4533 | USE_MAINTAINER_MODE=no | |
4534 | fi; | |
4535 | echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 | |
4536 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 | |
4537 | ||
4538 | ||
4539 | if test $USE_MAINTAINER_MODE = yes; then | |
4540 | MAINTAINER_MODE_TRUE= | |
4541 | MAINTAINER_MODE_FALSE='#' | |
4542 | else | |
4543 | MAINTAINER_MODE_TRUE='#' | |
4544 | MAINTAINER_MODE_FALSE= | |
4545 | fi | |
4546 | ||
4547 | MAINT=$MAINTAINER_MODE_TRUE | |
4548 | ||
4549 | ||
4550 | ||
953ff289 DN |
4551 | # We need gfortran to compile parts of the library |
4552 | # We can't use AC_PROG_FC because it expects a fully working gfortran. | |
4553 | #AC_PROG_FC(gfortran) | |
4554 | FC="$GFORTRAN" | |
4555 | ac_ext=${FC_SRCEXT-f} | |
4556 | ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5' | |
4557 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5' | |
4558 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu | |
4559 | if test -n "$ac_tool_prefix"; then | |
4560 | for ac_prog in gfortran | |
4561 | do | |
4562 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4563 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4564 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4565 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4566 | if test "${ac_cv_prog_FC+set}" = set; then | |
4567 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4568 | else | |
4569 | if test -n "$FC"; then | |
4570 | ac_cv_prog_FC="$FC" # Let the user override the test. | |
4571 | else | |
4572 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4573 | for as_dir in $PATH | |
4574 | do | |
4575 | IFS=$as_save_IFS | |
4576 | test -z "$as_dir" && as_dir=. | |
4577 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4578 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4579 | ac_cv_prog_FC="$ac_tool_prefix$ac_prog" | |
4580 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4581 | break 2 | |
4582 | fi | |
4583 | done | |
4584 | done | |
4585 | ||
4586 | fi | |
4587 | fi | |
4588 | FC=$ac_cv_prog_FC | |
4589 | if test -n "$FC"; then | |
4590 | echo "$as_me:$LINENO: result: $FC" >&5 | |
4591 | echo "${ECHO_T}$FC" >&6 | |
4592 | else | |
4593 | echo "$as_me:$LINENO: result: no" >&5 | |
4594 | echo "${ECHO_T}no" >&6 | |
4595 | fi | |
4596 | ||
4597 | test -n "$FC" && break | |
4598 | done | |
4599 | fi | |
4600 | if test -z "$FC"; then | |
4601 | ac_ct_FC=$FC | |
4602 | for ac_prog in gfortran | |
4603 | do | |
4604 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4605 | set dummy $ac_prog; ac_word=$2 | |
4606 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4607 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4608 | if test "${ac_cv_prog_ac_ct_FC+set}" = set; then | |
4609 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4610 | else | |
4611 | if test -n "$ac_ct_FC"; then | |
4612 | ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test. | |
4613 | else | |
4614 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4615 | for as_dir in $PATH | |
4616 | do | |
4617 | IFS=$as_save_IFS | |
4618 | test -z "$as_dir" && as_dir=. | |
4619 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4620 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4621 | ac_cv_prog_ac_ct_FC="$ac_prog" | |
4622 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4623 | break 2 | |
4624 | fi | |
4625 | done | |
4626 | done | |
4627 | ||
4628 | fi | |
4629 | fi | |
4630 | ac_ct_FC=$ac_cv_prog_ac_ct_FC | |
4631 | if test -n "$ac_ct_FC"; then | |
4632 | echo "$as_me:$LINENO: result: $ac_ct_FC" >&5 | |
4633 | echo "${ECHO_T}$ac_ct_FC" >&6 | |
4634 | else | |
4635 | echo "$as_me:$LINENO: result: no" >&5 | |
4636 | echo "${ECHO_T}no" >&6 | |
4637 | fi | |
4638 | ||
4639 | test -n "$ac_ct_FC" && break | |
4640 | done | |
4641 | ||
4642 | FC=$ac_ct_FC | |
4643 | fi | |
4644 | ||
4645 | ||
4646 | # Provide some information about the compiler. | |
5b043f08 | 4647 | echo "$as_me:4647:" \ |
953ff289 DN |
4648 | "checking for Fortran compiler version" >&5 |
4649 | ac_compiler=`set X $ac_compile; echo $2` | |
4650 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
4651 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
4652 | ac_status=$? | |
4653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4654 | (exit $ac_status); } | |
4655 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
4656 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
4657 | ac_status=$? | |
4658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4659 | (exit $ac_status); } | |
4660 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
4661 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
4662 | ac_status=$? | |
4663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4664 | (exit $ac_status); } | |
4665 | rm -f a.out | |
4666 | ||
4667 | # If we don't use `.F' as extension, the preprocessor is not run on the | |
4668 | # input file. (Note that this only needs to work for GNU compilers.) | |
4669 | ac_save_ext=$ac_ext | |
4670 | ac_ext=F | |
4671 | echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5 | |
4672 | echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6 | |
4673 | if test "${ac_cv_fc_compiler_gnu+set}" = set; then | |
4674 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4675 | else | |
4676 | cat >conftest.$ac_ext <<_ACEOF | |
4677 | program main | |
4678 | #ifndef __GNUC__ | |
4679 | choke me | |
4680 | #endif | |
4681 | ||
4682 | end | |
4683 | _ACEOF | |
4684 | rm -f conftest.$ac_objext | |
4685 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4686 | (eval $ac_compile) 2>conftest.er1 | |
4687 | ac_status=$? | |
4688 | grep -v '^ *+' conftest.er1 >conftest.err | |
4689 | rm -f conftest.er1 | |
4690 | cat conftest.err >&5 | |
4691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4692 | (exit $ac_status); } && | |
d349482e AT |
4693 | { ac_try='test -z "$ac_fc_werror_flag" |
4694 | || test ! -s conftest.err' | |
953ff289 DN |
4695 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4696 | (eval $ac_try) 2>&5 | |
4697 | ac_status=$? | |
4698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4699 | (exit $ac_status); }; } && | |
4700 | { ac_try='test -s conftest.$ac_objext' | |
4701 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4702 | (eval $ac_try) 2>&5 | |
4703 | ac_status=$? | |
4704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4705 | (exit $ac_status); }; }; then | |
4706 | ac_compiler_gnu=yes | |
4707 | else | |
4708 | echo "$as_me: failed program was:" >&5 | |
4709 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4710 | ||
4711 | ac_compiler_gnu=no | |
4712 | fi | |
4713 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4714 | ac_cv_fc_compiler_gnu=$ac_compiler_gnu | |
4715 | ||
4716 | fi | |
4717 | echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5 | |
4718 | echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6 | |
4719 | ac_ext=$ac_save_ext | |
4720 | ac_test_FFLAGS=${FCFLAGS+set} | |
4721 | ac_save_FFLAGS=$FCFLAGS | |
4722 | FCFLAGS= | |
4723 | echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5 | |
4724 | echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6 | |
4725 | if test "${ac_cv_prog_fc_g+set}" = set; then | |
4726 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4727 | else | |
4728 | FCFLAGS=-g | |
4729 | cat >conftest.$ac_ext <<_ACEOF | |
4730 | program main | |
4731 | ||
4732 | end | |
4733 | _ACEOF | |
4734 | rm -f conftest.$ac_objext | |
4735 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4736 | (eval $ac_compile) 2>conftest.er1 | |
4737 | ac_status=$? | |
4738 | grep -v '^ *+' conftest.er1 >conftest.err | |
4739 | rm -f conftest.er1 | |
4740 | cat conftest.err >&5 | |
4741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4742 | (exit $ac_status); } && | |
d349482e AT |
4743 | { ac_try='test -z "$ac_fc_werror_flag" |
4744 | || test ! -s conftest.err' | |
953ff289 DN |
4745 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4746 | (eval $ac_try) 2>&5 | |
4747 | ac_status=$? | |
4748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4749 | (exit $ac_status); }; } && | |
4750 | { ac_try='test -s conftest.$ac_objext' | |
4751 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4752 | (eval $ac_try) 2>&5 | |
4753 | ac_status=$? | |
4754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4755 | (exit $ac_status); }; }; then | |
4756 | ac_cv_prog_fc_g=yes | |
4757 | else | |
4758 | echo "$as_me: failed program was:" >&5 | |
4759 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4760 | ||
4761 | ac_cv_prog_fc_g=no | |
4762 | fi | |
4763 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4764 | ||
4765 | fi | |
4766 | echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5 | |
4767 | echo "${ECHO_T}$ac_cv_prog_fc_g" >&6 | |
4768 | if test "$ac_test_FFLAGS" = set; then | |
4769 | FCFLAGS=$ac_save_FFLAGS | |
4770 | elif test $ac_cv_prog_fc_g = yes; then | |
4771 | if test "x$ac_cv_fc_compiler_gnu" = xyes; then | |
4772 | FCFLAGS="-g -O2" | |
4773 | else | |
4774 | FCFLAGS="-g" | |
4775 | fi | |
4776 | else | |
4777 | if test "x$ac_cv_fc_compiler_gnu" = xyes; then | |
4778 | FCFLAGS="-O2" | |
4779 | else | |
4780 | FCFLAGS= | |
4781 | fi | |
4782 | fi | |
4783 | ||
4784 | ac_ext=c | |
4785 | ac_cpp='$CPP $CPPFLAGS' | |
4786 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4787 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4788 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4789 | ||
4790 | FCFLAGS="$FCFLAGS -Wall" | |
4791 | ||
4792 | # For libtool versioning info, format is CURRENT:REVISION:AGE | |
4793 | libtool_VERSION=1:0:0 | |
4794 | ||
4795 | ||
4796 | # Check header files. | |
4797 | ac_ext=c | |
4798 | ac_cpp='$CPP $CPPFLAGS' | |
4799 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4800 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4801 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4802 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
4803 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
4804 | # On Suns, sometimes $CPP names a directory. | |
4805 | if test -n "$CPP" && test -d "$CPP"; then | |
4806 | CPP= | |
4807 | fi | |
4808 | if test -z "$CPP"; then | |
4809 | if test "${ac_cv_prog_CPP+set}" = set; then | |
4810 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4811 | else | |
4812 | # Double quotes because CPP needs to be expanded | |
4813 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
4814 | do | |
4815 | ac_preproc_ok=false | |
4816 | for ac_c_preproc_warn_flag in '' yes | |
4817 | do | |
4818 | # Use a header file that comes with gcc, so configuring glibc | |
4819 | # with a fresh cross-compiler works. | |
4820 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4821 | # <limits.h> exists even on freestanding compilers. | |
4822 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4823 | # not just through cpp. "Syntax error" is here to catch this case. | |
4824 | cat >conftest.$ac_ext <<_ACEOF | |
4825 | /* confdefs.h. */ | |
4826 | _ACEOF | |
4827 | cat confdefs.h >>conftest.$ac_ext | |
4828 | cat >>conftest.$ac_ext <<_ACEOF | |
4829 | /* end confdefs.h. */ | |
4830 | #ifdef __STDC__ | |
4831 | # include <limits.h> | |
4832 | #else | |
4833 | # include <assert.h> | |
4834 | #endif | |
4835 | Syntax error | |
4836 | _ACEOF | |
4837 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4838 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4839 | ac_status=$? | |
4840 | grep -v '^ *+' conftest.er1 >conftest.err | |
4841 | rm -f conftest.er1 | |
4842 | cat conftest.err >&5 | |
4843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4844 | (exit $ac_status); } >/dev/null; then | |
4845 | if test -s conftest.err; then | |
4846 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4847 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4848 | else | |
4849 | ac_cpp_err= | |
4850 | fi | |
4851 | else | |
4852 | ac_cpp_err=yes | |
4853 | fi | |
4854 | if test -z "$ac_cpp_err"; then | |
4855 | : | |
4856 | else | |
4857 | echo "$as_me: failed program was:" >&5 | |
4858 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4859 | ||
4860 | # Broken: fails on valid input. | |
4861 | continue | |
4862 | fi | |
4863 | rm -f conftest.err conftest.$ac_ext | |
4864 | ||
4865 | # OK, works on sane cases. Now check whether non-existent headers | |
4866 | # can be detected and how. | |
4867 | cat >conftest.$ac_ext <<_ACEOF | |
4868 | /* confdefs.h. */ | |
4869 | _ACEOF | |
4870 | cat confdefs.h >>conftest.$ac_ext | |
4871 | cat >>conftest.$ac_ext <<_ACEOF | |
4872 | /* end confdefs.h. */ | |
4873 | #include <ac_nonexistent.h> | |
4874 | _ACEOF | |
4875 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4876 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4877 | ac_status=$? | |
4878 | grep -v '^ *+' conftest.er1 >conftest.err | |
4879 | rm -f conftest.er1 | |
4880 | cat conftest.err >&5 | |
4881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4882 | (exit $ac_status); } >/dev/null; then | |
4883 | if test -s conftest.err; then | |
4884 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4885 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4886 | else | |
4887 | ac_cpp_err= | |
4888 | fi | |
4889 | else | |
4890 | ac_cpp_err=yes | |
4891 | fi | |
4892 | if test -z "$ac_cpp_err"; then | |
4893 | # Broken: success on invalid input. | |
4894 | continue | |
4895 | else | |
4896 | echo "$as_me: failed program was:" >&5 | |
4897 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4898 | ||
4899 | # Passes both tests. | |
4900 | ac_preproc_ok=: | |
4901 | break | |
4902 | fi | |
4903 | rm -f conftest.err conftest.$ac_ext | |
4904 | ||
4905 | done | |
4906 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4907 | rm -f conftest.err conftest.$ac_ext | |
4908 | if $ac_preproc_ok; then | |
4909 | break | |
4910 | fi | |
4911 | ||
4912 | done | |
4913 | ac_cv_prog_CPP=$CPP | |
4914 | ||
4915 | fi | |
4916 | CPP=$ac_cv_prog_CPP | |
4917 | else | |
4918 | ac_cv_prog_CPP=$CPP | |
4919 | fi | |
4920 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
4921 | echo "${ECHO_T}$CPP" >&6 | |
4922 | ac_preproc_ok=false | |
4923 | for ac_c_preproc_warn_flag in '' yes | |
4924 | do | |
4925 | # Use a header file that comes with gcc, so configuring glibc | |
4926 | # with a fresh cross-compiler works. | |
4927 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4928 | # <limits.h> exists even on freestanding compilers. | |
4929 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4930 | # not just through cpp. "Syntax error" is here to catch this case. | |
4931 | cat >conftest.$ac_ext <<_ACEOF | |
4932 | /* confdefs.h. */ | |
4933 | _ACEOF | |
4934 | cat confdefs.h >>conftest.$ac_ext | |
4935 | cat >>conftest.$ac_ext <<_ACEOF | |
4936 | /* end confdefs.h. */ | |
4937 | #ifdef __STDC__ | |
4938 | # include <limits.h> | |
4939 | #else | |
4940 | # include <assert.h> | |
4941 | #endif | |
4942 | Syntax error | |
4943 | _ACEOF | |
4944 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4945 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4946 | ac_status=$? | |
4947 | grep -v '^ *+' conftest.er1 >conftest.err | |
4948 | rm -f conftest.er1 | |
4949 | cat conftest.err >&5 | |
4950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4951 | (exit $ac_status); } >/dev/null; then | |
4952 | if test -s conftest.err; then | |
4953 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4954 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4955 | else | |
4956 | ac_cpp_err= | |
4957 | fi | |
4958 | else | |
4959 | ac_cpp_err=yes | |
4960 | fi | |
4961 | if test -z "$ac_cpp_err"; then | |
4962 | : | |
4963 | else | |
4964 | echo "$as_me: failed program was:" >&5 | |
4965 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4966 | ||
4967 | # Broken: fails on valid input. | |
4968 | continue | |
4969 | fi | |
4970 | rm -f conftest.err conftest.$ac_ext | |
4971 | ||
4972 | # OK, works on sane cases. Now check whether non-existent headers | |
4973 | # can be detected and how. | |
4974 | cat >conftest.$ac_ext <<_ACEOF | |
4975 | /* confdefs.h. */ | |
4976 | _ACEOF | |
4977 | cat confdefs.h >>conftest.$ac_ext | |
4978 | cat >>conftest.$ac_ext <<_ACEOF | |
4979 | /* end confdefs.h. */ | |
4980 | #include <ac_nonexistent.h> | |
4981 | _ACEOF | |
4982 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4983 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4984 | ac_status=$? | |
4985 | grep -v '^ *+' conftest.er1 >conftest.err | |
4986 | rm -f conftest.er1 | |
4987 | cat conftest.err >&5 | |
4988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4989 | (exit $ac_status); } >/dev/null; then | |
4990 | if test -s conftest.err; then | |
4991 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4992 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4993 | else | |
4994 | ac_cpp_err= | |
4995 | fi | |
4996 | else | |
4997 | ac_cpp_err=yes | |
4998 | fi | |
4999 | if test -z "$ac_cpp_err"; then | |
5000 | # Broken: success on invalid input. | |
5001 | continue | |
5002 | else | |
5003 | echo "$as_me: failed program was:" >&5 | |
5004 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5005 | ||
5006 | # Passes both tests. | |
5007 | ac_preproc_ok=: | |
5008 | break | |
5009 | fi | |
5010 | rm -f conftest.err conftest.$ac_ext | |
5011 | ||
5012 | done | |
5013 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5014 | rm -f conftest.err conftest.$ac_ext | |
5015 | if $ac_preproc_ok; then | |
5016 | : | |
5017 | else | |
5018 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
5019 | See \`config.log' for more details." >&5 | |
5020 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
5021 | See \`config.log' for more details." >&2;} | |
5022 | { (exit 1); exit 1; }; } | |
5023 | fi | |
5024 | ||
5025 | ac_ext=c | |
5026 | ac_cpp='$CPP $CPPFLAGS' | |
5027 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5028 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5029 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5030 | ||
5031 | ||
5032 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
5033 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
5034 | if test "${ac_cv_prog_egrep+set}" = set; then | |
5035 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5036 | else | |
5037 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
5038 | then ac_cv_prog_egrep='grep -E' | |
5039 | else ac_cv_prog_egrep='egrep' | |
5040 | fi | |
5041 | fi | |
5042 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
5043 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
5044 | EGREP=$ac_cv_prog_egrep | |
5045 | ||
5046 | ||
5047 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
5048 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
5049 | if test "${ac_cv_header_stdc+set}" = set; then | |
5050 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5051 | else | |
5052 | cat >conftest.$ac_ext <<_ACEOF | |
5053 | /* confdefs.h. */ | |
5054 | _ACEOF | |
5055 | cat confdefs.h >>conftest.$ac_ext | |
5056 | cat >>conftest.$ac_ext <<_ACEOF | |
5057 | /* end confdefs.h. */ | |
5058 | #include <stdlib.h> | |
5059 | #include <stdarg.h> | |
5060 | #include <string.h> | |
5061 | #include <float.h> | |
5062 | ||
5063 | int | |
5064 | main () | |
5065 | { | |
5066 | ||
5067 | ; | |
5068 | return 0; | |
5069 | } | |
5070 | _ACEOF | |
5071 | rm -f conftest.$ac_objext | |
5072 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5073 | (eval $ac_compile) 2>conftest.er1 | |
5074 | ac_status=$? | |
5075 | grep -v '^ *+' conftest.er1 >conftest.err | |
5076 | rm -f conftest.er1 | |
5077 | cat conftest.err >&5 | |
5078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5079 | (exit $ac_status); } && | |
d349482e AT |
5080 | { ac_try='test -z "$ac_c_werror_flag" |
5081 | || test ! -s conftest.err' | |
953ff289 DN |
5082 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5083 | (eval $ac_try) 2>&5 | |
5084 | ac_status=$? | |
5085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5086 | (exit $ac_status); }; } && | |
5087 | { ac_try='test -s conftest.$ac_objext' | |
5088 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5089 | (eval $ac_try) 2>&5 | |
5090 | ac_status=$? | |
5091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5092 | (exit $ac_status); }; }; then | |
5093 | ac_cv_header_stdc=yes | |
5094 | else | |
5095 | echo "$as_me: failed program was:" >&5 | |
5096 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5097 | ||
5098 | ac_cv_header_stdc=no | |
5099 | fi | |
5100 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5101 | ||
5102 | if test $ac_cv_header_stdc = yes; then | |
5103 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
5104 | cat >conftest.$ac_ext <<_ACEOF | |
5105 | /* confdefs.h. */ | |
5106 | _ACEOF | |
5107 | cat confdefs.h >>conftest.$ac_ext | |
5108 | cat >>conftest.$ac_ext <<_ACEOF | |
5109 | /* end confdefs.h. */ | |
5110 | #include <string.h> | |
5111 | ||
5112 | _ACEOF | |
5113 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5114 | $EGREP "memchr" >/dev/null 2>&1; then | |
5115 | : | |
5116 | else | |
5117 | ac_cv_header_stdc=no | |
5118 | fi | |
5119 | rm -f conftest* | |
5120 | ||
5121 | fi | |
5122 | ||
5123 | if test $ac_cv_header_stdc = yes; then | |
5124 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
5125 | cat >conftest.$ac_ext <<_ACEOF | |
5126 | /* confdefs.h. */ | |
5127 | _ACEOF | |
5128 | cat confdefs.h >>conftest.$ac_ext | |
5129 | cat >>conftest.$ac_ext <<_ACEOF | |
5130 | /* end confdefs.h. */ | |
5131 | #include <stdlib.h> | |
5132 | ||
5133 | _ACEOF | |
5134 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5135 | $EGREP "free" >/dev/null 2>&1; then | |
5136 | : | |
5137 | else | |
5138 | ac_cv_header_stdc=no | |
5139 | fi | |
5140 | rm -f conftest* | |
5141 | ||
5142 | fi | |
5143 | ||
5144 | if test $ac_cv_header_stdc = yes; then | |
5145 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
5146 | if test "$cross_compiling" = yes; then | |
5147 | : | |
5148 | else | |
5149 | cat >conftest.$ac_ext <<_ACEOF | |
5150 | /* confdefs.h. */ | |
5151 | _ACEOF | |
5152 | cat confdefs.h >>conftest.$ac_ext | |
5153 | cat >>conftest.$ac_ext <<_ACEOF | |
5154 | /* end confdefs.h. */ | |
5155 | #include <ctype.h> | |
5156 | #if ((' ' & 0x0FF) == 0x020) | |
5157 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5158 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5159 | #else | |
5160 | # define ISLOWER(c) \ | |
5161 | (('a' <= (c) && (c) <= 'i') \ | |
5162 | || ('j' <= (c) && (c) <= 'r') \ | |
5163 | || ('s' <= (c) && (c) <= 'z')) | |
5164 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
5165 | #endif | |
5166 | ||
5167 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
5168 | int | |
5169 | main () | |
5170 | { | |
5171 | int i; | |
5172 | for (i = 0; i < 256; i++) | |
5173 | if (XOR (islower (i), ISLOWER (i)) | |
5174 | || toupper (i) != TOUPPER (i)) | |
5175 | exit(2); | |
5176 | exit (0); | |
5177 | } | |
5178 | _ACEOF | |
5179 | rm -f conftest$ac_exeext | |
5180 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5181 | (eval $ac_link) 2>&5 | |
5182 | ac_status=$? | |
5183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5184 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5185 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5186 | (eval $ac_try) 2>&5 | |
5187 | ac_status=$? | |
5188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5189 | (exit $ac_status); }; }; then | |
5190 | : | |
5191 | else | |
5192 | echo "$as_me: program exited with status $ac_status" >&5 | |
5193 | echo "$as_me: failed program was:" >&5 | |
5194 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5195 | ||
5196 | ( exit $ac_status ) | |
5197 | ac_cv_header_stdc=no | |
5198 | fi | |
5199 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
5200 | fi | |
5201 | fi | |
5202 | fi | |
5203 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
5204 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
5205 | if test $ac_cv_header_stdc = yes; then | |
5206 | ||
5207 | cat >>confdefs.h <<\_ACEOF | |
5208 | #define STDC_HEADERS 1 | |
5209 | _ACEOF | |
5210 | ||
5211 | fi | |
5212 | ||
5213 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 | |
5214 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 | |
5215 | if test "${ac_cv_header_time+set}" = set; then | |
5216 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5217 | else | |
5218 | cat >conftest.$ac_ext <<_ACEOF | |
5219 | /* confdefs.h. */ | |
5220 | _ACEOF | |
5221 | cat confdefs.h >>conftest.$ac_ext | |
5222 | cat >>conftest.$ac_ext <<_ACEOF | |
5223 | /* end confdefs.h. */ | |
5224 | #include <sys/types.h> | |
5225 | #include <sys/time.h> | |
5226 | #include <time.h> | |
5227 | ||
5228 | int | |
5229 | main () | |
5230 | { | |
5231 | if ((struct tm *) 0) | |
5232 | return 0; | |
5233 | ; | |
5234 | return 0; | |
5235 | } | |
5236 | _ACEOF | |
5237 | rm -f conftest.$ac_objext | |
5238 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5239 | (eval $ac_compile) 2>conftest.er1 | |
5240 | ac_status=$? | |
5241 | grep -v '^ *+' conftest.er1 >conftest.err | |
5242 | rm -f conftest.er1 | |
5243 | cat conftest.err >&5 | |
5244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5245 | (exit $ac_status); } && | |
d349482e AT |
5246 | { ac_try='test -z "$ac_c_werror_flag" |
5247 | || test ! -s conftest.err' | |
953ff289 DN |
5248 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5249 | (eval $ac_try) 2>&5 | |
5250 | ac_status=$? | |
5251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5252 | (exit $ac_status); }; } && | |
5253 | { ac_try='test -s conftest.$ac_objext' | |
5254 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5255 | (eval $ac_try) 2>&5 | |
5256 | ac_status=$? | |
5257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5258 | (exit $ac_status); }; }; then | |
5259 | ac_cv_header_time=yes | |
5260 | else | |
5261 | echo "$as_me: failed program was:" >&5 | |
5262 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5263 | ||
5264 | ac_cv_header_time=no | |
5265 | fi | |
5266 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5267 | fi | |
5268 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 | |
5269 | echo "${ECHO_T}$ac_cv_header_time" >&6 | |
5270 | if test $ac_cv_header_time = yes; then | |
5271 | ||
5272 | cat >>confdefs.h <<\_ACEOF | |
5273 | #define TIME_WITH_SYS_TIME 1 | |
5274 | _ACEOF | |
5275 | ||
5276 | fi | |
5277 | ||
5278 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
5279 | ||
5280 | ||
5281 | ||
5282 | ||
5283 | ||
5284 | ||
5285 | ||
5286 | ||
5287 | ||
5288 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
5289 | inttypes.h stdint.h unistd.h | |
5290 | do | |
5291 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5292 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5293 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5294 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5295 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5296 | else | |
5297 | cat >conftest.$ac_ext <<_ACEOF | |
5298 | /* confdefs.h. */ | |
5299 | _ACEOF | |
5300 | cat confdefs.h >>conftest.$ac_ext | |
5301 | cat >>conftest.$ac_ext <<_ACEOF | |
5302 | /* end confdefs.h. */ | |
5303 | $ac_includes_default | |
5304 | ||
5305 | #include <$ac_header> | |
5306 | _ACEOF | |
5307 | rm -f conftest.$ac_objext | |
5308 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5309 | (eval $ac_compile) 2>conftest.er1 | |
5310 | ac_status=$? | |
5311 | grep -v '^ *+' conftest.er1 >conftest.err | |
5312 | rm -f conftest.er1 | |
5313 | cat conftest.err >&5 | |
5314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5315 | (exit $ac_status); } && | |
d349482e AT |
5316 | { ac_try='test -z "$ac_c_werror_flag" |
5317 | || test ! -s conftest.err' | |
953ff289 DN |
5318 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5319 | (eval $ac_try) 2>&5 | |
5320 | ac_status=$? | |
5321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5322 | (exit $ac_status); }; } && | |
5323 | { ac_try='test -s conftest.$ac_objext' | |
5324 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5325 | (eval $ac_try) 2>&5 | |
5326 | ac_status=$? | |
5327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5328 | (exit $ac_status); }; }; then | |
5329 | eval "$as_ac_Header=yes" | |
5330 | else | |
5331 | echo "$as_me: failed program was:" >&5 | |
5332 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5333 | ||
5334 | eval "$as_ac_Header=no" | |
5335 | fi | |
5336 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5337 | fi | |
5338 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5339 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5340 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
5341 | cat >>confdefs.h <<_ACEOF | |
5342 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5343 | _ACEOF | |
5344 | ||
5345 | fi | |
5346 | ||
5347 | done | |
5348 | ||
5349 | ||
5350 | ||
5351 | ||
5352 | ||
192a50ad AT |
5353 | |
5354 | for ac_header in unistd.h semaphore.h sys/loadavg.h sys/time.h | |
953ff289 DN |
5355 | do |
5356 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5357 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5358 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5359 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5360 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5361 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5362 | fi | |
5363 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5364 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5365 | else | |
5366 | # Is the header compilable? | |
5367 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5368 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
5369 | cat >conftest.$ac_ext <<_ACEOF | |
5370 | /* confdefs.h. */ | |
5371 | _ACEOF | |
5372 | cat confdefs.h >>conftest.$ac_ext | |
5373 | cat >>conftest.$ac_ext <<_ACEOF | |
5374 | /* end confdefs.h. */ | |
5375 | $ac_includes_default | |
5376 | #include <$ac_header> | |
5377 | _ACEOF | |
5378 | rm -f conftest.$ac_objext | |
5379 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5380 | (eval $ac_compile) 2>conftest.er1 | |
5381 | ac_status=$? | |
5382 | grep -v '^ *+' conftest.er1 >conftest.err | |
5383 | rm -f conftest.er1 | |
5384 | cat conftest.err >&5 | |
5385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5386 | (exit $ac_status); } && | |
d349482e AT |
5387 | { ac_try='test -z "$ac_c_werror_flag" |
5388 | || test ! -s conftest.err' | |
953ff289 DN |
5389 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5390 | (eval $ac_try) 2>&5 | |
5391 | ac_status=$? | |
5392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5393 | (exit $ac_status); }; } && | |
5394 | { ac_try='test -s conftest.$ac_objext' | |
5395 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5396 | (eval $ac_try) 2>&5 | |
5397 | ac_status=$? | |
5398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5399 | (exit $ac_status); }; }; then | |
5400 | ac_header_compiler=yes | |
5401 | else | |
5402 | echo "$as_me: failed program was:" >&5 | |
5403 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5404 | ||
5405 | ac_header_compiler=no | |
5406 | fi | |
5407 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5408 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5409 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
5410 | ||
5411 | # Is the header present? | |
5412 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5413 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
5414 | cat >conftest.$ac_ext <<_ACEOF | |
5415 | /* confdefs.h. */ | |
5416 | _ACEOF | |
5417 | cat confdefs.h >>conftest.$ac_ext | |
5418 | cat >>conftest.$ac_ext <<_ACEOF | |
5419 | /* end confdefs.h. */ | |
5420 | #include <$ac_header> | |
5421 | _ACEOF | |
5422 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5423 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5424 | ac_status=$? | |
5425 | grep -v '^ *+' conftest.er1 >conftest.err | |
5426 | rm -f conftest.er1 | |
5427 | cat conftest.err >&5 | |
5428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5429 | (exit $ac_status); } >/dev/null; then | |
5430 | if test -s conftest.err; then | |
5431 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5432 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5433 | else | |
5434 | ac_cpp_err= | |
5435 | fi | |
5436 | else | |
5437 | ac_cpp_err=yes | |
5438 | fi | |
5439 | if test -z "$ac_cpp_err"; then | |
5440 | ac_header_preproc=yes | |
5441 | else | |
5442 | echo "$as_me: failed program was:" >&5 | |
5443 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5444 | ||
5445 | ac_header_preproc=no | |
5446 | fi | |
5447 | rm -f conftest.err conftest.$ac_ext | |
5448 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5449 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5450 | ||
5451 | # So? What about this header? | |
5452 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
5453 | yes:no: ) | |
5454 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
5455 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5456 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5457 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
5458 | ac_header_preproc=yes | |
5459 | ;; | |
5460 | no:yes:* ) | |
5461 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
5462 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5463 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5464 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5465 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5466 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5467 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5468 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5469 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5470 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5471 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5472 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
5473 | ( | |
5474 | cat <<\_ASBOX | |
5475 | ## ----------------------------------------------------- ## | |
5476 | ## Report this to the GNU OpenMP Runtime Library lists. ## | |
5477 | ## ----------------------------------------------------- ## | |
5478 | _ASBOX | |
5479 | ) | | |
5480 | sed "s/^/$as_me: WARNING: /" >&2 | |
5481 | ;; | |
5482 | esac | |
5483 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5484 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5485 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5486 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5487 | else | |
5488 | eval "$as_ac_Header=\$ac_header_preproc" | |
5489 | fi | |
5490 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5491 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5492 | ||
5493 | fi | |
5494 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
5495 | cat >>confdefs.h <<_ACEOF | |
5496 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5497 | _ACEOF | |
5498 | ||
5499 | fi | |
5500 | ||
5501 | done | |
5502 | ||
953ff289 | 5503 | |
18cbfd85 PB |
5504 | |
5505 | ||
5506 | inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'` | |
5507 | ||
5508 | acx_cv_header_stdint=stddef.h | |
5509 | acx_cv_header_stdint_kind="(already complete)" | |
5510 | for i in stdint.h $inttype_headers; do | |
5511 | unset ac_cv_type_uintptr_t | |
5512 | unset ac_cv_type_uintmax_t | |
5513 | unset ac_cv_type_int_least32_t | |
5514 | unset ac_cv_type_int_fast32_t | |
5515 | unset ac_cv_type_uint64_t | |
5516 | echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6 | |
5517 | echo "$as_me:$LINENO: checking for uintmax_t" >&5 | |
5518 | echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6 | |
5519 | if test "${ac_cv_type_uintmax_t+set}" = set; then | |
5520 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5521 | else | |
5522 | cat >conftest.$ac_ext <<_ACEOF | |
5523 | /* confdefs.h. */ | |
5524 | _ACEOF | |
5525 | cat confdefs.h >>conftest.$ac_ext | |
5526 | cat >>conftest.$ac_ext <<_ACEOF | |
5527 | /* end confdefs.h. */ | |
5528 | #include <sys/types.h> | |
5529 | #include <$i> | |
5530 | ||
5531 | int | |
5532 | main () | |
5533 | { | |
5534 | if ((uintmax_t *) 0) | |
5535 | return 0; | |
5536 | if (sizeof (uintmax_t)) | |
5537 | return 0; | |
5538 | ; | |
5539 | return 0; | |
5540 | } | |
5541 | _ACEOF | |
5542 | rm -f conftest.$ac_objext | |
5543 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5544 | (eval $ac_compile) 2>conftest.er1 | |
5545 | ac_status=$? | |
5546 | grep -v '^ *+' conftest.er1 >conftest.err | |
5547 | rm -f conftest.er1 | |
5548 | cat conftest.err >&5 | |
5549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5550 | (exit $ac_status); } && | |
d349482e AT |
5551 | { ac_try='test -z "$ac_c_werror_flag" |
5552 | || test ! -s conftest.err' | |
18cbfd85 PB |
5553 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5554 | (eval $ac_try) 2>&5 | |
5555 | ac_status=$? | |
5556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5557 | (exit $ac_status); }; } && | |
5558 | { ac_try='test -s conftest.$ac_objext' | |
5559 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5560 | (eval $ac_try) 2>&5 | |
5561 | ac_status=$? | |
5562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5563 | (exit $ac_status); }; }; then | |
5564 | ac_cv_type_uintmax_t=yes | |
5565 | else | |
5566 | echo "$as_me: failed program was:" >&5 | |
5567 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5568 | ||
5569 | ac_cv_type_uintmax_t=no | |
5570 | fi | |
5571 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5572 | fi | |
5573 | echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5 | |
5574 | echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6 | |
5575 | if test $ac_cv_type_uintmax_t = yes; then | |
5576 | acx_cv_header_stdint=$i | |
5577 | else | |
5578 | continue | |
5579 | fi | |
5580 | ||
5581 | echo "$as_me:$LINENO: checking for uintptr_t" >&5 | |
5582 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 | |
5583 | if test "${ac_cv_type_uintptr_t+set}" = set; then | |
5584 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5585 | else | |
5586 | cat >conftest.$ac_ext <<_ACEOF | |
5587 | /* confdefs.h. */ | |
5588 | _ACEOF | |
5589 | cat confdefs.h >>conftest.$ac_ext | |
5590 | cat >>conftest.$ac_ext <<_ACEOF | |
5591 | /* end confdefs.h. */ | |
5592 | #include <sys/types.h> | |
5593 | #include <$i> | |
5594 | ||
5595 | int | |
5596 | main () | |
5597 | { | |
5598 | if ((uintptr_t *) 0) | |
5599 | return 0; | |
5600 | if (sizeof (uintptr_t)) | |
5601 | return 0; | |
5602 | ; | |
5603 | return 0; | |
5604 | } | |
5605 | _ACEOF | |
5606 | rm -f conftest.$ac_objext | |
5607 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5608 | (eval $ac_compile) 2>conftest.er1 | |
5609 | ac_status=$? | |
5610 | grep -v '^ *+' conftest.er1 >conftest.err | |
5611 | rm -f conftest.er1 | |
5612 | cat conftest.err >&5 | |
5613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5614 | (exit $ac_status); } && | |
d349482e AT |
5615 | { ac_try='test -z "$ac_c_werror_flag" |
5616 | || test ! -s conftest.err' | |
18cbfd85 PB |
5617 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5618 | (eval $ac_try) 2>&5 | |
5619 | ac_status=$? | |
5620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5621 | (exit $ac_status); }; } && | |
5622 | { ac_try='test -s conftest.$ac_objext' | |
5623 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5624 | (eval $ac_try) 2>&5 | |
5625 | ac_status=$? | |
5626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5627 | (exit $ac_status); }; }; then | |
5628 | ac_cv_type_uintptr_t=yes | |
5629 | else | |
5630 | echo "$as_me: failed program was:" >&5 | |
5631 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5632 | ||
5633 | ac_cv_type_uintptr_t=no | |
5634 | fi | |
5635 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5636 | fi | |
5637 | echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 | |
5638 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 | |
5639 | if test $ac_cv_type_uintptr_t = yes; then | |
5640 | : | |
5641 | else | |
5642 | acx_cv_header_stdint_kind="(mostly complete)" | |
5643 | fi | |
5644 | ||
5645 | echo "$as_me:$LINENO: checking for int_least32_t" >&5 | |
5646 | echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6 | |
5647 | if test "${ac_cv_type_int_least32_t+set}" = set; then | |
5648 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5649 | else | |
5650 | cat >conftest.$ac_ext <<_ACEOF | |
5651 | /* confdefs.h. */ | |
5652 | _ACEOF | |
5653 | cat confdefs.h >>conftest.$ac_ext | |
5654 | cat >>conftest.$ac_ext <<_ACEOF | |
5655 | /* end confdefs.h. */ | |
5656 | #include <sys/types.h> | |
5657 | #include <$i> | |
5658 | ||
5659 | int | |
5660 | main () | |
5661 | { | |
5662 | if ((int_least32_t *) 0) | |
5663 | return 0; | |
5664 | if (sizeof (int_least32_t)) | |
5665 | return 0; | |
5666 | ; | |
5667 | return 0; | |
5668 | } | |
5669 | _ACEOF | |
5670 | rm -f conftest.$ac_objext | |
5671 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5672 | (eval $ac_compile) 2>conftest.er1 | |
5673 | ac_status=$? | |
5674 | grep -v '^ *+' conftest.er1 >conftest.err | |
5675 | rm -f conftest.er1 | |
5676 | cat conftest.err >&5 | |
5677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5678 | (exit $ac_status); } && | |
d349482e AT |
5679 | { ac_try='test -z "$ac_c_werror_flag" |
5680 | || test ! -s conftest.err' | |
18cbfd85 PB |
5681 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5682 | (eval $ac_try) 2>&5 | |
5683 | ac_status=$? | |
5684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5685 | (exit $ac_status); }; } && | |
5686 | { ac_try='test -s conftest.$ac_objext' | |
5687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5688 | (eval $ac_try) 2>&5 | |
5689 | ac_status=$? | |
5690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5691 | (exit $ac_status); }; }; then | |
5692 | ac_cv_type_int_least32_t=yes | |
5693 | else | |
5694 | echo "$as_me: failed program was:" >&5 | |
5695 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5696 | ||
5697 | ac_cv_type_int_least32_t=no | |
5698 | fi | |
5699 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5700 | fi | |
5701 | echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5 | |
5702 | echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6 | |
5703 | if test $ac_cv_type_int_least32_t = yes; then | |
5704 | : | |
5705 | else | |
5706 | acx_cv_header_stdint_kind="(mostly complete)" | |
5707 | fi | |
5708 | ||
5709 | echo "$as_me:$LINENO: checking for int_fast32_t" >&5 | |
5710 | echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6 | |
5711 | if test "${ac_cv_type_int_fast32_t+set}" = set; then | |
5712 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5713 | else | |
5714 | cat >conftest.$ac_ext <<_ACEOF | |
5715 | /* confdefs.h. */ | |
5716 | _ACEOF | |
5717 | cat confdefs.h >>conftest.$ac_ext | |
5718 | cat >>conftest.$ac_ext <<_ACEOF | |
5719 | /* end confdefs.h. */ | |
5720 | #include <sys/types.h> | |
5721 | #include <$i> | |
5722 | ||
5723 | int | |
5724 | main () | |
5725 | { | |
5726 | if ((int_fast32_t *) 0) | |
5727 | return 0; | |
5728 | if (sizeof (int_fast32_t)) | |
5729 | return 0; | |
5730 | ; | |
5731 | return 0; | |
5732 | } | |
5733 | _ACEOF | |
5734 | rm -f conftest.$ac_objext | |
5735 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5736 | (eval $ac_compile) 2>conftest.er1 | |
5737 | ac_status=$? | |
5738 | grep -v '^ *+' conftest.er1 >conftest.err | |
5739 | rm -f conftest.er1 | |
5740 | cat conftest.err >&5 | |
5741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5742 | (exit $ac_status); } && | |
d349482e AT |
5743 | { ac_try='test -z "$ac_c_werror_flag" |
5744 | || test ! -s conftest.err' | |
18cbfd85 PB |
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); }; } && | |
5750 | { ac_try='test -s conftest.$ac_objext' | |
5751 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5752 | (eval $ac_try) 2>&5 | |
5753 | ac_status=$? | |
5754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5755 | (exit $ac_status); }; }; then | |
5756 | ac_cv_type_int_fast32_t=yes | |
5757 | else | |
5758 | echo "$as_me: failed program was:" >&5 | |
5759 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5760 | ||
5761 | ac_cv_type_int_fast32_t=no | |
5762 | fi | |
5763 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5764 | fi | |
5765 | echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5 | |
5766 | echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6 | |
5767 | if test $ac_cv_type_int_fast32_t = yes; then | |
5768 | : | |
5769 | else | |
5770 | acx_cv_header_stdint_kind="(mostly complete)" | |
5771 | fi | |
5772 | ||
5773 | echo "$as_me:$LINENO: checking for uint64_t" >&5 | |
5774 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 | |
5775 | if test "${ac_cv_type_uint64_t+set}" = set; then | |
5776 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5777 | else | |
5778 | cat >conftest.$ac_ext <<_ACEOF | |
5779 | /* confdefs.h. */ | |
5780 | _ACEOF | |
5781 | cat confdefs.h >>conftest.$ac_ext | |
5782 | cat >>conftest.$ac_ext <<_ACEOF | |
5783 | /* end confdefs.h. */ | |
5784 | #include <sys/types.h> | |
5785 | #include <$i> | |
5786 | ||
5787 | int | |
5788 | main () | |
5789 | { | |
5790 | if ((uint64_t *) 0) | |
5791 | return 0; | |
5792 | if (sizeof (uint64_t)) | |
5793 | return 0; | |
5794 | ; | |
5795 | return 0; | |
5796 | } | |
5797 | _ACEOF | |
5798 | rm -f conftest.$ac_objext | |
5799 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5800 | (eval $ac_compile) 2>conftest.er1 | |
5801 | ac_status=$? | |
5802 | grep -v '^ *+' conftest.er1 >conftest.err | |
5803 | rm -f conftest.er1 | |
5804 | cat conftest.err >&5 | |
5805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5806 | (exit $ac_status); } && | |
d349482e AT |
5807 | { ac_try='test -z "$ac_c_werror_flag" |
5808 | || test ! -s conftest.err' | |
18cbfd85 PB |
5809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5810 | (eval $ac_try) 2>&5 | |
5811 | ac_status=$? | |
5812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5813 | (exit $ac_status); }; } && | |
5814 | { ac_try='test -s conftest.$ac_objext' | |
5815 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5816 | (eval $ac_try) 2>&5 | |
5817 | ac_status=$? | |
5818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5819 | (exit $ac_status); }; }; then | |
5820 | ac_cv_type_uint64_t=yes | |
5821 | else | |
5822 | echo "$as_me: failed program was:" >&5 | |
5823 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5824 | ||
5825 | ac_cv_type_uint64_t=no | |
5826 | fi | |
5827 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5828 | fi | |
5829 | echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 | |
5830 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 | |
5831 | if test $ac_cv_type_uint64_t = yes; then | |
5832 | : | |
5833 | else | |
5834 | acx_cv_header_stdint_kind="(lacks uint64_t)" | |
5835 | fi | |
5836 | ||
5837 | break | |
5838 | done | |
5839 | if test "$acx_cv_header_stdint" = stddef.h; then | |
c663e301 | 5840 | acx_cv_header_stdint_kind="(lacks uintmax_t)" |
18cbfd85 | 5841 | for i in stdint.h $inttype_headers; do |
c663e301 | 5842 | unset ac_cv_type_uintptr_t |
18cbfd85 PB |
5843 | unset ac_cv_type_uint32_t |
5844 | unset ac_cv_type_uint64_t | |
5845 | echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6 | |
5846 | echo "$as_me:$LINENO: checking for uint32_t" >&5 | |
5847 | echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6 | |
5848 | if test "${ac_cv_type_uint32_t+set}" = set; then | |
5849 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5850 | else | |
5851 | cat >conftest.$ac_ext <<_ACEOF | |
5852 | /* confdefs.h. */ | |
5853 | _ACEOF | |
5854 | cat confdefs.h >>conftest.$ac_ext | |
5855 | cat >>conftest.$ac_ext <<_ACEOF | |
5856 | /* end confdefs.h. */ | |
5857 | #include <sys/types.h> | |
5858 | #include <$i> | |
5859 | ||
5860 | int | |
5861 | main () | |
5862 | { | |
5863 | if ((uint32_t *) 0) | |
5864 | return 0; | |
5865 | if (sizeof (uint32_t)) | |
5866 | return 0; | |
5867 | ; | |
5868 | return 0; | |
5869 | } | |
5870 | _ACEOF | |
5871 | rm -f conftest.$ac_objext | |
5872 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5873 | (eval $ac_compile) 2>conftest.er1 | |
5874 | ac_status=$? | |
5875 | grep -v '^ *+' conftest.er1 >conftest.err | |
5876 | rm -f conftest.er1 | |
5877 | cat conftest.err >&5 | |
5878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5879 | (exit $ac_status); } && | |
d349482e AT |
5880 | { ac_try='test -z "$ac_c_werror_flag" |
5881 | || test ! -s conftest.err' | |
18cbfd85 PB |
5882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5883 | (eval $ac_try) 2>&5 | |
5884 | ac_status=$? | |
5885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5886 | (exit $ac_status); }; } && | |
5887 | { ac_try='test -s conftest.$ac_objext' | |
5888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5889 | (eval $ac_try) 2>&5 | |
5890 | ac_status=$? | |
5891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5892 | (exit $ac_status); }; }; then | |
5893 | ac_cv_type_uint32_t=yes | |
5894 | else | |
5895 | echo "$as_me: failed program was:" >&5 | |
5896 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5897 | ||
5898 | ac_cv_type_uint32_t=no | |
5899 | fi | |
5900 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5901 | fi | |
5902 | echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5 | |
5903 | echo "${ECHO_T}$ac_cv_type_uint32_t" >&6 | |
5904 | if test $ac_cv_type_uint32_t = yes; then | |
5905 | acx_cv_header_stdint=$i | |
5906 | else | |
5907 | continue | |
5908 | fi | |
5909 | ||
5910 | echo "$as_me:$LINENO: checking for uint64_t" >&5 | |
5911 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 | |
5912 | if test "${ac_cv_type_uint64_t+set}" = set; then | |
5913 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5914 | else | |
5915 | cat >conftest.$ac_ext <<_ACEOF | |
5916 | /* confdefs.h. */ | |
5917 | _ACEOF | |
5918 | cat confdefs.h >>conftest.$ac_ext | |
5919 | cat >>conftest.$ac_ext <<_ACEOF | |
5920 | /* end confdefs.h. */ | |
5921 | #include <sys/types.h> | |
5922 | #include <$i> | |
5923 | ||
5924 | int | |
5925 | main () | |
5926 | { | |
5927 | if ((uint64_t *) 0) | |
5928 | return 0; | |
5929 | if (sizeof (uint64_t)) | |
5930 | return 0; | |
5931 | ; | |
5932 | return 0; | |
5933 | } | |
5934 | _ACEOF | |
5935 | rm -f conftest.$ac_objext | |
5936 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5937 | (eval $ac_compile) 2>conftest.er1 | |
5938 | ac_status=$? | |
5939 | grep -v '^ *+' conftest.er1 >conftest.err | |
5940 | rm -f conftest.er1 | |
5941 | cat conftest.err >&5 | |
5942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5943 | (exit $ac_status); } && | |
d349482e AT |
5944 | { ac_try='test -z "$ac_c_werror_flag" |
5945 | || test ! -s conftest.err' | |
18cbfd85 PB |
5946 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5947 | (eval $ac_try) 2>&5 | |
5948 | ac_status=$? | |
5949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5950 | (exit $ac_status); }; } && | |
5951 | { ac_try='test -s conftest.$ac_objext' | |
5952 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5953 | (eval $ac_try) 2>&5 | |
5954 | ac_status=$? | |
5955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5956 | (exit $ac_status); }; }; then | |
5957 | ac_cv_type_uint64_t=yes | |
5958 | else | |
5959 | echo "$as_me: failed program was:" >&5 | |
5960 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5961 | ||
5962 | ac_cv_type_uint64_t=no | |
5963 | fi | |
5964 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5965 | fi | |
5966 | echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 | |
5967 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 | |
c663e301 JM |
5968 | |
5969 | echo "$as_me:$LINENO: checking for uintptr_t" >&5 | |
5970 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 | |
5971 | if test "${ac_cv_type_uintptr_t+set}" = set; then | |
5972 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18cbfd85 | 5973 | else |
c663e301 JM |
5974 | cat >conftest.$ac_ext <<_ACEOF |
5975 | /* confdefs.h. */ | |
5976 | _ACEOF | |
5977 | cat confdefs.h >>conftest.$ac_ext | |
5978 | cat >>conftest.$ac_ext <<_ACEOF | |
5979 | /* end confdefs.h. */ | |
5980 | #include <sys/types.h> | |
5981 | #include <$i> | |
5982 | ||
5983 | int | |
5984 | main () | |
5985 | { | |
5986 | if ((uintptr_t *) 0) | |
5987 | return 0; | |
5988 | if (sizeof (uintptr_t)) | |
5989 | return 0; | |
5990 | ; | |
5991 | return 0; | |
5992 | } | |
5993 | _ACEOF | |
5994 | rm -f conftest.$ac_objext | |
5995 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5996 | (eval $ac_compile) 2>conftest.er1 | |
5997 | ac_status=$? | |
5998 | grep -v '^ *+' conftest.er1 >conftest.err | |
5999 | rm -f conftest.er1 | |
6000 | cat conftest.err >&5 | |
6001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6002 | (exit $ac_status); } && | |
6003 | { ac_try='test -z "$ac_c_werror_flag" | |
6004 | || test ! -s conftest.err' | |
6005 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6006 | (eval $ac_try) 2>&5 | |
6007 | ac_status=$? | |
6008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6009 | (exit $ac_status); }; } && | |
6010 | { ac_try='test -s conftest.$ac_objext' | |
6011 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6012 | (eval $ac_try) 2>&5 | |
6013 | ac_status=$? | |
6014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6015 | (exit $ac_status); }; }; then | |
6016 | ac_cv_type_uintptr_t=yes | |
6017 | else | |
6018 | echo "$as_me: failed program was:" >&5 | |
6019 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6020 | ||
6021 | ac_cv_type_uintptr_t=no | |
6022 | fi | |
6023 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
18cbfd85 | 6024 | fi |
c663e301 JM |
6025 | echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
6026 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 | |
18cbfd85 PB |
6027 | |
6028 | break | |
6029 | done | |
6030 | fi | |
6031 | if test "$acx_cv_header_stdint" = stddef.h; then | |
6032 | acx_cv_header_stdint_kind="(u_intXX_t style)" | |
6033 | for i in sys/types.h $inttype_headers; do | |
6034 | unset ac_cv_type_u_int32_t | |
6035 | unset ac_cv_type_u_int64_t | |
6036 | echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6 | |
6037 | echo "$as_me:$LINENO: checking for u_int32_t" >&5 | |
6038 | echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6 | |
6039 | if test "${ac_cv_type_u_int32_t+set}" = set; then | |
6040 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6041 | else | |
6042 | cat >conftest.$ac_ext <<_ACEOF | |
6043 | /* confdefs.h. */ | |
6044 | _ACEOF | |
6045 | cat confdefs.h >>conftest.$ac_ext | |
6046 | cat >>conftest.$ac_ext <<_ACEOF | |
6047 | /* end confdefs.h. */ | |
6048 | #include <sys/types.h> | |
6049 | #include <$i> | |
6050 | ||
6051 | int | |
6052 | main () | |
6053 | { | |
6054 | if ((u_int32_t *) 0) | |
6055 | return 0; | |
6056 | if (sizeof (u_int32_t)) | |
6057 | return 0; | |
6058 | ; | |
6059 | return 0; | |
6060 | } | |
6061 | _ACEOF | |
6062 | rm -f conftest.$ac_objext | |
6063 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6064 | (eval $ac_compile) 2>conftest.er1 | |
6065 | ac_status=$? | |
6066 | grep -v '^ *+' conftest.er1 >conftest.err | |
6067 | rm -f conftest.er1 | |
6068 | cat conftest.err >&5 | |
6069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6070 | (exit $ac_status); } && | |
d349482e AT |
6071 | { ac_try='test -z "$ac_c_werror_flag" |
6072 | || test ! -s conftest.err' | |
18cbfd85 PB |
6073 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6074 | (eval $ac_try) 2>&5 | |
6075 | ac_status=$? | |
6076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6077 | (exit $ac_status); }; } && | |
6078 | { ac_try='test -s conftest.$ac_objext' | |
6079 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6080 | (eval $ac_try) 2>&5 | |
6081 | ac_status=$? | |
6082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6083 | (exit $ac_status); }; }; then | |
6084 | ac_cv_type_u_int32_t=yes | |
6085 | else | |
6086 | echo "$as_me: failed program was:" >&5 | |
6087 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6088 | ||
6089 | ac_cv_type_u_int32_t=no | |
6090 | fi | |
6091 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6092 | fi | |
6093 | echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5 | |
6094 | echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6 | |
6095 | if test $ac_cv_type_u_int32_t = yes; then | |
6096 | acx_cv_header_stdint=$i | |
6097 | else | |
6098 | continue | |
6099 | fi | |
6100 | ||
6101 | echo "$as_me:$LINENO: checking for u_int64_t" >&5 | |
6102 | echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6 | |
6103 | if test "${ac_cv_type_u_int64_t+set}" = set; then | |
6104 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6105 | else | |
6106 | cat >conftest.$ac_ext <<_ACEOF | |
6107 | /* confdefs.h. */ | |
6108 | _ACEOF | |
6109 | cat confdefs.h >>conftest.$ac_ext | |
6110 | cat >>conftest.$ac_ext <<_ACEOF | |
6111 | /* end confdefs.h. */ | |
6112 | #include <sys/types.h> | |
6113 | #include <$i> | |
6114 | ||
6115 | int | |
6116 | main () | |
6117 | { | |
6118 | if ((u_int64_t *) 0) | |
6119 | return 0; | |
6120 | if (sizeof (u_int64_t)) | |
6121 | return 0; | |
6122 | ; | |
6123 | return 0; | |
6124 | } | |
6125 | _ACEOF | |
6126 | rm -f conftest.$ac_objext | |
6127 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6128 | (eval $ac_compile) 2>conftest.er1 | |
6129 | ac_status=$? | |
6130 | grep -v '^ *+' conftest.er1 >conftest.err | |
6131 | rm -f conftest.er1 | |
6132 | cat conftest.err >&5 | |
6133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6134 | (exit $ac_status); } && | |
d349482e AT |
6135 | { ac_try='test -z "$ac_c_werror_flag" |
6136 | || test ! -s conftest.err' | |
18cbfd85 PB |
6137 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6138 | (eval $ac_try) 2>&5 | |
6139 | ac_status=$? | |
6140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6141 | (exit $ac_status); }; } && | |
6142 | { ac_try='test -s conftest.$ac_objext' | |
6143 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6144 | (eval $ac_try) 2>&5 | |
6145 | ac_status=$? | |
6146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6147 | (exit $ac_status); }; }; then | |
6148 | ac_cv_type_u_int64_t=yes | |
6149 | else | |
6150 | echo "$as_me: failed program was:" >&5 | |
6151 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6152 | ||
6153 | ac_cv_type_u_int64_t=no | |
6154 | fi | |
6155 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6156 | fi | |
6157 | echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 | |
6158 | echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6 | |
18cbfd85 PB |
6159 | |
6160 | break | |
6161 | done | |
6162 | fi | |
6163 | if test "$acx_cv_header_stdint" = stddef.h; then | |
6164 | acx_cv_header_stdint_kind="(using manual detection)" | |
6165 | fi | |
6166 | ||
6167 | test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no | |
6168 | test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no | |
6169 | test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no | |
6170 | test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no | |
6171 | test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no | |
6172 | ||
6173 | # ----------------- Summarize what we found so far | |
6174 | ||
6175 | echo "$as_me:$LINENO: checking what to include in gstdint.h" >&5 | |
6176 | echo $ECHO_N "checking what to include in gstdint.h... $ECHO_C" >&6 | |
6177 | ||
6178 | case `$as_basename gstdint.h || | |
6179 | $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \ | |
6180 | Xgstdint.h : 'X\(//\)$' \| \ | |
6181 | Xgstdint.h : 'X\(/\)$' \| \ | |
6182 | . : '\(.\)' 2>/dev/null || | |
6183 | echo X/gstdint.h | | |
6184 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
6185 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
6186 | /^X\/\(\/\).*/{ s//\1/; q; } | |
6187 | s/.*/./; q'` in | |
6188 | stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5 | |
6189 | echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; | |
6190 | inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5 | |
6191 | echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; | |
6192 | *) ;; | |
6193 | esac | |
6194 | ||
6195 | echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5 | |
6196 | echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6 | |
6197 | ||
6198 | # ----------------- done included file, check C basic types -------- | |
6199 | ||
6200 | # Lacking an uintptr_t? Test size of void * | |
6201 | case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in | |
6202 | stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5 | |
6203 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 | |
6204 | if test "${ac_cv_type_void_p+set}" = set; then | |
6205 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6206 | else | |
6207 | cat >conftest.$ac_ext <<_ACEOF | |
6208 | /* confdefs.h. */ | |
6209 | _ACEOF | |
6210 | cat confdefs.h >>conftest.$ac_ext | |
6211 | cat >>conftest.$ac_ext <<_ACEOF | |
6212 | /* end confdefs.h. */ | |
6213 | $ac_includes_default | |
6214 | int | |
6215 | main () | |
6216 | { | |
6217 | if ((void * *) 0) | |
6218 | return 0; | |
6219 | if (sizeof (void *)) | |
6220 | return 0; | |
6221 | ; | |
6222 | return 0; | |
6223 | } | |
6224 | _ACEOF | |
6225 | rm -f conftest.$ac_objext | |
6226 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6227 | (eval $ac_compile) 2>conftest.er1 | |
6228 | ac_status=$? | |
6229 | grep -v '^ *+' conftest.er1 >conftest.err | |
6230 | rm -f conftest.er1 | |
6231 | cat conftest.err >&5 | |
6232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6233 | (exit $ac_status); } && | |
d349482e AT |
6234 | { ac_try='test -z "$ac_c_werror_flag" |
6235 | || test ! -s conftest.err' | |
18cbfd85 PB |
6236 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6237 | (eval $ac_try) 2>&5 | |
6238 | ac_status=$? | |
6239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6240 | (exit $ac_status); }; } && | |
6241 | { ac_try='test -s conftest.$ac_objext' | |
6242 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6243 | (eval $ac_try) 2>&5 | |
6244 | ac_status=$? | |
6245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6246 | (exit $ac_status); }; }; then | |
6247 | ac_cv_type_void_p=yes | |
6248 | else | |
6249 | echo "$as_me: failed program was:" >&5 | |
6250 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6251 | ||
6252 | ac_cv_type_void_p=no | |
6253 | fi | |
6254 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6255 | fi | |
6256 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 | |
6257 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 | |
6258 | ||
6259 | echo "$as_me:$LINENO: checking size of void *" >&5 | |
6260 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 | |
6261 | if test "${ac_cv_sizeof_void_p+set}" = set; then | |
6262 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6263 | else | |
6264 | if test "$ac_cv_type_void_p" = yes; then | |
6265 | # The cast to unsigned long works around a bug in the HP C Compiler | |
6266 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
6267 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
6268 | # This bug is HP SR number 8606223364. | |
6269 | if test "$cross_compiling" = yes; then | |
6270 | # Depending upon the size, compute the lo and hi bounds. | |
6271 | cat >conftest.$ac_ext <<_ACEOF | |
6272 | /* confdefs.h. */ | |
6273 | _ACEOF | |
6274 | cat confdefs.h >>conftest.$ac_ext | |
6275 | cat >>conftest.$ac_ext <<_ACEOF | |
6276 | /* end confdefs.h. */ | |
6277 | $ac_includes_default | |
6278 | int | |
6279 | main () | |
6280 | { | |
6281 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; | |
6282 | test_array [0] = 0 | |
6283 | ||
6284 | ; | |
6285 | return 0; | |
6286 | } | |
6287 | _ACEOF | |
6288 | rm -f conftest.$ac_objext | |
6289 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6290 | (eval $ac_compile) 2>conftest.er1 | |
6291 | ac_status=$? | |
6292 | grep -v '^ *+' conftest.er1 >conftest.err | |
6293 | rm -f conftest.er1 | |
6294 | cat conftest.err >&5 | |
6295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6296 | (exit $ac_status); } && | |
d349482e AT |
6297 | { ac_try='test -z "$ac_c_werror_flag" |
6298 | || test ! -s conftest.err' | |
18cbfd85 PB |
6299 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6300 | (eval $ac_try) 2>&5 | |
6301 | ac_status=$? | |
6302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6303 | (exit $ac_status); }; } && | |
6304 | { ac_try='test -s conftest.$ac_objext' | |
6305 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6306 | (eval $ac_try) 2>&5 | |
6307 | ac_status=$? | |
6308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6309 | (exit $ac_status); }; }; then | |
6310 | ac_lo=0 ac_mid=0 | |
6311 | while :; do | |
6312 | cat >conftest.$ac_ext <<_ACEOF | |
6313 | /* confdefs.h. */ | |
6314 | _ACEOF | |
6315 | cat confdefs.h >>conftest.$ac_ext | |
6316 | cat >>conftest.$ac_ext <<_ACEOF | |
6317 | /* end confdefs.h. */ | |
6318 | $ac_includes_default | |
6319 | int | |
6320 | main () | |
6321 | { | |
6322 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
6323 | test_array [0] = 0 | |
6324 | ||
6325 | ; | |
6326 | return 0; | |
6327 | } | |
6328 | _ACEOF | |
6329 | rm -f conftest.$ac_objext | |
6330 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6331 | (eval $ac_compile) 2>conftest.er1 | |
6332 | ac_status=$? | |
6333 | grep -v '^ *+' conftest.er1 >conftest.err | |
6334 | rm -f conftest.er1 | |
6335 | cat conftest.err >&5 | |
6336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6337 | (exit $ac_status); } && | |
d349482e AT |
6338 | { ac_try='test -z "$ac_c_werror_flag" |
6339 | || test ! -s conftest.err' | |
18cbfd85 PB |
6340 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6341 | (eval $ac_try) 2>&5 | |
6342 | ac_status=$? | |
6343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6344 | (exit $ac_status); }; } && | |
6345 | { ac_try='test -s conftest.$ac_objext' | |
6346 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6347 | (eval $ac_try) 2>&5 | |
6348 | ac_status=$? | |
6349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6350 | (exit $ac_status); }; }; then | |
6351 | ac_hi=$ac_mid; break | |
6352 | else | |
6353 | echo "$as_me: failed program was:" >&5 | |
6354 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6355 | ||
6356 | ac_lo=`expr $ac_mid + 1` | |
6357 | if test $ac_lo -le $ac_mid; then | |
6358 | ac_lo= ac_hi= | |
6359 | break | |
6360 | fi | |
6361 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
6362 | fi | |
6363 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6364 | done | |
6365 | else | |
6366 | echo "$as_me: failed program was:" >&5 | |
6367 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6368 | ||
6369 | cat >conftest.$ac_ext <<_ACEOF | |
6370 | /* confdefs.h. */ | |
6371 | _ACEOF | |
6372 | cat confdefs.h >>conftest.$ac_ext | |
6373 | cat >>conftest.$ac_ext <<_ACEOF | |
6374 | /* end confdefs.h. */ | |
6375 | $ac_includes_default | |
6376 | int | |
6377 | main () | |
6378 | { | |
6379 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; | |
6380 | test_array [0] = 0 | |
6381 | ||
6382 | ; | |
6383 | return 0; | |
6384 | } | |
6385 | _ACEOF | |
6386 | rm -f conftest.$ac_objext | |
6387 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6388 | (eval $ac_compile) 2>conftest.er1 | |
6389 | ac_status=$? | |
6390 | grep -v '^ *+' conftest.er1 >conftest.err | |
6391 | rm -f conftest.er1 | |
6392 | cat conftest.err >&5 | |
6393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6394 | (exit $ac_status); } && | |
d349482e AT |
6395 | { ac_try='test -z "$ac_c_werror_flag" |
6396 | || test ! -s conftest.err' | |
18cbfd85 PB |
6397 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6398 | (eval $ac_try) 2>&5 | |
6399 | ac_status=$? | |
6400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6401 | (exit $ac_status); }; } && | |
6402 | { ac_try='test -s conftest.$ac_objext' | |
6403 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6404 | (eval $ac_try) 2>&5 | |
6405 | ac_status=$? | |
6406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6407 | (exit $ac_status); }; }; then | |
6408 | ac_hi=-1 ac_mid=-1 | |
6409 | while :; do | |
6410 | cat >conftest.$ac_ext <<_ACEOF | |
6411 | /* confdefs.h. */ | |
6412 | _ACEOF | |
6413 | cat confdefs.h >>conftest.$ac_ext | |
6414 | cat >>conftest.$ac_ext <<_ACEOF | |
6415 | /* end confdefs.h. */ | |
6416 | $ac_includes_default | |
6417 | int | |
6418 | main () | |
6419 | { | |
6420 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; | |
6421 | test_array [0] = 0 | |
6422 | ||
6423 | ; | |
6424 | return 0; | |
6425 | } | |
6426 | _ACEOF | |
6427 | rm -f conftest.$ac_objext | |
6428 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6429 | (eval $ac_compile) 2>conftest.er1 | |
6430 | ac_status=$? | |
6431 | grep -v '^ *+' conftest.er1 >conftest.err | |
6432 | rm -f conftest.er1 | |
6433 | cat conftest.err >&5 | |
6434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6435 | (exit $ac_status); } && | |
d349482e AT |
6436 | { ac_try='test -z "$ac_c_werror_flag" |
6437 | || test ! -s conftest.err' | |
18cbfd85 PB |
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_objext' | |
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_lo=$ac_mid; break | |
6450 | else | |
6451 | echo "$as_me: failed program was:" >&5 | |
6452 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6453 | ||
6454 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
6455 | if test $ac_mid -le $ac_hi; then | |
6456 | ac_lo= ac_hi= | |
6457 | break | |
6458 | fi | |
6459 | ac_mid=`expr 2 '*' $ac_mid` | |
6460 | fi | |
6461 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6462 | done | |
6463 | else | |
6464 | echo "$as_me: failed program was:" >&5 | |
6465 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6466 | ||
6467 | ac_lo= ac_hi= | |
6468 | fi | |
6469 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6470 | fi | |
6471 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6472 | # Binary search between lo and hi bounds. | |
6473 | while test "x$ac_lo" != "x$ac_hi"; do | |
6474 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
6475 | cat >conftest.$ac_ext <<_ACEOF | |
6476 | /* confdefs.h. */ | |
6477 | _ACEOF | |
6478 | cat confdefs.h >>conftest.$ac_ext | |
6479 | cat >>conftest.$ac_ext <<_ACEOF | |
6480 | /* end confdefs.h. */ | |
6481 | $ac_includes_default | |
6482 | int | |
6483 | main () | |
6484 | { | |
6485 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
6486 | test_array [0] = 0 | |
6487 | ||
6488 | ; | |
6489 | return 0; | |
6490 | } | |
6491 | _ACEOF | |
6492 | rm -f conftest.$ac_objext | |
6493 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6494 | (eval $ac_compile) 2>conftest.er1 | |
6495 | ac_status=$? | |
6496 | grep -v '^ *+' conftest.er1 >conftest.err | |
6497 | rm -f conftest.er1 | |
6498 | cat conftest.err >&5 | |
6499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6500 | (exit $ac_status); } && | |
d349482e AT |
6501 | { ac_try='test -z "$ac_c_werror_flag" |
6502 | || test ! -s conftest.err' | |
18cbfd85 PB |
6503 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6504 | (eval $ac_try) 2>&5 | |
6505 | ac_status=$? | |
6506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6507 | (exit $ac_status); }; } && | |
6508 | { ac_try='test -s conftest.$ac_objext' | |
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); }; }; then | |
6514 | ac_hi=$ac_mid | |
6515 | else | |
6516 | echo "$as_me: failed program was:" >&5 | |
6517 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6518 | ||
6519 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
6520 | fi | |
6521 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6522 | done | |
6523 | case $ac_lo in | |
6524 | ?*) ac_cv_sizeof_void_p=$ac_lo;; | |
6525 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
6526 | See \`config.log' for more details." >&5 | |
6527 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
6528 | See \`config.log' for more details." >&2;} | |
6529 | { (exit 1); exit 1; }; } ;; | |
6530 | esac | |
6531 | else | |
6532 | if test "$cross_compiling" = yes; then | |
d349482e AT |
6533 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
6534 | See \`config.log' for more details." >&5 | |
6535 | echo "$as_me: error: cannot run test program while cross compiling | |
6536 | See \`config.log' for more details." >&2;} | |
18cbfd85 PB |
6537 | { (exit 1); exit 1; }; } |
6538 | else | |
6539 | cat >conftest.$ac_ext <<_ACEOF | |
6540 | /* confdefs.h. */ | |
6541 | _ACEOF | |
6542 | cat confdefs.h >>conftest.$ac_ext | |
6543 | cat >>conftest.$ac_ext <<_ACEOF | |
6544 | /* end confdefs.h. */ | |
6545 | $ac_includes_default | |
6546 | long longval () { return (long) (sizeof (void *)); } | |
6547 | unsigned long ulongval () { return (long) (sizeof (void *)); } | |
6548 | #include <stdio.h> | |
6549 | #include <stdlib.h> | |
6550 | int | |
6551 | main () | |
6552 | { | |
6553 | ||
6554 | FILE *f = fopen ("conftest.val", "w"); | |
6555 | if (! f) | |
6556 | exit (1); | |
6557 | if (((long) (sizeof (void *))) < 0) | |
6558 | { | |
6559 | long i = longval (); | |
6560 | if (i != ((long) (sizeof (void *)))) | |
6561 | exit (1); | |
6562 | fprintf (f, "%ld\n", i); | |
6563 | } | |
6564 | else | |
6565 | { | |
6566 | unsigned long i = ulongval (); | |
6567 | if (i != ((long) (sizeof (void *)))) | |
6568 | exit (1); | |
6569 | fprintf (f, "%lu\n", i); | |
6570 | } | |
6571 | exit (ferror (f) || fclose (f) != 0); | |
6572 | ||
6573 | ; | |
6574 | return 0; | |
6575 | } | |
6576 | _ACEOF | |
6577 | rm -f conftest$ac_exeext | |
6578 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6579 | (eval $ac_link) 2>&5 | |
6580 | ac_status=$? | |
6581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6582 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6584 | (eval $ac_try) 2>&5 | |
6585 | ac_status=$? | |
6586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6587 | (exit $ac_status); }; }; then | |
6588 | ac_cv_sizeof_void_p=`cat conftest.val` | |
6589 | else | |
6590 | echo "$as_me: program exited with status $ac_status" >&5 | |
6591 | echo "$as_me: failed program was:" >&5 | |
6592 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6593 | ||
6594 | ( exit $ac_status ) | |
6595 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
6596 | See \`config.log' for more details." >&5 | |
6597 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
6598 | See \`config.log' for more details." >&2;} | |
6599 | { (exit 1); exit 1; }; } | |
6600 | fi | |
6601 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
6602 | fi | |
6603 | fi | |
6604 | rm -f conftest.val | |
6605 | else | |
6606 | ac_cv_sizeof_void_p=0 | |
6607 | fi | |
6608 | fi | |
6609 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 | |
6610 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 | |
6611 | cat >>confdefs.h <<_ACEOF | |
6612 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
6613 | _ACEOF | |
6614 | ||
6615 | ;; | |
6616 | esac | |
6617 | ||
6618 | # Lacking an uint64_t? Test size of long | |
6619 | case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in | |
6620 | stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5 | |
6621 | echo $ECHO_N "checking for long... $ECHO_C" >&6 | |
6622 | if test "${ac_cv_type_long+set}" = set; then | |
6623 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6624 | else | |
6625 | cat >conftest.$ac_ext <<_ACEOF | |
6626 | /* confdefs.h. */ | |
6627 | _ACEOF | |
6628 | cat confdefs.h >>conftest.$ac_ext | |
6629 | cat >>conftest.$ac_ext <<_ACEOF | |
6630 | /* end confdefs.h. */ | |
6631 | $ac_includes_default | |
6632 | int | |
6633 | main () | |
6634 | { | |
6635 | if ((long *) 0) | |
6636 | return 0; | |
6637 | if (sizeof (long)) | |
6638 | return 0; | |
6639 | ; | |
6640 | return 0; | |
6641 | } | |
6642 | _ACEOF | |
6643 | rm -f conftest.$ac_objext | |
6644 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6645 | (eval $ac_compile) 2>conftest.er1 | |
6646 | ac_status=$? | |
6647 | grep -v '^ *+' conftest.er1 >conftest.err | |
6648 | rm -f conftest.er1 | |
6649 | cat conftest.err >&5 | |
6650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6651 | (exit $ac_status); } && | |
d349482e AT |
6652 | { ac_try='test -z "$ac_c_werror_flag" |
6653 | || test ! -s conftest.err' | |
18cbfd85 PB |
6654 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6655 | (eval $ac_try) 2>&5 | |
6656 | ac_status=$? | |
6657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6658 | (exit $ac_status); }; } && | |
6659 | { ac_try='test -s conftest.$ac_objext' | |
6660 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6661 | (eval $ac_try) 2>&5 | |
6662 | ac_status=$? | |
6663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6664 | (exit $ac_status); }; }; then | |
6665 | ac_cv_type_long=yes | |
6666 | else | |
6667 | echo "$as_me: failed program was:" >&5 | |
6668 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6669 | ||
6670 | ac_cv_type_long=no | |
6671 | fi | |
6672 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6673 | fi | |
6674 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 | |
6675 | echo "${ECHO_T}$ac_cv_type_long" >&6 | |
6676 | ||
6677 | echo "$as_me:$LINENO: checking size of long" >&5 | |
6678 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
6679 | if test "${ac_cv_sizeof_long+set}" = set; then | |
6680 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6681 | else | |
6682 | if test "$ac_cv_type_long" = yes; then | |
6683 | # The cast to unsigned long works around a bug in the HP C Compiler | |
6684 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
6685 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
6686 | # This bug is HP SR number 8606223364. | |
6687 | if test "$cross_compiling" = yes; then | |
6688 | # Depending upon the size, compute the lo and hi bounds. | |
6689 | cat >conftest.$ac_ext <<_ACEOF | |
6690 | /* confdefs.h. */ | |
6691 | _ACEOF | |
6692 | cat confdefs.h >>conftest.$ac_ext | |
6693 | cat >>conftest.$ac_ext <<_ACEOF | |
6694 | /* end confdefs.h. */ | |
6695 | $ac_includes_default | |
6696 | int | |
6697 | main () | |
6698 | { | |
6699 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; | |
6700 | test_array [0] = 0 | |
6701 | ||
6702 | ; | |
6703 | return 0; | |
6704 | } | |
6705 | _ACEOF | |
6706 | rm -f conftest.$ac_objext | |
6707 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6708 | (eval $ac_compile) 2>conftest.er1 | |
6709 | ac_status=$? | |
6710 | grep -v '^ *+' conftest.er1 >conftest.err | |
6711 | rm -f conftest.er1 | |
6712 | cat conftest.err >&5 | |
6713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6714 | (exit $ac_status); } && | |
d349482e AT |
6715 | { ac_try='test -z "$ac_c_werror_flag" |
6716 | || test ! -s conftest.err' | |
18cbfd85 PB |
6717 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6718 | (eval $ac_try) 2>&5 | |
6719 | ac_status=$? | |
6720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6721 | (exit $ac_status); }; } && | |
6722 | { ac_try='test -s conftest.$ac_objext' | |
6723 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6724 | (eval $ac_try) 2>&5 | |
6725 | ac_status=$? | |
6726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6727 | (exit $ac_status); }; }; then | |
6728 | ac_lo=0 ac_mid=0 | |
6729 | while :; do | |
6730 | cat >conftest.$ac_ext <<_ACEOF | |
6731 | /* confdefs.h. */ | |
6732 | _ACEOF | |
6733 | cat confdefs.h >>conftest.$ac_ext | |
6734 | cat >>conftest.$ac_ext <<_ACEOF | |
6735 | /* end confdefs.h. */ | |
6736 | $ac_includes_default | |
6737 | int | |
6738 | main () | |
6739 | { | |
6740 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
6741 | test_array [0] = 0 | |
6742 | ||
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); } && | |
d349482e AT |
6756 | { ac_try='test -z "$ac_c_werror_flag" |
6757 | || test ! -s conftest.err' | |
18cbfd85 PB |
6758 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6759 | (eval $ac_try) 2>&5 | |
6760 | ac_status=$? | |
6761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6762 | (exit $ac_status); }; } && | |
6763 | { ac_try='test -s conftest.$ac_objext' | |
6764 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6765 | (eval $ac_try) 2>&5 | |
6766 | ac_status=$? | |
6767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6768 | (exit $ac_status); }; }; then | |
6769 | ac_hi=$ac_mid; break | |
6770 | else | |
6771 | echo "$as_me: failed program was:" >&5 | |
6772 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6773 | ||
6774 | ac_lo=`expr $ac_mid + 1` | |
6775 | if test $ac_lo -le $ac_mid; then | |
6776 | ac_lo= ac_hi= | |
6777 | break | |
6778 | fi | |
6779 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
6780 | fi | |
6781 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6782 | done | |
6783 | else | |
6784 | echo "$as_me: failed program was:" >&5 | |
6785 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6786 | ||
6787 | cat >conftest.$ac_ext <<_ACEOF | |
6788 | /* confdefs.h. */ | |
6789 | _ACEOF | |
6790 | cat confdefs.h >>conftest.$ac_ext | |
6791 | cat >>conftest.$ac_ext <<_ACEOF | |
6792 | /* end confdefs.h. */ | |
6793 | $ac_includes_default | |
6794 | int | |
6795 | main () | |
6796 | { | |
6797 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; | |
6798 | test_array [0] = 0 | |
6799 | ||
6800 | ; | |
6801 | return 0; | |
6802 | } | |
6803 | _ACEOF | |
6804 | rm -f conftest.$ac_objext | |
6805 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6806 | (eval $ac_compile) 2>conftest.er1 | |
6807 | ac_status=$? | |
6808 | grep -v '^ *+' conftest.er1 >conftest.err | |
6809 | rm -f conftest.er1 | |
6810 | cat conftest.err >&5 | |
6811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6812 | (exit $ac_status); } && | |
d349482e AT |
6813 | { ac_try='test -z "$ac_c_werror_flag" |
6814 | || test ! -s conftest.err' | |
18cbfd85 PB |
6815 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6816 | (eval $ac_try) 2>&5 | |
6817 | ac_status=$? | |
6818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6819 | (exit $ac_status); }; } && | |
6820 | { ac_try='test -s conftest.$ac_objext' | |
6821 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6822 | (eval $ac_try) 2>&5 | |
6823 | ac_status=$? | |
6824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6825 | (exit $ac_status); }; }; then | |
6826 | ac_hi=-1 ac_mid=-1 | |
6827 | while :; do | |
6828 | cat >conftest.$ac_ext <<_ACEOF | |
6829 | /* confdefs.h. */ | |
6830 | _ACEOF | |
6831 | cat confdefs.h >>conftest.$ac_ext | |
6832 | cat >>conftest.$ac_ext <<_ACEOF | |
6833 | /* end confdefs.h. */ | |
6834 | $ac_includes_default | |
6835 | int | |
6836 | main () | |
6837 | { | |
6838 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; | |
6839 | test_array [0] = 0 | |
6840 | ||
6841 | ; | |
6842 | return 0; | |
6843 | } | |
6844 | _ACEOF | |
6845 | rm -f conftest.$ac_objext | |
6846 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6847 | (eval $ac_compile) 2>conftest.er1 | |
6848 | ac_status=$? | |
6849 | grep -v '^ *+' conftest.er1 >conftest.err | |
6850 | rm -f conftest.er1 | |
6851 | cat conftest.err >&5 | |
6852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6853 | (exit $ac_status); } && | |
d349482e AT |
6854 | { ac_try='test -z "$ac_c_werror_flag" |
6855 | || test ! -s conftest.err' | |
18cbfd85 PB |
6856 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6857 | (eval $ac_try) 2>&5 | |
6858 | ac_status=$? | |
6859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6860 | (exit $ac_status); }; } && | |
6861 | { ac_try='test -s conftest.$ac_objext' | |
6862 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6863 | (eval $ac_try) 2>&5 | |
6864 | ac_status=$? | |
6865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6866 | (exit $ac_status); }; }; then | |
6867 | ac_lo=$ac_mid; break | |
6868 | else | |
6869 | echo "$as_me: failed program was:" >&5 | |
6870 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6871 | ||
6872 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
6873 | if test $ac_mid -le $ac_hi; then | |
6874 | ac_lo= ac_hi= | |
6875 | break | |
6876 | fi | |
6877 | ac_mid=`expr 2 '*' $ac_mid` | |
6878 | fi | |
6879 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6880 | done | |
6881 | else | |
6882 | echo "$as_me: failed program was:" >&5 | |
6883 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6884 | ||
6885 | ac_lo= ac_hi= | |
6886 | fi | |
6887 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6888 | fi | |
6889 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6890 | # Binary search between lo and hi bounds. | |
6891 | while test "x$ac_lo" != "x$ac_hi"; do | |
6892 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
6893 | cat >conftest.$ac_ext <<_ACEOF | |
6894 | /* confdefs.h. */ | |
6895 | _ACEOF | |
6896 | cat confdefs.h >>conftest.$ac_ext | |
6897 | cat >>conftest.$ac_ext <<_ACEOF | |
6898 | /* end confdefs.h. */ | |
6899 | $ac_includes_default | |
6900 | int | |
6901 | main () | |
6902 | { | |
6903 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
6904 | test_array [0] = 0 | |
6905 | ||
6906 | ; | |
6907 | return 0; | |
6908 | } | |
6909 | _ACEOF | |
6910 | rm -f conftest.$ac_objext | |
6911 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6912 | (eval $ac_compile) 2>conftest.er1 | |
6913 | ac_status=$? | |
6914 | grep -v '^ *+' conftest.er1 >conftest.err | |
6915 | rm -f conftest.er1 | |
6916 | cat conftest.err >&5 | |
6917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6918 | (exit $ac_status); } && | |
d349482e AT |
6919 | { ac_try='test -z "$ac_c_werror_flag" |
6920 | || test ! -s conftest.err' | |
18cbfd85 PB |
6921 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6922 | (eval $ac_try) 2>&5 | |
6923 | ac_status=$? | |
6924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6925 | (exit $ac_status); }; } && | |
6926 | { ac_try='test -s conftest.$ac_objext' | |
6927 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6928 | (eval $ac_try) 2>&5 | |
6929 | ac_status=$? | |
6930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6931 | (exit $ac_status); }; }; then | |
6932 | ac_hi=$ac_mid | |
6933 | else | |
6934 | echo "$as_me: failed program was:" >&5 | |
6935 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6936 | ||
6937 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
6938 | fi | |
6939 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6940 | done | |
6941 | case $ac_lo in | |
6942 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
6943 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
6944 | See \`config.log' for more details." >&5 | |
6945 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
6946 | See \`config.log' for more details." >&2;} | |
6947 | { (exit 1); exit 1; }; } ;; | |
6948 | esac | |
6949 | else | |
6950 | if test "$cross_compiling" = yes; then | |
d349482e AT |
6951 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
6952 | See \`config.log' for more details." >&5 | |
6953 | echo "$as_me: error: cannot run test program while cross compiling | |
6954 | See \`config.log' for more details." >&2;} | |
18cbfd85 PB |
6955 | { (exit 1); exit 1; }; } |
6956 | else | |
6957 | cat >conftest.$ac_ext <<_ACEOF | |
6958 | /* confdefs.h. */ | |
6959 | _ACEOF | |
6960 | cat confdefs.h >>conftest.$ac_ext | |
6961 | cat >>conftest.$ac_ext <<_ACEOF | |
6962 | /* end confdefs.h. */ | |
6963 | $ac_includes_default | |
6964 | long longval () { return (long) (sizeof (long)); } | |
6965 | unsigned long ulongval () { return (long) (sizeof (long)); } | |
6966 | #include <stdio.h> | |
6967 | #include <stdlib.h> | |
6968 | int | |
6969 | main () | |
6970 | { | |
6971 | ||
6972 | FILE *f = fopen ("conftest.val", "w"); | |
6973 | if (! f) | |
6974 | exit (1); | |
6975 | if (((long) (sizeof (long))) < 0) | |
6976 | { | |
6977 | long i = longval (); | |
6978 | if (i != ((long) (sizeof (long)))) | |
6979 | exit (1); | |
6980 | fprintf (f, "%ld\n", i); | |
6981 | } | |
6982 | else | |
6983 | { | |
6984 | unsigned long i = ulongval (); | |
6985 | if (i != ((long) (sizeof (long)))) | |
6986 | exit (1); | |
6987 | fprintf (f, "%lu\n", i); | |
6988 | } | |
6989 | exit (ferror (f) || fclose (f) != 0); | |
6990 | ||
6991 | ; | |
6992 | return 0; | |
6993 | } | |
6994 | _ACEOF | |
6995 | rm -f conftest$ac_exeext | |
6996 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6997 | (eval $ac_link) 2>&5 | |
6998 | ac_status=$? | |
6999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7000 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
7001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7002 | (eval $ac_try) 2>&5 | |
7003 | ac_status=$? | |
7004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7005 | (exit $ac_status); }; }; then | |
7006 | ac_cv_sizeof_long=`cat conftest.val` | |
7007 | else | |
7008 | echo "$as_me: program exited with status $ac_status" >&5 | |
7009 | echo "$as_me: failed program was:" >&5 | |
7010 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7011 | ||
7012 | ( exit $ac_status ) | |
7013 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
7014 | See \`config.log' for more details." >&5 | |
7015 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
7016 | See \`config.log' for more details." >&2;} | |
7017 | { (exit 1); exit 1; }; } | |
7018 | fi | |
7019 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
7020 | fi | |
7021 | fi | |
7022 | rm -f conftest.val | |
7023 | else | |
7024 | ac_cv_sizeof_long=0 | |
7025 | fi | |
7026 | fi | |
7027 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 | |
7028 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
7029 | cat >>confdefs.h <<_ACEOF | |
7030 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
7031 | _ACEOF | |
7032 | ||
7033 | ;; | |
7034 | esac | |
7035 | ||
7036 | if test $acx_cv_header_stdint = stddef.h; then | |
7037 | # Lacking a good header? Test size of everything and deduce all types. | |
7038 | echo "$as_me:$LINENO: checking for int" >&5 | |
7039 | echo $ECHO_N "checking for int... $ECHO_C" >&6 | |
7040 | if test "${ac_cv_type_int+set}" = set; then | |
7041 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7042 | else | |
7043 | cat >conftest.$ac_ext <<_ACEOF | |
7044 | /* confdefs.h. */ | |
7045 | _ACEOF | |
7046 | cat confdefs.h >>conftest.$ac_ext | |
7047 | cat >>conftest.$ac_ext <<_ACEOF | |
7048 | /* end confdefs.h. */ | |
7049 | $ac_includes_default | |
7050 | int | |
7051 | main () | |
7052 | { | |
7053 | if ((int *) 0) | |
7054 | return 0; | |
7055 | if (sizeof (int)) | |
7056 | return 0; | |
7057 | ; | |
7058 | return 0; | |
7059 | } | |
7060 | _ACEOF | |
7061 | rm -f conftest.$ac_objext | |
7062 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7063 | (eval $ac_compile) 2>conftest.er1 | |
7064 | ac_status=$? | |
7065 | grep -v '^ *+' conftest.er1 >conftest.err | |
7066 | rm -f conftest.er1 | |
7067 | cat conftest.err >&5 | |
7068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7069 | (exit $ac_status); } && | |
d349482e AT |
7070 | { ac_try='test -z "$ac_c_werror_flag" |
7071 | || test ! -s conftest.err' | |
18cbfd85 PB |
7072 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7073 | (eval $ac_try) 2>&5 | |
7074 | ac_status=$? | |
7075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7076 | (exit $ac_status); }; } && | |
7077 | { ac_try='test -s conftest.$ac_objext' | |
7078 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7079 | (eval $ac_try) 2>&5 | |
7080 | ac_status=$? | |
7081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7082 | (exit $ac_status); }; }; then | |
7083 | ac_cv_type_int=yes | |
7084 | else | |
7085 | echo "$as_me: failed program was:" >&5 | |
7086 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7087 | ||
7088 | ac_cv_type_int=no | |
7089 | fi | |
7090 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7091 | fi | |
7092 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 | |
7093 | echo "${ECHO_T}$ac_cv_type_int" >&6 | |
7094 | ||
7095 | echo "$as_me:$LINENO: checking size of int" >&5 | |
7096 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 | |
7097 | if test "${ac_cv_sizeof_int+set}" = set; then | |
7098 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7099 | else | |
7100 | if test "$ac_cv_type_int" = yes; then | |
7101 | # The cast to unsigned long works around a bug in the HP C Compiler | |
7102 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
7103 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
7104 | # This bug is HP SR number 8606223364. | |
7105 | if test "$cross_compiling" = yes; then | |
7106 | # Depending upon the size, compute the lo and hi bounds. | |
7107 | cat >conftest.$ac_ext <<_ACEOF | |
7108 | /* confdefs.h. */ | |
7109 | _ACEOF | |
7110 | cat confdefs.h >>conftest.$ac_ext | |
7111 | cat >>conftest.$ac_ext <<_ACEOF | |
7112 | /* end confdefs.h. */ | |
7113 | $ac_includes_default | |
7114 | int | |
7115 | main () | |
7116 | { | |
7117 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; | |
7118 | test_array [0] = 0 | |
7119 | ||
7120 | ; | |
7121 | return 0; | |
7122 | } | |
7123 | _ACEOF | |
7124 | rm -f conftest.$ac_objext | |
7125 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7126 | (eval $ac_compile) 2>conftest.er1 | |
7127 | ac_status=$? | |
7128 | grep -v '^ *+' conftest.er1 >conftest.err | |
7129 | rm -f conftest.er1 | |
7130 | cat conftest.err >&5 | |
7131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7132 | (exit $ac_status); } && | |
d349482e AT |
7133 | { ac_try='test -z "$ac_c_werror_flag" |
7134 | || test ! -s conftest.err' | |
18cbfd85 PB |
7135 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7136 | (eval $ac_try) 2>&5 | |
7137 | ac_status=$? | |
7138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7139 | (exit $ac_status); }; } && | |
7140 | { ac_try='test -s conftest.$ac_objext' | |
7141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7142 | (eval $ac_try) 2>&5 | |
7143 | ac_status=$? | |
7144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7145 | (exit $ac_status); }; }; then | |
7146 | ac_lo=0 ac_mid=0 | |
7147 | while :; do | |
7148 | cat >conftest.$ac_ext <<_ACEOF | |
7149 | /* confdefs.h. */ | |
7150 | _ACEOF | |
7151 | cat confdefs.h >>conftest.$ac_ext | |
7152 | cat >>conftest.$ac_ext <<_ACEOF | |
7153 | /* end confdefs.h. */ | |
7154 | $ac_includes_default | |
7155 | int | |
7156 | main () | |
7157 | { | |
7158 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
7159 | test_array [0] = 0 | |
7160 | ||
7161 | ; | |
7162 | return 0; | |
7163 | } | |
7164 | _ACEOF | |
7165 | rm -f conftest.$ac_objext | |
7166 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7167 | (eval $ac_compile) 2>conftest.er1 | |
7168 | ac_status=$? | |
7169 | grep -v '^ *+' conftest.er1 >conftest.err | |
7170 | rm -f conftest.er1 | |
7171 | cat conftest.err >&5 | |
7172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7173 | (exit $ac_status); } && | |
d349482e AT |
7174 | { ac_try='test -z "$ac_c_werror_flag" |
7175 | || test ! -s conftest.err' | |
18cbfd85 PB |
7176 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7177 | (eval $ac_try) 2>&5 | |
7178 | ac_status=$? | |
7179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7180 | (exit $ac_status); }; } && | |
7181 | { ac_try='test -s conftest.$ac_objext' | |
7182 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7183 | (eval $ac_try) 2>&5 | |
7184 | ac_status=$? | |
7185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7186 | (exit $ac_status); }; }; then | |
7187 | ac_hi=$ac_mid; break | |
7188 | else | |
7189 | echo "$as_me: failed program was:" >&5 | |
7190 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7191 | ||
7192 | ac_lo=`expr $ac_mid + 1` | |
7193 | if test $ac_lo -le $ac_mid; then | |
7194 | ac_lo= ac_hi= | |
7195 | break | |
7196 | fi | |
7197 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
7198 | fi | |
7199 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7200 | done | |
7201 | else | |
7202 | echo "$as_me: failed program was:" >&5 | |
7203 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7204 | ||
7205 | cat >conftest.$ac_ext <<_ACEOF | |
7206 | /* confdefs.h. */ | |
7207 | _ACEOF | |
7208 | cat confdefs.h >>conftest.$ac_ext | |
7209 | cat >>conftest.$ac_ext <<_ACEOF | |
7210 | /* end confdefs.h. */ | |
7211 | $ac_includes_default | |
7212 | int | |
7213 | main () | |
7214 | { | |
7215 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; | |
7216 | test_array [0] = 0 | |
7217 | ||
7218 | ; | |
7219 | return 0; | |
7220 | } | |
7221 | _ACEOF | |
7222 | rm -f conftest.$ac_objext | |
7223 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7224 | (eval $ac_compile) 2>conftest.er1 | |
7225 | ac_status=$? | |
7226 | grep -v '^ *+' conftest.er1 >conftest.err | |
7227 | rm -f conftest.er1 | |
7228 | cat conftest.err >&5 | |
7229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7230 | (exit $ac_status); } && | |
d349482e AT |
7231 | { ac_try='test -z "$ac_c_werror_flag" |
7232 | || test ! -s conftest.err' | |
18cbfd85 PB |
7233 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7234 | (eval $ac_try) 2>&5 | |
7235 | ac_status=$? | |
7236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7237 | (exit $ac_status); }; } && | |
7238 | { ac_try='test -s conftest.$ac_objext' | |
7239 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7240 | (eval $ac_try) 2>&5 | |
7241 | ac_status=$? | |
7242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7243 | (exit $ac_status); }; }; then | |
7244 | ac_hi=-1 ac_mid=-1 | |
7245 | while :; do | |
7246 | cat >conftest.$ac_ext <<_ACEOF | |
7247 | /* confdefs.h. */ | |
7248 | _ACEOF | |
7249 | cat confdefs.h >>conftest.$ac_ext | |
7250 | cat >>conftest.$ac_ext <<_ACEOF | |
7251 | /* end confdefs.h. */ | |
7252 | $ac_includes_default | |
7253 | int | |
7254 | main () | |
7255 | { | |
7256 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; | |
7257 | test_array [0] = 0 | |
7258 | ||
7259 | ; | |
7260 | return 0; | |
7261 | } | |
7262 | _ACEOF | |
7263 | rm -f conftest.$ac_objext | |
7264 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7265 | (eval $ac_compile) 2>conftest.er1 | |
7266 | ac_status=$? | |
7267 | grep -v '^ *+' conftest.er1 >conftest.err | |
7268 | rm -f conftest.er1 | |
7269 | cat conftest.err >&5 | |
7270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7271 | (exit $ac_status); } && | |
d349482e AT |
7272 | { ac_try='test -z "$ac_c_werror_flag" |
7273 | || test ! -s conftest.err' | |
18cbfd85 PB |
7274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7275 | (eval $ac_try) 2>&5 | |
7276 | ac_status=$? | |
7277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7278 | (exit $ac_status); }; } && | |
7279 | { ac_try='test -s conftest.$ac_objext' | |
7280 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7281 | (eval $ac_try) 2>&5 | |
7282 | ac_status=$? | |
7283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7284 | (exit $ac_status); }; }; then | |
7285 | ac_lo=$ac_mid; break | |
7286 | else | |
7287 | echo "$as_me: failed program was:" >&5 | |
7288 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7289 | ||
7290 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
7291 | if test $ac_mid -le $ac_hi; then | |
7292 | ac_lo= ac_hi= | |
7293 | break | |
7294 | fi | |
7295 | ac_mid=`expr 2 '*' $ac_mid` | |
7296 | fi | |
7297 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7298 | done | |
7299 | else | |
7300 | echo "$as_me: failed program was:" >&5 | |
7301 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7302 | ||
7303 | ac_lo= ac_hi= | |
7304 | fi | |
7305 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7306 | fi | |
7307 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7308 | # Binary search between lo and hi bounds. | |
7309 | while test "x$ac_lo" != "x$ac_hi"; do | |
7310 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
7311 | cat >conftest.$ac_ext <<_ACEOF | |
7312 | /* confdefs.h. */ | |
7313 | _ACEOF | |
7314 | cat confdefs.h >>conftest.$ac_ext | |
7315 | cat >>conftest.$ac_ext <<_ACEOF | |
7316 | /* end confdefs.h. */ | |
7317 | $ac_includes_default | |
7318 | int | |
7319 | main () | |
7320 | { | |
7321 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
7322 | test_array [0] = 0 | |
7323 | ||
7324 | ; | |
7325 | return 0; | |
7326 | } | |
7327 | _ACEOF | |
7328 | rm -f conftest.$ac_objext | |
7329 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7330 | (eval $ac_compile) 2>conftest.er1 | |
7331 | ac_status=$? | |
7332 | grep -v '^ *+' conftest.er1 >conftest.err | |
7333 | rm -f conftest.er1 | |
7334 | cat conftest.err >&5 | |
7335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7336 | (exit $ac_status); } && | |
d349482e AT |
7337 | { ac_try='test -z "$ac_c_werror_flag" |
7338 | || test ! -s conftest.err' | |
18cbfd85 PB |
7339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7340 | (eval $ac_try) 2>&5 | |
7341 | ac_status=$? | |
7342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7343 | (exit $ac_status); }; } && | |
7344 | { ac_try='test -s conftest.$ac_objext' | |
7345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7346 | (eval $ac_try) 2>&5 | |
7347 | ac_status=$? | |
7348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7349 | (exit $ac_status); }; }; then | |
7350 | ac_hi=$ac_mid | |
7351 | else | |
7352 | echo "$as_me: failed program was:" >&5 | |
7353 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7354 | ||
7355 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
7356 | fi | |
7357 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7358 | done | |
7359 | case $ac_lo in | |
7360 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
7361 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
7362 | See \`config.log' for more details." >&5 | |
7363 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
7364 | See \`config.log' for more details." >&2;} | |
7365 | { (exit 1); exit 1; }; } ;; | |
7366 | esac | |
7367 | else | |
7368 | if test "$cross_compiling" = yes; then | |
d349482e AT |
7369 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
7370 | See \`config.log' for more details." >&5 | |
7371 | echo "$as_me: error: cannot run test program while cross compiling | |
7372 | See \`config.log' for more details." >&2;} | |
18cbfd85 PB |
7373 | { (exit 1); exit 1; }; } |
7374 | else | |
7375 | cat >conftest.$ac_ext <<_ACEOF | |
7376 | /* confdefs.h. */ | |
7377 | _ACEOF | |
7378 | cat confdefs.h >>conftest.$ac_ext | |
7379 | cat >>conftest.$ac_ext <<_ACEOF | |
7380 | /* end confdefs.h. */ | |
7381 | $ac_includes_default | |
7382 | long longval () { return (long) (sizeof (int)); } | |
7383 | unsigned long ulongval () { return (long) (sizeof (int)); } | |
7384 | #include <stdio.h> | |
7385 | #include <stdlib.h> | |
7386 | int | |
7387 | main () | |
7388 | { | |
7389 | ||
7390 | FILE *f = fopen ("conftest.val", "w"); | |
7391 | if (! f) | |
7392 | exit (1); | |
7393 | if (((long) (sizeof (int))) < 0) | |
7394 | { | |
7395 | long i = longval (); | |
7396 | if (i != ((long) (sizeof (int)))) | |
7397 | exit (1); | |
7398 | fprintf (f, "%ld\n", i); | |
7399 | } | |
7400 | else | |
7401 | { | |
7402 | unsigned long i = ulongval (); | |
7403 | if (i != ((long) (sizeof (int)))) | |
7404 | exit (1); | |
7405 | fprintf (f, "%lu\n", i); | |
7406 | } | |
7407 | exit (ferror (f) || fclose (f) != 0); | |
7408 | ||
7409 | ; | |
7410 | return 0; | |
7411 | } | |
7412 | _ACEOF | |
7413 | rm -f conftest$ac_exeext | |
7414 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7415 | (eval $ac_link) 2>&5 | |
7416 | ac_status=$? | |
7417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7418 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
7419 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7420 | (eval $ac_try) 2>&5 | |
7421 | ac_status=$? | |
7422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7423 | (exit $ac_status); }; }; then | |
7424 | ac_cv_sizeof_int=`cat conftest.val` | |
7425 | else | |
7426 | echo "$as_me: program exited with status $ac_status" >&5 | |
7427 | echo "$as_me: failed program was:" >&5 | |
7428 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7429 | ||
7430 | ( exit $ac_status ) | |
7431 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
7432 | See \`config.log' for more details." >&5 | |
7433 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
7434 | See \`config.log' for more details." >&2;} | |
7435 | { (exit 1); exit 1; }; } | |
7436 | fi | |
7437 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
7438 | fi | |
7439 | fi | |
7440 | rm -f conftest.val | |
7441 | else | |
7442 | ac_cv_sizeof_int=0 | |
7443 | fi | |
7444 | fi | |
7445 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 | |
7446 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | |
7447 | cat >>confdefs.h <<_ACEOF | |
7448 | #define SIZEOF_INT $ac_cv_sizeof_int | |
7449 | _ACEOF | |
7450 | ||
7451 | ||
7452 | echo "$as_me:$LINENO: checking for short" >&5 | |
7453 | echo $ECHO_N "checking for short... $ECHO_C" >&6 | |
7454 | if test "${ac_cv_type_short+set}" = set; then | |
7455 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7456 | else | |
7457 | cat >conftest.$ac_ext <<_ACEOF | |
7458 | /* confdefs.h. */ | |
7459 | _ACEOF | |
7460 | cat confdefs.h >>conftest.$ac_ext | |
7461 | cat >>conftest.$ac_ext <<_ACEOF | |
7462 | /* end confdefs.h. */ | |
7463 | $ac_includes_default | |
7464 | int | |
7465 | main () | |
7466 | { | |
7467 | if ((short *) 0) | |
7468 | return 0; | |
7469 | if (sizeof (short)) | |
7470 | return 0; | |
7471 | ; | |
7472 | return 0; | |
7473 | } | |
7474 | _ACEOF | |
7475 | rm -f conftest.$ac_objext | |
7476 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7477 | (eval $ac_compile) 2>conftest.er1 | |
7478 | ac_status=$? | |
7479 | grep -v '^ *+' conftest.er1 >conftest.err | |
7480 | rm -f conftest.er1 | |
7481 | cat conftest.err >&5 | |
7482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7483 | (exit $ac_status); } && | |
d349482e AT |
7484 | { ac_try='test -z "$ac_c_werror_flag" |
7485 | || test ! -s conftest.err' | |
18cbfd85 PB |
7486 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7487 | (eval $ac_try) 2>&5 | |
7488 | ac_status=$? | |
7489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7490 | (exit $ac_status); }; } && | |
7491 | { ac_try='test -s conftest.$ac_objext' | |
7492 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7493 | (eval $ac_try) 2>&5 | |
7494 | ac_status=$? | |
7495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7496 | (exit $ac_status); }; }; then | |
7497 | ac_cv_type_short=yes | |
7498 | else | |
7499 | echo "$as_me: failed program was:" >&5 | |
7500 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7501 | ||
7502 | ac_cv_type_short=no | |
7503 | fi | |
7504 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7505 | fi | |
7506 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 | |
7507 | echo "${ECHO_T}$ac_cv_type_short" >&6 | |
7508 | ||
7509 | echo "$as_me:$LINENO: checking size of short" >&5 | |
7510 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 | |
7511 | if test "${ac_cv_sizeof_short+set}" = set; then | |
7512 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7513 | else | |
7514 | if test "$ac_cv_type_short" = yes; then | |
7515 | # The cast to unsigned long works around a bug in the HP C Compiler | |
7516 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
7517 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
7518 | # This bug is HP SR number 8606223364. | |
7519 | if test "$cross_compiling" = yes; then | |
7520 | # Depending upon the size, compute the lo and hi bounds. | |
7521 | cat >conftest.$ac_ext <<_ACEOF | |
7522 | /* confdefs.h. */ | |
7523 | _ACEOF | |
7524 | cat confdefs.h >>conftest.$ac_ext | |
7525 | cat >>conftest.$ac_ext <<_ACEOF | |
7526 | /* end confdefs.h. */ | |
7527 | $ac_includes_default | |
7528 | int | |
7529 | main () | |
7530 | { | |
7531 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; | |
7532 | test_array [0] = 0 | |
7533 | ||
7534 | ; | |
7535 | return 0; | |
7536 | } | |
7537 | _ACEOF | |
7538 | rm -f conftest.$ac_objext | |
7539 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7540 | (eval $ac_compile) 2>conftest.er1 | |
7541 | ac_status=$? | |
7542 | grep -v '^ *+' conftest.er1 >conftest.err | |
7543 | rm -f conftest.er1 | |
7544 | cat conftest.err >&5 | |
7545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7546 | (exit $ac_status); } && | |
d349482e AT |
7547 | { ac_try='test -z "$ac_c_werror_flag" |
7548 | || test ! -s conftest.err' | |
18cbfd85 PB |
7549 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7550 | (eval $ac_try) 2>&5 | |
7551 | ac_status=$? | |
7552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7553 | (exit $ac_status); }; } && | |
7554 | { ac_try='test -s conftest.$ac_objext' | |
7555 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7556 | (eval $ac_try) 2>&5 | |
7557 | ac_status=$? | |
7558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7559 | (exit $ac_status); }; }; then | |
7560 | ac_lo=0 ac_mid=0 | |
7561 | while :; do | |
7562 | cat >conftest.$ac_ext <<_ACEOF | |
7563 | /* confdefs.h. */ | |
7564 | _ACEOF | |
7565 | cat confdefs.h >>conftest.$ac_ext | |
7566 | cat >>conftest.$ac_ext <<_ACEOF | |
7567 | /* end confdefs.h. */ | |
7568 | $ac_includes_default | |
7569 | int | |
7570 | main () | |
7571 | { | |
7572 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
7573 | test_array [0] = 0 | |
7574 | ||
7575 | ; | |
7576 | return 0; | |
7577 | } | |
7578 | _ACEOF | |
7579 | rm -f conftest.$ac_objext | |
7580 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7581 | (eval $ac_compile) 2>conftest.er1 | |
7582 | ac_status=$? | |
7583 | grep -v '^ *+' conftest.er1 >conftest.err | |
7584 | rm -f conftest.er1 | |
7585 | cat conftest.err >&5 | |
7586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7587 | (exit $ac_status); } && | |
d349482e AT |
7588 | { ac_try='test -z "$ac_c_werror_flag" |
7589 | || test ! -s conftest.err' | |
18cbfd85 PB |
7590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7591 | (eval $ac_try) 2>&5 | |
7592 | ac_status=$? | |
7593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7594 | (exit $ac_status); }; } && | |
7595 | { ac_try='test -s conftest.$ac_objext' | |
7596 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7597 | (eval $ac_try) 2>&5 | |
7598 | ac_status=$? | |
7599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7600 | (exit $ac_status); }; }; then | |
7601 | ac_hi=$ac_mid; break | |
7602 | else | |
7603 | echo "$as_me: failed program was:" >&5 | |
7604 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7605 | ||
7606 | ac_lo=`expr $ac_mid + 1` | |
7607 | if test $ac_lo -le $ac_mid; then | |
7608 | ac_lo= ac_hi= | |
7609 | break | |
7610 | fi | |
7611 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
7612 | fi | |
7613 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7614 | done | |
7615 | else | |
7616 | echo "$as_me: failed program was:" >&5 | |
7617 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7618 | ||
7619 | cat >conftest.$ac_ext <<_ACEOF | |
7620 | /* confdefs.h. */ | |
7621 | _ACEOF | |
7622 | cat confdefs.h >>conftest.$ac_ext | |
7623 | cat >>conftest.$ac_ext <<_ACEOF | |
7624 | /* end confdefs.h. */ | |
7625 | $ac_includes_default | |
7626 | int | |
7627 | main () | |
7628 | { | |
7629 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; | |
7630 | test_array [0] = 0 | |
7631 | ||
7632 | ; | |
7633 | return 0; | |
7634 | } | |
7635 | _ACEOF | |
7636 | rm -f conftest.$ac_objext | |
7637 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7638 | (eval $ac_compile) 2>conftest.er1 | |
7639 | ac_status=$? | |
7640 | grep -v '^ *+' conftest.er1 >conftest.err | |
7641 | rm -f conftest.er1 | |
7642 | cat conftest.err >&5 | |
7643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7644 | (exit $ac_status); } && | |
d349482e AT |
7645 | { ac_try='test -z "$ac_c_werror_flag" |
7646 | || test ! -s conftest.err' | |
18cbfd85 PB |
7647 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7648 | (eval $ac_try) 2>&5 | |
7649 | ac_status=$? | |
7650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7651 | (exit $ac_status); }; } && | |
7652 | { ac_try='test -s conftest.$ac_objext' | |
7653 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7654 | (eval $ac_try) 2>&5 | |
7655 | ac_status=$? | |
7656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7657 | (exit $ac_status); }; }; then | |
7658 | ac_hi=-1 ac_mid=-1 | |
7659 | while :; do | |
7660 | cat >conftest.$ac_ext <<_ACEOF | |
7661 | /* confdefs.h. */ | |
7662 | _ACEOF | |
7663 | cat confdefs.h >>conftest.$ac_ext | |
7664 | cat >>conftest.$ac_ext <<_ACEOF | |
7665 | /* end confdefs.h. */ | |
7666 | $ac_includes_default | |
7667 | int | |
7668 | main () | |
7669 | { | |
7670 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; | |
7671 | test_array [0] = 0 | |
7672 | ||
7673 | ; | |
7674 | return 0; | |
7675 | } | |
7676 | _ACEOF | |
7677 | rm -f conftest.$ac_objext | |
7678 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7679 | (eval $ac_compile) 2>conftest.er1 | |
7680 | ac_status=$? | |
7681 | grep -v '^ *+' conftest.er1 >conftest.err | |
7682 | rm -f conftest.er1 | |
7683 | cat conftest.err >&5 | |
7684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7685 | (exit $ac_status); } && | |
d349482e AT |
7686 | { ac_try='test -z "$ac_c_werror_flag" |
7687 | || test ! -s conftest.err' | |
18cbfd85 PB |
7688 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7689 | (eval $ac_try) 2>&5 | |
7690 | ac_status=$? | |
7691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7692 | (exit $ac_status); }; } && | |
7693 | { ac_try='test -s conftest.$ac_objext' | |
7694 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7695 | (eval $ac_try) 2>&5 | |
7696 | ac_status=$? | |
7697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7698 | (exit $ac_status); }; }; then | |
7699 | ac_lo=$ac_mid; break | |
7700 | else | |
7701 | echo "$as_me: failed program was:" >&5 | |
7702 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7703 | ||
7704 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
7705 | if test $ac_mid -le $ac_hi; then | |
7706 | ac_lo= ac_hi= | |
7707 | break | |
7708 | fi | |
7709 | ac_mid=`expr 2 '*' $ac_mid` | |
7710 | fi | |
7711 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7712 | done | |
7713 | else | |
7714 | echo "$as_me: failed program was:" >&5 | |
7715 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7716 | ||
7717 | ac_lo= ac_hi= | |
7718 | fi | |
7719 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7720 | fi | |
7721 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7722 | # Binary search between lo and hi bounds. | |
7723 | while test "x$ac_lo" != "x$ac_hi"; do | |
7724 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
7725 | cat >conftest.$ac_ext <<_ACEOF | |
7726 | /* confdefs.h. */ | |
7727 | _ACEOF | |
7728 | cat confdefs.h >>conftest.$ac_ext | |
7729 | cat >>conftest.$ac_ext <<_ACEOF | |
7730 | /* end confdefs.h. */ | |
7731 | $ac_includes_default | |
7732 | int | |
7733 | main () | |
7734 | { | |
7735 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
7736 | test_array [0] = 0 | |
7737 | ||
7738 | ; | |
7739 | return 0; | |
7740 | } | |
7741 | _ACEOF | |
7742 | rm -f conftest.$ac_objext | |
7743 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7744 | (eval $ac_compile) 2>conftest.er1 | |
7745 | ac_status=$? | |
7746 | grep -v '^ *+' conftest.er1 >conftest.err | |
7747 | rm -f conftest.er1 | |
7748 | cat conftest.err >&5 | |
7749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7750 | (exit $ac_status); } && | |
d349482e AT |
7751 | { ac_try='test -z "$ac_c_werror_flag" |
7752 | || test ! -s conftest.err' | |
18cbfd85 PB |
7753 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7754 | (eval $ac_try) 2>&5 | |
7755 | ac_status=$? | |
7756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7757 | (exit $ac_status); }; } && | |
7758 | { ac_try='test -s conftest.$ac_objext' | |
7759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7760 | (eval $ac_try) 2>&5 | |
7761 | ac_status=$? | |
7762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7763 | (exit $ac_status); }; }; then | |
7764 | ac_hi=$ac_mid | |
7765 | else | |
7766 | echo "$as_me: failed program was:" >&5 | |
7767 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7768 | ||
7769 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
7770 | fi | |
7771 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7772 | done | |
7773 | case $ac_lo in | |
7774 | ?*) ac_cv_sizeof_short=$ac_lo;; | |
7775 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
7776 | See \`config.log' for more details." >&5 | |
7777 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
7778 | See \`config.log' for more details." >&2;} | |
7779 | { (exit 1); exit 1; }; } ;; | |
7780 | esac | |
7781 | else | |
7782 | if test "$cross_compiling" = yes; then | |
d349482e AT |
7783 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
7784 | See \`config.log' for more details." >&5 | |
7785 | echo "$as_me: error: cannot run test program while cross compiling | |
7786 | See \`config.log' for more details." >&2;} | |
18cbfd85 PB |
7787 | { (exit 1); exit 1; }; } |
7788 | else | |
7789 | cat >conftest.$ac_ext <<_ACEOF | |
7790 | /* confdefs.h. */ | |
7791 | _ACEOF | |
7792 | cat confdefs.h >>conftest.$ac_ext | |
7793 | cat >>conftest.$ac_ext <<_ACEOF | |
7794 | /* end confdefs.h. */ | |
7795 | $ac_includes_default | |
7796 | long longval () { return (long) (sizeof (short)); } | |
7797 | unsigned long ulongval () { return (long) (sizeof (short)); } | |
7798 | #include <stdio.h> | |
7799 | #include <stdlib.h> | |
7800 | int | |
7801 | main () | |
7802 | { | |
7803 | ||
7804 | FILE *f = fopen ("conftest.val", "w"); | |
7805 | if (! f) | |
7806 | exit (1); | |
7807 | if (((long) (sizeof (short))) < 0) | |
7808 | { | |
7809 | long i = longval (); | |
7810 | if (i != ((long) (sizeof (short)))) | |
7811 | exit (1); | |
7812 | fprintf (f, "%ld\n", i); | |
7813 | } | |
7814 | else | |
7815 | { | |
7816 | unsigned long i = ulongval (); | |
7817 | if (i != ((long) (sizeof (short)))) | |
7818 | exit (1); | |
7819 | fprintf (f, "%lu\n", i); | |
7820 | } | |
7821 | exit (ferror (f) || fclose (f) != 0); | |
7822 | ||
7823 | ; | |
7824 | return 0; | |
7825 | } | |
7826 | _ACEOF | |
7827 | rm -f conftest$ac_exeext | |
7828 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7829 | (eval $ac_link) 2>&5 | |
7830 | ac_status=$? | |
7831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7832 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
7833 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7834 | (eval $ac_try) 2>&5 | |
7835 | ac_status=$? | |
7836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7837 | (exit $ac_status); }; }; then | |
7838 | ac_cv_sizeof_short=`cat conftest.val` | |
7839 | else | |
7840 | echo "$as_me: program exited with status $ac_status" >&5 | |
7841 | echo "$as_me: failed program was:" >&5 | |
7842 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7843 | ||
7844 | ( exit $ac_status ) | |
7845 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
7846 | See \`config.log' for more details." >&5 | |
7847 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
7848 | See \`config.log' for more details." >&2;} | |
7849 | { (exit 1); exit 1; }; } | |
7850 | fi | |
7851 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
7852 | fi | |
7853 | fi | |
7854 | rm -f conftest.val | |
7855 | else | |
7856 | ac_cv_sizeof_short=0 | |
7857 | fi | |
7858 | fi | |
7859 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 | |
7860 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 | |
7861 | cat >>confdefs.h <<_ACEOF | |
7862 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
7863 | _ACEOF | |
7864 | ||
7865 | ||
7866 | echo "$as_me:$LINENO: checking for char" >&5 | |
7867 | echo $ECHO_N "checking for char... $ECHO_C" >&6 | |
7868 | if test "${ac_cv_type_char+set}" = set; then | |
7869 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7870 | else | |
7871 | cat >conftest.$ac_ext <<_ACEOF | |
7872 | /* confdefs.h. */ | |
7873 | _ACEOF | |
7874 | cat confdefs.h >>conftest.$ac_ext | |
7875 | cat >>conftest.$ac_ext <<_ACEOF | |
7876 | /* end confdefs.h. */ | |
7877 | $ac_includes_default | |
7878 | int | |
7879 | main () | |
7880 | { | |
7881 | if ((char *) 0) | |
7882 | return 0; | |
7883 | if (sizeof (char)) | |
7884 | return 0; | |
7885 | ; | |
7886 | return 0; | |
7887 | } | |
7888 | _ACEOF | |
7889 | rm -f conftest.$ac_objext | |
7890 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7891 | (eval $ac_compile) 2>conftest.er1 | |
7892 | ac_status=$? | |
7893 | grep -v '^ *+' conftest.er1 >conftest.err | |
7894 | rm -f conftest.er1 | |
7895 | cat conftest.err >&5 | |
7896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7897 | (exit $ac_status); } && | |
d349482e AT |
7898 | { ac_try='test -z "$ac_c_werror_flag" |
7899 | || test ! -s conftest.err' | |
18cbfd85 PB |
7900 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7901 | (eval $ac_try) 2>&5 | |
7902 | ac_status=$? | |
7903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7904 | (exit $ac_status); }; } && | |
7905 | { ac_try='test -s conftest.$ac_objext' | |
7906 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7907 | (eval $ac_try) 2>&5 | |
7908 | ac_status=$? | |
7909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7910 | (exit $ac_status); }; }; then | |
7911 | ac_cv_type_char=yes | |
7912 | else | |
7913 | echo "$as_me: failed program was:" >&5 | |
7914 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7915 | ||
7916 | ac_cv_type_char=no | |
7917 | fi | |
7918 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7919 | fi | |
7920 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 | |
7921 | echo "${ECHO_T}$ac_cv_type_char" >&6 | |
7922 | ||
7923 | echo "$as_me:$LINENO: checking size of char" >&5 | |
7924 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 | |
7925 | if test "${ac_cv_sizeof_char+set}" = set; then | |
7926 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7927 | else | |
7928 | if test "$ac_cv_type_char" = yes; then | |
7929 | # The cast to unsigned long works around a bug in the HP C Compiler | |
7930 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
7931 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
7932 | # This bug is HP SR number 8606223364. | |
7933 | if test "$cross_compiling" = yes; then | |
7934 | # Depending upon the size, compute the lo and hi bounds. | |
7935 | cat >conftest.$ac_ext <<_ACEOF | |
7936 | /* confdefs.h. */ | |
7937 | _ACEOF | |
7938 | cat confdefs.h >>conftest.$ac_ext | |
7939 | cat >>conftest.$ac_ext <<_ACEOF | |
7940 | /* end confdefs.h. */ | |
7941 | $ac_includes_default | |
7942 | int | |
7943 | main () | |
7944 | { | |
7945 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; | |
7946 | test_array [0] = 0 | |
7947 | ||
7948 | ; | |
7949 | return 0; | |
7950 | } | |
7951 | _ACEOF | |
7952 | rm -f conftest.$ac_objext | |
7953 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7954 | (eval $ac_compile) 2>conftest.er1 | |
7955 | ac_status=$? | |
7956 | grep -v '^ *+' conftest.er1 >conftest.err | |
7957 | rm -f conftest.er1 | |
7958 | cat conftest.err >&5 | |
7959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7960 | (exit $ac_status); } && | |
d349482e AT |
7961 | { ac_try='test -z "$ac_c_werror_flag" |
7962 | || test ! -s conftest.err' | |
18cbfd85 PB |
7963 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7964 | (eval $ac_try) 2>&5 | |
7965 | ac_status=$? | |
7966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7967 | (exit $ac_status); }; } && | |
7968 | { ac_try='test -s conftest.$ac_objext' | |
7969 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7970 | (eval $ac_try) 2>&5 | |
7971 | ac_status=$? | |
7972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7973 | (exit $ac_status); }; }; then | |
7974 | ac_lo=0 ac_mid=0 | |
7975 | while :; do | |
7976 | cat >conftest.$ac_ext <<_ACEOF | |
7977 | /* confdefs.h. */ | |
7978 | _ACEOF | |
7979 | cat confdefs.h >>conftest.$ac_ext | |
7980 | cat >>conftest.$ac_ext <<_ACEOF | |
7981 | /* end confdefs.h. */ | |
7982 | $ac_includes_default | |
7983 | int | |
7984 | main () | |
7985 | { | |
7986 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
7987 | test_array [0] = 0 | |
7988 | ||
7989 | ; | |
7990 | return 0; | |
7991 | } | |
7992 | _ACEOF | |
7993 | rm -f conftest.$ac_objext | |
7994 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7995 | (eval $ac_compile) 2>conftest.er1 | |
7996 | ac_status=$? | |
7997 | grep -v '^ *+' conftest.er1 >conftest.err | |
7998 | rm -f conftest.er1 | |
7999 | cat conftest.err >&5 | |
8000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8001 | (exit $ac_status); } && | |
d349482e AT |
8002 | { ac_try='test -z "$ac_c_werror_flag" |
8003 | || test ! -s conftest.err' | |
18cbfd85 PB |
8004 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8005 | (eval $ac_try) 2>&5 | |
8006 | ac_status=$? | |
8007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8008 | (exit $ac_status); }; } && | |
8009 | { ac_try='test -s conftest.$ac_objext' | |
8010 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8011 | (eval $ac_try) 2>&5 | |
8012 | ac_status=$? | |
8013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8014 | (exit $ac_status); }; }; then | |
8015 | ac_hi=$ac_mid; break | |
8016 | else | |
8017 | echo "$as_me: failed program was:" >&5 | |
8018 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8019 | ||
8020 | ac_lo=`expr $ac_mid + 1` | |
8021 | if test $ac_lo -le $ac_mid; then | |
8022 | ac_lo= ac_hi= | |
8023 | break | |
8024 | fi | |
8025 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
8026 | fi | |
8027 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
8028 | done | |
8029 | else | |
8030 | echo "$as_me: failed program was:" >&5 | |
8031 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8032 | ||
8033 | cat >conftest.$ac_ext <<_ACEOF | |
8034 | /* confdefs.h. */ | |
8035 | _ACEOF | |
8036 | cat confdefs.h >>conftest.$ac_ext | |
8037 | cat >>conftest.$ac_ext <<_ACEOF | |
8038 | /* end confdefs.h. */ | |
8039 | $ac_includes_default | |
8040 | int | |
8041 | main () | |
8042 | { | |
8043 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; | |
8044 | test_array [0] = 0 | |
8045 | ||
8046 | ; | |
8047 | return 0; | |
8048 | } | |
8049 | _ACEOF | |
8050 | rm -f conftest.$ac_objext | |
8051 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8052 | (eval $ac_compile) 2>conftest.er1 | |
8053 | ac_status=$? | |
8054 | grep -v '^ *+' conftest.er1 >conftest.err | |
8055 | rm -f conftest.er1 | |
8056 | cat conftest.err >&5 | |
8057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8058 | (exit $ac_status); } && | |
d349482e AT |
8059 | { ac_try='test -z "$ac_c_werror_flag" |
8060 | || test ! -s conftest.err' | |
18cbfd85 PB |
8061 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8062 | (eval $ac_try) 2>&5 | |
8063 | ac_status=$? | |
8064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8065 | (exit $ac_status); }; } && | |
8066 | { ac_try='test -s conftest.$ac_objext' | |
8067 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8068 | (eval $ac_try) 2>&5 | |
8069 | ac_status=$? | |
8070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8071 | (exit $ac_status); }; }; then | |
8072 | ac_hi=-1 ac_mid=-1 | |
8073 | while :; do | |
8074 | cat >conftest.$ac_ext <<_ACEOF | |
8075 | /* confdefs.h. */ | |
8076 | _ACEOF | |
8077 | cat confdefs.h >>conftest.$ac_ext | |
8078 | cat >>conftest.$ac_ext <<_ACEOF | |
8079 | /* end confdefs.h. */ | |
8080 | $ac_includes_default | |
8081 | int | |
8082 | main () | |
8083 | { | |
8084 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; | |
8085 | test_array [0] = 0 | |
8086 | ||
8087 | ; | |
8088 | return 0; | |
8089 | } | |
8090 | _ACEOF | |
8091 | rm -f conftest.$ac_objext | |
8092 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8093 | (eval $ac_compile) 2>conftest.er1 | |
8094 | ac_status=$? | |
8095 | grep -v '^ *+' conftest.er1 >conftest.err | |
8096 | rm -f conftest.er1 | |
8097 | cat conftest.err >&5 | |
8098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8099 | (exit $ac_status); } && | |
d349482e AT |
8100 | { ac_try='test -z "$ac_c_werror_flag" |
8101 | || test ! -s conftest.err' | |
18cbfd85 PB |
8102 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8103 | (eval $ac_try) 2>&5 | |
8104 | ac_status=$? | |
8105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8106 | (exit $ac_status); }; } && | |
8107 | { ac_try='test -s conftest.$ac_objext' | |
8108 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8109 | (eval $ac_try) 2>&5 | |
8110 | ac_status=$? | |
8111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8112 | (exit $ac_status); }; }; then | |
8113 | ac_lo=$ac_mid; break | |
8114 | else | |
8115 | echo "$as_me: failed program was:" >&5 | |
8116 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8117 | ||
8118 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
8119 | if test $ac_mid -le $ac_hi; then | |
8120 | ac_lo= ac_hi= | |
8121 | break | |
8122 | fi | |
8123 | ac_mid=`expr 2 '*' $ac_mid` | |
8124 | fi | |
8125 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
8126 | done | |
8127 | else | |
8128 | echo "$as_me: failed program was:" >&5 | |
8129 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8130 | ||
8131 | ac_lo= ac_hi= | |
8132 | fi | |
8133 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
8134 | fi | |
8135 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
8136 | # Binary search between lo and hi bounds. | |
8137 | while test "x$ac_lo" != "x$ac_hi"; do | |
8138 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
8139 | cat >conftest.$ac_ext <<_ACEOF | |
8140 | /* confdefs.h. */ | |
8141 | _ACEOF | |
8142 | cat confdefs.h >>conftest.$ac_ext | |
8143 | cat >>conftest.$ac_ext <<_ACEOF | |
8144 | /* end confdefs.h. */ | |
8145 | $ac_includes_default | |
8146 | int | |
8147 | main () | |
8148 | { | |
8149 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
8150 | test_array [0] = 0 | |
8151 | ||
8152 | ; | |
8153 | return 0; | |
8154 | } | |
8155 | _ACEOF | |
8156 | rm -f conftest.$ac_objext | |
8157 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8158 | (eval $ac_compile) 2>conftest.er1 | |
8159 | ac_status=$? | |
8160 | grep -v '^ *+' conftest.er1 >conftest.err | |
8161 | rm -f conftest.er1 | |
8162 | cat conftest.err >&5 | |
8163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8164 | (exit $ac_status); } && | |
d349482e AT |
8165 | { ac_try='test -z "$ac_c_werror_flag" |
8166 | || test ! -s conftest.err' | |
18cbfd85 PB |
8167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8168 | (eval $ac_try) 2>&5 | |
8169 | ac_status=$? | |
8170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8171 | (exit $ac_status); }; } && | |
8172 | { ac_try='test -s conftest.$ac_objext' | |
8173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8174 | (eval $ac_try) 2>&5 | |
8175 | ac_status=$? | |
8176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8177 | (exit $ac_status); }; }; then | |
8178 | ac_hi=$ac_mid | |
8179 | else | |
8180 | echo "$as_me: failed program was:" >&5 | |
8181 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8182 | ||
8183 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
8184 | fi | |
8185 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
8186 | done | |
8187 | case $ac_lo in | |
8188 | ?*) ac_cv_sizeof_char=$ac_lo;; | |
8189 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
8190 | See \`config.log' for more details." >&5 | |
8191 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
8192 | See \`config.log' for more details." >&2;} | |
8193 | { (exit 1); exit 1; }; } ;; | |
8194 | esac | |
8195 | else | |
8196 | if test "$cross_compiling" = yes; then | |
d349482e AT |
8197 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
8198 | See \`config.log' for more details." >&5 | |
8199 | echo "$as_me: error: cannot run test program while cross compiling | |
8200 | See \`config.log' for more details." >&2;} | |
18cbfd85 PB |
8201 | { (exit 1); exit 1; }; } |
8202 | else | |
8203 | cat >conftest.$ac_ext <<_ACEOF | |
8204 | /* confdefs.h. */ | |
8205 | _ACEOF | |
8206 | cat confdefs.h >>conftest.$ac_ext | |
8207 | cat >>conftest.$ac_ext <<_ACEOF | |
8208 | /* end confdefs.h. */ | |
8209 | $ac_includes_default | |
8210 | long longval () { return (long) (sizeof (char)); } | |
8211 | unsigned long ulongval () { return (long) (sizeof (char)); } | |
8212 | #include <stdio.h> | |
8213 | #include <stdlib.h> | |
8214 | int | |
8215 | main () | |
8216 | { | |
8217 | ||
8218 | FILE *f = fopen ("conftest.val", "w"); | |
8219 | if (! f) | |
8220 | exit (1); | |
8221 | if (((long) (sizeof (char))) < 0) | |
8222 | { | |
8223 | long i = longval (); | |
8224 | if (i != ((long) (sizeof (char)))) | |
8225 | exit (1); | |
8226 | fprintf (f, "%ld\n", i); | |
8227 | } | |
8228 | else | |
8229 | { | |
8230 | unsigned long i = ulongval (); | |
8231 | if (i != ((long) (sizeof (char)))) | |
8232 | exit (1); | |
8233 | fprintf (f, "%lu\n", i); | |
8234 | } | |
8235 | exit (ferror (f) || fclose (f) != 0); | |
8236 | ||
8237 | ; | |
8238 | return 0; | |
8239 | } | |
8240 | _ACEOF | |
8241 | rm -f conftest$ac_exeext | |
8242 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8243 | (eval $ac_link) 2>&5 | |
8244 | ac_status=$? | |
8245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8246 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
8247 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8248 | (eval $ac_try) 2>&5 | |
8249 | ac_status=$? | |
8250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8251 | (exit $ac_status); }; }; then | |
8252 | ac_cv_sizeof_char=`cat conftest.val` | |
8253 | else | |
8254 | echo "$as_me: program exited with status $ac_status" >&5 | |
8255 | echo "$as_me: failed program was:" >&5 | |
8256 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8257 | ||
8258 | ( exit $ac_status ) | |
8259 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
8260 | See \`config.log' for more details." >&5 | |
8261 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
8262 | See \`config.log' for more details." >&2;} | |
8263 | { (exit 1); exit 1; }; } | |
8264 | fi | |
8265 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
8266 | fi | |
8267 | fi | |
8268 | rm -f conftest.val | |
8269 | else | |
8270 | ac_cv_sizeof_char=0 | |
8271 | fi | |
8272 | fi | |
8273 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 | |
8274 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 | |
8275 | cat >>confdefs.h <<_ACEOF | |
8276 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
8277 | _ACEOF | |
8278 | ||
8279 | ||
8280 | ||
8281 | echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5 | |
8282 | echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6 | |
8283 | case "$ac_cv_sizeof_char" in | |
8284 | 1) acx_cv_type_int8_t=char ;; | |
8285 | *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5 | |
8286 | echo "$as_me: error: no 8-bit type" >&2;} | |
8287 | { (exit please report a bug); exit please report a bug; }; } | |
8288 | esac | |
8289 | echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5 | |
8290 | echo "${ECHO_T}$acx_cv_type_int8_t" >&6 | |
8291 | ||
8292 | echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5 | |
8293 | echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6 | |
8294 | case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in | |
8295 | 2:*) acx_cv_type_int16_t=int ;; | |
8296 | *:2) acx_cv_type_int16_t=short ;; | |
8297 | *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5 | |
8298 | echo "$as_me: error: no 16-bit type" >&2;} | |
8299 | { (exit please report a bug); exit please report a bug; }; } | |
8300 | esac | |
8301 | echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5 | |
8302 | echo "${ECHO_T}$acx_cv_type_int16_t" >&6 | |
8303 | ||
8304 | echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5 | |
8305 | echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6 | |
8306 | case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in | |
8307 | 4:*) acx_cv_type_int32_t=int ;; | |
8308 | *:4) acx_cv_type_int32_t=long ;; | |
8309 | *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5 | |
8310 | echo "$as_me: error: no 32-bit type" >&2;} | |
8311 | { (exit please report a bug); exit please report a bug; }; } | |
8312 | esac | |
8313 | echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5 | |
8314 | echo "${ECHO_T}$acx_cv_type_int32_t" >&6 | |
8315 | fi | |
8316 | ||
8317 | # These tests are here to make the output prettier | |
8318 | ||
8319 | if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then | |
8320 | case "$ac_cv_sizeof_long" in | |
8321 | 8) acx_cv_type_int64_t=long ;; | |
8322 | esac | |
8323 | echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5 | |
8324 | echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6 | |
8325 | echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5 | |
8326 | echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6 | |
8327 | fi | |
8328 | ||
8329 | # Now we can use the above types | |
8330 | ||
8331 | if test "$ac_cv_type_uintptr_t" != yes; then | |
8332 | echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5 | |
8333 | echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6 | |
8334 | case $ac_cv_sizeof_void_p in | |
8335 | 2) acx_cv_type_intptr_t=int16_t ;; | |
8336 | 4) acx_cv_type_intptr_t=int32_t ;; | |
8337 | 8) acx_cv_type_intptr_t=int64_t ;; | |
8338 | *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5 | |
8339 | echo "$as_me: error: no equivalent for intptr_t" >&2;} | |
8340 | { (exit please report a bug); exit please report a bug; }; } | |
8341 | esac | |
8342 | echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5 | |
8343 | echo "${ECHO_T}$acx_cv_type_intptr_t" >&6 | |
8344 | fi | |
8345 | ||
8346 | # ----------------- done all checks, emit header ------------- | |
8347 | ac_config_commands="$ac_config_commands gstdint.h" | |
8348 | ||
8349 | ||
8350 | ||
8351 | ||
953ff289 | 8352 | # Check to see if -pthread or -lpthread is needed. Prefer the former. |
124452c9 | 8353 | # In case the pthread.h system header is not found, this test will fail. |
953ff289 | 8354 | XPCFLAGS="" |
a1daed2d EC |
8355 | |
8356 | # Darwin doesn't need the -pthread option since threads are in libSystem | |
953ff289 DN |
8357 | cat >conftest.$ac_ext <<_ACEOF |
8358 | /* confdefs.h. */ | |
8359 | _ACEOF | |
8360 | cat confdefs.h >>conftest.$ac_ext | |
8361 | cat >>conftest.$ac_ext <<_ACEOF | |
8362 | /* end confdefs.h. */ | |
8363 | #include <pthread.h> | |
8364 | void *g(void *d) { return NULL; } | |
8365 | int | |
8366 | main () | |
8367 | { | |
8368 | pthread_t t; pthread_create(&t,NULL,g,NULL); | |
8369 | ; | |
8370 | return 0; | |
8371 | } | |
8372 | _ACEOF | |
8373 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8374 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8375 | (eval $ac_link) 2>conftest.er1 | |
8376 | ac_status=$? | |
8377 | grep -v '^ *+' conftest.er1 >conftest.err | |
8378 | rm -f conftest.er1 | |
8379 | cat conftest.err >&5 | |
8380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8381 | (exit $ac_status); } && | |
d349482e AT |
8382 | { ac_try='test -z "$ac_c_werror_flag" |
8383 | || test ! -s conftest.err' | |
953ff289 DN |
8384 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8385 | (eval $ac_try) 2>&5 | |
8386 | ac_status=$? | |
8387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8388 | (exit $ac_status); }; } && | |
8389 | { ac_try='test -s conftest$ac_exeext' | |
8390 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8391 | (eval $ac_try) 2>&5 | |
8392 | ac_status=$? | |
8393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8394 | (exit $ac_status); }; }; then | |
a1daed2d EC |
8395 | case $host in |
8396 | *-darwin*) | |
8397 | ;; | |
8398 | default) | |
8399 | XPCFLAGS=" -Wc,-pthread" | |
8400 | ;; | |
8401 | esac | |
953ff289 DN |
8402 | else |
8403 | echo "$as_me: failed program was:" >&5 | |
8404 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8405 | ||
8406 | CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS" | |
8407 | cat >conftest.$ac_ext <<_ACEOF | |
8408 | /* confdefs.h. */ | |
8409 | _ACEOF | |
8410 | cat confdefs.h >>conftest.$ac_ext | |
8411 | cat >>conftest.$ac_ext <<_ACEOF | |
8412 | /* end confdefs.h. */ | |
8413 | #include <pthread.h> | |
8414 | void *g(void *d) { return NULL; } | |
8415 | int | |
8416 | main () | |
8417 | { | |
8418 | pthread_t t; pthread_create(&t,NULL,g,NULL); | |
8419 | ; | |
8420 | return 0; | |
8421 | } | |
8422 | _ACEOF | |
8423 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8424 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8425 | (eval $ac_link) 2>conftest.er1 | |
8426 | ac_status=$? | |
8427 | grep -v '^ *+' conftest.er1 >conftest.err | |
8428 | rm -f conftest.er1 | |
8429 | cat conftest.err >&5 | |
8430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8431 | (exit $ac_status); } && | |
d349482e AT |
8432 | { ac_try='test -z "$ac_c_werror_flag" |
8433 | || test ! -s conftest.err' | |
953ff289 DN |
8434 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8435 | (eval $ac_try) 2>&5 | |
8436 | ac_status=$? | |
8437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8438 | (exit $ac_status); }; } && | |
8439 | { ac_try='test -s conftest$ac_exeext' | |
8440 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8441 | (eval $ac_try) 2>&5 | |
8442 | ac_status=$? | |
8443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8444 | (exit $ac_status); }; }; then | |
8445 | : | |
8446 | else | |
8447 | echo "$as_me: failed program was:" >&5 | |
8448 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8449 | ||
8450 | { { echo "$as_me:$LINENO: error: Pthreads are required to build libgomp" >&5 | |
8451 | echo "$as_me: error: Pthreads are required to build libgomp" >&2;} | |
8452 | { (exit 1); exit 1; }; } | |
8453 | fi | |
8454 | rm -f conftest.err conftest.$ac_objext \ | |
8455 | conftest$ac_exeext conftest.$ac_ext | |
8456 | fi | |
8457 | rm -f conftest.err conftest.$ac_objext \ | |
8458 | conftest$ac_exeext conftest.$ac_ext | |
8459 | ||
8460 | # Check for functions needed. | |
8461 | ||
8462 | ||
8463 | for ac_func in getloadavg clock_gettime | |
8464 | do | |
8465 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
8466 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
8467 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
8468 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
8469 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8470 | else | |
8471 | cat >conftest.$ac_ext <<_ACEOF | |
8472 | /* confdefs.h. */ | |
8473 | _ACEOF | |
8474 | cat confdefs.h >>conftest.$ac_ext | |
8475 | cat >>conftest.$ac_ext <<_ACEOF | |
8476 | /* end confdefs.h. */ | |
8477 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
8478 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8479 | #define $ac_func innocuous_$ac_func | |
8480 | ||
8481 | /* System header to define __stub macros and hopefully few prototypes, | |
8482 | which can conflict with char $ac_func (); below. | |
8483 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8484 | <limits.h> exists even on freestanding compilers. */ | |
8485 | ||
8486 | #ifdef __STDC__ | |
8487 | # include <limits.h> | |
8488 | #else | |
8489 | # include <assert.h> | |
8490 | #endif | |
8491 | ||
8492 | #undef $ac_func | |
8493 | ||
8494 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8495 | #ifdef __cplusplus | |
8496 | extern "C" | |
8497 | { | |
8498 | #endif | |
8499 | /* We use char because int might match the return type of a gcc2 | |
8500 | builtin and then its argument prototype would still apply. */ | |
8501 | char $ac_func (); | |
8502 | /* The GNU C library defines this for functions which it implements | |
8503 | to always fail with ENOSYS. Some functions are actually named | |
8504 | something starting with __ and the normal name is an alias. */ | |
8505 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
8506 | choke me | |
8507 | #else | |
8508 | char (*f) () = $ac_func; | |
8509 | #endif | |
8510 | #ifdef __cplusplus | |
8511 | } | |
8512 | #endif | |
8513 | ||
8514 | int | |
8515 | main () | |
8516 | { | |
8517 | return f != $ac_func; | |
8518 | ; | |
8519 | return 0; | |
8520 | } | |
8521 | _ACEOF | |
8522 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8523 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8524 | (eval $ac_link) 2>conftest.er1 | |
8525 | ac_status=$? | |
8526 | grep -v '^ *+' conftest.er1 >conftest.err | |
8527 | rm -f conftest.er1 | |
8528 | cat conftest.err >&5 | |
8529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8530 | (exit $ac_status); } && | |
d349482e AT |
8531 | { ac_try='test -z "$ac_c_werror_flag" |
8532 | || test ! -s conftest.err' | |
953ff289 DN |
8533 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8534 | (eval $ac_try) 2>&5 | |
8535 | ac_status=$? | |
8536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8537 | (exit $ac_status); }; } && | |
8538 | { ac_try='test -s conftest$ac_exeext' | |
8539 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8540 | (eval $ac_try) 2>&5 | |
8541 | ac_status=$? | |
8542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8543 | (exit $ac_status); }; }; then | |
8544 | eval "$as_ac_var=yes" | |
8545 | else | |
8546 | echo "$as_me: failed program was:" >&5 | |
8547 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8548 | ||
8549 | eval "$as_ac_var=no" | |
8550 | fi | |
8551 | rm -f conftest.err conftest.$ac_objext \ | |
8552 | conftest$ac_exeext conftest.$ac_ext | |
8553 | fi | |
8554 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
8555 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
8556 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
8557 | cat >>confdefs.h <<_ACEOF | |
8558 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
8559 | _ACEOF | |
8560 | ||
8561 | fi | |
8562 | done | |
8563 | ||
8564 | ||
d349482e AT |
8565 | # Check for broken semaphore implementation on darwin. |
8566 | # sem_init returns: sem_init error: Function not implemented. | |
8567 | case "$host" in | |
8568 | *-darwin*) | |
8569 | ||
8570 | cat >>confdefs.h <<\_ACEOF | |
8571 | #define HAVE_BROKEN_POSIX_SEMAPHORES 1 | |
8572 | _ACEOF | |
8573 | ||
fe5568e9 JJ |
8574 | ;; |
8575 | *-linux*) | |
8576 | case "$enable_linux_futex" in | |
8577 | default) | |
8578 | # If headers don't have gettid/futex syscalls definition, then | |
8579 | # default to no, otherwise there will be compile time failures. | |
8580 | # Otherwise, default to yes. If we don't detect we are | |
8581 | # compiled/linked against NPTL and not cross-compiling, check | |
8582 | # if programs are run by default against NPTL and if not, issue | |
8583 | # a warning. | |
8584 | enable_linux_futex=no | |
8585 | cat >conftest.$ac_ext <<_ACEOF | |
8586 | /* confdefs.h. */ | |
8587 | _ACEOF | |
8588 | cat confdefs.h >>conftest.$ac_ext | |
8589 | cat >>conftest.$ac_ext <<_ACEOF | |
8590 | /* end confdefs.h. */ | |
8591 | #include <sys/syscall.h> | |
8592 | int lk; | |
8593 | int | |
8594 | main () | |
8595 | { | |
8596 | syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0); | |
8597 | ; | |
8598 | return 0; | |
8599 | } | |
8600 | _ACEOF | |
8601 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8602 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8603 | (eval $ac_link) 2>conftest.er1 | |
8604 | ac_status=$? | |
8605 | grep -v '^ *+' conftest.er1 >conftest.err | |
8606 | rm -f conftest.er1 | |
8607 | cat conftest.err >&5 | |
8608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8609 | (exit $ac_status); } && | |
8610 | { ac_try='test -z "$ac_c_werror_flag" | |
8611 | || test ! -s conftest.err' | |
8612 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8613 | (eval $ac_try) 2>&5 | |
8614 | ac_status=$? | |
8615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8616 | (exit $ac_status); }; } && | |
8617 | { ac_try='test -s conftest$ac_exeext' | |
8618 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8619 | (eval $ac_try) 2>&5 | |
8620 | ac_status=$? | |
8621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8622 | (exit $ac_status); }; }; then | |
8623 | cat >conftest.$ac_ext <<_ACEOF | |
8624 | /* confdefs.h. */ | |
8625 | _ACEOF | |
8626 | cat confdefs.h >>conftest.$ac_ext | |
8627 | cat >>conftest.$ac_ext <<_ACEOF | |
8628 | /* end confdefs.h. */ | |
8629 | #ifndef _GNU_SOURCE | |
8630 | #define _GNU_SOURCE 1 | |
8631 | #endif | |
8632 | #include <pthread.h> | |
8633 | pthread_t th; void *status; | |
8634 | int | |
8635 | main () | |
8636 | { | |
8637 | pthread_tryjoin_np (th, &status); | |
8638 | ; | |
8639 | return 0; | |
8640 | } | |
8641 | _ACEOF | |
8642 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8643 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8644 | (eval $ac_link) 2>conftest.er1 | |
8645 | ac_status=$? | |
8646 | grep -v '^ *+' conftest.er1 >conftest.err | |
8647 | rm -f conftest.er1 | |
8648 | cat conftest.err >&5 | |
8649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8650 | (exit $ac_status); } && | |
8651 | { ac_try='test -z "$ac_c_werror_flag" | |
8652 | || test ! -s conftest.err' | |
8653 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8654 | (eval $ac_try) 2>&5 | |
8655 | ac_status=$? | |
8656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8657 | (exit $ac_status); }; } && | |
8658 | { ac_try='test -s conftest$ac_exeext' | |
8659 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8660 | (eval $ac_try) 2>&5 | |
8661 | ac_status=$? | |
8662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8663 | (exit $ac_status); }; }; then | |
8664 | enable_linux_futex=yes | |
8665 | else | |
8666 | echo "$as_me: failed program was:" >&5 | |
8667 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8668 | ||
8669 | if test x$cross_compiling = xno; then | |
8670 | if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \ | |
8671 | | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then | |
8672 | { echo "$as_me:$LINENO: WARNING: The kernel might not support futex or gettid syscalls. | |
8673 | If so, please configure with --disable-linux-futex" >&5 | |
8674 | echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls. | |
8675 | If so, please configure with --disable-linux-futex" >&2;} | |
8676 | fi | |
8677 | fi | |
8678 | enable_linux_futex=yes | |
8679 | fi | |
8680 | rm -f conftest.err conftest.$ac_objext \ | |
8681 | conftest$ac_exeext conftest.$ac_ext | |
8682 | else | |
8683 | echo "$as_me: failed program was:" >&5 | |
8684 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8685 | ||
8686 | fi | |
8687 | rm -f conftest.err conftest.$ac_objext \ | |
8688 | conftest$ac_exeext conftest.$ac_ext | |
8689 | ;; | |
8690 | yes) | |
8691 | cat >conftest.$ac_ext <<_ACEOF | |
8692 | /* confdefs.h. */ | |
8693 | _ACEOF | |
8694 | cat confdefs.h >>conftest.$ac_ext | |
8695 | cat >>conftest.$ac_ext <<_ACEOF | |
8696 | /* end confdefs.h. */ | |
8697 | #include <sys/syscall.h> | |
8698 | int lk; | |
8699 | int | |
8700 | main () | |
8701 | { | |
8702 | syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0); | |
8703 | ; | |
8704 | return 0; | |
8705 | } | |
8706 | _ACEOF | |
8707 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8708 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8709 | (eval $ac_link) 2>conftest.er1 | |
8710 | ac_status=$? | |
8711 | grep -v '^ *+' conftest.er1 >conftest.err | |
8712 | rm -f conftest.er1 | |
8713 | cat conftest.err >&5 | |
8714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8715 | (exit $ac_status); } && | |
8716 | { ac_try='test -z "$ac_c_werror_flag" | |
8717 | || test ! -s conftest.err' | |
8718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8719 | (eval $ac_try) 2>&5 | |
8720 | ac_status=$? | |
8721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8722 | (exit $ac_status); }; } && | |
8723 | { ac_try='test -s conftest$ac_exeext' | |
8724 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8725 | (eval $ac_try) 2>&5 | |
8726 | ac_status=$? | |
8727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8728 | (exit $ac_status); }; }; then | |
8729 | : | |
8730 | else | |
8731 | echo "$as_me: failed program was:" >&5 | |
8732 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8733 | ||
8734 | { { echo "$as_me:$LINENO: error: SYS_gettid and SYS_futex required for --enable-linux-futex" >&5 | |
8735 | echo "$as_me: error: SYS_gettid and SYS_futex required for --enable-linux-futex" >&2;} | |
8736 | { (exit 1); exit 1; }; } | |
8737 | fi | |
8738 | rm -f conftest.err conftest.$ac_objext \ | |
8739 | conftest$ac_exeext conftest.$ac_ext | |
8740 | ;; | |
8741 | esac | |
d349482e AT |
8742 | ;; |
8743 | esac | |
8744 | ||
953ff289 DN |
8745 | # At least for glibc, clock_gettime is in librt. But don't pull that |
8746 | # in if it still doesn't give us the function we want. | |
8747 | if test $ac_cv_func_clock_gettime = no; then | |
8748 | echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5 | |
8749 | echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6 | |
8750 | if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then | |
8751 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8752 | else | |
8753 | ac_check_lib_save_LIBS=$LIBS | |
8754 | LIBS="-lrt $LIBS" | |
8755 | cat >conftest.$ac_ext <<_ACEOF | |
8756 | /* confdefs.h. */ | |
8757 | _ACEOF | |
8758 | cat confdefs.h >>conftest.$ac_ext | |
8759 | cat >>conftest.$ac_ext <<_ACEOF | |
8760 | /* end confdefs.h. */ | |
8761 | ||
8762 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8763 | #ifdef __cplusplus | |
8764 | extern "C" | |
8765 | #endif | |
8766 | /* We use char because int might match the return type of a gcc2 | |
8767 | builtin and then its argument prototype would still apply. */ | |
8768 | char clock_gettime (); | |
8769 | int | |
8770 | main () | |
8771 | { | |
8772 | clock_gettime (); | |
8773 | ; | |
8774 | return 0; | |
8775 | } | |
8776 | _ACEOF | |
8777 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8778 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8779 | (eval $ac_link) 2>conftest.er1 | |
8780 | ac_status=$? | |
8781 | grep -v '^ *+' conftest.er1 >conftest.err | |
8782 | rm -f conftest.er1 | |
8783 | cat conftest.err >&5 | |
8784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8785 | (exit $ac_status); } && | |
d349482e AT |
8786 | { ac_try='test -z "$ac_c_werror_flag" |
8787 | || test ! -s conftest.err' | |
953ff289 DN |
8788 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8789 | (eval $ac_try) 2>&5 | |
8790 | ac_status=$? | |
8791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8792 | (exit $ac_status); }; } && | |
8793 | { ac_try='test -s conftest$ac_exeext' | |
8794 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8795 | (eval $ac_try) 2>&5 | |
8796 | ac_status=$? | |
8797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8798 | (exit $ac_status); }; }; then | |
8799 | ac_cv_lib_rt_clock_gettime=yes | |
8800 | else | |
8801 | echo "$as_me: failed program was:" >&5 | |
8802 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8803 | ||
8804 | ac_cv_lib_rt_clock_gettime=no | |
8805 | fi | |
8806 | rm -f conftest.err conftest.$ac_objext \ | |
8807 | conftest$ac_exeext conftest.$ac_ext | |
8808 | LIBS=$ac_check_lib_save_LIBS | |
8809 | fi | |
8810 | echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5 | |
8811 | echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6 | |
8812 | if test $ac_cv_lib_rt_clock_gettime = yes; then | |
8813 | LIBS="-lrt $LIBS" | |
c663e301 JM |
8814 | |
8815 | cat >>confdefs.h <<\_ACEOF | |
8816 | #define HAVE_CLOCK_GETTIME 1 | |
953ff289 DN |
8817 | _ACEOF |
8818 | ||
8819 | fi | |
8820 | ||
8821 | fi | |
8822 | ||
8823 | # See if we support thread-local storage. | |
8824 | ||
8825 | # Check whether --enable-tls or --disable-tls was given. | |
8826 | if test "${enable_tls+set}" = set; then | |
8827 | enableval="$enable_tls" | |
8828 | ||
8829 | case "$enableval" in | |
8830 | yes|no) ;; | |
8831 | *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5 | |
8832 | echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;} | |
8833 | { (exit 1); exit 1; }; } ;; | |
8834 | esac | |
8835 | ||
8836 | else | |
8837 | enable_tls=yes | |
8838 | fi; | |
8839 | ||
8840 | echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5 | |
8841 | echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6 | |
8842 | if test "${have_tls+set}" = set; then | |
8843 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8844 | else | |
8845 | ||
60e1758f RH |
8846 | if test "$cross_compiling" = yes; then |
8847 | cat >conftest.$ac_ext <<_ACEOF | |
597c25e6 | 8848 | __thread int a; int b; int main() { return a = b; } |
953ff289 | 8849 | _ACEOF |
597c25e6 DJ |
8850 | rm -f conftest.$ac_objext conftest$ac_exeext |
8851 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8852 | (eval $ac_link) 2>conftest.er1 | |
953ff289 DN |
8853 | ac_status=$? |
8854 | grep -v '^ *+' conftest.er1 >conftest.err | |
8855 | rm -f conftest.er1 | |
8856 | cat conftest.err >&5 | |
8857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8858 | (exit $ac_status); } && | |
d349482e AT |
8859 | { ac_try='test -z "$ac_c_werror_flag" |
8860 | || test ! -s conftest.err' | |
953ff289 DN |
8861 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8862 | (eval $ac_try) 2>&5 | |
8863 | ac_status=$? | |
8864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8865 | (exit $ac_status); }; } && | |
597c25e6 | 8866 | { ac_try='test -s conftest$ac_exeext' |
953ff289 DN |
8867 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8868 | (eval $ac_try) 2>&5 | |
8869 | ac_status=$? | |
8870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8871 | (exit $ac_status); }; }; then | |
60e1758f | 8872 | have_tls=yes |
953ff289 DN |
8873 | else |
8874 | echo "$as_me: failed program was:" >&5 | |
8875 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8876 | ||
8877 | have_tls=no | |
8878 | fi | |
597c25e6 DJ |
8879 | rm -f conftest.err conftest.$ac_objext \ |
8880 | conftest$ac_exeext conftest.$ac_ext | |
60e1758f RH |
8881 | |
8882 | else | |
8883 | cat >conftest.$ac_ext <<_ACEOF | |
8884 | __thread int a; int b; int main() { return a = b; } | |
8885 | _ACEOF | |
8886 | rm -f conftest$ac_exeext | |
8887 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8888 | (eval $ac_link) 2>&5 | |
8889 | ac_status=$? | |
8890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8891 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
8892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8893 | (eval $ac_try) 2>&5 | |
8894 | ac_status=$? | |
8895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8896 | (exit $ac_status); }; }; then | |
aad741f4 | 8897 | save_LDFLAGS="$LDFLAGS" |
60e1758f | 8898 | LDFLAGS="-static $LDFLAGS" |
aad741f4 EB |
8899 | cat >conftest.$ac_ext <<_ACEOF |
8900 | int main() { return 0; } | |
8901 | _ACEOF | |
8902 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8903 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8904 | (eval $ac_link) 2>conftest.er1 | |
8905 | ac_status=$? | |
8906 | grep -v '^ *+' conftest.er1 >conftest.err | |
8907 | rm -f conftest.er1 | |
8908 | cat conftest.err >&5 | |
8909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8910 | (exit $ac_status); } && | |
8911 | { ac_try='test -z "$ac_c_werror_flag" | |
8912 | || test ! -s conftest.err' | |
8913 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8914 | (eval $ac_try) 2>&5 | |
8915 | ac_status=$? | |
8916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8917 | (exit $ac_status); }; } && | |
8918 | { ac_try='test -s conftest$ac_exeext' | |
8919 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8920 | (eval $ac_try) 2>&5 | |
8921 | ac_status=$? | |
8922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8923 | (exit $ac_status); }; }; then | |
8924 | if test "$cross_compiling" = yes; then | |
60e1758f RH |
8925 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
8926 | See \`config.log' for more details." >&5 | |
8927 | echo "$as_me: error: cannot run test program while cross compiling | |
8928 | See \`config.log' for more details." >&2;} | |
8929 | { (exit 1); exit 1; }; } | |
8930 | else | |
8931 | cat >conftest.$ac_ext <<_ACEOF | |
8932 | __thread int a; int b; int main() { return a = b; } | |
8933 | _ACEOF | |
8934 | rm -f conftest$ac_exeext | |
8935 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8936 | (eval $ac_link) 2>&5 | |
8937 | ac_status=$? | |
8938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8939 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
8940 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8941 | (eval $ac_try) 2>&5 | |
8942 | ac_status=$? | |
8943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8944 | (exit $ac_status); }; }; then | |
8945 | have_tls=yes | |
8946 | else | |
8947 | echo "$as_me: program exited with status $ac_status" >&5 | |
8948 | echo "$as_me: failed program was:" >&5 | |
8949 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8950 | ||
8951 | ( exit $ac_status ) | |
8952 | have_tls=no | |
8953 | fi | |
8954 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
8955 | fi | |
aad741f4 EB |
8956 | else |
8957 | echo "$as_me: failed program was:" >&5 | |
8958 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8959 | ||
8960 | have_tls=yes | |
8961 | fi | |
8962 | rm -f conftest.err conftest.$ac_objext \ | |
8963 | conftest$ac_exeext conftest.$ac_ext | |
60e1758f RH |
8964 | LDFLAGS="$save_LDFLAGS" |
8965 | else | |
8966 | echo "$as_me: program exited with status $ac_status" >&5 | |
8967 | echo "$as_me: failed program was:" >&5 | |
8968 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8969 | ||
8970 | ( exit $ac_status ) | |
8971 | have_tls=no | |
8972 | fi | |
8973 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
8974 | fi | |
953ff289 DN |
8975 | fi |
8976 | echo "$as_me:$LINENO: result: $have_tls" >&5 | |
8977 | echo "${ECHO_T}$have_tls" >&6 | |
60e1758f | 8978 | if test "$enable_tls $have_tls" = "yes yes"; then |
953ff289 DN |
8979 | |
8980 | cat >>confdefs.h <<\_ACEOF | |
8981 | #define HAVE_TLS 1 | |
8982 | _ACEOF | |
8983 | ||
8984 | fi | |
8985 | ||
8986 | # See what sort of export controls are availible. | |
8987 | ||
8988 | echo "$as_me:$LINENO: checking whether the target supports hidden visibility" >&5 | |
8989 | echo $ECHO_N "checking whether the target supports hidden visibility... $ECHO_C" >&6 | |
8990 | if test "${have_attribute_visibility+set}" = set; then | |
8991 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8992 | else | |
8993 | ||
8994 | save_CFLAGS="$CFLAGS" | |
8995 | CFLAGS="$CFLAGS -Werror" | |
8996 | cat >conftest.$ac_ext <<_ACEOF | |
8997 | /* confdefs.h. */ | |
8998 | _ACEOF | |
8999 | cat confdefs.h >>conftest.$ac_ext | |
9000 | cat >>conftest.$ac_ext <<_ACEOF | |
9001 | /* end confdefs.h. */ | |
9002 | void __attribute__((visibility("hidden"))) foo(void) { } | |
9003 | int | |
9004 | main () | |
9005 | { | |
9006 | ||
9007 | ; | |
9008 | return 0; | |
9009 | } | |
9010 | _ACEOF | |
9011 | rm -f conftest.$ac_objext | |
9012 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9013 | (eval $ac_compile) 2>conftest.er1 | |
9014 | ac_status=$? | |
9015 | grep -v '^ *+' conftest.er1 >conftest.err | |
9016 | rm -f conftest.er1 | |
9017 | cat conftest.err >&5 | |
9018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9019 | (exit $ac_status); } && | |
d349482e AT |
9020 | { ac_try='test -z "$ac_c_werror_flag" |
9021 | || test ! -s conftest.err' | |
953ff289 DN |
9022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9023 | (eval $ac_try) 2>&5 | |
9024 | ac_status=$? | |
9025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9026 | (exit $ac_status); }; } && | |
9027 | { ac_try='test -s conftest.$ac_objext' | |
9028 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9029 | (eval $ac_try) 2>&5 | |
9030 | ac_status=$? | |
9031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9032 | (exit $ac_status); }; }; then | |
9033 | have_attribute_visibility=yes | |
9034 | else | |
9035 | echo "$as_me: failed program was:" >&5 | |
9036 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9037 | ||
9038 | have_attribute_visibility=no | |
9039 | fi | |
9040 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
9041 | CFLAGS="$save_CFLAGS" | |
9042 | fi | |
9043 | echo "$as_me:$LINENO: result: $have_attribute_visibility" >&5 | |
9044 | echo "${ECHO_T}$have_attribute_visibility" >&6 | |
9045 | if test $have_attribute_visibility = yes; then | |
9046 | ||
9047 | cat >>confdefs.h <<\_ACEOF | |
9048 | #define HAVE_ATTRIBUTE_VISIBILITY 1 | |
9049 | _ACEOF | |
9050 | ||
9051 | fi | |
9052 | ||
9053 | echo "$as_me:$LINENO: checking whether the target supports dllexport" >&5 | |
9054 | echo $ECHO_N "checking whether the target supports dllexport... $ECHO_C" >&6 | |
9055 | if test "${have_attribute_dllexport+set}" = set; then | |
9056 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9057 | else | |
9058 | ||
9059 | save_CFLAGS="$CFLAGS" | |
9060 | CFLAGS="$CFLAGS -Werror" | |
9061 | cat >conftest.$ac_ext <<_ACEOF | |
9062 | /* confdefs.h. */ | |
9063 | _ACEOF | |
9064 | cat confdefs.h >>conftest.$ac_ext | |
9065 | cat >>conftest.$ac_ext <<_ACEOF | |
9066 | /* end confdefs.h. */ | |
9067 | void __attribute__((dllexport)) foo(void) { } | |
9068 | int | |
9069 | main () | |
9070 | { | |
9071 | ||
9072 | ; | |
9073 | return 0; | |
9074 | } | |
9075 | _ACEOF | |
9076 | rm -f conftest.$ac_objext | |
9077 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9078 | (eval $ac_compile) 2>conftest.er1 | |
9079 | ac_status=$? | |
9080 | grep -v '^ *+' conftest.er1 >conftest.err | |
9081 | rm -f conftest.er1 | |
9082 | cat conftest.err >&5 | |
9083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9084 | (exit $ac_status); } && | |
d349482e AT |
9085 | { ac_try='test -z "$ac_c_werror_flag" |
9086 | || test ! -s conftest.err' | |
953ff289 DN |
9087 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9088 | (eval $ac_try) 2>&5 | |
9089 | ac_status=$? | |
9090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9091 | (exit $ac_status); }; } && | |
9092 | { ac_try='test -s conftest.$ac_objext' | |
9093 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9094 | (eval $ac_try) 2>&5 | |
9095 | ac_status=$? | |
9096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9097 | (exit $ac_status); }; }; then | |
9098 | have_attribute_dllexport=yes | |
9099 | else | |
9100 | echo "$as_me: failed program was:" >&5 | |
9101 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9102 | ||
9103 | have_attribute_dllexport=no | |
9104 | fi | |
9105 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
9106 | CFLAGS="$save_CFLAGS" | |
9107 | fi | |
9108 | echo "$as_me:$LINENO: result: $have_attribute_dllexport" >&5 | |
9109 | echo "${ECHO_T}$have_attribute_dllexport" >&6 | |
9110 | if test $have_attribute_dllexport = yes; then | |
9111 | ||
9112 | cat >>confdefs.h <<\_ACEOF | |
9113 | #define HAVE_ATTRIBUTE_DLLEXPORT 1 | |
9114 | _ACEOF | |
9115 | ||
9116 | fi | |
9117 | ||
9118 | echo "$as_me:$LINENO: checking whether the target supports symbol aliases" >&5 | |
9119 | echo $ECHO_N "checking whether the target supports symbol aliases... $ECHO_C" >&6 | |
9120 | if test "${have_attribute_alias+set}" = set; then | |
9121 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9122 | else | |
9123 | ||
9124 | cat >conftest.$ac_ext <<_ACEOF | |
9125 | /* confdefs.h. */ | |
9126 | _ACEOF | |
9127 | cat confdefs.h >>conftest.$ac_ext | |
9128 | cat >>conftest.$ac_ext <<_ACEOF | |
9129 | /* end confdefs.h. */ | |
9130 | ||
953ff289 | 9131 | void foo(void) { } |
8887708e | 9132 | extern void bar(void) __attribute__((alias("foo"))); |
953ff289 DN |
9133 | int |
9134 | main () | |
9135 | { | |
9136 | bar(); | |
9137 | ; | |
9138 | return 0; | |
9139 | } | |
9140 | _ACEOF | |
9141 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9142 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9143 | (eval $ac_link) 2>conftest.er1 | |
9144 | ac_status=$? | |
9145 | grep -v '^ *+' conftest.er1 >conftest.err | |
9146 | rm -f conftest.er1 | |
9147 | cat conftest.err >&5 | |
9148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9149 | (exit $ac_status); } && | |
d349482e AT |
9150 | { ac_try='test -z "$ac_c_werror_flag" |
9151 | || test ! -s conftest.err' | |
953ff289 DN |
9152 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9153 | (eval $ac_try) 2>&5 | |
9154 | ac_status=$? | |
9155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9156 | (exit $ac_status); }; } && | |
9157 | { ac_try='test -s conftest$ac_exeext' | |
9158 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9159 | (eval $ac_try) 2>&5 | |
9160 | ac_status=$? | |
9161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9162 | (exit $ac_status); }; }; then | |
9163 | have_attribute_alias=yes | |
9164 | else | |
9165 | echo "$as_me: failed program was:" >&5 | |
9166 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9167 | ||
9168 | have_attribute_alias=no | |
9169 | fi | |
9170 | rm -f conftest.err conftest.$ac_objext \ | |
9171 | conftest$ac_exeext conftest.$ac_ext | |
9172 | fi | |
9173 | echo "$as_me:$LINENO: result: $have_attribute_alias" >&5 | |
9174 | echo "${ECHO_T}$have_attribute_alias" >&6 | |
9175 | if test $have_attribute_alias = yes; then | |
9176 | ||
9177 | cat >>confdefs.h <<\_ACEOF | |
9178 | #define HAVE_ATTRIBUTE_ALIAS 1 | |
9179 | _ACEOF | |
9180 | ||
9181 | fi | |
9182 | ||
9183 | # If we're not using GNU ld, then there's no point in even trying these | |
9184 | # tests. Check for that first. We should have already tested for gld | |
9185 | # by now (in libtool), but require it now just to be safe... | |
9186 | test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS='' | |
9187 | test -z "$OPT_LDFLAGS" && OPT_LDFLAGS='' | |
9188 | ||
9189 | ||
9190 | ||
9191 | # The name set by libtool depends on the version of libtool. Shame on us | |
9192 | # for depending on an impl detail, but c'est la vie. Older versions used | |
9193 | # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on | |
9194 | # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually | |
9195 | # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't | |
9196 | # set (hence we're using an older libtool), then set it. | |
9197 | if test x${with_gnu_ld+set} != xset; then | |
9198 | if test x${ac_cv_prog_gnu_ld+set} != xset; then | |
9199 | # We got through "ac_require(ac_prog_ld)" and still not set? Huh? | |
9200 | with_gnu_ld=no | |
9201 | else | |
9202 | with_gnu_ld=$ac_cv_prog_gnu_ld | |
9203 | fi | |
9204 | fi | |
9205 | ||
9206 | # Start by getting the version number. I think the libtool test already | |
9207 | # does some of this, but throws away the result. | |
9208 | ||
9209 | ldver=`$LD --version 2>/dev/null | head -1 | \ | |
9210 | sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'` | |
9211 | ||
9212 | libgomp_gnu_ld_version=`echo $ldver | \ | |
9213 | $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'` | |
9214 | ||
9215 | # Set --gc-sections. | |
9216 | if test "$with_gnu_ld" = "notbroken"; then | |
9217 | # GNU ld it is! Joy and bunny rabbits! | |
9218 | ||
9219 | # All these tests are for C++; save the language and the compiler flags. | |
9220 | # Need to do this so that g++ won't try to link in libstdc++ | |
9221 | ac_test_CFLAGS="${CFLAGS+set}" | |
9222 | ac_save_CFLAGS="$CFLAGS" | |
9223 | CFLAGS='-x c++ -Wl,--gc-sections' | |
9224 | ||
9225 | # Check for -Wl,--gc-sections | |
9226 | # XXX This test is broken at the moment, as symbols required for linking | |
9227 | # are now in libsupc++ (not built yet). In addition, this test has | |
9228 | # cored on solaris in the past. In addition, --gc-sections doesn't | |
9229 | # really work at the moment (keeps on discarding used sections, first | |
9230 | # .eh_frame and now some of the glibc sections for iconv). | |
9231 | # Bzzzzt. Thanks for playing, maybe next time. | |
9232 | echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5 | |
9233 | echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6 | |
9234 | if test "$cross_compiling" = yes; then | |
9235 | ac_sectionLDflags=yes | |
9236 | else | |
9237 | cat >conftest.$ac_ext <<_ACEOF | |
9238 | /* confdefs.h. */ | |
9239 | _ACEOF | |
9240 | cat confdefs.h >>conftest.$ac_ext | |
9241 | cat >>conftest.$ac_ext <<_ACEOF | |
9242 | /* end confdefs.h. */ | |
9243 | ||
9244 | int main(void) | |
9245 | { | |
9246 | try { throw 1; } | |
9247 | catch (...) { }; | |
9248 | return 0; | |
9249 | } | |
9250 | ||
9251 | _ACEOF | |
9252 | rm -f conftest$ac_exeext | |
9253 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9254 | (eval $ac_link) 2>&5 | |
9255 | ac_status=$? | |
9256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9257 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
9258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9259 | (eval $ac_try) 2>&5 | |
9260 | ac_status=$? | |
9261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9262 | (exit $ac_status); }; }; then | |
9263 | ac_sectionLDflags=yes | |
9264 | else | |
9265 | echo "$as_me: program exited with status $ac_status" >&5 | |
9266 | echo "$as_me: failed program was:" >&5 | |
9267 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9268 | ||
9269 | ( exit $ac_status ) | |
9270 | ac_sectionLDflags=no | |
9271 | fi | |
9272 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
9273 | fi | |
9274 | if test "$ac_test_CFLAGS" = set; then | |
9275 | CFLAGS="$ac_save_CFLAGS" | |
9276 | else | |
9277 | # this is the suspicious part | |
9278 | CFLAGS='' | |
9279 | fi | |
9280 | if test "$ac_sectionLDflags" = "yes"; then | |
9281 | SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS" | |
9282 | fi | |
9283 | echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5 | |
9284 | echo "${ECHO_T}$ac_sectionLDflags" >&6 | |
9285 | fi | |
9286 | ||
9287 | # Set linker optimization flags. | |
9288 | if test x"$with_gnu_ld" = x"yes"; then | |
9289 | OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS" | |
9290 | fi | |
9291 | ||
9292 | ||
9293 | ||
9294 | ||
9295 | ||
9296 | ||
9297 | # Check whether --enable-symvers or --disable-symvers was given. | |
9298 | if test "${enable_symvers+set}" = set; then | |
9299 | enableval="$enable_symvers" | |
9300 | ||
9301 | case "$enableval" in | |
9302 | yes|no|gnu) ;; | |
9303 | *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable symvers" >&5 | |
9304 | echo "$as_me: error: Unknown argument to enable/disable symvers" >&2;} | |
9305 | { (exit 1); exit 1; }; } ;; | |
9306 | esac | |
9307 | ||
9308 | else | |
9309 | enable_symvers=yes | |
9310 | fi; | |
9311 | ||
9312 | ||
9313 | # If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we | |
9314 | # don't know enough about $LD to do tricks... | |
9315 | ||
9316 | # FIXME The following test is too strict, in theory. | |
9317 | if test $enable_shared = no || | |
9318 | test "x$LD" = x || | |
9319 | test x$libgomp_gnu_ld_version = x; then | |
9320 | enable_symvers=no | |
9321 | fi | |
9322 | ||
9323 | # Check to see if libgcc_s exists, indicating that shared libgcc is possible. | |
9324 | if test $enable_symvers != no; then | |
9325 | echo "$as_me:$LINENO: checking for shared libgcc" >&5 | |
9326 | echo $ECHO_N "checking for shared libgcc... $ECHO_C" >&6 | |
9327 | ac_save_CFLAGS="$CFLAGS" | |
9328 | CFLAGS=' -lgcc_s' | |
9329 | cat >conftest.$ac_ext <<_ACEOF | |
9330 | /* confdefs.h. */ | |
9331 | _ACEOF | |
9332 | cat confdefs.h >>conftest.$ac_ext | |
9333 | cat >>conftest.$ac_ext <<_ACEOF | |
9334 | /* end confdefs.h. */ | |
9335 | ||
9336 | int | |
9337 | main () | |
9338 | { | |
9339 | return 0; | |
9340 | ; | |
9341 | return 0; | |
9342 | } | |
9343 | _ACEOF | |
9344 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9345 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9346 | (eval $ac_link) 2>conftest.er1 | |
9347 | ac_status=$? | |
9348 | grep -v '^ *+' conftest.er1 >conftest.err | |
9349 | rm -f conftest.er1 | |
9350 | cat conftest.err >&5 | |
9351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9352 | (exit $ac_status); } && | |
d349482e AT |
9353 | { ac_try='test -z "$ac_c_werror_flag" |
9354 | || test ! -s conftest.err' | |
953ff289 DN |
9355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9356 | (eval $ac_try) 2>&5 | |
9357 | ac_status=$? | |
9358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9359 | (exit $ac_status); }; } && | |
9360 | { ac_try='test -s conftest$ac_exeext' | |
9361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9362 | (eval $ac_try) 2>&5 | |
9363 | ac_status=$? | |
9364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9365 | (exit $ac_status); }; }; then | |
9366 | libgomp_shared_libgcc=yes | |
9367 | else | |
9368 | echo "$as_me: failed program was:" >&5 | |
9369 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9370 | ||
9371 | libgomp_shared_libgcc=no | |
9372 | fi | |
9373 | rm -f conftest.err conftest.$ac_objext \ | |
9374 | conftest$ac_exeext conftest.$ac_ext | |
9375 | CFLAGS="$ac_save_CFLAGS" | |
9376 | if test $libgomp_shared_libgcc = no; then | |
9377 | cat > conftest.c <<EOF | |
9378 | int main (void) { return 0; } | |
9379 | EOF | |
9380 | libgomp_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \ | |
9381 | -shared -shared-libgcc -o conftest.so \ | |
9382 | conftest.c -v 2>&1 >/dev/null \ | |
9383 | | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'` | |
9384 | rm -f conftest.c conftest.so | |
9385 | if test x${libgomp_libgcc_s_suffix+set} = xset; then | |
9386 | CFLAGS=" -lgcc_s$libgomp_libgcc_s_suffix" | |
9387 | cat >conftest.$ac_ext <<_ACEOF | |
9388 | /* confdefs.h. */ | |
9389 | _ACEOF | |
9390 | cat confdefs.h >>conftest.$ac_ext | |
9391 | cat >>conftest.$ac_ext <<_ACEOF | |
9392 | /* end confdefs.h. */ | |
9393 | ||
9394 | int | |
9395 | main () | |
9396 | { | |
9397 | return 0; | |
9398 | ; | |
9399 | return 0; | |
9400 | } | |
9401 | _ACEOF | |
9402 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9403 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9404 | (eval $ac_link) 2>conftest.er1 | |
9405 | ac_status=$? | |
9406 | grep -v '^ *+' conftest.er1 >conftest.err | |
9407 | rm -f conftest.er1 | |
9408 | cat conftest.err >&5 | |
9409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9410 | (exit $ac_status); } && | |
d349482e AT |
9411 | { ac_try='test -z "$ac_c_werror_flag" |
9412 | || test ! -s conftest.err' | |
953ff289 DN |
9413 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9414 | (eval $ac_try) 2>&5 | |
9415 | ac_status=$? | |
9416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9417 | (exit $ac_status); }; } && | |
9418 | { ac_try='test -s conftest$ac_exeext' | |
9419 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9420 | (eval $ac_try) 2>&5 | |
9421 | ac_status=$? | |
9422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9423 | (exit $ac_status); }; }; then | |
9424 | libgomp_shared_libgcc=yes | |
9425 | else | |
9426 | echo "$as_me: failed program was:" >&5 | |
9427 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9428 | ||
9429 | fi | |
9430 | rm -f conftest.err conftest.$ac_objext \ | |
9431 | conftest$ac_exeext conftest.$ac_ext | |
9432 | CFLAGS="$ac_save_CFLAGS" | |
9433 | fi | |
9434 | fi | |
9435 | echo "$as_me:$LINENO: result: $libgomp_shared_libgcc" >&5 | |
9436 | echo "${ECHO_T}$libgomp_shared_libgcc" >&6 | |
9437 | fi | |
9438 | ||
9439 | # For GNU ld, we need at least this version. The format is described in | |
9440 | # LIBGOMP_CHECK_LINKER_FEATURES above. | |
9441 | libgomp_min_gnu_ld_version=21400 | |
9442 | # XXXXXXXXXXX libgomp_gnu_ld_version=21390 | |
9443 | ||
9444 | # Check to see if unspecified "yes" value can win, given results above. | |
9445 | # Change "yes" into either "no" or a style name. | |
9446 | if test $enable_symvers = yes; then | |
9447 | if test $with_gnu_ld = yes && | |
9448 | test $libgomp_shared_libgcc = yes; | |
9449 | then | |
9450 | if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then | |
9451 | enable_symvers=gnu | |
9452 | else | |
9453 | # The right tools, the right setup, but too old. Fallbacks? | |
9454 | { echo "$as_me:$LINENO: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5 | |
9455 | echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;} | |
9456 | { echo "$as_me:$LINENO: WARNING: === full symbol versioning support in this release of GCC." >&5 | |
9457 | echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;} | |
9458 | { echo "$as_me:$LINENO: WARNING: === You would need to upgrade your binutils to version" >&5 | |
9459 | echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;} | |
9460 | { echo "$as_me:$LINENO: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5 | |
9461 | echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;} | |
9462 | if test $libgomp_gnu_ld_version -ge 21200 ; then | |
9463 | # Globbing fix is present, proper block support is not. | |
9464 | { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5 | |
9465 | echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;} | |
9466 | enable_symvers=no | |
9467 | else | |
9468 | # 2.11 or older. | |
9469 | { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5 | |
9470 | echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;} | |
9471 | enable_symvers=no | |
9472 | fi | |
9473 | fi | |
9474 | else | |
9475 | # just fail for now | |
9476 | { echo "$as_me:$LINENO: WARNING: === You have requested some kind of symbol versioning, but" >&5 | |
9477 | echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;} | |
9478 | { echo "$as_me:$LINENO: WARNING: === either you are not using a supported linker, or you are" >&5 | |
9479 | echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;} | |
9480 | { echo "$as_me:$LINENO: WARNING: === not building a shared libgcc_s (which is required)." >&5 | |
9481 | echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;} | |
9482 | { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5 | |
9483 | echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;} | |
9484 | enable_symvers=no | |
9485 | fi | |
9486 | fi | |
9487 | ||
9488 | ||
9489 | ||
9490 | if test $enable_symvers != no; then | |
9491 | LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE= | |
9492 | LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE='#' | |
9493 | else | |
9494 | LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='#' | |
9495 | LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE= | |
9496 | fi | |
9497 | ||
9498 | { echo "$as_me:$LINENO: versioning on shared library symbols is $enable_symvers" >&5 | |
9499 | echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;} | |
9500 | ||
9501 | ||
9502 | # Get target configury. | |
9503 | . ${srcdir}/configure.tgt | |
9504 | CFLAGS="$save_CFLAGS $XCFLAGS" | |
9505 | ||
9506 | # Check for __sync_val_compare_and_swap, but only after the target has | |
9507 | # had a chance to set XCFLAGS. | |
9508 | ||
9509 | echo "$as_me:$LINENO: checking whether the target supports __sync_*_compare_and_swap" >&5 | |
9510 | echo $ECHO_N "checking whether the target supports __sync_*_compare_and_swap... $ECHO_C" >&6 | |
9511 | if test "${have_sync_builtins+set}" = set; then | |
9512 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9513 | else | |
9514 | ||
9515 | cat >conftest.$ac_ext <<_ACEOF | |
9516 | /* confdefs.h. */ | |
9517 | _ACEOF | |
9518 | cat confdefs.h >>conftest.$ac_ext | |
9519 | cat >>conftest.$ac_ext <<_ACEOF | |
9520 | /* end confdefs.h. */ | |
9521 | ||
9522 | int | |
9523 | main () | |
9524 | { | |
9525 | int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1); | |
9526 | ; | |
9527 | return 0; | |
9528 | } | |
9529 | _ACEOF | |
9530 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9531 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9532 | (eval $ac_link) 2>conftest.er1 | |
9533 | ac_status=$? | |
9534 | grep -v '^ *+' conftest.er1 >conftest.err | |
9535 | rm -f conftest.er1 | |
9536 | cat conftest.err >&5 | |
9537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9538 | (exit $ac_status); } && | |
d349482e AT |
9539 | { ac_try='test -z "$ac_c_werror_flag" |
9540 | || test ! -s conftest.err' | |
953ff289 DN |
9541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9542 | (eval $ac_try) 2>&5 | |
9543 | ac_status=$? | |
9544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9545 | (exit $ac_status); }; } && | |
9546 | { ac_try='test -s conftest$ac_exeext' | |
9547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9548 | (eval $ac_try) 2>&5 | |
9549 | ac_status=$? | |
9550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9551 | (exit $ac_status); }; }; then | |
9552 | have_sync_builtins=yes | |
9553 | else | |
9554 | echo "$as_me: failed program was:" >&5 | |
9555 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9556 | ||
9557 | have_sync_builtins=no | |
9558 | fi | |
9559 | rm -f conftest.err conftest.$ac_objext \ | |
9560 | conftest$ac_exeext conftest.$ac_ext | |
9561 | fi | |
9562 | echo "$as_me:$LINENO: result: $have_sync_builtins" >&5 | |
9563 | echo "${ECHO_T}$have_sync_builtins" >&6 | |
9564 | if test $have_sync_builtins = yes; then | |
9565 | ||
9566 | cat >>confdefs.h <<\_ACEOF | |
9567 | #define HAVE_SYNC_BUILTINS 1 | |
9568 | _ACEOF | |
9569 | ||
9570 | fi | |
9571 | ||
9572 | XCFLAGS="$XCFLAGS$XPCFLAGS" | |
9573 | ||
9574 | ||
9575 | ||
9576 | ||
9577 | ||
9578 | # Cleanup and exit. | |
9579 | CFLAGS="$save_CFLAGS" | |
9580 | cat >confcache <<\_ACEOF | |
9581 | # This file is a shell script that caches the results of configure | |
9582 | # tests run on this system so they can be shared between configure | |
9583 | # scripts and configure runs, see configure's option --config-cache. | |
9584 | # It is not useful on other systems. If it contains results you don't | |
9585 | # want to keep, you may remove or edit it. | |
9586 | # | |
9587 | # config.status only pays attention to the cache file if you give it | |
9588 | # the --recheck option to rerun configure. | |
9589 | # | |
9590 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
9591 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
9592 | # following values. | |
9593 | ||
9594 | _ACEOF | |
9595 | ||
9596 | # The following way of writing the cache mishandles newlines in values, | |
9597 | # but we know of no workaround that is simple, portable, and efficient. | |
9598 | # So, don't put newlines in cache variables' values. | |
9599 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
9600 | # and sets the high bit in the cache file unless we assign to the vars. | |
9601 | { | |
9602 | (set) 2>&1 | | |
9603 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
9604 | *ac_space=\ *) | |
9605 | # `set' does not quote correctly, so add quotes (double-quote | |
9606 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
9607 | sed -n \ | |
9608 | "s/'/'\\\\''/g; | |
9609 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
9610 | ;; | |
9611 | *) | |
9612 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
9613 | sed -n \ | |
9614 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
9615 | ;; | |
9616 | esac; | |
9617 | } | | |
9618 | sed ' | |
9619 | t clear | |
9620 | : clear | |
9621 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
9622 | t end | |
9623 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
9624 | : end' >>confcache | |
9625 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
9626 | if test -w $cache_file; then | |
9627 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
9628 | cat confcache >$cache_file | |
9629 | else | |
9630 | echo "not updating unwritable cache $cache_file" | |
9631 | fi | |
9632 | fi | |
9633 | rm -f confcache | |
9634 | ||
9635 | if test ${multilib} = yes; then | |
9636 | multilib_arg="--enable-multilib" | |
9637 | else | |
9638 | multilib_arg= | |
9639 | fi | |
9640 | ||
9641 | # Set up the set of libraries that we need to link against for libgomp. | |
192a50ad | 9642 | # Note that the GOMP_SELF_SPEC in gcc.c will force -pthread for -fopenmp, |
953ff289 DN |
9643 | # which will force linkage against -lpthread (or equivalent for the system). |
9644 | # That's not 100% ideal, but about the best we can do easily. | |
9645 | if test $enable_shared = yes; then | |
9646 | link_gomp="-lgomp %{static: $LIBS}" | |
9647 | else | |
9648 | link_gomp="-lgomp $LIBS" | |
9649 | fi | |
9650 | ||
9651 | ||
9652 | ||
9653 | ||
9654 | if test "$ac_cv_fc_compiler_gnu" = yes; then | |
9655 | USE_FORTRAN_TRUE= | |
9656 | USE_FORTRAN_FALSE='#' | |
9657 | else | |
9658 | USE_FORTRAN_TRUE='#' | |
9659 | USE_FORTRAN_FALSE= | |
9660 | fi | |
9661 | ||
9662 | ||
03b8fe49 PB |
9663 | # ??? 2006-01-24: Paulo committed to asking autoconf folk to document |
9664 | # and export AC_COMPUTE_INT. If that happens, then we'll need to remove | |
9665 | # the underscore here and update the PREREQ. If it doesn't, then we'll | |
9666 | # need to copy this macro to our acinclude.m4. | |
9667 | save_CFLAGS="$CFLAGS" | |
9668 | for i in $config_path; do | |
9669 | if test -f $srcdir/config/$i/omp-lock.h; then | |
9670 | CFLAGS="$CFLAGS -include $srcdir/config/$i/omp-lock.h" | |
9671 | break | |
9672 | fi | |
9673 | done | |
9674 | ||
9675 | if test "$cross_compiling" = yes; then | |
9676 | # Depending upon the size, compute the lo and hi bounds. | |
9677 | cat >conftest.$ac_ext <<_ACEOF | |
9678 | /* confdefs.h. */ | |
9679 | _ACEOF | |
9680 | cat confdefs.h >>conftest.$ac_ext | |
9681 | cat >>conftest.$ac_ext <<_ACEOF | |
9682 | /* end confdefs.h. */ | |
9683 | ||
9684 | int | |
9685 | main () | |
9686 | { | |
9687 | static int test_array [1 - 2 * !((sizeof (omp_lock_t)) >= 0)]; | |
9688 | test_array [0] = 0 | |
9689 | ||
9690 | ; | |
9691 | return 0; | |
9692 | } | |
9693 | _ACEOF | |
9694 | rm -f conftest.$ac_objext | |
9695 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9696 | (eval $ac_compile) 2>conftest.er1 | |
9697 | ac_status=$? | |
9698 | grep -v '^ *+' conftest.er1 >conftest.err | |
9699 | rm -f conftest.er1 | |
9700 | cat conftest.err >&5 | |
9701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9702 | (exit $ac_status); } && | |
d349482e AT |
9703 | { ac_try='test -z "$ac_c_werror_flag" |
9704 | || test ! -s conftest.err' | |
03b8fe49 PB |
9705 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9706 | (eval $ac_try) 2>&5 | |
9707 | ac_status=$? | |
9708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9709 | (exit $ac_status); }; } && | |
9710 | { ac_try='test -s conftest.$ac_objext' | |
9711 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9712 | (eval $ac_try) 2>&5 | |
9713 | ac_status=$? | |
9714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9715 | (exit $ac_status); }; }; then | |
9716 | ac_lo=0 ac_mid=0 | |
9717 | while :; do | |
9718 | cat >conftest.$ac_ext <<_ACEOF | |
9719 | /* confdefs.h. */ | |
9720 | _ACEOF | |
9721 | cat confdefs.h >>conftest.$ac_ext | |
9722 | cat >>conftest.$ac_ext <<_ACEOF | |
9723 | /* end confdefs.h. */ | |
9724 | ||
9725 | int | |
9726 | main () | |
9727 | { | |
9728 | static int test_array [1 - 2 * !((sizeof (omp_lock_t)) <= $ac_mid)]; | |
9729 | test_array [0] = 0 | |
9730 | ||
9731 | ; | |
9732 | return 0; | |
9733 | } | |
9734 | _ACEOF | |
9735 | rm -f conftest.$ac_objext | |
9736 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9737 | (eval $ac_compile) 2>conftest.er1 | |
9738 | ac_status=$? | |
9739 | grep -v '^ *+' conftest.er1 >conftest.err | |
9740 | rm -f conftest.er1 | |
9741 | cat conftest.err >&5 | |
9742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9743 | (exit $ac_status); } && | |
d349482e AT |
9744 | { ac_try='test -z "$ac_c_werror_flag" |
9745 | || test ! -s conftest.err' | |
03b8fe49 PB |
9746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9747 | (eval $ac_try) 2>&5 | |
9748 | ac_status=$? | |
9749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9750 | (exit $ac_status); }; } && | |
9751 | { ac_try='test -s conftest.$ac_objext' | |
9752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9753 | (eval $ac_try) 2>&5 | |
9754 | ac_status=$? | |
9755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9756 | (exit $ac_status); }; }; then | |
9757 | ac_hi=$ac_mid; break | |
9758 | else | |
9759 | echo "$as_me: failed program was:" >&5 | |
9760 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9761 | ||
9762 | ac_lo=`expr $ac_mid + 1` | |
9763 | if test $ac_lo -le $ac_mid; then | |
9764 | ac_lo= ac_hi= | |
9765 | break | |
9766 | fi | |
9767 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
9768 | fi | |
9769 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
9770 | done | |
9771 | else | |
9772 | echo "$as_me: failed program was:" >&5 | |
9773 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9774 | ||
9775 | cat >conftest.$ac_ext <<_ACEOF | |
9776 | /* confdefs.h. */ | |
9777 | _ACEOF | |
9778 | cat confdefs.h >>conftest.$ac_ext | |
9779 | cat >>conftest.$ac_ext <<_ACEOF | |
9780 | /* end confdefs.h. */ | |
9781 | ||
9782 | int | |
9783 | main () | |
9784 | { | |
9785 | static int test_array [1 - 2 * !((sizeof (omp_lock_t)) < 0)]; | |
9786 | test_array [0] = 0 | |
9787 | ||
9788 | ; | |
9789 | return 0; | |
9790 | } | |
9791 | _ACEOF | |
9792 | rm -f conftest.$ac_objext | |
9793 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9794 | (eval $ac_compile) 2>conftest.er1 | |
9795 | ac_status=$? | |
9796 | grep -v '^ *+' conftest.er1 >conftest.err | |
9797 | rm -f conftest.er1 | |
9798 | cat conftest.err >&5 | |
9799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9800 | (exit $ac_status); } && | |
d349482e AT |
9801 | { ac_try='test -z "$ac_c_werror_flag" |
9802 | || test ! -s conftest.err' | |
03b8fe49 PB |
9803 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9804 | (eval $ac_try) 2>&5 | |
9805 | ac_status=$? | |
9806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9807 | (exit $ac_status); }; } && | |
9808 | { ac_try='test -s conftest.$ac_objext' | |
9809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9810 | (eval $ac_try) 2>&5 | |
9811 | ac_status=$? | |
9812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9813 | (exit $ac_status); }; }; then | |
9814 | ac_hi=-1 ac_mid=-1 | |
9815 | while :; do | |
9816 | cat >conftest.$ac_ext <<_ACEOF | |
9817 | /* confdefs.h. */ | |
9818 | _ACEOF | |
9819 | cat confdefs.h >>conftest.$ac_ext | |
9820 | cat >>conftest.$ac_ext <<_ACEOF | |
9821 | /* end confdefs.h. */ | |
9822 | ||
9823 | int | |
9824 | main () | |
9825 | { | |
9826 | static int test_array [1 - 2 * !((sizeof (omp_lock_t)) >= $ac_mid)]; | |
9827 | test_array [0] = 0 | |
9828 | ||
9829 | ; | |
9830 | return 0; | |
9831 | } | |
9832 | _ACEOF | |
9833 | rm -f conftest.$ac_objext | |
9834 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9835 | (eval $ac_compile) 2>conftest.er1 | |
9836 | ac_status=$? | |
9837 | grep -v '^ *+' conftest.er1 >conftest.err | |
9838 | rm -f conftest.er1 | |
9839 | cat conftest.err >&5 | |
9840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9841 | (exit $ac_status); } && | |
d349482e AT |
9842 | { ac_try='test -z "$ac_c_werror_flag" |
9843 | || test ! -s conftest.err' | |
03b8fe49 PB |
9844 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9845 | (eval $ac_try) 2>&5 | |
9846 | ac_status=$? | |
9847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9848 | (exit $ac_status); }; } && | |
9849 | { ac_try='test -s conftest.$ac_objext' | |
9850 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9851 | (eval $ac_try) 2>&5 | |
9852 | ac_status=$? | |
9853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9854 | (exit $ac_status); }; }; then | |
9855 | ac_lo=$ac_mid; break | |
9856 | else | |
9857 | echo "$as_me: failed program was:" >&5 | |
9858 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9859 | ||
9860 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
9861 | if test $ac_mid -le $ac_hi; then | |
9862 | ac_lo= ac_hi= | |
9863 | break | |
9864 | fi | |
9865 | ac_mid=`expr 2 '*' $ac_mid` | |
9866 | fi | |
9867 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
9868 | done | |
9869 | else | |
9870 | echo "$as_me: failed program was:" >&5 | |
9871 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9872 | ||
9873 | ac_lo= ac_hi= | |
9874 | fi | |
9875 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
9876 | fi | |
9877 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
9878 | # Binary search between lo and hi bounds. | |
9879 | while test "x$ac_lo" != "x$ac_hi"; do | |
9880 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
9881 | cat >conftest.$ac_ext <<_ACEOF | |
9882 | /* confdefs.h. */ | |
9883 | _ACEOF | |
9884 | cat confdefs.h >>conftest.$ac_ext | |
9885 | cat >>conftest.$ac_ext <<_ACEOF | |
9886 | /* end confdefs.h. */ | |
9887 | ||
9888 | int | |
9889 | main () | |
9890 | { | |
9891 | static int test_array [1 - 2 * !((sizeof (omp_lock_t)) <= $ac_mid)]; | |
9892 | test_array [0] = 0 | |
9893 | ||
9894 | ; | |
9895 | return 0; | |
9896 | } | |
9897 | _ACEOF | |
9898 | rm -f conftest.$ac_objext | |
9899 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9900 | (eval $ac_compile) 2>conftest.er1 | |
9901 | ac_status=$? | |
9902 | grep -v '^ *+' conftest.er1 >conftest.err | |
9903 | rm -f conftest.er1 | |
9904 | cat conftest.err >&5 | |
9905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9906 | (exit $ac_status); } && | |
d349482e AT |
9907 | { ac_try='test -z "$ac_c_werror_flag" |
9908 | || test ! -s conftest.err' | |
03b8fe49 PB |
9909 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9910 | (eval $ac_try) 2>&5 | |
9911 | ac_status=$? | |
9912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9913 | (exit $ac_status); }; } && | |
9914 | { ac_try='test -s conftest.$ac_objext' | |
9915 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9916 | (eval $ac_try) 2>&5 | |
9917 | ac_status=$? | |
9918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9919 | (exit $ac_status); }; }; then | |
9920 | ac_hi=$ac_mid | |
9921 | else | |
9922 | echo "$as_me: failed program was:" >&5 | |
9923 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9924 | ||
9925 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
9926 | fi | |
9927 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
9928 | done | |
9929 | case $ac_lo in | |
9930 | ?*) OMP_LOCK_SIZE=$ac_lo;; | |
9931 | '') { { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_t)" >&5 | |
9932 | echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_t)" >&2;} | |
9933 | { (exit 1); exit 1; }; } ;; | |
9934 | esac | |
9935 | else | |
9936 | if test "$cross_compiling" = yes; then | |
d349482e AT |
9937 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
9938 | See \`config.log' for more details." >&5 | |
9939 | echo "$as_me: error: cannot run test program while cross compiling | |
9940 | See \`config.log' for more details." >&2;} | |
03b8fe49 PB |
9941 | { (exit 1); exit 1; }; } |
9942 | else | |
9943 | cat >conftest.$ac_ext <<_ACEOF | |
9944 | /* confdefs.h. */ | |
9945 | _ACEOF | |
9946 | cat confdefs.h >>conftest.$ac_ext | |
9947 | cat >>conftest.$ac_ext <<_ACEOF | |
9948 | /* end confdefs.h. */ | |
9949 | ||
9950 | long longval () { return sizeof (omp_lock_t); } | |
9951 | unsigned long ulongval () { return sizeof (omp_lock_t); } | |
9952 | #include <stdio.h> | |
9953 | #include <stdlib.h> | |
9954 | int | |
9955 | main () | |
9956 | { | |
9957 | ||
9958 | FILE *f = fopen ("conftest.val", "w"); | |
9959 | if (! f) | |
9960 | exit (1); | |
9961 | if ((sizeof (omp_lock_t)) < 0) | |
9962 | { | |
9963 | long i = longval (); | |
9964 | if (i != (sizeof (omp_lock_t))) | |
9965 | exit (1); | |
9966 | fprintf (f, "%ld\n", i); | |
9967 | } | |
9968 | else | |
9969 | { | |
9970 | unsigned long i = ulongval (); | |
9971 | if (i != (sizeof (omp_lock_t))) | |
9972 | exit (1); | |
9973 | fprintf (f, "%lu\n", i); | |
9974 | } | |
9975 | exit (ferror (f) || fclose (f) != 0); | |
9976 | ||
9977 | ; | |
9978 | return 0; | |
9979 | } | |
9980 | _ACEOF | |
9981 | rm -f conftest$ac_exeext | |
9982 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9983 | (eval $ac_link) 2>&5 | |
9984 | ac_status=$? | |
9985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9986 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
9987 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9988 | (eval $ac_try) 2>&5 | |
9989 | ac_status=$? | |
9990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9991 | (exit $ac_status); }; }; then | |
9992 | OMP_LOCK_SIZE=`cat conftest.val` | |
9993 | else | |
9994 | echo "$as_me: program exited with status $ac_status" >&5 | |
9995 | echo "$as_me: failed program was:" >&5 | |
9996 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9997 | ||
9998 | ( exit $ac_status ) | |
9999 | { { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_t)" >&5 | |
10000 | echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_t)" >&2;} | |
10001 | { (exit 1); exit 1; }; } | |
10002 | fi | |
10003 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
10004 | fi | |
10005 | fi | |
10006 | rm -f conftest.val | |
10007 | if test "$cross_compiling" = yes; then | |
10008 | # Depending upon the size, compute the lo and hi bounds. | |
10009 | cat >conftest.$ac_ext <<_ACEOF | |
10010 | /* confdefs.h. */ | |
10011 | _ACEOF | |
10012 | cat confdefs.h >>conftest.$ac_ext | |
10013 | cat >>conftest.$ac_ext <<_ACEOF | |
10014 | /* end confdefs.h. */ | |
10015 | ||
10016 | int | |
10017 | main () | |
10018 | { | |
10019 | static int test_array [1 - 2 * !((__alignof (omp_lock_t)) >= 0)]; | |
10020 | test_array [0] = 0 | |
10021 | ||
10022 | ; | |
10023 | return 0; | |
10024 | } | |
10025 | _ACEOF | |
10026 | rm -f conftest.$ac_objext | |
10027 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10028 | (eval $ac_compile) 2>conftest.er1 | |
10029 | ac_status=$? | |
10030 | grep -v '^ *+' conftest.er1 >conftest.err | |
10031 | rm -f conftest.er1 | |
10032 | cat conftest.err >&5 | |
10033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10034 | (exit $ac_status); } && | |
d349482e AT |
10035 | { ac_try='test -z "$ac_c_werror_flag" |
10036 | || test ! -s conftest.err' | |
03b8fe49 PB |
10037 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10038 | (eval $ac_try) 2>&5 | |
10039 | ac_status=$? | |
10040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10041 | (exit $ac_status); }; } && | |
10042 | { ac_try='test -s conftest.$ac_objext' | |
10043 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10044 | (eval $ac_try) 2>&5 | |
10045 | ac_status=$? | |
10046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10047 | (exit $ac_status); }; }; then | |
10048 | ac_lo=0 ac_mid=0 | |
10049 | while :; do | |
10050 | cat >conftest.$ac_ext <<_ACEOF | |
10051 | /* confdefs.h. */ | |
10052 | _ACEOF | |
10053 | cat confdefs.h >>conftest.$ac_ext | |
10054 | cat >>conftest.$ac_ext <<_ACEOF | |
10055 | /* end confdefs.h. */ | |
10056 | ||
10057 | int | |
10058 | main () | |
10059 | { | |
10060 | static int test_array [1 - 2 * !((__alignof (omp_lock_t)) <= $ac_mid)]; | |
10061 | test_array [0] = 0 | |
10062 | ||
10063 | ; | |
10064 | return 0; | |
10065 | } | |
10066 | _ACEOF | |
10067 | rm -f conftest.$ac_objext | |
10068 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10069 | (eval $ac_compile) 2>conftest.er1 | |
10070 | ac_status=$? | |
10071 | grep -v '^ *+' conftest.er1 >conftest.err | |
10072 | rm -f conftest.er1 | |
10073 | cat conftest.err >&5 | |
10074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10075 | (exit $ac_status); } && | |
d349482e AT |
10076 | { ac_try='test -z "$ac_c_werror_flag" |
10077 | || test ! -s conftest.err' | |
03b8fe49 PB |
10078 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10079 | (eval $ac_try) 2>&5 | |
10080 | ac_status=$? | |
10081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10082 | (exit $ac_status); }; } && | |
10083 | { ac_try='test -s conftest.$ac_objext' | |
10084 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10085 | (eval $ac_try) 2>&5 | |
10086 | ac_status=$? | |
10087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10088 | (exit $ac_status); }; }; then | |
10089 | ac_hi=$ac_mid; break | |
10090 | else | |
10091 | echo "$as_me: failed program was:" >&5 | |
10092 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10093 | ||
10094 | ac_lo=`expr $ac_mid + 1` | |
10095 | if test $ac_lo -le $ac_mid; then | |
10096 | ac_lo= ac_hi= | |
10097 | break | |
10098 | fi | |
10099 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
10100 | fi | |
10101 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
10102 | done | |
10103 | else | |
10104 | echo "$as_me: failed program was:" >&5 | |
10105 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10106 | ||
10107 | cat >conftest.$ac_ext <<_ACEOF | |
10108 | /* confdefs.h. */ | |
10109 | _ACEOF | |
10110 | cat confdefs.h >>conftest.$ac_ext | |
10111 | cat >>conftest.$ac_ext <<_ACEOF | |
10112 | /* end confdefs.h. */ | |
10113 | ||
10114 | int | |
10115 | main () | |
10116 | { | |
10117 | static int test_array [1 - 2 * !((__alignof (omp_lock_t)) < 0)]; | |
10118 | test_array [0] = 0 | |
10119 | ||
10120 | ; | |
10121 | return 0; | |
10122 | } | |
10123 | _ACEOF | |
10124 | rm -f conftest.$ac_objext | |
10125 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10126 | (eval $ac_compile) 2>conftest.er1 | |
10127 | ac_status=$? | |
10128 | grep -v '^ *+' conftest.er1 >conftest.err | |
10129 | rm -f conftest.er1 | |
10130 | cat conftest.err >&5 | |
10131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10132 | (exit $ac_status); } && | |
d349482e AT |
10133 | { ac_try='test -z "$ac_c_werror_flag" |
10134 | || test ! -s conftest.err' | |
03b8fe49 PB |
10135 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10136 | (eval $ac_try) 2>&5 | |
10137 | ac_status=$? | |
10138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10139 | (exit $ac_status); }; } && | |
10140 | { ac_try='test -s conftest.$ac_objext' | |
10141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10142 | (eval $ac_try) 2>&5 | |
10143 | ac_status=$? | |
10144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10145 | (exit $ac_status); }; }; then | |
10146 | ac_hi=-1 ac_mid=-1 | |
10147 | while :; do | |
10148 | cat >conftest.$ac_ext <<_ACEOF | |
10149 | /* confdefs.h. */ | |
10150 | _ACEOF | |
10151 | cat confdefs.h >>conftest.$ac_ext | |
10152 | cat >>conftest.$ac_ext <<_ACEOF | |
10153 | /* end confdefs.h. */ | |
10154 | ||
10155 | int | |
10156 | main () | |
10157 | { | |
10158 | static int test_array [1 - 2 * !((__alignof (omp_lock_t)) >= $ac_mid)]; | |
10159 | test_array [0] = 0 | |
10160 | ||
10161 | ; | |
10162 | return 0; | |
10163 | } | |
10164 | _ACEOF | |
10165 | rm -f conftest.$ac_objext | |
10166 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10167 | (eval $ac_compile) 2>conftest.er1 | |
10168 | ac_status=$? | |
10169 | grep -v '^ *+' conftest.er1 >conftest.err | |
10170 | rm -f conftest.er1 | |
10171 | cat conftest.err >&5 | |
10172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10173 | (exit $ac_status); } && | |
d349482e AT |
10174 | { ac_try='test -z "$ac_c_werror_flag" |
10175 | || test ! -s conftest.err' | |
03b8fe49 PB |
10176 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10177 | (eval $ac_try) 2>&5 | |
10178 | ac_status=$? | |
10179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10180 | (exit $ac_status); }; } && | |
10181 | { ac_try='test -s conftest.$ac_objext' | |
10182 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10183 | (eval $ac_try) 2>&5 | |
10184 | ac_status=$? | |
10185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10186 | (exit $ac_status); }; }; then | |
10187 | ac_lo=$ac_mid; break | |
10188 | else | |
10189 | echo "$as_me: failed program was:" >&5 | |
10190 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10191 | ||
10192 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
10193 | if test $ac_mid -le $ac_hi; then | |
10194 | ac_lo= ac_hi= | |
10195 | break | |
10196 | fi | |
10197 | ac_mid=`expr 2 '*' $ac_mid` | |
10198 | fi | |
10199 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
10200 | done | |
10201 | else | |
10202 | echo "$as_me: failed program was:" >&5 | |
10203 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10204 | ||
10205 | ac_lo= ac_hi= | |
10206 | fi | |
10207 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
10208 | fi | |
10209 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
10210 | # Binary search between lo and hi bounds. | |
10211 | while test "x$ac_lo" != "x$ac_hi"; do | |
10212 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
10213 | cat >conftest.$ac_ext <<_ACEOF | |
10214 | /* confdefs.h. */ | |
10215 | _ACEOF | |
10216 | cat confdefs.h >>conftest.$ac_ext | |
10217 | cat >>conftest.$ac_ext <<_ACEOF | |
10218 | /* end confdefs.h. */ | |
10219 | ||
10220 | int | |
10221 | main () | |
10222 | { | |
10223 | static int test_array [1 - 2 * !((__alignof (omp_lock_t)) <= $ac_mid)]; | |
10224 | test_array [0] = 0 | |
10225 | ||
10226 | ; | |
10227 | return 0; | |
10228 | } | |
10229 | _ACEOF | |
10230 | rm -f conftest.$ac_objext | |
10231 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10232 | (eval $ac_compile) 2>conftest.er1 | |
10233 | ac_status=$? | |
10234 | grep -v '^ *+' conftest.er1 >conftest.err | |
10235 | rm -f conftest.er1 | |
10236 | cat conftest.err >&5 | |
10237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10238 | (exit $ac_status); } && | |
d349482e AT |
10239 | { ac_try='test -z "$ac_c_werror_flag" |
10240 | || test ! -s conftest.err' | |
03b8fe49 PB |
10241 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10242 | (eval $ac_try) 2>&5 | |
10243 | ac_status=$? | |
10244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10245 | (exit $ac_status); }; } && | |
10246 | { ac_try='test -s conftest.$ac_objext' | |
10247 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10248 | (eval $ac_try) 2>&5 | |
10249 | ac_status=$? | |
10250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10251 | (exit $ac_status); }; }; then | |
10252 | ac_hi=$ac_mid | |
10253 | else | |
10254 | echo "$as_me: failed program was:" >&5 | |
10255 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10256 | ||
10257 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
10258 | fi | |
10259 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
10260 | done | |
10261 | case $ac_lo in | |
10262 | ?*) OMP_LOCK_ALIGN=$ac_lo;; | |
10263 | '') ;; | |
10264 | esac | |
10265 | else | |
10266 | if test "$cross_compiling" = yes; then | |
d349482e AT |
10267 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
10268 | See \`config.log' for more details." >&5 | |
10269 | echo "$as_me: error: cannot run test program while cross compiling | |
10270 | See \`config.log' for more details." >&2;} | |
03b8fe49 PB |
10271 | { (exit 1); exit 1; }; } |
10272 | else | |
10273 | cat >conftest.$ac_ext <<_ACEOF | |
10274 | /* confdefs.h. */ | |
10275 | _ACEOF | |
10276 | cat confdefs.h >>conftest.$ac_ext | |
10277 | cat >>conftest.$ac_ext <<_ACEOF | |
10278 | /* end confdefs.h. */ | |
10279 | ||
10280 | long longval () { return __alignof (omp_lock_t); } | |
10281 | unsigned long ulongval () { return __alignof (omp_lock_t); } | |
10282 | #include <stdio.h> | |
10283 | #include <stdlib.h> | |
10284 | int | |
10285 | main () | |
10286 | { | |
10287 | ||
10288 | FILE *f = fopen ("conftest.val", "w"); | |
10289 | if (! f) | |
10290 | exit (1); | |
10291 | if ((__alignof (omp_lock_t)) < 0) | |
10292 | { | |
10293 | long i = longval (); | |
10294 | if (i != (__alignof (omp_lock_t))) | |
10295 | exit (1); | |
10296 | fprintf (f, "%ld\n", i); | |
10297 | } | |
10298 | else | |
10299 | { | |
10300 | unsigned long i = ulongval (); | |
10301 | if (i != (__alignof (omp_lock_t))) | |
10302 | exit (1); | |
10303 | fprintf (f, "%lu\n", i); | |
10304 | } | |
10305 | exit (ferror (f) || fclose (f) != 0); | |
10306 | ||
10307 | ; | |
10308 | return 0; | |
10309 | } | |
10310 | _ACEOF | |
10311 | rm -f conftest$ac_exeext | |
10312 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10313 | (eval $ac_link) 2>&5 | |
10314 | ac_status=$? | |
10315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10316 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
10317 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10318 | (eval $ac_try) 2>&5 | |
10319 | ac_status=$? | |
10320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10321 | (exit $ac_status); }; }; then | |
10322 | OMP_LOCK_ALIGN=`cat conftest.val` | |
10323 | else | |
10324 | echo "$as_me: program exited with status $ac_status" >&5 | |
10325 | echo "$as_me: failed program was:" >&5 | |
10326 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10327 | ||
10328 | fi | |
10329 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
10330 | fi | |
10331 | fi | |
10332 | rm -f conftest.val | |
10333 | if test "$cross_compiling" = yes; then | |
10334 | # Depending upon the size, compute the lo and hi bounds. | |
10335 | cat >conftest.$ac_ext <<_ACEOF | |
10336 | /* confdefs.h. */ | |
10337 | _ACEOF | |
10338 | cat confdefs.h >>conftest.$ac_ext | |
10339 | cat >>conftest.$ac_ext <<_ACEOF | |
10340 | /* end confdefs.h. */ | |
10341 | ||
10342 | int | |
10343 | main () | |
10344 | { | |
10345 | static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) >= 0)]; | |
10346 | test_array [0] = 0 | |
10347 | ||
10348 | ; | |
10349 | return 0; | |
10350 | } | |
10351 | _ACEOF | |
10352 | rm -f conftest.$ac_objext | |
10353 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10354 | (eval $ac_compile) 2>conftest.er1 | |
10355 | ac_status=$? | |
10356 | grep -v '^ *+' conftest.er1 >conftest.err | |
10357 | rm -f conftest.er1 | |
10358 | cat conftest.err >&5 | |
10359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10360 | (exit $ac_status); } && | |
d349482e AT |
10361 | { ac_try='test -z "$ac_c_werror_flag" |
10362 | || test ! -s conftest.err' | |
03b8fe49 PB |
10363 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10364 | (eval $ac_try) 2>&5 | |
10365 | ac_status=$? | |
10366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10367 | (exit $ac_status); }; } && | |
10368 | { ac_try='test -s conftest.$ac_objext' | |
10369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10370 | (eval $ac_try) 2>&5 | |
10371 | ac_status=$? | |
10372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10373 | (exit $ac_status); }; }; then | |
10374 | ac_lo=0 ac_mid=0 | |
10375 | while :; do | |
10376 | cat >conftest.$ac_ext <<_ACEOF | |
10377 | /* confdefs.h. */ | |
10378 | _ACEOF | |
10379 | cat confdefs.h >>conftest.$ac_ext | |
10380 | cat >>conftest.$ac_ext <<_ACEOF | |
10381 | /* end confdefs.h. */ | |
10382 | ||
10383 | int | |
10384 | main () | |
10385 | { | |
10386 | static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) <= $ac_mid)]; | |
10387 | test_array [0] = 0 | |
10388 | ||
10389 | ; | |
10390 | return 0; | |
10391 | } | |
10392 | _ACEOF | |
10393 | rm -f conftest.$ac_objext | |
10394 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10395 | (eval $ac_compile) 2>conftest.er1 | |
10396 | ac_status=$? | |
10397 | grep -v '^ *+' conftest.er1 >conftest.err | |
10398 | rm -f conftest.er1 | |
10399 | cat conftest.err >&5 | |
10400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10401 | (exit $ac_status); } && | |
d349482e AT |
10402 | { ac_try='test -z "$ac_c_werror_flag" |
10403 | || test ! -s conftest.err' | |
03b8fe49 PB |
10404 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10405 | (eval $ac_try) 2>&5 | |
10406 | ac_status=$? | |
10407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10408 | (exit $ac_status); }; } && | |
10409 | { ac_try='test -s conftest.$ac_objext' | |
10410 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10411 | (eval $ac_try) 2>&5 | |
10412 | ac_status=$? | |
10413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10414 | (exit $ac_status); }; }; then | |
10415 | ac_hi=$ac_mid; break | |
10416 | else | |
10417 | echo "$as_me: failed program was:" >&5 | |
10418 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10419 | ||
10420 | ac_lo=`expr $ac_mid + 1` | |
10421 | if test $ac_lo -le $ac_mid; then | |
10422 | ac_lo= ac_hi= | |
10423 | break | |
10424 | fi | |
10425 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
10426 | fi | |
10427 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
10428 | done | |
10429 | else | |
10430 | echo "$as_me: failed program was:" >&5 | |
10431 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10432 | ||
10433 | cat >conftest.$ac_ext <<_ACEOF | |
10434 | /* confdefs.h. */ | |
10435 | _ACEOF | |
10436 | cat confdefs.h >>conftest.$ac_ext | |
10437 | cat >>conftest.$ac_ext <<_ACEOF | |
10438 | /* end confdefs.h. */ | |
10439 | ||
10440 | int | |
10441 | main () | |
10442 | { | |
10443 | static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) < 0)]; | |
10444 | test_array [0] = 0 | |
10445 | ||
10446 | ; | |
10447 | return 0; | |
10448 | } | |
10449 | _ACEOF | |
10450 | rm -f conftest.$ac_objext | |
10451 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10452 | (eval $ac_compile) 2>conftest.er1 | |
10453 | ac_status=$? | |
10454 | grep -v '^ *+' conftest.er1 >conftest.err | |
10455 | rm -f conftest.er1 | |
10456 | cat conftest.err >&5 | |
10457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10458 | (exit $ac_status); } && | |
d349482e AT |
10459 | { ac_try='test -z "$ac_c_werror_flag" |
10460 | || test ! -s conftest.err' | |
03b8fe49 PB |
10461 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10462 | (eval $ac_try) 2>&5 | |
10463 | ac_status=$? | |
10464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10465 | (exit $ac_status); }; } && | |
10466 | { ac_try='test -s conftest.$ac_objext' | |
10467 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10468 | (eval $ac_try) 2>&5 | |
10469 | ac_status=$? | |
10470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10471 | (exit $ac_status); }; }; then | |
10472 | ac_hi=-1 ac_mid=-1 | |
10473 | while :; do | |
10474 | cat >conftest.$ac_ext <<_ACEOF | |
10475 | /* confdefs.h. */ | |
10476 | _ACEOF | |
10477 | cat confdefs.h >>conftest.$ac_ext | |
10478 | cat >>conftest.$ac_ext <<_ACEOF | |
10479 | /* end confdefs.h. */ | |
10480 | ||
10481 | int | |
10482 | main () | |
10483 | { | |
10484 | static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) >= $ac_mid)]; | |
10485 | test_array [0] = 0 | |
10486 | ||
10487 | ; | |
10488 | return 0; | |
10489 | } | |
10490 | _ACEOF | |
10491 | rm -f conftest.$ac_objext | |
10492 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10493 | (eval $ac_compile) 2>conftest.er1 | |
10494 | ac_status=$? | |
10495 | grep -v '^ *+' conftest.er1 >conftest.err | |
10496 | rm -f conftest.er1 | |
10497 | cat conftest.err >&5 | |
10498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10499 | (exit $ac_status); } && | |
d349482e AT |
10500 | { ac_try='test -z "$ac_c_werror_flag" |
10501 | || test ! -s conftest.err' | |
03b8fe49 PB |
10502 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10503 | (eval $ac_try) 2>&5 | |
10504 | ac_status=$? | |
10505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10506 | (exit $ac_status); }; } && | |
10507 | { ac_try='test -s conftest.$ac_objext' | |
10508 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10509 | (eval $ac_try) 2>&5 | |
10510 | ac_status=$? | |
10511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10512 | (exit $ac_status); }; }; then | |
10513 | ac_lo=$ac_mid; break | |
10514 | else | |
10515 | echo "$as_me: failed program was:" >&5 | |
10516 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10517 | ||
10518 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
10519 | if test $ac_mid -le $ac_hi; then | |
10520 | ac_lo= ac_hi= | |
10521 | break | |
10522 | fi | |
10523 | ac_mid=`expr 2 '*' $ac_mid` | |
10524 | fi | |
10525 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
10526 | done | |
10527 | else | |
10528 | echo "$as_me: failed program was:" >&5 | |
10529 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10530 | ||
10531 | ac_lo= ac_hi= | |
10532 | fi | |
10533 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
10534 | fi | |
10535 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
10536 | # Binary search between lo and hi bounds. | |
10537 | while test "x$ac_lo" != "x$ac_hi"; do | |
10538 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
10539 | cat >conftest.$ac_ext <<_ACEOF | |
10540 | /* confdefs.h. */ | |
10541 | _ACEOF | |
10542 | cat confdefs.h >>conftest.$ac_ext | |
10543 | cat >>conftest.$ac_ext <<_ACEOF | |
10544 | /* end confdefs.h. */ | |
10545 | ||
10546 | int | |
10547 | main () | |
10548 | { | |
10549 | static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) <= $ac_mid)]; | |
10550 | test_array [0] = 0 | |
10551 | ||
10552 | ; | |
10553 | return 0; | |
10554 | } | |
10555 | _ACEOF | |
10556 | rm -f conftest.$ac_objext | |
10557 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10558 | (eval $ac_compile) 2>conftest.er1 | |
10559 | ac_status=$? | |
10560 | grep -v '^ *+' conftest.er1 >conftest.err | |
10561 | rm -f conftest.er1 | |
10562 | cat conftest.err >&5 | |
10563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10564 | (exit $ac_status); } && | |
d349482e AT |
10565 | { ac_try='test -z "$ac_c_werror_flag" |
10566 | || test ! -s conftest.err' | |
03b8fe49 PB |
10567 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10568 | (eval $ac_try) 2>&5 | |
10569 | ac_status=$? | |
10570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10571 | (exit $ac_status); }; } && | |
10572 | { ac_try='test -s conftest.$ac_objext' | |
10573 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10574 | (eval $ac_try) 2>&5 | |
10575 | ac_status=$? | |
10576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10577 | (exit $ac_status); }; }; then | |
10578 | ac_hi=$ac_mid | |
10579 | else | |
10580 | echo "$as_me: failed program was:" >&5 | |
10581 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10582 | ||
10583 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
10584 | fi | |
10585 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
10586 | done | |
10587 | case $ac_lo in | |
10588 | ?*) OMP_NEST_LOCK_SIZE=$ac_lo;; | |
10589 | '') ;; | |
10590 | esac | |
10591 | else | |
10592 | if test "$cross_compiling" = yes; then | |
d349482e AT |
10593 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
10594 | See \`config.log' for more details." >&5 | |
10595 | echo "$as_me: error: cannot run test program while cross compiling | |
10596 | See \`config.log' for more details." >&2;} | |
03b8fe49 PB |
10597 | { (exit 1); exit 1; }; } |
10598 | else | |
10599 | cat >conftest.$ac_ext <<_ACEOF | |
10600 | /* confdefs.h. */ | |
10601 | _ACEOF | |
10602 | cat confdefs.h >>conftest.$ac_ext | |
10603 | cat >>conftest.$ac_ext <<_ACEOF | |
10604 | /* end confdefs.h. */ | |
10605 | ||
10606 | long longval () { return sizeof (omp_nest_lock_t); } | |
10607 | unsigned long ulongval () { return sizeof (omp_nest_lock_t); } | |
10608 | #include <stdio.h> | |
10609 | #include <stdlib.h> | |
10610 | int | |
10611 | main () | |
10612 | { | |
10613 | ||
10614 | FILE *f = fopen ("conftest.val", "w"); | |
10615 | if (! f) | |
10616 | exit (1); | |
10617 | if ((sizeof (omp_nest_lock_t)) < 0) | |
10618 | { | |
10619 | long i = longval (); | |
10620 | if (i != (sizeof (omp_nest_lock_t))) | |
10621 | exit (1); | |
10622 | fprintf (f, "%ld\n", i); | |
10623 | } | |
10624 | else | |
10625 | { | |
10626 | unsigned long i = ulongval (); | |
10627 | if (i != (sizeof (omp_nest_lock_t))) | |
10628 | exit (1); | |
10629 | fprintf (f, "%lu\n", i); | |
10630 | } | |
10631 | exit (ferror (f) || fclose (f) != 0); | |
10632 | ||
10633 | ; | |
10634 | return 0; | |
10635 | } | |
10636 | _ACEOF | |
10637 | rm -f conftest$ac_exeext | |
10638 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10639 | (eval $ac_link) 2>&5 | |
10640 | ac_status=$? | |
10641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10642 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
10643 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10644 | (eval $ac_try) 2>&5 | |
10645 | ac_status=$? | |
10646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10647 | (exit $ac_status); }; }; then | |
10648 | OMP_NEST_LOCK_SIZE=`cat conftest.val` | |
10649 | else | |
10650 | echo "$as_me: program exited with status $ac_status" >&5 | |
10651 | echo "$as_me: failed program was:" >&5 | |
10652 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10653 | ||
10654 | fi | |
10655 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
10656 | fi | |
10657 | fi | |
10658 | rm -f conftest.val | |
10659 | if test "$cross_compiling" = yes; then | |
10660 | # Depending upon the size, compute the lo and hi bounds. | |
10661 | cat >conftest.$ac_ext <<_ACEOF | |
10662 | /* confdefs.h. */ | |
10663 | _ACEOF | |
10664 | cat confdefs.h >>conftest.$ac_ext | |
10665 | cat >>conftest.$ac_ext <<_ACEOF | |
10666 | /* end confdefs.h. */ | |
10667 | ||
10668 | int | |
10669 | main () | |
10670 | { | |
10671 | static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) >= 0)]; | |
10672 | test_array [0] = 0 | |
10673 | ||
10674 | ; | |
10675 | return 0; | |
10676 | } | |
10677 | _ACEOF | |
10678 | rm -f conftest.$ac_objext | |
10679 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10680 | (eval $ac_compile) 2>conftest.er1 | |
10681 | ac_status=$? | |
10682 | grep -v '^ *+' conftest.er1 >conftest.err | |
10683 | rm -f conftest.er1 | |
10684 | cat conftest.err >&5 | |
10685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10686 | (exit $ac_status); } && | |
d349482e AT |
10687 | { ac_try='test -z "$ac_c_werror_flag" |
10688 | || test ! -s conftest.err' | |
03b8fe49 PB |
10689 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10690 | (eval $ac_try) 2>&5 | |
10691 | ac_status=$? | |
10692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10693 | (exit $ac_status); }; } && | |
10694 | { ac_try='test -s conftest.$ac_objext' | |
10695 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10696 | (eval $ac_try) 2>&5 | |
10697 | ac_status=$? | |
10698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10699 | (exit $ac_status); }; }; then | |
10700 | ac_lo=0 ac_mid=0 | |
10701 | while :; do | |
10702 | cat >conftest.$ac_ext <<_ACEOF | |
10703 | /* confdefs.h. */ | |
10704 | _ACEOF | |
10705 | cat confdefs.h >>conftest.$ac_ext | |
10706 | cat >>conftest.$ac_ext <<_ACEOF | |
10707 | /* end confdefs.h. */ | |
10708 | ||
10709 | int | |
10710 | main () | |
10711 | { | |
10712 | static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) <= $ac_mid)]; | |
10713 | test_array [0] = 0 | |
10714 | ||
10715 | ; | |
10716 | return 0; | |
10717 | } | |
10718 | _ACEOF | |
10719 | rm -f conftest.$ac_objext | |
10720 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10721 | (eval $ac_compile) 2>conftest.er1 | |
10722 | ac_status=$? | |
10723 | grep -v '^ *+' conftest.er1 >conftest.err | |
10724 | rm -f conftest.er1 | |
10725 | cat conftest.err >&5 | |
10726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10727 | (exit $ac_status); } && | |
d349482e AT |
10728 | { ac_try='test -z "$ac_c_werror_flag" |
10729 | || test ! -s conftest.err' | |
03b8fe49 PB |
10730 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10731 | (eval $ac_try) 2>&5 | |
10732 | ac_status=$? | |
10733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10734 | (exit $ac_status); }; } && | |
10735 | { ac_try='test -s conftest.$ac_objext' | |
10736 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10737 | (eval $ac_try) 2>&5 | |
10738 | ac_status=$? | |
10739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10740 | (exit $ac_status); }; }; then | |
10741 | ac_hi=$ac_mid; break | |
10742 | else | |
10743 | echo "$as_me: failed program was:" >&5 | |
10744 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10745 | ||
10746 | ac_lo=`expr $ac_mid + 1` | |
10747 | if test $ac_lo -le $ac_mid; then | |
10748 | ac_lo= ac_hi= | |
10749 | break | |
10750 | fi | |
10751 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
10752 | fi | |
10753 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
10754 | done | |
10755 | else | |
10756 | echo "$as_me: failed program was:" >&5 | |
10757 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10758 | ||
10759 | cat >conftest.$ac_ext <<_ACEOF | |
10760 | /* confdefs.h. */ | |
10761 | _ACEOF | |
10762 | cat confdefs.h >>conftest.$ac_ext | |
10763 | cat >>conftest.$ac_ext <<_ACEOF | |
10764 | /* end confdefs.h. */ | |
10765 | ||
10766 | int | |
10767 | main () | |
10768 | { | |
10769 | static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) < 0)]; | |
10770 | test_array [0] = 0 | |
10771 | ||
10772 | ; | |
10773 | return 0; | |
10774 | } | |
10775 | _ACEOF | |
10776 | rm -f conftest.$ac_objext | |
10777 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10778 | (eval $ac_compile) 2>conftest.er1 | |
10779 | ac_status=$? | |
10780 | grep -v '^ *+' conftest.er1 >conftest.err | |
10781 | rm -f conftest.er1 | |
10782 | cat conftest.err >&5 | |
10783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10784 | (exit $ac_status); } && | |
d349482e AT |
10785 | { ac_try='test -z "$ac_c_werror_flag" |
10786 | || test ! -s conftest.err' | |
03b8fe49 PB |
10787 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10788 | (eval $ac_try) 2>&5 | |
10789 | ac_status=$? | |
10790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10791 | (exit $ac_status); }; } && | |
10792 | { ac_try='test -s conftest.$ac_objext' | |
10793 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10794 | (eval $ac_try) 2>&5 | |
10795 | ac_status=$? | |
10796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10797 | (exit $ac_status); }; }; then | |
10798 | ac_hi=-1 ac_mid=-1 | |
10799 | while :; do | |
10800 | cat >conftest.$ac_ext <<_ACEOF | |
10801 | /* confdefs.h. */ | |
10802 | _ACEOF | |
10803 | cat confdefs.h >>conftest.$ac_ext | |
10804 | cat >>conftest.$ac_ext <<_ACEOF | |
10805 | /* end confdefs.h. */ | |
10806 | ||
10807 | int | |
10808 | main () | |
10809 | { | |
10810 | static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) >= $ac_mid)]; | |
10811 | test_array [0] = 0 | |
10812 | ||
10813 | ; | |
10814 | return 0; | |
10815 | } | |
10816 | _ACEOF | |
10817 | rm -f conftest.$ac_objext | |
10818 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10819 | (eval $ac_compile) 2>conftest.er1 | |
10820 | ac_status=$? | |
10821 | grep -v '^ *+' conftest.er1 >conftest.err | |
10822 | rm -f conftest.er1 | |
10823 | cat conftest.err >&5 | |
10824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10825 | (exit $ac_status); } && | |
d349482e AT |
10826 | { ac_try='test -z "$ac_c_werror_flag" |
10827 | || test ! -s conftest.err' | |
03b8fe49 PB |
10828 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10829 | (eval $ac_try) 2>&5 | |
10830 | ac_status=$? | |
10831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10832 | (exit $ac_status); }; } && | |
10833 | { ac_try='test -s conftest.$ac_objext' | |
10834 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10835 | (eval $ac_try) 2>&5 | |
10836 | ac_status=$? | |
10837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10838 | (exit $ac_status); }; }; then | |
10839 | ac_lo=$ac_mid; break | |
10840 | else | |
10841 | echo "$as_me: failed program was:" >&5 | |
10842 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10843 | ||
10844 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
10845 | if test $ac_mid -le $ac_hi; then | |
10846 | ac_lo= ac_hi= | |
10847 | break | |
10848 | fi | |
10849 | ac_mid=`expr 2 '*' $ac_mid` | |
10850 | fi | |
10851 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
10852 | done | |
10853 | else | |
10854 | echo "$as_me: failed program was:" >&5 | |
10855 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10856 | ||
10857 | ac_lo= ac_hi= | |
10858 | fi | |
10859 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
10860 | fi | |
10861 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
10862 | # Binary search between lo and hi bounds. | |
10863 | while test "x$ac_lo" != "x$ac_hi"; do | |
10864 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
10865 | cat >conftest.$ac_ext <<_ACEOF | |
10866 | /* confdefs.h. */ | |
10867 | _ACEOF | |
10868 | cat confdefs.h >>conftest.$ac_ext | |
10869 | cat >>conftest.$ac_ext <<_ACEOF | |
10870 | /* end confdefs.h. */ | |
10871 | ||
10872 | int | |
10873 | main () | |
10874 | { | |
10875 | static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) <= $ac_mid)]; | |
10876 | test_array [0] = 0 | |
10877 | ||
10878 | ; | |
10879 | return 0; | |
10880 | } | |
10881 | _ACEOF | |
10882 | rm -f conftest.$ac_objext | |
10883 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10884 | (eval $ac_compile) 2>conftest.er1 | |
10885 | ac_status=$? | |
10886 | grep -v '^ *+' conftest.er1 >conftest.err | |
10887 | rm -f conftest.er1 | |
10888 | cat conftest.err >&5 | |
10889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10890 | (exit $ac_status); } && | |
d349482e AT |
10891 | { ac_try='test -z "$ac_c_werror_flag" |
10892 | || test ! -s conftest.err' | |
03b8fe49 PB |
10893 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10894 | (eval $ac_try) 2>&5 | |
10895 | ac_status=$? | |
10896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10897 | (exit $ac_status); }; } && | |
10898 | { ac_try='test -s conftest.$ac_objext' | |
10899 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10900 | (eval $ac_try) 2>&5 | |
10901 | ac_status=$? | |
10902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10903 | (exit $ac_status); }; }; then | |
10904 | ac_hi=$ac_mid | |
10905 | else | |
10906 | echo "$as_me: failed program was:" >&5 | |
10907 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10908 | ||
10909 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
10910 | fi | |
10911 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
10912 | done | |
10913 | case $ac_lo in | |
10914 | ?*) OMP_NEST_LOCK_ALIGN=$ac_lo;; | |
10915 | '') ;; | |
10916 | esac | |
10917 | else | |
10918 | if test "$cross_compiling" = yes; then | |
d349482e AT |
10919 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
10920 | See \`config.log' for more details." >&5 | |
10921 | echo "$as_me: error: cannot run test program while cross compiling | |
10922 | See \`config.log' for more details." >&2;} | |
03b8fe49 PB |
10923 | { (exit 1); exit 1; }; } |
10924 | else | |
10925 | cat >conftest.$ac_ext <<_ACEOF | |
10926 | /* confdefs.h. */ | |
10927 | _ACEOF | |
10928 | cat confdefs.h >>conftest.$ac_ext | |
10929 | cat >>conftest.$ac_ext <<_ACEOF | |
10930 | /* end confdefs.h. */ | |
10931 | ||
10932 | long longval () { return __alignof (omp_nest_lock_t); } | |
10933 | unsigned long ulongval () { return __alignof (omp_nest_lock_t); } | |
10934 | #include <stdio.h> | |
10935 | #include <stdlib.h> | |
10936 | int | |
10937 | main () | |
10938 | { | |
10939 | ||
10940 | FILE *f = fopen ("conftest.val", "w"); | |
10941 | if (! f) | |
10942 | exit (1); | |
10943 | if ((__alignof (omp_nest_lock_t)) < 0) | |
10944 | { | |
10945 | long i = longval (); | |
10946 | if (i != (__alignof (omp_nest_lock_t))) | |
10947 | exit (1); | |
10948 | fprintf (f, "%ld\n", i); | |
10949 | } | |
10950 | else | |
10951 | { | |
10952 | unsigned long i = ulongval (); | |
10953 | if (i != (__alignof (omp_nest_lock_t))) | |
10954 | exit (1); | |
10955 | fprintf (f, "%lu\n", i); | |
10956 | } | |
10957 | exit (ferror (f) || fclose (f) != 0); | |
10958 | ||
10959 | ; | |
10960 | return 0; | |
10961 | } | |
10962 | _ACEOF | |
10963 | rm -f conftest$ac_exeext | |
10964 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10965 | (eval $ac_link) 2>&5 | |
10966 | ac_status=$? | |
10967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10968 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
10969 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10970 | (eval $ac_try) 2>&5 | |
10971 | ac_status=$? | |
10972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10973 | (exit $ac_status); }; }; then | |
10974 | OMP_NEST_LOCK_ALIGN=`cat conftest.val` | |
10975 | else | |
10976 | echo "$as_me: program exited with status $ac_status" >&5 | |
10977 | echo "$as_me: failed program was:" >&5 | |
10978 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10979 | ||
10980 | fi | |
10981 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
10982 | fi | |
10983 | fi | |
10984 | rm -f conftest.val | |
10985 | ||
10986 | # If the lock fits in an integer, then arrange for Fortran to use that | |
10987 | # integer. If it doesn't, then arrange for Fortran to use a pointer. | |
10988 | # Except that we don't have a way at present to multi-lib the installed | |
10989 | # Fortran modules, so we assume 8 bytes for pointers, regardless of the | |
10990 | # actual target. | |
10991 | OMP_LOCK_KIND=$OMP_LOCK_SIZE | |
10992 | OMP_NEST_LOCK_KIND=$OMP_NEST_LOCK_SIZE | |
10993 | if test $OMP_LOCK_SIZE -gt 8 || test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then | |
10994 | OMP_LOCK_KIND=8 | |
10995 | fi | |
10996 | if test $OMP_NEST_LOCK_SIZE -gt 8 || test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then | |
10997 | OMP_NEST_LOCK_KIND=8 | |
10998 | fi | |
10999 | ||
11000 | ||
11001 | ||
11002 | ||
11003 | ||
11004 | ||
11005 | ||
11006 | CFLAGS="$save_CFLAGS" | |
11007 | ||
11008 | ac_config_files="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h" | |
11009 | ||
953ff289 DN |
11010 | ac_config_files="$ac_config_files Makefile testsuite/Makefile libgomp.spec" |
11011 | ||
11012 | cat >confcache <<\_ACEOF | |
11013 | # This file is a shell script that caches the results of configure | |
11014 | # tests run on this system so they can be shared between configure | |
11015 | # scripts and configure runs, see configure's option --config-cache. | |
11016 | # It is not useful on other systems. If it contains results you don't | |
11017 | # want to keep, you may remove or edit it. | |
11018 | # | |
11019 | # config.status only pays attention to the cache file if you give it | |
11020 | # the --recheck option to rerun configure. | |
11021 | # | |
11022 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
11023 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
11024 | # following values. | |
11025 | ||
11026 | _ACEOF | |
11027 | ||
11028 | # The following way of writing the cache mishandles newlines in values, | |
11029 | # but we know of no workaround that is simple, portable, and efficient. | |
11030 | # So, don't put newlines in cache variables' values. | |
11031 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
11032 | # and sets the high bit in the cache file unless we assign to the vars. | |
11033 | { | |
11034 | (set) 2>&1 | | |
11035 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
11036 | *ac_space=\ *) | |
11037 | # `set' does not quote correctly, so add quotes (double-quote | |
11038 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
11039 | sed -n \ | |
11040 | "s/'/'\\\\''/g; | |
11041 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
11042 | ;; | |
11043 | *) | |
11044 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
11045 | sed -n \ | |
11046 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
11047 | ;; | |
11048 | esac; | |
11049 | } | | |
11050 | sed ' | |
11051 | t clear | |
11052 | : clear | |
11053 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
11054 | t end | |
11055 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
11056 | : end' >>confcache | |
11057 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
11058 | if test -w $cache_file; then | |
11059 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
11060 | cat confcache >$cache_file | |
11061 | else | |
11062 | echo "not updating unwritable cache $cache_file" | |
11063 | fi | |
11064 | fi | |
11065 | rm -f confcache | |
11066 | ||
11067 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
11068 | # Let make expand exec_prefix. | |
11069 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
11070 | ||
11071 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
11072 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
11073 | # trailing colons and then remove the whole line if VPATH becomes empty | |
11074 | # (actually we leave an empty line to preserve line numbers). | |
11075 | if test "x$srcdir" = x.; then | |
11076 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
11077 | s/:*\$(srcdir):*/:/; | |
11078 | s/:*\${srcdir}:*/:/; | |
11079 | s/:*@srcdir@:*/:/; | |
11080 | s/^\([^=]*=[ ]*\):*/\1/; | |
11081 | s/:*$//; | |
11082 | s/^[^=]*=[ ]*$//; | |
11083 | }' | |
11084 | fi | |
11085 | ||
11086 | DEFS=-DHAVE_CONFIG_H | |
11087 | ||
11088 | ac_libobjs= | |
11089 | ac_ltlibobjs= | |
11090 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
11091 | # 1. Remove the extension, and $U if already installed. | |
11092 | ac_i=`echo "$ac_i" | | |
11093 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | |
11094 | # 2. Add them. | |
11095 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
11096 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
11097 | done | |
11098 | LIBOBJS=$ac_libobjs | |
11099 | ||
11100 | LTLIBOBJS=$ac_ltlibobjs | |
11101 | ||
11102 | ||
11103 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
11104 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. | |
11105 | Usually this means the macro was only invoked conditionally." >&5 | |
11106 | echo "$as_me: error: conditional \"AMDEP\" was never defined. | |
11107 | Usually this means the macro was only invoked conditionally." >&2;} | |
11108 | { (exit 1); exit 1; }; } | |
11109 | fi | |
11110 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
11111 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. | |
11112 | Usually this means the macro was only invoked conditionally." >&5 | |
11113 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. | |
11114 | Usually this means the macro was only invoked conditionally." >&2;} | |
11115 | { (exit 1); exit 1; }; } | |
11116 | fi | |
c41303c6 RH |
11117 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
11118 | { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. | |
11119 | Usually this means the macro was only invoked conditionally." >&5 | |
11120 | echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. | |
11121 | Usually this means the macro was only invoked conditionally." >&2;} | |
11122 | { (exit 1); exit 1; }; } | |
11123 | fi | |
953ff289 DN |
11124 | if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then |
11125 | { { echo "$as_me:$LINENO: error: conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined. | |
11126 | Usually this means the macro was only invoked conditionally." >&5 | |
11127 | echo "$as_me: error: conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined. | |
11128 | Usually this means the macro was only invoked conditionally." >&2;} | |
11129 | { (exit 1); exit 1; }; } | |
11130 | fi | |
11131 | if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then | |
11132 | { { echo "$as_me:$LINENO: error: conditional \"USE_FORTRAN\" was never defined. | |
11133 | Usually this means the macro was only invoked conditionally." >&5 | |
11134 | echo "$as_me: error: conditional \"USE_FORTRAN\" was never defined. | |
11135 | Usually this means the macro was only invoked conditionally." >&2;} | |
11136 | { (exit 1); exit 1; }; } | |
11137 | fi | |
11138 | ||
11139 | : ${CONFIG_STATUS=./config.status} | |
11140 | ac_clean_files_save=$ac_clean_files | |
11141 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
11142 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
11143 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
11144 | cat >$CONFIG_STATUS <<_ACEOF | |
11145 | #! $SHELL | |
11146 | # Generated by $as_me. | |
11147 | # Run this file to recreate the current configuration. | |
11148 | # Compiler output produced by configure, useful for debugging | |
11149 | # configure, is in config.log if it exists. | |
11150 | ||
11151 | debug=false | |
11152 | ac_cs_recheck=false | |
11153 | ac_cs_silent=false | |
11154 | SHELL=\${CONFIG_SHELL-$SHELL} | |
11155 | _ACEOF | |
11156 | ||
11157 | cat >>$CONFIG_STATUS <<\_ACEOF | |
11158 | ## --------------------- ## | |
11159 | ## M4sh Initialization. ## | |
11160 | ## --------------------- ## | |
11161 | ||
11162 | # Be Bourne compatible | |
11163 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
11164 | emulate sh | |
11165 | NULLCMD=: | |
11166 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
11167 | # is contrary to our usage. Disable this feature. | |
11168 | alias -g '${1+"$@"}'='"$@"' | |
11169 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
11170 | set -o posix | |
11171 | fi | |
11172 | DUALCASE=1; export DUALCASE # for MKS sh | |
11173 | ||
11174 | # Support unset when possible. | |
11175 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
11176 | as_unset=unset | |
11177 | else | |
11178 | as_unset=false | |
11179 | fi | |
11180 | ||
11181 | ||
11182 | # Work around bugs in pre-3.0 UWIN ksh. | |
11183 | $as_unset ENV MAIL MAILPATH | |
11184 | PS1='$ ' | |
11185 | PS2='> ' | |
11186 | PS4='+ ' | |
11187 | ||
11188 | # NLS nuisances. | |
11189 | for as_var in \ | |
11190 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
11191 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
11192 | LC_TELEPHONE LC_TIME | |
11193 | do | |
11194 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
11195 | eval $as_var=C; export $as_var | |
11196 | else | |
11197 | $as_unset $as_var | |
11198 | fi | |
11199 | done | |
11200 | ||
11201 | # Required to use basename. | |
11202 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
11203 | as_expr=expr | |
11204 | else | |
11205 | as_expr=false | |
11206 | fi | |
11207 | ||
11208 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
11209 | as_basename=basename | |
11210 | else | |
11211 | as_basename=false | |
11212 | fi | |
11213 | ||
11214 | ||
11215 | # Name of the executable. | |
11216 | as_me=`$as_basename "$0" || | |
11217 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
11218 | X"$0" : 'X\(//\)$' \| \ | |
11219 | X"$0" : 'X\(/\)$' \| \ | |
11220 | . : '\(.\)' 2>/dev/null || | |
11221 | echo X/"$0" | | |
11222 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
11223 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
11224 | /^X\/\(\/\).*/{ s//\1/; q; } | |
11225 | s/.*/./; q'` | |
11226 | ||
11227 | ||
11228 | # PATH needs CR, and LINENO needs CR and PATH. | |
11229 | # Avoid depending upon Character Ranges. | |
11230 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
11231 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
11232 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
11233 | as_cr_digits='0123456789' | |
11234 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
11235 | ||
11236 | # The user is always right. | |
11237 | if test "${PATH_SEPARATOR+set}" != set; then | |
11238 | echo "#! /bin/sh" >conf$$.sh | |
11239 | echo "exit 0" >>conf$$.sh | |
11240 | chmod +x conf$$.sh | |
11241 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
11242 | PATH_SEPARATOR=';' | |
11243 | else | |
11244 | PATH_SEPARATOR=: | |
11245 | fi | |
11246 | rm -f conf$$.sh | |
11247 | fi | |
11248 | ||
11249 | ||
11250 | as_lineno_1=$LINENO | |
11251 | as_lineno_2=$LINENO | |
11252 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
11253 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
11254 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
11255 | # Find who we are. Look in the path if we contain no path at all | |
11256 | # relative or not. | |
11257 | case $0 in | |
11258 | *[\\/]* ) as_myself=$0 ;; | |
11259 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11260 | for as_dir in $PATH | |
11261 | do | |
11262 | IFS=$as_save_IFS | |
11263 | test -z "$as_dir" && as_dir=. | |
11264 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
11265 | done | |
11266 | ||
11267 | ;; | |
11268 | esac | |
11269 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
11270 | # in which case we are not to be found in the path. | |
11271 | if test "x$as_myself" = x; then | |
11272 | as_myself=$0 | |
11273 | fi | |
11274 | if test ! -f "$as_myself"; then | |
11275 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
11276 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
11277 | { (exit 1); exit 1; }; } | |
11278 | fi | |
11279 | case $CONFIG_SHELL in | |
11280 | '') | |
11281 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11282 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
11283 | do | |
11284 | IFS=$as_save_IFS | |
11285 | test -z "$as_dir" && as_dir=. | |
11286 | for as_base in sh bash ksh sh5; do | |
11287 | case $as_dir in | |
11288 | /*) | |
11289 | if ("$as_dir/$as_base" -c ' | |
11290 | as_lineno_1=$LINENO | |
11291 | as_lineno_2=$LINENO | |
11292 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
11293 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
11294 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
11295 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
11296 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
11297 | CONFIG_SHELL=$as_dir/$as_base | |
11298 | export CONFIG_SHELL | |
11299 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
11300 | fi;; | |
11301 | esac | |
11302 | done | |
11303 | done | |
11304 | ;; | |
11305 | esac | |
11306 | ||
11307 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
11308 | # uniformly replaced by the line number. The first 'sed' inserts a | |
11309 | # line-number line before each line; the second 'sed' does the real | |
11310 | # work. The second script uses 'N' to pair each line-number line | |
11311 | # with the numbered line, and appends trailing '-' during | |
11312 | # substitution so that $LINENO is not a special case at line end. | |
11313 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
11314 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
11315 | sed '=' <$as_myself | | |
11316 | sed ' | |
11317 | N | |
11318 | s,$,-, | |
11319 | : loop | |
11320 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
11321 | t loop | |
11322 | s,-$,, | |
11323 | s,^['$as_cr_digits']*\n,, | |
11324 | ' >$as_me.lineno && | |
11325 | chmod +x $as_me.lineno || | |
11326 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
11327 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
11328 | { (exit 1); exit 1; }; } | |
11329 | ||
11330 | # Don't try to exec as it changes $[0], causing all sort of problems | |
11331 | # (the dirname of $[0] is not the place where we might find the | |
11332 | # original and so on. Autoconf is especially sensible to this). | |
11333 | . ./$as_me.lineno | |
11334 | # Exit status is that of the last command. | |
11335 | exit | |
11336 | } | |
11337 | ||
11338 | ||
11339 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
11340 | *c*,-n*) ECHO_N= ECHO_C=' | |
11341 | ' ECHO_T=' ' ;; | |
11342 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
11343 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
11344 | esac | |
11345 | ||
11346 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
11347 | as_expr=expr | |
11348 | else | |
11349 | as_expr=false | |
11350 | fi | |
11351 | ||
11352 | rm -f conf$$ conf$$.exe conf$$.file | |
11353 | echo >conf$$.file | |
11354 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
11355 | # We could just check for DJGPP; but this test a) works b) is more generic | |
11356 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
11357 | if test -f conf$$.exe; then | |
11358 | # Don't use ln at all; we don't have any links | |
11359 | as_ln_s='cp -p' | |
11360 | else | |
11361 | as_ln_s='ln -s' | |
11362 | fi | |
11363 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
11364 | as_ln_s=ln | |
11365 | else | |
11366 | as_ln_s='cp -p' | |
11367 | fi | |
11368 | rm -f conf$$ conf$$.exe conf$$.file | |
11369 | ||
11370 | if mkdir -p . 2>/dev/null; then | |
11371 | as_mkdir_p=: | |
11372 | else | |
11373 | test -d ./-p && rmdir ./-p | |
11374 | as_mkdir_p=false | |
11375 | fi | |
11376 | ||
11377 | as_executable_p="test -f" | |
11378 | ||
11379 | # Sed expression to map a string onto a valid CPP name. | |
11380 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
11381 | ||
11382 | # Sed expression to map a string onto a valid variable name. | |
11383 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
11384 | ||
11385 | ||
11386 | # IFS | |
11387 | # We need space, tab and new line, in precisely that order. | |
11388 | as_nl=' | |
11389 | ' | |
11390 | IFS=" $as_nl" | |
11391 | ||
11392 | # CDPATH. | |
11393 | $as_unset CDPATH | |
11394 | ||
11395 | exec 6>&1 | |
11396 | ||
11397 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
11398 | # report actual input values of CONFIG_FILES etc. instead of their | |
11399 | # values after options handling. Logging --version etc. is OK. | |
11400 | exec 5>>config.log | |
11401 | { | |
11402 | echo | |
11403 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
11404 | ## Running $as_me. ## | |
11405 | _ASBOX | |
11406 | } >&5 | |
11407 | cat >&5 <<_CSEOF | |
11408 | ||
11409 | This file was extended by GNU OpenMP Runtime Library $as_me 1.0, which was | |
11410 | generated by GNU Autoconf 2.59. Invocation command line was | |
11411 | ||
11412 | CONFIG_FILES = $CONFIG_FILES | |
11413 | CONFIG_HEADERS = $CONFIG_HEADERS | |
11414 | CONFIG_LINKS = $CONFIG_LINKS | |
11415 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
11416 | $ $0 $@ | |
11417 | ||
11418 | _CSEOF | |
11419 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
11420 | echo >&5 | |
11421 | _ACEOF | |
11422 | ||
11423 | # Files that config.status was made for. | |
11424 | if test -n "$ac_config_files"; then | |
11425 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
11426 | fi | |
11427 | ||
11428 | if test -n "$ac_config_headers"; then | |
11429 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
11430 | fi | |
11431 | ||
11432 | if test -n "$ac_config_links"; then | |
11433 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
11434 | fi | |
11435 | ||
11436 | if test -n "$ac_config_commands"; then | |
11437 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
11438 | fi | |
11439 | ||
11440 | cat >>$CONFIG_STATUS <<\_ACEOF | |
11441 | ||
11442 | ac_cs_usage="\ | |
11443 | \`$as_me' instantiates files from templates according to the | |
11444 | current configuration. | |
11445 | ||
11446 | Usage: $0 [OPTIONS] [FILE]... | |
11447 | ||
11448 | -h, --help print this help, then exit | |
11449 | -V, --version print version number, then exit | |
11450 | -q, --quiet do not print progress messages | |
11451 | -d, --debug don't remove temporary files | |
11452 | --recheck update $as_me by reconfiguring in the same conditions | |
11453 | --file=FILE[:TEMPLATE] | |
11454 | instantiate the configuration file FILE | |
11455 | --header=FILE[:TEMPLATE] | |
11456 | instantiate the configuration header FILE | |
11457 | ||
11458 | Configuration files: | |
11459 | $config_files | |
11460 | ||
11461 | Configuration headers: | |
11462 | $config_headers | |
11463 | ||
11464 | Configuration commands: | |
11465 | $config_commands | |
11466 | ||
11467 | Report bugs to <bug-autoconf@gnu.org>." | |
11468 | _ACEOF | |
11469 | ||
11470 | cat >>$CONFIG_STATUS <<_ACEOF | |
11471 | ac_cs_version="\\ | |
11472 | GNU OpenMP Runtime Library config.status 1.0 | |
11473 | configured by $0, generated by GNU Autoconf 2.59, | |
11474 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
11475 | ||
11476 | Copyright (C) 2003 Free Software Foundation, Inc. | |
11477 | This config.status script is free software; the Free Software Foundation | |
11478 | gives unlimited permission to copy, distribute and modify it." | |
11479 | srcdir=$srcdir | |
11480 | INSTALL="$INSTALL" | |
11481 | _ACEOF | |
11482 | ||
11483 | cat >>$CONFIG_STATUS <<\_ACEOF | |
11484 | # If no file are specified by the user, then we need to provide default | |
11485 | # value. By we need to know if files were specified by the user. | |
11486 | ac_need_defaults=: | |
11487 | while test $# != 0 | |
11488 | do | |
11489 | case $1 in | |
11490 | --*=*) | |
11491 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
11492 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
11493 | ac_shift=: | |
11494 | ;; | |
11495 | -*) | |
11496 | ac_option=$1 | |
11497 | ac_optarg=$2 | |
11498 | ac_shift=shift | |
11499 | ;; | |
11500 | *) # This is not an option, so the user has probably given explicit | |
11501 | # arguments. | |
11502 | ac_option=$1 | |
11503 | ac_need_defaults=false;; | |
11504 | esac | |
11505 | ||
11506 | case $ac_option in | |
11507 | # Handling of the options. | |
11508 | _ACEOF | |
11509 | cat >>$CONFIG_STATUS <<\_ACEOF | |
11510 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
11511 | ac_cs_recheck=: ;; | |
11512 | --version | --vers* | -V ) | |
11513 | echo "$ac_cs_version"; exit 0 ;; | |
11514 | --he | --h) | |
11515 | # Conflict between --help and --header | |
11516 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
11517 | Try \`$0 --help' for more information." >&5 | |
11518 | echo "$as_me: error: ambiguous option: $1 | |
11519 | Try \`$0 --help' for more information." >&2;} | |
11520 | { (exit 1); exit 1; }; };; | |
11521 | --help | --hel | -h ) | |
11522 | echo "$ac_cs_usage"; exit 0 ;; | |
11523 | --debug | --d* | -d ) | |
11524 | debug=: ;; | |
11525 | --file | --fil | --fi | --f ) | |
11526 | $ac_shift | |
11527 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
11528 | ac_need_defaults=false;; | |
11529 | --header | --heade | --head | --hea ) | |
11530 | $ac_shift | |
11531 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
11532 | ac_need_defaults=false;; | |
11533 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
11534 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
11535 | ac_cs_silent=: ;; | |
11536 | ||
11537 | # This is an error. | |
11538 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
11539 | Try \`$0 --help' for more information." >&5 | |
11540 | echo "$as_me: error: unrecognized option: $1 | |
11541 | Try \`$0 --help' for more information." >&2;} | |
11542 | { (exit 1); exit 1; }; } ;; | |
11543 | ||
11544 | *) ac_config_targets="$ac_config_targets $1" ;; | |
11545 | ||
11546 | esac | |
11547 | shift | |
11548 | done | |
11549 | ||
11550 | ac_configure_extra_args= | |
11551 | ||
11552 | if $ac_cs_silent; then | |
11553 | exec 6>/dev/null | |
11554 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
11555 | fi | |
11556 | ||
11557 | _ACEOF | |
11558 | cat >>$CONFIG_STATUS <<_ACEOF | |
11559 | if \$ac_cs_recheck; then | |
11560 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
11561 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
11562 | fi | |
11563 | ||
11564 | _ACEOF | |
11565 | ||
11566 | cat >>$CONFIG_STATUS <<_ACEOF | |
11567 | # | |
11568 | # INIT-COMMANDS section. | |
11569 | # | |
11570 | ||
11571 | ||
11572 | srcdir="$srcdir" | |
11573 | host="$host" | |
11574 | target="$target" | |
11575 | with_multisubdir="$with_multisubdir" | |
11576 | with_multisrctop="$with_multisrctop" | |
11577 | with_target_subdir="$with_target_subdir" | |
11578 | ac_configure_args="${multilib_arg} ${ac_configure_args}" | |
11579 | multi_basedir="$multi_basedir" | |
11580 | CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
11581 | CC="$CC" | |
11582 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
11583 | ||
18cbfd85 PB |
11584 | GCC="$GCC" |
11585 | CC="$CC" | |
11586 | acx_cv_header_stdint="$acx_cv_header_stdint" | |
11587 | acx_cv_type_int8_t="$acx_cv_type_int8_t" | |
11588 | acx_cv_type_int16_t="$acx_cv_type_int16_t" | |
11589 | acx_cv_type_int32_t="$acx_cv_type_int32_t" | |
11590 | acx_cv_type_int64_t="$acx_cv_type_int64_t" | |
11591 | acx_cv_type_intptr_t="$acx_cv_type_intptr_t" | |
11592 | ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t" | |
11593 | ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t" | |
11594 | ac_cv_type_uint64_t="$ac_cv_type_uint64_t" | |
11595 | ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t" | |
11596 | ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t" | |
11597 | ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t" | |
11598 | ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t" | |
11599 | ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p" | |
11600 | ||
11601 | ||
953ff289 DN |
11602 | _ACEOF |
11603 | ||
11604 | ||
11605 | ||
11606 | cat >>$CONFIG_STATUS <<\_ACEOF | |
11607 | for ac_config_target in $ac_config_targets | |
11608 | do | |
11609 | case "$ac_config_target" in | |
11610 | # Handling of arguments. | |
03b8fe49 PB |
11611 | "omp.h" ) CONFIG_FILES="$CONFIG_FILES omp.h" ;; |
11612 | "omp_lib.h" ) CONFIG_FILES="$CONFIG_FILES omp_lib.h" ;; | |
11613 | "omp_lib.f90" ) CONFIG_FILES="$CONFIG_FILES omp_lib.f90" ;; | |
11614 | "libgomp_f.h" ) CONFIG_FILES="$CONFIG_FILES libgomp_f.h" ;; | |
953ff289 DN |
11615 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
11616 | "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;; | |
11617 | "libgomp.spec" ) CONFIG_FILES="$CONFIG_FILES libgomp.spec" ;; | |
11618 | "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; | |
11619 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
18cbfd85 | 11620 | "gstdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;; |
953ff289 DN |
11621 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
11622 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
11623 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
11624 | { (exit 1); exit 1; }; };; | |
11625 | esac | |
11626 | done | |
11627 | ||
11628 | # If the user did not use the arguments to specify the items to instantiate, | |
11629 | # then the envvar interface is used. Set only those that are not. | |
11630 | # We use the long form for the default assignment because of an extremely | |
11631 | # bizarre bug on SunOS 4.1.3. | |
11632 | if $ac_need_defaults; then | |
11633 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
11634 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
11635 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
11636 | fi | |
11637 | ||
11638 | # Have a temporary directory for convenience. Make it in the build tree | |
11639 | # simply because there is no reason to put it here, and in addition, | |
11640 | # creating and moving files from /tmp can sometimes cause problems. | |
11641 | # Create a temporary directory, and hook for its removal unless debugging. | |
11642 | $debug || | |
11643 | { | |
11644 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
11645 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
11646 | } | |
11647 | ||
11648 | # Create a (secure) tmp directory for tmp files. | |
11649 | ||
11650 | { | |
11651 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
11652 | test -n "$tmp" && test -d "$tmp" | |
11653 | } || | |
11654 | { | |
11655 | tmp=./confstat$$-$RANDOM | |
11656 | (umask 077 && mkdir $tmp) | |
11657 | } || | |
11658 | { | |
11659 | echo "$me: cannot create a temporary directory in ." >&2 | |
11660 | { (exit 1); exit 1; } | |
11661 | } | |
11662 | ||
11663 | _ACEOF | |
11664 | ||
11665 | cat >>$CONFIG_STATUS <<_ACEOF | |
11666 | ||
11667 | # | |
11668 | # CONFIG_FILES section. | |
11669 | # | |
11670 | ||
11671 | # No need to generate the scripts if there are no CONFIG_FILES. | |
11672 | # This happens for instance when ./config.status config.h | |
11673 | if test -n "\$CONFIG_FILES"; then | |
11674 | # Protect against being on the right side of a sed subst in config.status. | |
11675 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
11676 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
11677 | s,@SHELL@,$SHELL,;t t | |
11678 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
11679 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
11680 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
11681 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
11682 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
11683 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
11684 | s,@exec_prefix@,$exec_prefix,;t t | |
11685 | s,@prefix@,$prefix,;t t | |
11686 | s,@program_transform_name@,$program_transform_name,;t t | |
11687 | s,@bindir@,$bindir,;t t | |
11688 | s,@sbindir@,$sbindir,;t t | |
11689 | s,@libexecdir@,$libexecdir,;t t | |
11690 | s,@datadir@,$datadir,;t t | |
11691 | s,@sysconfdir@,$sysconfdir,;t t | |
11692 | s,@sharedstatedir@,$sharedstatedir,;t t | |
11693 | s,@localstatedir@,$localstatedir,;t t | |
11694 | s,@libdir@,$libdir,;t t | |
11695 | s,@includedir@,$includedir,;t t | |
11696 | s,@oldincludedir@,$oldincludedir,;t t | |
11697 | s,@infodir@,$infodir,;t t | |
11698 | s,@mandir@,$mandir,;t t | |
11699 | s,@build_alias@,$build_alias,;t t | |
11700 | s,@host_alias@,$host_alias,;t t | |
11701 | s,@target_alias@,$target_alias,;t t | |
11702 | s,@DEFS@,$DEFS,;t t | |
11703 | s,@ECHO_C@,$ECHO_C,;t t | |
11704 | s,@ECHO_N@,$ECHO_N,;t t | |
11705 | s,@ECHO_T@,$ECHO_T,;t t | |
11706 | s,@LIBS@,$LIBS,;t t | |
11707 | s,@build@,$build,;t t | |
11708 | s,@build_cpu@,$build_cpu,;t t | |
11709 | s,@build_vendor@,$build_vendor,;t t | |
11710 | s,@build_os@,$build_os,;t t | |
11711 | s,@host@,$host,;t t | |
11712 | s,@host_cpu@,$host_cpu,;t t | |
11713 | s,@host_vendor@,$host_vendor,;t t | |
11714 | s,@host_os@,$host_os,;t t | |
11715 | s,@target@,$target,;t t | |
11716 | s,@target_cpu@,$target_cpu,;t t | |
11717 | s,@target_vendor@,$target_vendor,;t t | |
11718 | s,@target_os@,$target_os,;t t | |
11719 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
11720 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
11721 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
11722 | s,@CYGPATH_W@,$CYGPATH_W,;t t | |
11723 | s,@PACKAGE@,$PACKAGE,;t t | |
11724 | s,@VERSION@,$VERSION,;t t | |
11725 | s,@ACLOCAL@,$ACLOCAL,;t t | |
11726 | s,@AUTOCONF@,$AUTOCONF,;t t | |
11727 | s,@AUTOMAKE@,$AUTOMAKE,;t t | |
11728 | s,@AUTOHEADER@,$AUTOHEADER,;t t | |
11729 | s,@MAKEINFO@,$MAKEINFO,;t t | |
11730 | s,@install_sh@,$install_sh,;t t | |
11731 | s,@STRIP@,$STRIP,;t t | |
11732 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | |
11733 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t | |
11734 | s,@mkdir_p@,$mkdir_p,;t t | |
11735 | s,@AWK@,$AWK,;t t | |
11736 | s,@SET_MAKE@,$SET_MAKE,;t t | |
11737 | s,@am__leading_dot@,$am__leading_dot,;t t | |
11738 | s,@AMTAR@,$AMTAR,;t t | |
11739 | s,@am__tar@,$am__tar,;t t | |
11740 | s,@am__untar@,$am__untar,;t t | |
11741 | s,@multi_basedir@,$multi_basedir,;t t | |
11742 | s,@toolexecdir@,$toolexecdir,;t t | |
11743 | s,@toolexeclibdir@,$toolexeclibdir,;t t | |
11744 | s,@CC@,$CC,;t t | |
11745 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
11746 | s,@EXEEXT@,$EXEEXT,;t t | |
11747 | s,@OBJEXT@,$OBJEXT,;t t | |
11748 | s,@DEPDIR@,$DEPDIR,;t t | |
11749 | s,@am__include@,$am__include,;t t | |
11750 | s,@am__quote@,$am__quote,;t t | |
11751 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t | |
11752 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t | |
11753 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t | |
11754 | s,@CCDEPMODE@,$CCDEPMODE,;t t | |
11755 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t | |
11756 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t | |
11757 | s,@CFLAGS@,$CFLAGS,;t t | |
11758 | s,@AR@,$AR,;t t | |
11759 | s,@ac_ct_AR@,$ac_ct_AR,;t t | |
11760 | s,@RANLIB@,$RANLIB,;t t | |
11761 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
11762 | s,@PERL@,$PERL,;t t | |
11763 | s,@LN_S@,$LN_S,;t t | |
11764 | s,@LIBTOOL@,$LIBTOOL,;t t | |
11765 | s,@enable_shared@,$enable_shared,;t t | |
11766 | s,@enable_static@,$enable_static,;t t | |
c41303c6 RH |
11767 | s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t |
11768 | s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t | |
11769 | s,@MAINT@,$MAINT,;t t | |
953ff289 DN |
11770 | s,@FC@,$FC,;t t |
11771 | s,@FCFLAGS@,$FCFLAGS,;t t | |
11772 | s,@LDFLAGS@,$LDFLAGS,;t t | |
11773 | s,@ac_ct_FC@,$ac_ct_FC,;t t | |
11774 | s,@libtool_VERSION@,$libtool_VERSION,;t t | |
11775 | s,@CPP@,$CPP,;t t | |
11776 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
11777 | s,@EGREP@,$EGREP,;t t | |
11778 | s,@SECTION_LDFLAGS@,$SECTION_LDFLAGS,;t t | |
11779 | s,@OPT_LDFLAGS@,$OPT_LDFLAGS,;t t | |
11780 | s,@LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE@,$LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE,;t t | |
11781 | s,@LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE@,$LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE,;t t | |
11782 | s,@config_path@,$config_path,;t t | |
11783 | s,@XCFLAGS@,$XCFLAGS,;t t | |
11784 | s,@XLDFLAGS@,$XLDFLAGS,;t t | |
11785 | s,@link_gomp@,$link_gomp,;t t | |
11786 | s,@USE_FORTRAN_TRUE@,$USE_FORTRAN_TRUE,;t t | |
11787 | s,@USE_FORTRAN_FALSE@,$USE_FORTRAN_FALSE,;t t | |
03b8fe49 PB |
11788 | s,@OMP_LOCK_SIZE@,$OMP_LOCK_SIZE,;t t |
11789 | s,@OMP_LOCK_ALIGN@,$OMP_LOCK_ALIGN,;t t | |
11790 | s,@OMP_NEST_LOCK_SIZE@,$OMP_NEST_LOCK_SIZE,;t t | |
11791 | s,@OMP_NEST_LOCK_ALIGN@,$OMP_NEST_LOCK_ALIGN,;t t | |
11792 | s,@OMP_LOCK_KIND@,$OMP_LOCK_KIND,;t t | |
11793 | s,@OMP_NEST_LOCK_KIND@,$OMP_NEST_LOCK_KIND,;t t | |
953ff289 DN |
11794 | s,@LIBOBJS@,$LIBOBJS,;t t |
11795 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
11796 | CEOF | |
11797 | ||
11798 | _ACEOF | |
11799 | ||
11800 | cat >>$CONFIG_STATUS <<\_ACEOF | |
11801 | # Split the substitutions into bite-sized pieces for seds with | |
11802 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
11803 | ac_max_sed_lines=48 | |
11804 | ac_sed_frag=1 # Number of current file. | |
11805 | ac_beg=1 # First line for current file. | |
11806 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
11807 | ac_more_lines=: | |
11808 | ac_sed_cmds= | |
11809 | while $ac_more_lines; do | |
11810 | if test $ac_beg -gt 1; then | |
11811 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
11812 | else | |
11813 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
11814 | fi | |
11815 | if test ! -s $tmp/subs.frag; then | |
11816 | ac_more_lines=false | |
11817 | else | |
11818 | # The purpose of the label and of the branching condition is to | |
11819 | # speed up the sed processing (if there are no `@' at all, there | |
11820 | # is no need to browse any of the substitutions). | |
11821 | # These are the two extra sed commands mentioned above. | |
11822 | (echo ':t | |
11823 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
11824 | if test -z "$ac_sed_cmds"; then | |
11825 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
11826 | else | |
11827 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
11828 | fi | |
11829 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
11830 | ac_beg=$ac_end | |
11831 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
11832 | fi | |
11833 | done | |
11834 | if test -z "$ac_sed_cmds"; then | |
11835 | ac_sed_cmds=cat | |
11836 | fi | |
11837 | fi # test -n "$CONFIG_FILES" | |
11838 | ||
11839 | _ACEOF | |
11840 | cat >>$CONFIG_STATUS <<\_ACEOF | |
11841 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
11842 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
11843 | case $ac_file in | |
11844 | - | *:- | *:-:* ) # input from stdin | |
11845 | cat >$tmp/stdin | |
11846 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
11847 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
11848 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
11849 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
11850 | * ) ac_file_in=$ac_file.in ;; | |
11851 | esac | |
11852 | ||
11853 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | |
11854 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
11855 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
11856 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
11857 | X"$ac_file" : 'X\(//\)$' \| \ | |
11858 | X"$ac_file" : 'X\(/\)' \| \ | |
11859 | . : '\(.\)' 2>/dev/null || | |
11860 | echo X"$ac_file" | | |
11861 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
11862 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
11863 | /^X\(\/\/\)$/{ s//\1/; q; } | |
11864 | /^X\(\/\).*/{ s//\1/; q; } | |
11865 | s/.*/./; q'` | |
11866 | { if $as_mkdir_p; then | |
11867 | mkdir -p "$ac_dir" | |
11868 | else | |
11869 | as_dir="$ac_dir" | |
11870 | as_dirs= | |
11871 | while test ! -d "$as_dir"; do | |
11872 | as_dirs="$as_dir $as_dirs" | |
11873 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
11874 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
11875 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
11876 | X"$as_dir" : 'X\(//\)$' \| \ | |
11877 | X"$as_dir" : 'X\(/\)' \| \ | |
11878 | . : '\(.\)' 2>/dev/null || | |
11879 | echo X"$as_dir" | | |
11880 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
11881 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
11882 | /^X\(\/\/\)$/{ s//\1/; q; } | |
11883 | /^X\(\/\).*/{ s//\1/; q; } | |
11884 | s/.*/./; q'` | |
11885 | done | |
11886 | test ! -n "$as_dirs" || mkdir $as_dirs | |
11887 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
11888 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
11889 | { (exit 1); exit 1; }; }; } | |
11890 | ||
11891 | ac_builddir=. | |
11892 | ||
11893 | if test "$ac_dir" != .; then | |
11894 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
11895 | # A "../" for each directory in $ac_dir_suffix. | |
11896 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
11897 | else | |
11898 | ac_dir_suffix= ac_top_builddir= | |
11899 | fi | |
11900 | ||
11901 | case $srcdir in | |
11902 | .) # No --srcdir option. We are building in place. | |
11903 | ac_srcdir=. | |
11904 | if test -z "$ac_top_builddir"; then | |
11905 | ac_top_srcdir=. | |
11906 | else | |
11907 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
11908 | fi ;; | |
11909 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
11910 | ac_srcdir=$srcdir$ac_dir_suffix; | |
11911 | ac_top_srcdir=$srcdir ;; | |
11912 | *) # Relative path. | |
11913 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
11914 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
11915 | esac | |
11916 | ||
11917 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
11918 | # the directories may not exist. | |
11919 | case `pwd` in | |
11920 | .) ac_abs_builddir="$ac_dir";; | |
11921 | *) | |
11922 | case "$ac_dir" in | |
11923 | .) ac_abs_builddir=`pwd`;; | |
11924 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
11925 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
11926 | esac;; | |
11927 | esac | |
11928 | case $ac_abs_builddir in | |
11929 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
11930 | *) | |
11931 | case ${ac_top_builddir}. in | |
11932 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
11933 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
11934 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
11935 | esac;; | |
11936 | esac | |
11937 | case $ac_abs_builddir in | |
11938 | .) ac_abs_srcdir=$ac_srcdir;; | |
11939 | *) | |
11940 | case $ac_srcdir in | |
11941 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
11942 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
11943 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
11944 | esac;; | |
11945 | esac | |
11946 | case $ac_abs_builddir in | |
11947 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
11948 | *) | |
11949 | case $ac_top_srcdir in | |
11950 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
11951 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
11952 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
11953 | esac;; | |
11954 | esac | |
11955 | ||
11956 | ||
11957 | case $INSTALL in | |
11958 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
11959 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
11960 | esac | |
11961 | ||
d349482e AT |
11962 | if test x"$ac_file" != x-; then |
11963 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
11964 | echo "$as_me: creating $ac_file" >&6;} | |
11965 | rm -f "$ac_file" | |
11966 | fi | |
953ff289 DN |
11967 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
11968 | # use $as_me), people would be surprised to read: | |
11969 | # /* config.h. Generated by config.status. */ | |
11970 | if test x"$ac_file" = x-; then | |
11971 | configure_input= | |
11972 | else | |
11973 | configure_input="$ac_file. " | |
11974 | fi | |
11975 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
11976 | sed 's,.*/,,'` by configure." | |
11977 | ||
11978 | # First look for the input files in the build tree, otherwise in the | |
11979 | # src tree. | |
11980 | ac_file_inputs=`IFS=: | |
11981 | for f in $ac_file_in; do | |
11982 | case $f in | |
11983 | -) echo $tmp/stdin ;; | |
11984 | [\\/$]*) | |
11985 | # Absolute (can't be DOS-style, as IFS=:) | |
11986 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
11987 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
11988 | { (exit 1); exit 1; }; } | |
11989 | echo "$f";; | |
11990 | *) # Relative | |
11991 | if test -f "$f"; then | |
11992 | # Build tree | |
11993 | echo "$f" | |
11994 | elif test -f "$srcdir/$f"; then | |
11995 | # Source tree | |
11996 | echo "$srcdir/$f" | |
11997 | else | |
11998 | # /dev/null tree | |
11999 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
12000 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
12001 | { (exit 1); exit 1; }; } | |
12002 | fi;; | |
12003 | esac | |
12004 | done` || { (exit 1); exit 1; } | |
12005 | _ACEOF | |
12006 | cat >>$CONFIG_STATUS <<_ACEOF | |
12007 | sed "$ac_vpsub | |
12008 | $extrasub | |
12009 | _ACEOF | |
12010 | cat >>$CONFIG_STATUS <<\_ACEOF | |
12011 | :t | |
12012 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
12013 | s,@configure_input@,$configure_input,;t t | |
12014 | s,@srcdir@,$ac_srcdir,;t t | |
12015 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
12016 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
12017 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
12018 | s,@builddir@,$ac_builddir,;t t | |
12019 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
12020 | s,@top_builddir@,$ac_top_builddir,;t t | |
12021 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
12022 | s,@INSTALL@,$ac_INSTALL,;t t | |
12023 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
12024 | rm -f $tmp/stdin | |
12025 | if test x"$ac_file" != x-; then | |
12026 | mv $tmp/out $ac_file | |
12027 | else | |
12028 | cat $tmp/out | |
12029 | rm -f $tmp/out | |
12030 | fi | |
12031 | ||
12032 | done | |
12033 | _ACEOF | |
12034 | cat >>$CONFIG_STATUS <<\_ACEOF | |
12035 | ||
12036 | # | |
12037 | # CONFIG_HEADER section. | |
12038 | # | |
12039 | ||
12040 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
12041 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
12042 | # | |
12043 | # ac_d sets the value in "#define NAME VALUE" lines. | |
12044 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
12045 | ac_dB='[ ].*$,\1#\2' | |
12046 | ac_dC=' ' | |
12047 | ac_dD=',;t' | |
12048 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
12049 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
12050 | ac_uB='$,\1#\2define\3' | |
12051 | ac_uC=' ' | |
12052 | ac_uD=',;t' | |
12053 | ||
12054 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
12055 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
12056 | case $ac_file in | |
12057 | - | *:- | *:-:* ) # input from stdin | |
12058 | cat >$tmp/stdin | |
12059 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
12060 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
12061 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
12062 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
12063 | * ) ac_file_in=$ac_file.in ;; | |
12064 | esac | |
12065 | ||
12066 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
12067 | echo "$as_me: creating $ac_file" >&6;} | |
12068 | ||
12069 | # First look for the input files in the build tree, otherwise in the | |
12070 | # src tree. | |
12071 | ac_file_inputs=`IFS=: | |
12072 | for f in $ac_file_in; do | |
12073 | case $f in | |
12074 | -) echo $tmp/stdin ;; | |
12075 | [\\/$]*) | |
12076 | # Absolute (can't be DOS-style, as IFS=:) | |
12077 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
12078 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
12079 | { (exit 1); exit 1; }; } | |
12080 | # Do quote $f, to prevent DOS paths from being IFS'd. | |
12081 | echo "$f";; | |
12082 | *) # Relative | |
12083 | if test -f "$f"; then | |
12084 | # Build tree | |
12085 | echo "$f" | |
12086 | elif test -f "$srcdir/$f"; then | |
12087 | # Source tree | |
12088 | echo "$srcdir/$f" | |
12089 | else | |
12090 | # /dev/null tree | |
12091 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
12092 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
12093 | { (exit 1); exit 1; }; } | |
12094 | fi;; | |
12095 | esac | |
12096 | done` || { (exit 1); exit 1; } | |
12097 | # Remove the trailing spaces. | |
12098 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
12099 | ||
12100 | _ACEOF | |
12101 | ||
12102 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
12103 | # `conftest.undefs', that substitutes the proper values into | |
12104 | # config.h.in to produce config.h. The first handles `#define' | |
12105 | # templates, and the second `#undef' templates. | |
12106 | # And first: Protect against being on the right side of a sed subst in | |
12107 | # config.status. Protect against being in an unquoted here document | |
12108 | # in config.status. | |
12109 | rm -f conftest.defines conftest.undefs | |
12110 | # Using a here document instead of a string reduces the quoting nightmare. | |
12111 | # Putting comments in sed scripts is not portable. | |
12112 | # | |
12113 | # `end' is used to avoid that the second main sed command (meant for | |
12114 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
12115 | # See the Autoconf documentation for `clear'. | |
12116 | cat >confdef2sed.sed <<\_ACEOF | |
12117 | s/[\\&,]/\\&/g | |
12118 | s,[\\$`],\\&,g | |
12119 | t clear | |
12120 | : clear | |
12121 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | |
12122 | t end | |
12123 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
12124 | : end | |
12125 | _ACEOF | |
12126 | # If some macros were called several times there might be several times | |
12127 | # the same #defines, which is useless. Nevertheless, we may not want to | |
12128 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
12129 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
12130 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
12131 | rm -f confdef2sed.sed | |
12132 | ||
12133 | # This sed command replaces #undef with comments. This is necessary, for | |
12134 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
12135 | # on some systems where configure will not decide to define it. | |
12136 | cat >>conftest.undefs <<\_ACEOF | |
12137 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
12138 | _ACEOF | |
12139 | ||
12140 | # Break up conftest.defines because some shells have a limit on the size | |
12141 | # of here documents, and old seds have small limits too (100 cmds). | |
12142 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
12143 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
12144 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
12145 | echo ' :' >>$CONFIG_STATUS | |
12146 | rm -f conftest.tail | |
12147 | while grep . conftest.defines >/dev/null | |
12148 | do | |
12149 | # Write a limited-size here document to $tmp/defines.sed. | |
12150 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
12151 | # Speed up: don't consider the non `#define' lines. | |
12152 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
12153 | # Work around the forget-to-reset-the-flag bug. | |
12154 | echo 't clr' >>$CONFIG_STATUS | |
12155 | echo ': clr' >>$CONFIG_STATUS | |
12156 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
12157 | echo 'CEOF | |
12158 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
12159 | rm -f $tmp/in | |
12160 | mv $tmp/out $tmp/in | |
12161 | ' >>$CONFIG_STATUS | |
12162 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
12163 | rm -f conftest.defines | |
12164 | mv conftest.tail conftest.defines | |
12165 | done | |
12166 | rm -f conftest.defines | |
12167 | echo ' fi # grep' >>$CONFIG_STATUS | |
12168 | echo >>$CONFIG_STATUS | |
12169 | ||
12170 | # Break up conftest.undefs because some shells have a limit on the size | |
12171 | # of here documents, and old seds have small limits too (100 cmds). | |
12172 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
12173 | rm -f conftest.tail | |
12174 | while grep . conftest.undefs >/dev/null | |
12175 | do | |
12176 | # Write a limited-size here document to $tmp/undefs.sed. | |
12177 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
12178 | # Speed up: don't consider the non `#undef' | |
12179 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
12180 | # Work around the forget-to-reset-the-flag bug. | |
12181 | echo 't clr' >>$CONFIG_STATUS | |
12182 | echo ': clr' >>$CONFIG_STATUS | |
12183 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
12184 | echo 'CEOF | |
12185 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
12186 | rm -f $tmp/in | |
12187 | mv $tmp/out $tmp/in | |
12188 | ' >>$CONFIG_STATUS | |
12189 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
12190 | rm -f conftest.undefs | |
12191 | mv conftest.tail conftest.undefs | |
12192 | done | |
12193 | rm -f conftest.undefs | |
12194 | ||
12195 | cat >>$CONFIG_STATUS <<\_ACEOF | |
12196 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
12197 | # use $as_me), people would be surprised to read: | |
12198 | # /* config.h. Generated by config.status. */ | |
12199 | if test x"$ac_file" = x-; then | |
12200 | echo "/* Generated by configure. */" >$tmp/config.h | |
12201 | else | |
12202 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
12203 | fi | |
12204 | cat $tmp/in >>$tmp/config.h | |
12205 | rm -f $tmp/in | |
12206 | if test x"$ac_file" != x-; then | |
12207 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
12208 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
12209 | echo "$as_me: $ac_file is unchanged" >&6;} | |
12210 | else | |
12211 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
12212 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
12213 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
12214 | X"$ac_file" : 'X\(//\)$' \| \ | |
12215 | X"$ac_file" : 'X\(/\)' \| \ | |
12216 | . : '\(.\)' 2>/dev/null || | |
12217 | echo X"$ac_file" | | |
12218 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
12219 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
12220 | /^X\(\/\/\)$/{ s//\1/; q; } | |
12221 | /^X\(\/\).*/{ s//\1/; q; } | |
12222 | s/.*/./; q'` | |
12223 | { if $as_mkdir_p; then | |
12224 | mkdir -p "$ac_dir" | |
12225 | else | |
12226 | as_dir="$ac_dir" | |
12227 | as_dirs= | |
12228 | while test ! -d "$as_dir"; do | |
12229 | as_dirs="$as_dir $as_dirs" | |
12230 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
12231 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
12232 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
12233 | X"$as_dir" : 'X\(//\)$' \| \ | |
12234 | X"$as_dir" : 'X\(/\)' \| \ | |
12235 | . : '\(.\)' 2>/dev/null || | |
12236 | echo X"$as_dir" | | |
12237 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
12238 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
12239 | /^X\(\/\/\)$/{ s//\1/; q; } | |
12240 | /^X\(\/\).*/{ s//\1/; q; } | |
12241 | s/.*/./; q'` | |
12242 | done | |
12243 | test ! -n "$as_dirs" || mkdir $as_dirs | |
12244 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
12245 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
12246 | { (exit 1); exit 1; }; }; } | |
12247 | ||
12248 | rm -f $ac_file | |
12249 | mv $tmp/config.h $ac_file | |
12250 | fi | |
12251 | else | |
12252 | cat $tmp/config.h | |
12253 | rm -f $tmp/config.h | |
12254 | fi | |
12255 | # Compute $ac_file's index in $config_headers. | |
12256 | _am_stamp_count=1 | |
12257 | for _am_header in $config_headers :; do | |
12258 | case $_am_header in | |
12259 | $ac_file | $ac_file:* ) | |
12260 | break ;; | |
12261 | * ) | |
12262 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
12263 | esac | |
12264 | done | |
12265 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || | |
12266 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
12267 | X$ac_file : 'X\(//\)[^/]' \| \ | |
12268 | X$ac_file : 'X\(//\)$' \| \ | |
12269 | X$ac_file : 'X\(/\)' \| \ | |
12270 | . : '\(.\)' 2>/dev/null || | |
12271 | echo X$ac_file | | |
12272 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
12273 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
12274 | /^X\(\/\/\)$/{ s//\1/; q; } | |
12275 | /^X\(\/\).*/{ s//\1/; q; } | |
12276 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
12277 | done | |
12278 | _ACEOF | |
12279 | cat >>$CONFIG_STATUS <<\_ACEOF | |
12280 | ||
12281 | # | |
12282 | # CONFIG_COMMANDS section. | |
12283 | # | |
12284 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
12285 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
12286 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
12287 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
12288 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
12289 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
12290 | X"$ac_dest" : 'X\(//\)$' \| \ | |
12291 | X"$ac_dest" : 'X\(/\)' \| \ | |
12292 | . : '\(.\)' 2>/dev/null || | |
12293 | echo X"$ac_dest" | | |
12294 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
12295 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
12296 | /^X\(\/\/\)$/{ s//\1/; q; } | |
12297 | /^X\(\/\).*/{ s//\1/; q; } | |
12298 | s/.*/./; q'` | |
12299 | { if $as_mkdir_p; then | |
12300 | mkdir -p "$ac_dir" | |
12301 | else | |
12302 | as_dir="$ac_dir" | |
12303 | as_dirs= | |
12304 | while test ! -d "$as_dir"; do | |
12305 | as_dirs="$as_dir $as_dirs" | |
12306 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
12307 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
12308 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
12309 | X"$as_dir" : 'X\(//\)$' \| \ | |
12310 | X"$as_dir" : 'X\(/\)' \| \ | |
12311 | . : '\(.\)' 2>/dev/null || | |
12312 | echo X"$as_dir" | | |
12313 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
12314 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
12315 | /^X\(\/\/\)$/{ s//\1/; q; } | |
12316 | /^X\(\/\).*/{ s//\1/; q; } | |
12317 | s/.*/./; q'` | |
12318 | done | |
12319 | test ! -n "$as_dirs" || mkdir $as_dirs | |
12320 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
12321 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
12322 | { (exit 1); exit 1; }; }; } | |
12323 | ||
12324 | ac_builddir=. | |
12325 | ||
12326 | if test "$ac_dir" != .; then | |
12327 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
12328 | # A "../" for each directory in $ac_dir_suffix. | |
12329 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
12330 | else | |
12331 | ac_dir_suffix= ac_top_builddir= | |
12332 | fi | |
12333 | ||
12334 | case $srcdir in | |
12335 | .) # No --srcdir option. We are building in place. | |
12336 | ac_srcdir=. | |
12337 | if test -z "$ac_top_builddir"; then | |
12338 | ac_top_srcdir=. | |
12339 | else | |
12340 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
12341 | fi ;; | |
12342 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
12343 | ac_srcdir=$srcdir$ac_dir_suffix; | |
12344 | ac_top_srcdir=$srcdir ;; | |
12345 | *) # Relative path. | |
12346 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
12347 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
12348 | esac | |
12349 | ||
12350 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
12351 | # the directories may not exist. | |
12352 | case `pwd` in | |
12353 | .) ac_abs_builddir="$ac_dir";; | |
12354 | *) | |
12355 | case "$ac_dir" in | |
12356 | .) ac_abs_builddir=`pwd`;; | |
12357 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
12358 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
12359 | esac;; | |
12360 | esac | |
12361 | case $ac_abs_builddir in | |
12362 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
12363 | *) | |
12364 | case ${ac_top_builddir}. in | |
12365 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
12366 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
12367 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
12368 | esac;; | |
12369 | esac | |
12370 | case $ac_abs_builddir in | |
12371 | .) ac_abs_srcdir=$ac_srcdir;; | |
12372 | *) | |
12373 | case $ac_srcdir in | |
12374 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
12375 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
12376 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
12377 | esac;; | |
12378 | esac | |
12379 | case $ac_abs_builddir in | |
12380 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
12381 | *) | |
12382 | case $ac_top_srcdir in | |
12383 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
12384 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
12385 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
12386 | esac;; | |
12387 | esac | |
12388 | ||
12389 | ||
12390 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
12391 | echo "$as_me: executing $ac_dest commands" >&6;} | |
12392 | case $ac_dest in | |
12393 | default-1 ) | |
12394 | # Only add multilib support code if we just rebuilt the top-level | |
12395 | # Makefile. | |
12396 | case " $CONFIG_FILES " in | |
12397 | *" Makefile "*) | |
12398 | ac_file=Makefile . ${multi_basedir}/config-ml.in | |
12399 | ;; | |
12400 | esac ;; | |
12401 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do | |
12402 | # Strip MF so we end up with the name of the file. | |
12403 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
12404 | # Check whether this is an Automake generated Makefile or not. | |
12405 | # We used to match only the files named `Makefile.in', but | |
12406 | # some people rename them; so instead we look at the file content. | |
12407 | # Grep'ing the first line is not enough: some people post-process | |
12408 | # each Makefile.in and add a new line on top of each file to say so. | |
12409 | # So let's grep whole file. | |
12410 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then | |
12411 | dirpart=`(dirname "$mf") 2>/dev/null || | |
12412 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
12413 | X"$mf" : 'X\(//\)[^/]' \| \ | |
12414 | X"$mf" : 'X\(//\)$' \| \ | |
12415 | X"$mf" : 'X\(/\)' \| \ | |
12416 | . : '\(.\)' 2>/dev/null || | |
12417 | echo X"$mf" | | |
12418 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
12419 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
12420 | /^X\(\/\/\)$/{ s//\1/; q; } | |
12421 | /^X\(\/\).*/{ s//\1/; q; } | |
12422 | s/.*/./; q'` | |
12423 | else | |
12424 | continue | |
12425 | fi | |
12426 | # Extract the definition of DEPDIR, am__include, and am__quote | |
12427 | # from the Makefile without running `make'. | |
12428 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
12429 | test -z "$DEPDIR" && continue | |
12430 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
12431 | test -z "am__include" && continue | |
12432 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
12433 | # When using ansi2knr, U may be empty or an underscore; expand it | |
12434 | U=`sed -n 's/^U = //p' < "$mf"` | |
12435 | # Find all dependency output files, they are included files with | |
12436 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
12437 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
12438 | # expansion. | |
12439 | for file in `sed -n " | |
12440 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
12441 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
12442 | # Make sure the directory exists. | |
12443 | test -f "$dirpart/$file" && continue | |
12444 | fdir=`(dirname "$file") 2>/dev/null || | |
12445 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
12446 | X"$file" : 'X\(//\)[^/]' \| \ | |
12447 | X"$file" : 'X\(//\)$' \| \ | |
12448 | X"$file" : 'X\(/\)' \| \ | |
12449 | . : '\(.\)' 2>/dev/null || | |
12450 | echo X"$file" | | |
12451 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
12452 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
12453 | /^X\(\/\/\)$/{ s//\1/; q; } | |
12454 | /^X\(\/\).*/{ s//\1/; q; } | |
12455 | s/.*/./; q'` | |
12456 | { if $as_mkdir_p; then | |
12457 | mkdir -p $dirpart/$fdir | |
12458 | else | |
12459 | as_dir=$dirpart/$fdir | |
12460 | as_dirs= | |
12461 | while test ! -d "$as_dir"; do | |
12462 | as_dirs="$as_dir $as_dirs" | |
12463 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
12464 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
12465 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
12466 | X"$as_dir" : 'X\(//\)$' \| \ | |
12467 | X"$as_dir" : 'X\(/\)' \| \ | |
12468 | . : '\(.\)' 2>/dev/null || | |
12469 | echo X"$as_dir" | | |
12470 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
12471 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
12472 | /^X\(\/\/\)$/{ s//\1/; q; } | |
12473 | /^X\(\/\).*/{ s//\1/; q; } | |
12474 | s/.*/./; q'` | |
12475 | done | |
12476 | test ! -n "$as_dirs" || mkdir $as_dirs | |
12477 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 | |
12478 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} | |
12479 | { (exit 1); exit 1; }; }; } | |
12480 | ||
12481 | # echo "creating $dirpart/$file" | |
12482 | echo '# dummy' > "$dirpart/$file" | |
12483 | done | |
12484 | done | |
18cbfd85 PB |
12485 | ;; |
12486 | gstdint.h ) | |
12487 | if test "$GCC" = yes; then | |
12488 | echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h | |
12489 | else | |
12490 | echo "/* generated for $CC */" > tmp-stdint.h | |
12491 | fi | |
12492 | ||
12493 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
12494 | ||
12495 | #ifndef GCC_GENERATED_STDINT_H | |
12496 | #define GCC_GENERATED_STDINT_H 1 | |
12497 | ||
12498 | #include <sys/types.h> | |
12499 | EOF | |
12500 | ||
12501 | if test "$acx_cv_header_stdint" != stdint.h; then | |
12502 | echo "#include <stddef.h>" >> tmp-stdint.h | |
12503 | fi | |
12504 | if test "$acx_cv_header_stdint" != stddef.h; then | |
12505 | echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h | |
12506 | fi | |
12507 | ||
12508 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
12509 | /* glibc uses these symbols as guards to prevent redefinitions. */ | |
12510 | #ifdef __int8_t_defined | |
12511 | #define _INT8_T | |
12512 | #define _INT16_T | |
12513 | #define _INT32_T | |
12514 | #endif | |
12515 | #ifdef __uint32_t_defined | |
12516 | #define _UINT32_T | |
12517 | #endif | |
12518 | ||
12519 | EOF | |
12520 | ||
12521 | # ----------------- done header, emit basic int types ------------- | |
12522 | if test "$acx_cv_header_stdint" = stddef.h; then | |
12523 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
12524 | ||
12525 | #ifndef _UINT8_T | |
12526 | #define _UINT8_T | |
12527 | typedef unsigned $acx_cv_type_int8_t uint8_t; | |
12528 | #endif | |
12529 | ||
12530 | #ifndef _UINT16_T | |
12531 | #define _UINT16_T | |
12532 | typedef unsigned $acx_cv_type_int16_t uint16_t; | |
12533 | #endif | |
12534 | ||
12535 | #ifndef _UINT32_T | |
12536 | #define _UINT32_T | |
12537 | typedef unsigned $acx_cv_type_int32_t uint32_t; | |
12538 | #endif | |
12539 | ||
12540 | #ifndef _INT8_T | |
12541 | #define _INT8_T | |
12542 | typedef $acx_cv_type_int8_t int8_t; | |
12543 | #endif | |
12544 | ||
12545 | #ifndef _INT16_T | |
12546 | #define _INT16_T | |
12547 | typedef $acx_cv_type_int16_t int16_t; | |
12548 | #endif | |
12549 | ||
12550 | #ifndef _INT32_T | |
12551 | #define _INT32_T | |
12552 | typedef $acx_cv_type_int32_t int32_t; | |
12553 | #endif | |
12554 | EOF | |
12555 | elif test "$ac_cv_type_u_int32_t" = yes; then | |
12556 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
12557 | ||
12558 | /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */ | |
12559 | #ifndef _INT8_T | |
12560 | #define _INT8_T | |
12561 | #endif | |
12562 | #ifndef _INT16_T | |
12563 | #define _INT16_T | |
12564 | #endif | |
12565 | #ifndef _INT32_T | |
12566 | #define _INT32_T | |
12567 | #endif | |
12568 | ||
12569 | #ifndef _UINT8_T | |
12570 | #define _UINT8_T | |
12571 | typedef u_int8_t uint8_t; | |
12572 | #endif | |
12573 | ||
12574 | #ifndef _UINT16_T | |
12575 | #define _UINT16_T | |
12576 | typedef u_int16_t uint16_t; | |
12577 | #endif | |
12578 | ||
12579 | #ifndef _UINT32_T | |
12580 | #define _UINT32_T | |
12581 | typedef u_int32_t uint32_t; | |
12582 | #endif | |
12583 | EOF | |
12584 | else | |
12585 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
12586 | ||
12587 | /* Some systems have guard macros to prevent redefinitions, define them. */ | |
12588 | #ifndef _INT8_T | |
12589 | #define _INT8_T | |
12590 | #endif | |
12591 | #ifndef _INT16_T | |
12592 | #define _INT16_T | |
12593 | #endif | |
12594 | #ifndef _INT32_T | |
12595 | #define _INT32_T | |
12596 | #endif | |
12597 | #ifndef _UINT8_T | |
12598 | #define _UINT8_T | |
12599 | #endif | |
12600 | #ifndef _UINT16_T | |
12601 | #define _UINT16_T | |
12602 | #endif | |
12603 | #ifndef _UINT32_T | |
12604 | #define _UINT32_T | |
12605 | #endif | |
12606 | EOF | |
12607 | fi | |
12608 | ||
12609 | # ------------- done basic int types, emit int64_t types ------------ | |
12610 | if test "$ac_cv_type_uint64_t" = yes; then | |
12611 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
12612 | ||
12613 | /* system headers have good uint64_t and int64_t */ | |
12614 | #ifndef _INT64_T | |
12615 | #define _INT64_T | |
12616 | #endif | |
12617 | #ifndef _UINT64_T | |
12618 | #define _UINT64_T | |
12619 | #endif | |
12620 | EOF | |
12621 | elif test "$ac_cv_type_u_int64_t" = yes; then | |
12622 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
12623 | ||
12624 | /* system headers have an u_int64_t (and int64_t) */ | |
12625 | #ifndef _INT64_T | |
12626 | #define _INT64_T | |
12627 | #endif | |
12628 | #ifndef _UINT64_T | |
12629 | #define _UINT64_T | |
12630 | typedef u_int64_t uint64_t; | |
12631 | #endif | |
12632 | EOF | |
12633 | elif test -n "$acx_cv_type_int64_t"; then | |
12634 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
12635 | ||
12636 | /* architecture has a 64-bit type, $acx_cv_type_int64_t */ | |
12637 | #ifndef _INT64_T | |
12638 | #define _INT64_T | |
12639 | typedef $acx_cv_type_int64_t int64_t; | |
12640 | #endif | |
12641 | #ifndef _UINT64_T | |
12642 | #define _UINT64_T | |
12643 | typedef unsigned $acx_cv_type_int64_t uint64_t; | |
12644 | #endif | |
12645 | EOF | |
12646 | else | |
12647 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
12648 | ||
12649 | /* some common heuristics for int64_t, using compiler-specific tests */ | |
12650 | #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L | |
12651 | #ifndef _INT64_T | |
12652 | #define _INT64_T | |
12653 | typedef long long int64_t; | |
12654 | #endif | |
12655 | #ifndef _UINT64_T | |
12656 | #define _UINT64_T | |
12657 | typedef unsigned long long uint64_t; | |
12658 | #endif | |
12659 | ||
12660 | #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0 | |
12661 | /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and | |
12662 | does not implement __extension__. But that compiler doesn't define | |
12663 | __GNUC_MINOR__. */ | |
12664 | # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__) | |
12665 | # define __extension__ | |
12666 | # endif | |
12667 | ||
12668 | # ifndef _INT64_T | |
12669 | # define _INT64_T | |
12670 | __extension__ typedef long long int64_t; | |
12671 | # endif | |
12672 | # ifndef _UINT64_T | |
12673 | # define _UINT64_T | |
12674 | __extension__ typedef unsigned long long uint64_t; | |
12675 | # endif | |
12676 | ||
12677 | #elif !defined __STRICT_ANSI__ | |
12678 | # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__ | |
12679 | ||
12680 | # ifndef _INT64_T | |
12681 | # define _INT64_T | |
12682 | typedef __int64 int64_t; | |
12683 | # endif | |
12684 | # ifndef _UINT64_T | |
12685 | # define _UINT64_T | |
12686 | typedef unsigned __int64 uint64_t; | |
12687 | # endif | |
12688 | # endif /* compiler */ | |
12689 | ||
12690 | #endif /* ANSI version */ | |
12691 | EOF | |
12692 | fi | |
12693 | ||
12694 | # ------------- done int64_t types, emit intptr types ------------ | |
12695 | if test "$ac_cv_type_uintptr_t" != yes; then | |
12696 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
12697 | ||
12698 | /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */ | |
12699 | typedef u$acx_cv_type_intptr_t uintptr_t; | |
12700 | typedef $acx_cv_type_intptr_t intptr_t; | |
12701 | EOF | |
12702 | fi | |
12703 | ||
12704 | # ------------- done intptr types, emit int_least types ------------ | |
12705 | if test "$ac_cv_type_int_least32_t" != yes; then | |
12706 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
12707 | ||
12708 | /* Define int_least types */ | |
12709 | typedef int8_t int_least8_t; | |
12710 | typedef int16_t int_least16_t; | |
12711 | typedef int32_t int_least32_t; | |
12712 | #ifdef _INT64_T | |
12713 | typedef int64_t int_least64_t; | |
12714 | #endif | |
12715 | ||
12716 | typedef uint8_t uint_least8_t; | |
12717 | typedef uint16_t uint_least16_t; | |
12718 | typedef uint32_t uint_least32_t; | |
12719 | #ifdef _UINT64_T | |
12720 | typedef uint64_t uint_least64_t; | |
12721 | #endif | |
12722 | EOF | |
12723 | fi | |
12724 | ||
12725 | # ------------- done intptr types, emit int_fast types ------------ | |
12726 | if test "$ac_cv_type_int_fast32_t" != yes; then | |
12727 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
12728 | ||
12729 | /* Define int_fast types. short is often slow */ | |
12730 | typedef int8_t int_fast8_t; | |
12731 | typedef int int_fast16_t; | |
12732 | typedef int32_t int_fast32_t; | |
12733 | #ifdef _INT64_T | |
12734 | typedef int64_t int_fast64_t; | |
12735 | #endif | |
12736 | ||
12737 | typedef uint8_t uint_fast8_t; | |
12738 | typedef unsigned int uint_fast16_t; | |
12739 | typedef uint32_t uint_fast32_t; | |
12740 | #ifdef _UINT64_T | |
12741 | typedef uint64_t uint_fast64_t; | |
12742 | #endif | |
12743 | EOF | |
12744 | fi | |
12745 | ||
12746 | if test "$ac_cv_type_uintmax_t" != yes; then | |
12747 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
12748 | ||
12749 | /* Define intmax based on what we found */ | |
12750 | #ifdef _INT64_T | |
12751 | typedef int64_t intmax_t; | |
12752 | #else | |
12753 | typedef long intmax_t; | |
12754 | #endif | |
12755 | #ifdef _UINT64_T | |
12756 | typedef uint64_t uintmax_t; | |
12757 | #else | |
12758 | typedef unsigned long uintmax_t; | |
12759 | #endif | |
12760 | EOF | |
12761 | fi | |
12762 | ||
12763 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
12764 | ||
12765 | #endif /* GCC_GENERATED_STDINT_H */ | |
12766 | EOF | |
12767 | ||
12768 | if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then | |
12769 | rm -f tmp-stdint.h | |
12770 | else | |
12771 | mv -f tmp-stdint.h gstdint.h | |
12772 | fi | |
12773 | ||
953ff289 DN |
12774 | ;; |
12775 | esac | |
12776 | done | |
12777 | _ACEOF | |
12778 | ||
12779 | cat >>$CONFIG_STATUS <<\_ACEOF | |
12780 | ||
12781 | { (exit 0); exit 0; } | |
12782 | _ACEOF | |
12783 | chmod +x $CONFIG_STATUS | |
12784 | ac_clean_files=$ac_clean_files_save | |
12785 | ||
12786 | ||
12787 | # configure is writing to config.log, and then calls config.status. | |
12788 | # config.status does its own redirection, appending to config.log. | |
12789 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
12790 | # by configure, so config.status won't be able to write to it; its | |
12791 | # output is simply discarded. So we exec the FD to /dev/null, | |
12792 | # effectively closing config.log, so it can be properly (re)opened and | |
12793 | # appended to by config.status. When coming back to configure, we | |
12794 | # need to make the FD available again. | |
12795 | if test "$no_create" != yes; then | |
12796 | ac_cs_success=: | |
12797 | ac_config_status_args= | |
12798 | test "$silent" = yes && | |
12799 | ac_config_status_args="$ac_config_status_args --quiet" | |
12800 | exec 5>/dev/null | |
12801 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
12802 | exec 5>>config.log | |
12803 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
12804 | # would make configure fail if this is the last instruction. | |
12805 | $ac_cs_success || { (exit 1); exit 1; } | |
12806 | fi | |
12807 |