* decl2.c: Fix a comment typo.
[official-gcc.git] / libgomp / configure
blob058b81b8486e87fdc6cf42a60f4f0fc2f4b8f0e5
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.
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 ## --------------------- ##
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
22 DUALCASE=1; export DUALCASE # for MKS sh
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
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
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
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
49 done
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
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
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'`
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
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=:
96 rm -f conf$$.sh
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
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
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
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; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
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
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
154 esac
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 '
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; }; }
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
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
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
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'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
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
225 as_executable_p="test -f"
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'"
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'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
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`
249 exec 6>&1
252 # Initializations.
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}
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}
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=''
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"
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'
312 ac_subst_files=''
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
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'
352 ac_prev=
353 for ac_option
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
362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364 # Accept the important Cygnus configure options, so we can diagnose typos.
366 case $ac_option in
368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
369 ac_prev=bindir ;;
370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371 bindir=$ac_optarg ;;
373 -build | --build | --buil | --bui | --bu)
374 ac_prev=build_alias ;;
375 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376 build_alias=$ac_optarg ;;
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 ;;
385 --config-cache | -C)
386 cache_file=config.cache ;;
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 ;;
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" ;;
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'" ;;
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 ;;
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
427 with_gas=yes ;;
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 ;;
436 -host | --host | --hos | --ho)
437 ac_prev=host_alias ;;
438 -host=* | --host=* | --hos=* | --ho=*)
439 host_alias=$ac_optarg ;;
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 ;;
448 -infodir | --infodir | --infodi | --infod | --info | --inf)
449 ac_prev=infodir ;;
450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451 infodir=$ac_optarg ;;
453 -libdir | --libdir | --libdi | --libd)
454 ac_prev=libdir ;;
455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
456 libdir=$ac_optarg ;;
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 ;;
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 ;;
474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475 ac_prev=mandir ;;
476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477 mandir=$ac_optarg ;;
479 -nfp | --nfp | --nf)
480 # Obsolete; use --without-fp.
481 with_fp=no ;;
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484 | --no-cr | --no-c | -n)
485 no_create=yes ;;
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 ;;
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 ;;
500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501 ac_prev=prefix ;;
502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503 prefix=$ac_optarg ;;
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 ;;
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 ;;
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 ;;
536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537 | -silent | --silent | --silen | --sile | --sil)
538 silent=yes ;;
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 ;;
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 ;;
557 -site | --site | --sit)
558 ac_prev=site ;;
559 -site=* | --site=* | --sit=*)
560 site=$ac_optarg ;;
562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563 ac_prev=srcdir ;;
564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565 srcdir=$ac_optarg ;;
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 ;;
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 ;;
579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
580 verbose=yes ;;
582 -version | --version | --versio | --versi | --vers | -V)
583 ac_init_version=: ;;
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'" ;;
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" ;;
607 --x)
608 # Obsolete; use --with-x.
609 with_x=yes ;;
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 ;;
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 ;;
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
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 ;;
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}
648 esac
649 done
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; }; }
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
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
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
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
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
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
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701 test "$silent" = yes && exec 6>/dev/null
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=..
724 else
725 ac_srcdir_defaulted=no
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; }; }
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
774 # Report the --help message.
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.
782 Usage: $0 [OPTION]... [VAR=VALUE]...
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.
787 Defaults for the options are specified in brackets.
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 \`..']
800 _ACEOF
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]
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'.
814 For better control, use the options below.
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
831 cat <<\_ACEOF
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
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
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
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]
857 --enable-linux-futex Use the Linux futex system call
858 [default=default]
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)
866 --enable-maintainer-mode enable make rules and dependencies not useful
867 (and sometimes confusing) to the casual installer
868 _g_switchUse thread-local storage
869 [default=yes]
870 --enable-symvers=STYLE enables symbol versioning of the shared library
871 [default=yes]
873 Optional Packages:
874 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
875 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
876 --with-gnu-ld assume the C compiler uses GNU ld default=no
877 --with-pic try to use only PIC/non-PIC objects default=use both
879 Some influential environment variables:
880 CC C compiler command
881 CFLAGS C compiler flags
882 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
883 nonstandard directory <lib dir>
884 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
885 headers in a nonstandard directory <include dir>
886 FC Fortran compiler command
887 FCFLAGS Fortran compiler flags
888 CPP C preprocessor
890 Use these variables to override the choices made by `configure' or to help
891 it to find libraries and programs with nonstandard names/locations.
893 _ACEOF
896 if test "$ac_init_help" = "recursive"; then
897 # If there are subdirs, report their specific --help.
898 ac_popdir=`pwd`
899 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
900 test -d $ac_dir || continue
901 ac_builddir=.
903 if test "$ac_dir" != .; then
904 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
905 # A "../" for each directory in $ac_dir_suffix.
906 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
907 else
908 ac_dir_suffix= ac_top_builddir=
911 case $srcdir in
912 .) # No --srcdir option. We are building in place.
913 ac_srcdir=.
914 if test -z "$ac_top_builddir"; then
915 ac_top_srcdir=.
916 else
917 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
918 fi ;;
919 [\\/]* | ?:[\\/]* ) # Absolute path.
920 ac_srcdir=$srcdir$ac_dir_suffix;
921 ac_top_srcdir=$srcdir ;;
922 *) # Relative path.
923 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
924 ac_top_srcdir=$ac_top_builddir$srcdir ;;
925 esac
927 # Do not use `cd foo && pwd` to compute absolute paths, because
928 # the directories may not exist.
929 case `pwd` in
930 .) ac_abs_builddir="$ac_dir";;
932 case "$ac_dir" in
933 .) ac_abs_builddir=`pwd`;;
934 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
935 *) ac_abs_builddir=`pwd`/"$ac_dir";;
936 esac;;
937 esac
938 case $ac_abs_builddir in
939 .) ac_abs_top_builddir=${ac_top_builddir}.;;
941 case ${ac_top_builddir}. in
942 .) ac_abs_top_builddir=$ac_abs_builddir;;
943 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
944 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
945 esac;;
946 esac
947 case $ac_abs_builddir in
948 .) ac_abs_srcdir=$ac_srcdir;;
950 case $ac_srcdir in
951 .) ac_abs_srcdir=$ac_abs_builddir;;
952 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
953 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
954 esac;;
955 esac
956 case $ac_abs_builddir in
957 .) ac_abs_top_srcdir=$ac_top_srcdir;;
959 case $ac_top_srcdir in
960 .) ac_abs_top_srcdir=$ac_abs_builddir;;
961 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
962 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
963 esac;;
964 esac
966 cd $ac_dir
967 # Check for guested configure; otherwise get Cygnus style configure.
968 if test -f $ac_srcdir/configure.gnu; then
969 echo
970 $SHELL $ac_srcdir/configure.gnu --help=recursive
971 elif test -f $ac_srcdir/configure; then
972 echo
973 $SHELL $ac_srcdir/configure --help=recursive
974 elif test -f $ac_srcdir/configure.ac ||
975 test -f $ac_srcdir/configure.in; then
976 echo
977 $ac_configure --help
978 else
979 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
981 cd $ac_popdir
982 done
985 test -n "$ac_init_help" && exit 0
986 if $ac_init_version; then
987 cat <<\_ACEOF
988 GNU OpenMP Runtime Library configure 1.0
989 generated by GNU Autoconf 2.59
991 Copyright (C) 2003 Free Software Foundation, Inc.
992 This configure script is free software; the Free Software Foundation
993 gives unlimited permission to copy, distribute and modify it.
994 _ACEOF
995 exit 0
997 exec 5>config.log
998 cat >&5 <<_ACEOF
999 This file contains any messages produced by compilers while
1000 running configure, to aid debugging if configure makes a mistake.
1002 It was created by GNU OpenMP Runtime Library $as_me 1.0, which was
1003 generated by GNU Autoconf 2.59. Invocation command line was
1005 $ $0 $@
1007 _ACEOF
1009 cat <<_ASUNAME
1010 ## --------- ##
1011 ## Platform. ##
1012 ## --------- ##
1014 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1015 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1016 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1017 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1018 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1020 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1021 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1023 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1024 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1025 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1026 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1027 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1028 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1029 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1031 _ASUNAME
1033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1034 for as_dir in $PATH
1036 IFS=$as_save_IFS
1037 test -z "$as_dir" && as_dir=.
1038 echo "PATH: $as_dir"
1039 done
1041 } >&5
1043 cat >&5 <<_ACEOF
1046 ## ----------- ##
1047 ## Core tests. ##
1048 ## ----------- ##
1050 _ACEOF
1053 # Keep a trace of the command line.
1054 # Strip out --no-create and --no-recursion so they do not pile up.
1055 # Strip out --silent because we don't want to record it for future runs.
1056 # Also quote any args containing shell meta-characters.
1057 # Make two passes to allow for proper duplicate-argument suppression.
1058 ac_configure_args=
1059 ac_configure_args0=
1060 ac_configure_args1=
1061 ac_sep=
1062 ac_must_keep_next=false
1063 for ac_pass in 1 2
1065 for ac_arg
1067 case $ac_arg in
1068 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1069 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1070 | -silent | --silent | --silen | --sile | --sil)
1071 continue ;;
1072 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1073 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1074 esac
1075 case $ac_pass in
1076 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1078 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1079 if test $ac_must_keep_next = true; then
1080 ac_must_keep_next=false # Got value, back to normal.
1081 else
1082 case $ac_arg in
1083 *=* | --config-cache | -C | -disable-* | --disable-* \
1084 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1085 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1086 | -with-* | --with-* | -without-* | --without-* | --x)
1087 case "$ac_configure_args0 " in
1088 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1089 esac
1091 -* ) ac_must_keep_next=true ;;
1092 esac
1094 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1095 # Get rid of the leading space.
1096 ac_sep=" "
1098 esac
1099 done
1100 done
1101 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1102 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1104 # When interrupted or exit'd, cleanup temporary files, and complete
1105 # config.log. We remove comments because anyway the quotes in there
1106 # would cause problems or look ugly.
1107 # WARNING: Be sure not to use single quotes in there, as some shells,
1108 # such as our DU 5.0 friend, will then `close' the trap.
1109 trap 'exit_status=$?
1110 # Save into config.log some information that might help in debugging.
1112 echo
1114 cat <<\_ASBOX
1115 ## ---------------- ##
1116 ## Cache variables. ##
1117 ## ---------------- ##
1118 _ASBOX
1119 echo
1120 # The following way of writing the cache mishandles newlines in values,
1122 (set) 2>&1 |
1123 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1124 *ac_space=\ *)
1125 sed -n \
1126 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1127 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1130 sed -n \
1131 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1133 esac;
1135 echo
1137 cat <<\_ASBOX
1138 ## ----------------- ##
1139 ## Output variables. ##
1140 ## ----------------- ##
1141 _ASBOX
1142 echo
1143 for ac_var in $ac_subst_vars
1145 eval ac_val=$`echo $ac_var`
1146 echo "$ac_var='"'"'$ac_val'"'"'"
1147 done | sort
1148 echo
1150 if test -n "$ac_subst_files"; then
1151 cat <<\_ASBOX
1152 ## ------------- ##
1153 ## Output files. ##
1154 ## ------------- ##
1155 _ASBOX
1156 echo
1157 for ac_var in $ac_subst_files
1159 eval ac_val=$`echo $ac_var`
1160 echo "$ac_var='"'"'$ac_val'"'"'"
1161 done | sort
1162 echo
1165 if test -s confdefs.h; then
1166 cat <<\_ASBOX
1167 ## ----------- ##
1168 ## confdefs.h. ##
1169 ## ----------- ##
1170 _ASBOX
1171 echo
1172 sed "/^$/d" confdefs.h | sort
1173 echo
1175 test "$ac_signal" != 0 &&
1176 echo "$as_me: caught signal $ac_signal"
1177 echo "$as_me: exit $exit_status"
1178 } >&5
1179 rm -f core *.core &&
1180 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1181 exit $exit_status
1183 for ac_signal in 1 2 13 15; do
1184 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1185 done
1186 ac_signal=0
1188 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1189 rm -rf conftest* confdefs.h
1190 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1191 echo >confdefs.h
1193 # Predefined preprocessor variables.
1195 cat >>confdefs.h <<_ACEOF
1196 #define PACKAGE_NAME "$PACKAGE_NAME"
1197 _ACEOF
1200 cat >>confdefs.h <<_ACEOF
1201 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1202 _ACEOF
1205 cat >>confdefs.h <<_ACEOF
1206 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1207 _ACEOF
1210 cat >>confdefs.h <<_ACEOF
1211 #define PACKAGE_STRING "$PACKAGE_STRING"
1212 _ACEOF
1215 cat >>confdefs.h <<_ACEOF
1216 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1217 _ACEOF
1220 # Let the site file select an alternate cache file if it wants to.
1221 # Prefer explicitly selected file to automatically selected ones.
1222 if test -z "$CONFIG_SITE"; then
1223 if test "x$prefix" != xNONE; then
1224 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1225 else
1226 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1229 for ac_site_file in $CONFIG_SITE; do
1230 if test -r "$ac_site_file"; then
1231 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1232 echo "$as_me: loading site script $ac_site_file" >&6;}
1233 sed 's/^/| /' "$ac_site_file" >&5
1234 . "$ac_site_file"
1236 done
1238 if test -r "$cache_file"; then
1239 # Some versions of bash will fail to source /dev/null (special
1240 # files actually), so we avoid doing that.
1241 if test -f "$cache_file"; then
1242 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1243 echo "$as_me: loading cache $cache_file" >&6;}
1244 case $cache_file in
1245 [\\/]* | ?:[\\/]* ) . $cache_file;;
1246 *) . ./$cache_file;;
1247 esac
1249 else
1250 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1251 echo "$as_me: creating cache $cache_file" >&6;}
1252 >$cache_file
1255 # Check that the precious variables saved in the cache have kept the same
1256 # value.
1257 ac_cache_corrupted=false
1258 for ac_var in `(set) 2>&1 |
1259 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1260 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1261 eval ac_new_set=\$ac_env_${ac_var}_set
1262 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1263 eval ac_new_val="\$ac_env_${ac_var}_value"
1264 case $ac_old_set,$ac_new_set in
1265 set,)
1266 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1267 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1268 ac_cache_corrupted=: ;;
1269 ,set)
1270 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1271 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1272 ac_cache_corrupted=: ;;
1273 ,);;
1275 if test "x$ac_old_val" != "x$ac_new_val"; then
1276 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1277 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1278 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1279 echo "$as_me: former value: $ac_old_val" >&2;}
1280 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1281 echo "$as_me: current value: $ac_new_val" >&2;}
1282 ac_cache_corrupted=:
1283 fi;;
1284 esac
1285 # Pass precious variables to config.status.
1286 if test "$ac_new_set" = set; then
1287 case $ac_new_val in
1288 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1289 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1290 *) ac_arg=$ac_var=$ac_new_val ;;
1291 esac
1292 case " $ac_configure_args " in
1293 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1294 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1295 esac
1297 done
1298 if $ac_cache_corrupted; then
1299 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1300 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1301 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1302 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1303 { (exit 1); exit 1; }; }
1306 ac_ext=c
1307 ac_cpp='$CPP $CPPFLAGS'
1308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1338 ac_config_headers="$ac_config_headers config.h"
1341 # -------
1342 # Options
1343 # -------
1345 echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
1346 echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6
1347 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1348 if test "${enable_version_specific_runtime_libs+set}" = set; then
1349 enableval="$enable_version_specific_runtime_libs"
1351 case "$enableval" in
1352 yes|no) ;;
1353 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific-runtime-libs" >&5
1354 echo "$as_me: error: Unknown argument to enable/disable version-specific-runtime-libs" >&2;}
1355 { (exit 1); exit 1; }; } ;;
1356 esac
1358 else
1359 enable_version_specific_runtime_libs=no
1362 echo "$as_me:$LINENO: result: $enable_version_specific_runtime_libs" >&5
1363 echo "${ECHO_T}$enable_version_specific_runtime_libs" >&6
1365 echo "$as_me:$LINENO: checking for --enable-linux-futex" >&5
1366 echo $ECHO_N "checking for --enable-linux-futex... $ECHO_C" >&6
1367 # Check whether --enable-linux-futex or --disable-linux-futex was given.
1368 if test "${enable_linux_futex+set}" = set; then
1369 enableval="$enable_linux_futex"
1371 case "$enableval" in
1372 yes|no|default) ;;
1373 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable linux-futex" >&5
1374 echo "$as_me: error: Unknown argument to enable/disable linux-futex" >&2;}
1375 { (exit 1); exit 1; }; } ;;
1376 esac
1378 else
1379 enable_linux_futex=default
1382 echo "$as_me:$LINENO: result: $enable_linux_futex" >&5
1383 echo "${ECHO_T}$enable_linux_futex" >&6
1385 # -------
1386 # -------
1388 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
1390 # You will slowly go insane if you do not grok the following fact: when
1391 # building this library, the top-level /target/ becomes the library's /host/.
1393 # configure then causes --target to default to --host, exactly like any
1394 # other package using autoconf. Therefore, 'target' and 'host' will
1395 # always be the same. This makes sense both for native and cross compilers
1396 # just think about it for a little while. :-)
1398 # Also, if this library is being configured as part of a cross compiler, the
1399 # top-level configure script will pass the "real" host as $with_cross_host.
1401 # Do not delete or change the following two lines. For why, see
1402 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
1403 ac_aux_dir=
1404 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1405 if test -f $ac_dir/install-sh; then
1406 ac_aux_dir=$ac_dir
1407 ac_install_sh="$ac_aux_dir/install-sh -c"
1408 break
1409 elif test -f $ac_dir/install.sh; then
1410 ac_aux_dir=$ac_dir
1411 ac_install_sh="$ac_aux_dir/install.sh -c"
1412 break
1413 elif test -f $ac_dir/shtool; then
1414 ac_aux_dir=$ac_dir
1415 ac_install_sh="$ac_aux_dir/shtool install -c"
1416 break
1418 done
1419 if test -z "$ac_aux_dir"; then
1420 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1421 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1422 { (exit 1); exit 1; }; }
1424 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1425 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1426 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1428 # Make sure we can run config.sub.
1429 $ac_config_sub sun4 >/dev/null 2>&1 ||
1430 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1431 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1432 { (exit 1); exit 1; }; }
1434 echo "$as_me:$LINENO: checking build system type" >&5
1435 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1436 if test "${ac_cv_build+set}" = set; then
1437 echo $ECHO_N "(cached) $ECHO_C" >&6
1438 else
1439 ac_cv_build_alias=$build_alias
1440 test -z "$ac_cv_build_alias" &&
1441 ac_cv_build_alias=`$ac_config_guess`
1442 test -z "$ac_cv_build_alias" &&
1443 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1444 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1445 { (exit 1); exit 1; }; }
1446 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1447 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1448 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1449 { (exit 1); exit 1; }; }
1452 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1453 echo "${ECHO_T}$ac_cv_build" >&6
1454 build=$ac_cv_build
1455 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1456 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1457 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1460 echo "$as_me:$LINENO: checking host system type" >&5
1461 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1462 if test "${ac_cv_host+set}" = set; then
1463 echo $ECHO_N "(cached) $ECHO_C" >&6
1464 else
1465 ac_cv_host_alias=$host_alias
1466 test -z "$ac_cv_host_alias" &&
1467 ac_cv_host_alias=$ac_cv_build_alias
1468 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1469 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1470 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1471 { (exit 1); exit 1; }; }
1474 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1475 echo "${ECHO_T}$ac_cv_host" >&6
1476 host=$ac_cv_host
1477 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1478 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1479 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1482 echo "$as_me:$LINENO: checking target system type" >&5
1483 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1484 if test "${ac_cv_target+set}" = set; then
1485 echo $ECHO_N "(cached) $ECHO_C" >&6
1486 else
1487 ac_cv_target_alias=$target_alias
1488 test "x$ac_cv_target_alias" = "x" &&
1489 ac_cv_target_alias=$ac_cv_host_alias
1490 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1491 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1492 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1493 { (exit 1); exit 1; }; }
1496 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1497 echo "${ECHO_T}$ac_cv_target" >&6
1498 target=$ac_cv_target
1499 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1500 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1501 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1504 # The aliases save the names the user supplied, while $host etc.
1505 # will get canonicalized.
1506 test -n "$target_alias" &&
1507 test "$program_prefix$program_suffix$program_transform_name" = \
1508 NONENONEs,x,x, &&
1509 program_prefix=${target_alias}-
1510 target_alias=${target_alias-$host_alias}
1512 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
1513 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
1514 # 1.9.0: minimum required version
1515 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
1516 # of other PACKAGE_* variables will, however, and there's nothing
1517 # we can do about that; they come from AC_INIT).
1518 # foreign: we don't follow the normal rules for GNU packages (no COPYING
1519 # file in the top srcdir, etc, etc), so stop complaining.
1520 # no-dependencies: turns off auto dependency generation (just for now)
1521 # -Wall: turns on all automake warnings...
1522 # -Wno-portability: ...except this one, since GNU make is required.
1523 # -Wno-override: ... and this one, since we do want this in testsuite.
1524 am__api_version="1.9"
1525 # Find a good install program. We prefer a C program (faster),
1526 # so one script is as good as another. But avoid the broken or
1527 # incompatible versions:
1528 # SysV /etc/install, /usr/sbin/install
1529 # SunOS /usr/etc/install
1530 # IRIX /sbin/install
1531 # AIX /bin/install
1532 # AmigaOS /C/install, which installs bootblocks on floppy discs
1533 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1534 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1535 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1536 # OS/2's system install, which has a completely different semantic
1537 # ./install, which can be erroneously created by make from ./install.sh.
1538 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1539 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1540 if test -z "$INSTALL"; then
1541 if test "${ac_cv_path_install+set}" = set; then
1542 echo $ECHO_N "(cached) $ECHO_C" >&6
1543 else
1544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1545 for as_dir in $PATH
1547 IFS=$as_save_IFS
1548 test -z "$as_dir" && as_dir=.
1549 # Account for people who put trailing slashes in PATH elements.
1550 case $as_dir/ in
1551 ./ | .// | /cC/* | \
1552 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1553 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1554 /usr/ucb/* ) ;;
1556 # OSF1 and SCO ODT 3.0 have their own names for install.
1557 # Don't use installbsd from OSF since it installs stuff as root
1558 # by default.
1559 for ac_prog in ginstall scoinst install; do
1560 for ac_exec_ext in '' $ac_executable_extensions; do
1561 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1562 if test $ac_prog = install &&
1563 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1564 # AIX install. It has an incompatible calling convention.
1566 elif test $ac_prog = install &&
1567 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1568 # program-specific install script used by HP pwplus--don't use.
1570 else
1571 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1572 break 3
1575 done
1576 done
1578 esac
1579 done
1583 if test "${ac_cv_path_install+set}" = set; then
1584 INSTALL=$ac_cv_path_install
1585 else
1586 # As a last resort, use the slow shell script. We don't cache a
1587 # path for INSTALL within a source directory, because that will
1588 # break other packages using the cache if that directory is
1589 # removed, or if the path is relative.
1590 INSTALL=$ac_install_sh
1593 echo "$as_me:$LINENO: result: $INSTALL" >&5
1594 echo "${ECHO_T}$INSTALL" >&6
1596 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1597 # It thinks the first close brace ends the variable substitution.
1598 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1600 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1602 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1604 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1605 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1606 # Just in case
1607 sleep 1
1608 echo timestamp > conftest.file
1609 # Do `set' in a subshell so we don't clobber the current shell's
1610 # arguments. Must try -L first in case configure is actually a
1611 # symlink; some systems play weird games with the mod time of symlinks
1612 # (eg FreeBSD returns the mod time of the symlink's containing
1613 # directory).
1614 if (
1615 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1616 if test "$*" = "X"; then
1617 # -L didn't work.
1618 set X `ls -t $srcdir/configure conftest.file`
1620 rm -f conftest.file
1621 if test "$*" != "X $srcdir/configure conftest.file" \
1622 && test "$*" != "X conftest.file $srcdir/configure"; then
1624 # If neither matched, then we have a broken ls. This can happen
1625 # if, for instance, CONFIG_SHELL is bash and it inherits a
1626 # broken ls alias from the environment. This has actually
1627 # happened. Such a system could not be considered "sane".
1628 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1629 alias in your environment" >&5
1630 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1631 alias in your environment" >&2;}
1632 { (exit 1); exit 1; }; }
1635 test "$2" = conftest.file
1637 then
1638 # Ok.
1640 else
1641 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1642 Check your system clock" >&5
1643 echo "$as_me: error: newly created file is older than distributed files!
1644 Check your system clock" >&2;}
1645 { (exit 1); exit 1; }; }
1647 echo "$as_me:$LINENO: result: yes" >&5
1648 echo "${ECHO_T}yes" >&6
1649 test "$program_prefix" != NONE &&
1650 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1651 # Use a double $ so make ignores it.
1652 test "$program_suffix" != NONE &&
1653 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1654 # Double any \ or $. echo might interpret backslashes.
1655 # By default was `s,x,x', remove it if useless.
1656 cat <<\_ACEOF >conftest.sed
1657 s/[\\$]/&&/g;s/;s,x,x,$//
1658 _ACEOF
1659 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1660 rm conftest.sed
1662 # expand $ac_aux_dir to an absolute path
1663 am_aux_dir=`cd $ac_aux_dir && pwd`
1665 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1666 # Use eval to expand $SHELL
1667 if eval "$MISSING --run true"; then
1668 am_missing_run="$MISSING --run "
1669 else
1670 am_missing_run=
1671 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1672 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1675 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1676 # We used to keeping the `.' as first argument, in order to
1677 # allow $(mkdir_p) to be used without argument. As in
1678 # $(mkdir_p) $(somedir)
1679 # where $(somedir) is conditionally defined. However this is wrong
1680 # for two reasons:
1681 # 1. if the package is installed by a user who cannot write `.'
1682 # make install will fail,
1683 # 2. the above comment should most certainly read
1684 # $(mkdir_p) $(DESTDIR)$(somedir)
1685 # so it does not work when $(somedir) is undefined and
1686 # $(DESTDIR) is not.
1687 # To support the latter case, we have to write
1688 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1689 # so the `.' trick is pointless.
1690 mkdir_p='mkdir -p --'
1691 else
1692 # On NextStep and OpenStep, the `mkdir' command does not
1693 # recognize any option. It will interpret all options as
1694 # directories to create, and then abort because `.' already
1695 # exists.
1696 for d in ./-p ./--version;
1698 test -d $d && rmdir $d
1699 done
1700 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1701 if test -f "$ac_aux_dir/mkinstalldirs"; then
1702 mkdir_p='$(mkinstalldirs)'
1703 else
1704 mkdir_p='$(install_sh) -d'
1708 for ac_prog in gawk mawk nawk awk
1710 # Extract the first word of "$ac_prog", so it can be a program name with args.
1711 set dummy $ac_prog; ac_word=$2
1712 echo "$as_me:$LINENO: checking for $ac_word" >&5
1713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1714 if test "${ac_cv_prog_AWK+set}" = set; then
1715 echo $ECHO_N "(cached) $ECHO_C" >&6
1716 else
1717 if test -n "$AWK"; then
1718 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1719 else
1720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1721 for as_dir in $PATH
1723 IFS=$as_save_IFS
1724 test -z "$as_dir" && as_dir=.
1725 for ac_exec_ext in '' $ac_executable_extensions; do
1726 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1727 ac_cv_prog_AWK="$ac_prog"
1728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1729 break 2
1731 done
1732 done
1736 AWK=$ac_cv_prog_AWK
1737 if test -n "$AWK"; then
1738 echo "$as_me:$LINENO: result: $AWK" >&5
1739 echo "${ECHO_T}$AWK" >&6
1740 else
1741 echo "$as_me:$LINENO: result: no" >&5
1742 echo "${ECHO_T}no" >&6
1745 test -n "$AWK" && break
1746 done
1748 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1749 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1750 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1751 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1752 echo $ECHO_N "(cached) $ECHO_C" >&6
1753 else
1754 cat >conftest.make <<\_ACEOF
1755 all:
1756 @echo 'ac_maketemp="$(MAKE)"'
1757 _ACEOF
1758 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1759 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1760 if test -n "$ac_maketemp"; then
1761 eval ac_cv_prog_make_${ac_make}_set=yes
1762 else
1763 eval ac_cv_prog_make_${ac_make}_set=no
1765 rm -f conftest.make
1767 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1768 echo "$as_me:$LINENO: result: yes" >&5
1769 echo "${ECHO_T}yes" >&6
1770 SET_MAKE=
1771 else
1772 echo "$as_me:$LINENO: result: no" >&5
1773 echo "${ECHO_T}no" >&6
1774 SET_MAKE="MAKE=${MAKE-make}"
1777 rm -rf .tst 2>/dev/null
1778 mkdir .tst 2>/dev/null
1779 if test -d .tst; then
1780 am__leading_dot=.
1781 else
1782 am__leading_dot=_
1784 rmdir .tst 2>/dev/null
1786 # test to see if srcdir already configured
1787 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1788 test -f $srcdir/config.status; then
1789 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1790 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1791 { (exit 1); exit 1; }; }
1794 # test whether we have cygpath
1795 if test -z "$CYGPATH_W"; then
1796 if (cygpath --version) >/dev/null 2>/dev/null; then
1797 CYGPATH_W='cygpath -w'
1798 else
1799 CYGPATH_W=echo
1804 # Define the identity of the package.
1805 PACKAGE='libgomp'
1806 VERSION='1.0'
1809 cat >>confdefs.h <<_ACEOF
1810 #define PACKAGE "$PACKAGE"
1811 _ACEOF
1814 cat >>confdefs.h <<_ACEOF
1815 #define VERSION "$VERSION"
1816 _ACEOF
1818 # Some tools Automake needs.
1820 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1823 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1826 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1829 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1832 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1834 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1836 # Installed binaries are usually stripped using `strip' when the user
1837 # run `make install-strip'. However `strip' might not be the right
1838 # tool to use in cross-compilation environments, therefore Automake
1839 # will honor the `STRIP' environment variable to overrule this program.
1840 if test "$cross_compiling" != no; then
1841 if test -n "$ac_tool_prefix"; then
1842 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1843 set dummy ${ac_tool_prefix}strip; ac_word=$2
1844 echo "$as_me:$LINENO: checking for $ac_word" >&5
1845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1846 if test "${ac_cv_prog_STRIP+set}" = set; then
1847 echo $ECHO_N "(cached) $ECHO_C" >&6
1848 else
1849 if test -n "$STRIP"; then
1850 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1851 else
1852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1853 for as_dir in $PATH
1855 IFS=$as_save_IFS
1856 test -z "$as_dir" && as_dir=.
1857 for ac_exec_ext in '' $ac_executable_extensions; do
1858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1859 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1861 break 2
1863 done
1864 done
1868 STRIP=$ac_cv_prog_STRIP
1869 if test -n "$STRIP"; then
1870 echo "$as_me:$LINENO: result: $STRIP" >&5
1871 echo "${ECHO_T}$STRIP" >&6
1872 else
1873 echo "$as_me:$LINENO: result: no" >&5
1874 echo "${ECHO_T}no" >&6
1878 if test -z "$ac_cv_prog_STRIP"; then
1879 ac_ct_STRIP=$STRIP
1880 # Extract the first word of "strip", so it can be a program name with args.
1881 set dummy strip; ac_word=$2
1882 echo "$as_me:$LINENO: checking for $ac_word" >&5
1883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1884 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1885 echo $ECHO_N "(cached) $ECHO_C" >&6
1886 else
1887 if test -n "$ac_ct_STRIP"; then
1888 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1889 else
1890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1891 for as_dir in $PATH
1893 IFS=$as_save_IFS
1894 test -z "$as_dir" && as_dir=.
1895 for ac_exec_ext in '' $ac_executable_extensions; do
1896 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1897 ac_cv_prog_ac_ct_STRIP="strip"
1898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1899 break 2
1901 done
1902 done
1904 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1907 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1908 if test -n "$ac_ct_STRIP"; then
1909 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1910 echo "${ECHO_T}$ac_ct_STRIP" >&6
1911 else
1912 echo "$as_me:$LINENO: result: no" >&5
1913 echo "${ECHO_T}no" >&6
1916 STRIP=$ac_ct_STRIP
1917 else
1918 STRIP="$ac_cv_prog_STRIP"
1922 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1924 # We need awk for the "check" target. The system "awk" is bad on
1925 # some platforms.
1926 # Always define AMTAR for backward compatibility.
1928 AMTAR=${AMTAR-"${am_missing_run}tar"}
1930 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1936 # Default to --enable-multilib
1937 # Check whether --enable-multilib or --disable-multilib was given.
1938 if test "${enable_multilib+set}" = set; then
1939 enableval="$enable_multilib"
1940 case "$enableval" in
1941 yes) multilib=yes ;;
1942 no) multilib=no ;;
1943 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1944 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1945 { (exit 1); exit 1; }; } ;;
1946 esac
1947 else
1948 multilib=yes
1951 # We may get other options which we leave undocumented:
1952 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1953 # See config-ml.in if you want the gory details.
1955 if test "$srcdir" = "."; then
1956 if test "$with_target_subdir" != "."; then
1957 multi_basedir="$srcdir/$with_multisrctop../.."
1958 else
1959 multi_basedir="$srcdir/$with_multisrctop.."
1961 else
1962 multi_basedir="$srcdir/.."
1966 ac_config_commands="$ac_config_commands default-1"
1969 # Calculate toolexeclibdir
1970 # Also toolexecdir, though it's only used in toolexeclibdir
1971 case ${enable_version_specific_runtime_libs} in
1972 yes)
1973 # Need the gcc compiler version to know where to install libraries
1974 # and header files if --enable-version-specific-runtime-libs option
1975 # is selected.
1976 toolexecdir='$(libdir)/gcc/$(target_alias)'
1977 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
1980 if test -n "$with_cross_host" &&
1981 test x"$with_cross_host" != x"no"; then
1982 # Install a library built with a cross compiler in tooldir, not libdir.
1983 toolexecdir='$(exec_prefix)/$(target_alias)'
1984 toolexeclibdir='$(toolexecdir)/lib'
1985 else
1986 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
1987 toolexeclibdir='$(libdir)'
1989 multi_os_directory=`$CC -print-multi-os-directory`
1990 case $multi_os_directory in
1991 .) ;; # Avoid trailing /.
1992 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
1993 esac
1995 esac
1999 # Check the compiler.
2000 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
2001 # We must force CC to /not/ be precious variables; otherwise
2002 # the wrong, non-multilib-adjusted value will be used in multilibs.
2003 # As a side effect, we have to subst CFLAGS ourselves.
2007 ac_ext=c
2008 ac_cpp='$CPP $CPPFLAGS'
2009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2012 if test -n "$ac_tool_prefix"; then
2013 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2014 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2015 echo "$as_me:$LINENO: checking for $ac_word" >&5
2016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2017 if test "${ac_cv_prog_CC+set}" = set; then
2018 echo $ECHO_N "(cached) $ECHO_C" >&6
2019 else
2020 if test -n "$CC"; then
2021 ac_cv_prog_CC="$CC" # Let the user override the test.
2022 else
2023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2024 for as_dir in $PATH
2026 IFS=$as_save_IFS
2027 test -z "$as_dir" && as_dir=.
2028 for ac_exec_ext in '' $ac_executable_extensions; do
2029 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2030 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2032 break 2
2034 done
2035 done
2039 CC=$ac_cv_prog_CC
2040 if test -n "$CC"; then
2041 echo "$as_me:$LINENO: result: $CC" >&5
2042 echo "${ECHO_T}$CC" >&6
2043 else
2044 echo "$as_me:$LINENO: result: no" >&5
2045 echo "${ECHO_T}no" >&6
2049 if test -z "$ac_cv_prog_CC"; then
2050 ac_ct_CC=$CC
2051 # Extract the first word of "gcc", so it can be a program name with args.
2052 set dummy gcc; ac_word=$2
2053 echo "$as_me:$LINENO: checking for $ac_word" >&5
2054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2055 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2056 echo $ECHO_N "(cached) $ECHO_C" >&6
2057 else
2058 if test -n "$ac_ct_CC"; then
2059 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2060 else
2061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2062 for as_dir in $PATH
2064 IFS=$as_save_IFS
2065 test -z "$as_dir" && as_dir=.
2066 for ac_exec_ext in '' $ac_executable_extensions; do
2067 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2068 ac_cv_prog_ac_ct_CC="gcc"
2069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2070 break 2
2072 done
2073 done
2077 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2078 if test -n "$ac_ct_CC"; then
2079 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2080 echo "${ECHO_T}$ac_ct_CC" >&6
2081 else
2082 echo "$as_me:$LINENO: result: no" >&5
2083 echo "${ECHO_T}no" >&6
2086 CC=$ac_ct_CC
2087 else
2088 CC="$ac_cv_prog_CC"
2091 if test -z "$CC"; then
2092 if test -n "$ac_tool_prefix"; then
2093 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2094 set dummy ${ac_tool_prefix}cc; ac_word=$2
2095 echo "$as_me:$LINENO: checking for $ac_word" >&5
2096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2097 if test "${ac_cv_prog_CC+set}" = set; then
2098 echo $ECHO_N "(cached) $ECHO_C" >&6
2099 else
2100 if test -n "$CC"; then
2101 ac_cv_prog_CC="$CC" # Let the user override the test.
2102 else
2103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2104 for as_dir in $PATH
2106 IFS=$as_save_IFS
2107 test -z "$as_dir" && as_dir=.
2108 for ac_exec_ext in '' $ac_executable_extensions; do
2109 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2110 ac_cv_prog_CC="${ac_tool_prefix}cc"
2111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2112 break 2
2114 done
2115 done
2119 CC=$ac_cv_prog_CC
2120 if test -n "$CC"; then
2121 echo "$as_me:$LINENO: result: $CC" >&5
2122 echo "${ECHO_T}$CC" >&6
2123 else
2124 echo "$as_me:$LINENO: result: no" >&5
2125 echo "${ECHO_T}no" >&6
2129 if test -z "$ac_cv_prog_CC"; then
2130 ac_ct_CC=$CC
2131 # Extract the first word of "cc", so it can be a program name with args.
2132 set dummy cc; ac_word=$2
2133 echo "$as_me:$LINENO: checking for $ac_word" >&5
2134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2135 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2136 echo $ECHO_N "(cached) $ECHO_C" >&6
2137 else
2138 if test -n "$ac_ct_CC"; then
2139 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2140 else
2141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2142 for as_dir in $PATH
2144 IFS=$as_save_IFS
2145 test -z "$as_dir" && as_dir=.
2146 for ac_exec_ext in '' $ac_executable_extensions; do
2147 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2148 ac_cv_prog_ac_ct_CC="cc"
2149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2150 break 2
2152 done
2153 done
2157 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2158 if test -n "$ac_ct_CC"; then
2159 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2160 echo "${ECHO_T}$ac_ct_CC" >&6
2161 else
2162 echo "$as_me:$LINENO: result: no" >&5
2163 echo "${ECHO_T}no" >&6
2166 CC=$ac_ct_CC
2167 else
2168 CC="$ac_cv_prog_CC"
2172 if test -z "$CC"; then
2173 # Extract the first word of "cc", so it can be a program name with args.
2174 set dummy cc; ac_word=$2
2175 echo "$as_me:$LINENO: checking for $ac_word" >&5
2176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2177 if test "${ac_cv_prog_CC+set}" = set; then
2178 echo $ECHO_N "(cached) $ECHO_C" >&6
2179 else
2180 if test -n "$CC"; then
2181 ac_cv_prog_CC="$CC" # Let the user override the test.
2182 else
2183 ac_prog_rejected=no
2184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2185 for as_dir in $PATH
2187 IFS=$as_save_IFS
2188 test -z "$as_dir" && as_dir=.
2189 for ac_exec_ext in '' $ac_executable_extensions; do
2190 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2191 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2192 ac_prog_rejected=yes
2193 continue
2195 ac_cv_prog_CC="cc"
2196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2197 break 2
2199 done
2200 done
2202 if test $ac_prog_rejected = yes; then
2203 # We found a bogon in the path, so make sure we never use it.
2204 set dummy $ac_cv_prog_CC
2205 shift
2206 if test $# != 0; then
2207 # We chose a different compiler from the bogus one.
2208 # However, it has the same basename, so the bogon will be chosen
2209 # first if we set CC to just the basename; use the full file name.
2210 shift
2211 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2216 CC=$ac_cv_prog_CC
2217 if test -n "$CC"; then
2218 echo "$as_me:$LINENO: result: $CC" >&5
2219 echo "${ECHO_T}$CC" >&6
2220 else
2221 echo "$as_me:$LINENO: result: no" >&5
2222 echo "${ECHO_T}no" >&6
2226 if test -z "$CC"; then
2227 if test -n "$ac_tool_prefix"; then
2228 for ac_prog in cl
2230 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2231 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2232 echo "$as_me:$LINENO: checking for $ac_word" >&5
2233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2234 if test "${ac_cv_prog_CC+set}" = set; then
2235 echo $ECHO_N "(cached) $ECHO_C" >&6
2236 else
2237 if test -n "$CC"; then
2238 ac_cv_prog_CC="$CC" # Let the user override the test.
2239 else
2240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2241 for as_dir in $PATH
2243 IFS=$as_save_IFS
2244 test -z "$as_dir" && as_dir=.
2245 for ac_exec_ext in '' $ac_executable_extensions; do
2246 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2247 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2249 break 2
2251 done
2252 done
2256 CC=$ac_cv_prog_CC
2257 if test -n "$CC"; then
2258 echo "$as_me:$LINENO: result: $CC" >&5
2259 echo "${ECHO_T}$CC" >&6
2260 else
2261 echo "$as_me:$LINENO: result: no" >&5
2262 echo "${ECHO_T}no" >&6
2265 test -n "$CC" && break
2266 done
2268 if test -z "$CC"; then
2269 ac_ct_CC=$CC
2270 for ac_prog in cl
2272 # Extract the first word of "$ac_prog", so it can be a program name with args.
2273 set dummy $ac_prog; ac_word=$2
2274 echo "$as_me:$LINENO: checking for $ac_word" >&5
2275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2276 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2277 echo $ECHO_N "(cached) $ECHO_C" >&6
2278 else
2279 if test -n "$ac_ct_CC"; then
2280 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2281 else
2282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2283 for as_dir in $PATH
2285 IFS=$as_save_IFS
2286 test -z "$as_dir" && as_dir=.
2287 for ac_exec_ext in '' $ac_executable_extensions; do
2288 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2289 ac_cv_prog_ac_ct_CC="$ac_prog"
2290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2291 break 2
2293 done
2294 done
2298 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2299 if test -n "$ac_ct_CC"; then
2300 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2301 echo "${ECHO_T}$ac_ct_CC" >&6
2302 else
2303 echo "$as_me:$LINENO: result: no" >&5
2304 echo "${ECHO_T}no" >&6
2307 test -n "$ac_ct_CC" && break
2308 done
2310 CC=$ac_ct_CC
2316 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2317 See \`config.log' for more details." >&5
2318 echo "$as_me: error: no acceptable C compiler found in \$PATH
2319 See \`config.log' for more details." >&2;}
2320 { (exit 1); exit 1; }; }
2322 # Provide some information about the compiler.
2323 echo "$as_me:$LINENO:" \
2324 "checking for C compiler version" >&5
2325 ac_compiler=`set X $ac_compile; echo $2`
2326 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2327 (eval $ac_compiler --version </dev/null >&5) 2>&5
2328 ac_status=$?
2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); }
2331 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2332 (eval $ac_compiler -v </dev/null >&5) 2>&5
2333 ac_status=$?
2334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335 (exit $ac_status); }
2336 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2337 (eval $ac_compiler -V </dev/null >&5) 2>&5
2338 ac_status=$?
2339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340 (exit $ac_status); }
2342 cat >conftest.$ac_ext <<_ACEOF
2343 /* confdefs.h. */
2344 _ACEOF
2345 cat confdefs.h >>conftest.$ac_ext
2346 cat >>conftest.$ac_ext <<_ACEOF
2347 /* end confdefs.h. */
2350 main ()
2354 return 0;
2356 _ACEOF
2357 ac_clean_files_save=$ac_clean_files
2358 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2359 # Try to create an executable without -o first, disregard a.out.
2360 # It will help us diagnose broken compilers, and finding out an intuition
2361 # of exeext.
2362 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2363 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2364 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2365 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2366 (eval $ac_link_default) 2>&5
2367 ac_status=$?
2368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369 (exit $ac_status); }; then
2370 # Find the output, starting from the most likely. This scheme is
2371 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2372 # resort.
2374 # Be careful to initialize this variable, since it used to be cached.
2375 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2376 ac_cv_exeext=
2377 # b.out is created by i960 compilers.
2378 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2380 test -f "$ac_file" || continue
2381 case $ac_file in
2382 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2384 conftest.$ac_ext )
2385 # This is the source file.
2387 [ab].out )
2388 # We found the default executable, but exeext='' is most
2389 # certainly right.
2390 break;;
2391 *.* )
2392 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2393 # FIXME: I believe we export ac_cv_exeext for Libtool,
2394 # but it would be cool to find out if it's true. Does anybody
2395 # maintain Libtool? --akim.
2396 export ac_cv_exeext
2397 break;;
2399 break;;
2400 esac
2401 done
2402 else
2403 echo "$as_me: failed program was:" >&5
2404 sed 's/^/| /' conftest.$ac_ext >&5
2406 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2407 See \`config.log' for more details." >&5
2408 echo "$as_me: error: C compiler cannot create executables
2409 See \`config.log' for more details." >&2;}
2410 { (exit 77); exit 77; }; }
2413 ac_exeext=$ac_cv_exeext
2414 echo "$as_me:$LINENO: result: $ac_file" >&5
2415 echo "${ECHO_T}$ac_file" >&6
2417 # Check the compiler produces executables we can run. If not, either
2418 # the compiler is broken, or we cross compile.
2419 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2420 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2421 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2422 # If not cross compiling, check that we can run a simple program.
2423 if test "$cross_compiling" != yes; then
2424 if { ac_try='./$ac_file'
2425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2426 (eval $ac_try) 2>&5
2427 ac_status=$?
2428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429 (exit $ac_status); }; }; then
2430 cross_compiling=no
2431 else
2432 if test "$cross_compiling" = maybe; then
2433 cross_compiling=yes
2434 else
2435 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2436 If you meant to cross compile, use \`--host'.
2437 See \`config.log' for more details." >&5
2438 echo "$as_me: error: cannot run C compiled programs.
2439 If you meant to cross compile, use \`--host'.
2440 See \`config.log' for more details." >&2;}
2441 { (exit 1); exit 1; }; }
2445 echo "$as_me:$LINENO: result: yes" >&5
2446 echo "${ECHO_T}yes" >&6
2448 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2449 ac_clean_files=$ac_clean_files_save
2450 # Check the compiler produces executables we can run. If not, either
2451 # the compiler is broken, or we cross compile.
2452 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2453 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2454 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2455 echo "${ECHO_T}$cross_compiling" >&6
2457 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2458 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2460 (eval $ac_link) 2>&5
2461 ac_status=$?
2462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463 (exit $ac_status); }; then
2464 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2465 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2466 # work properly (i.e., refer to `conftest.exe'), while it won't with
2467 # `rm'.
2468 for ac_file in conftest.exe conftest conftest.*; do
2469 test -f "$ac_file" || continue
2470 case $ac_file in
2471 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2472 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2473 export ac_cv_exeext
2474 break;;
2475 * ) break;;
2476 esac
2477 done
2478 else
2479 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2480 See \`config.log' for more details." >&5
2481 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2482 See \`config.log' for more details." >&2;}
2483 { (exit 1); exit 1; }; }
2486 rm -f conftest$ac_cv_exeext
2487 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2488 echo "${ECHO_T}$ac_cv_exeext" >&6
2490 rm -f conftest.$ac_ext
2491 EXEEXT=$ac_cv_exeext
2492 ac_exeext=$EXEEXT
2493 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2494 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2495 if test "${ac_cv_objext+set}" = set; then
2496 echo $ECHO_N "(cached) $ECHO_C" >&6
2497 else
2498 cat >conftest.$ac_ext <<_ACEOF
2499 /* confdefs.h. */
2500 _ACEOF
2501 cat confdefs.h >>conftest.$ac_ext
2502 cat >>conftest.$ac_ext <<_ACEOF
2503 /* end confdefs.h. */
2506 main ()
2510 return 0;
2512 _ACEOF
2513 rm -f conftest.o conftest.obj
2514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2515 (eval $ac_compile) 2>&5
2516 ac_status=$?
2517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518 (exit $ac_status); }; then
2519 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2520 case $ac_file in
2521 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2522 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2523 break;;
2524 esac
2525 done
2526 else
2527 echo "$as_me: failed program was:" >&5
2528 sed 's/^/| /' conftest.$ac_ext >&5
2530 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2531 See \`config.log' for more details." >&5
2532 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2533 See \`config.log' for more details." >&2;}
2534 { (exit 1); exit 1; }; }
2537 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2539 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2540 echo "${ECHO_T}$ac_cv_objext" >&6
2541 OBJEXT=$ac_cv_objext
2542 ac_objext=$OBJEXT
2543 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2544 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2545 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2546 echo $ECHO_N "(cached) $ECHO_C" >&6
2547 else
2548 cat >conftest.$ac_ext <<_ACEOF
2549 /* confdefs.h. */
2550 _ACEOF
2551 cat confdefs.h >>conftest.$ac_ext
2552 cat >>conftest.$ac_ext <<_ACEOF
2553 /* end confdefs.h. */
2556 main ()
2558 #ifndef __GNUC__
2559 choke me
2560 #endif
2563 return 0;
2565 _ACEOF
2566 rm -f conftest.$ac_objext
2567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2568 (eval $ac_compile) 2>conftest.er1
2569 ac_status=$?
2570 grep -v '^ *+' conftest.er1 >conftest.err
2571 rm -f conftest.er1
2572 cat conftest.err >&5
2573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574 (exit $ac_status); } &&
2575 { ac_try='test -z "$ac_c_werror_flag"
2576 || test ! -s conftest.err'
2577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2578 (eval $ac_try) 2>&5
2579 ac_status=$?
2580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581 (exit $ac_status); }; } &&
2582 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2588 ac_compiler_gnu=yes
2589 else
2590 echo "$as_me: failed program was:" >&5
2591 sed 's/^/| /' conftest.$ac_ext >&5
2593 ac_compiler_gnu=no
2595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2596 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2599 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2600 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2601 GCC=`test $ac_compiler_gnu = yes && echo yes`
2602 ac_test_CFLAGS=${CFLAGS+set}
2603 ac_save_CFLAGS=$CFLAGS
2604 CFLAGS="-g"
2605 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2606 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2607 if test "${ac_cv_prog_cc_g+set}" = set; then
2608 echo $ECHO_N "(cached) $ECHO_C" >&6
2609 else
2610 cat >conftest.$ac_ext <<_ACEOF
2611 /* confdefs.h. */
2612 _ACEOF
2613 cat confdefs.h >>conftest.$ac_ext
2614 cat >>conftest.$ac_ext <<_ACEOF
2615 /* end confdefs.h. */
2618 main ()
2622 return 0;
2624 _ACEOF
2625 rm -f conftest.$ac_objext
2626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2627 (eval $ac_compile) 2>conftest.er1
2628 ac_status=$?
2629 grep -v '^ *+' conftest.er1 >conftest.err
2630 rm -f conftest.er1
2631 cat conftest.err >&5
2632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633 (exit $ac_status); } &&
2634 { ac_try='test -z "$ac_c_werror_flag"
2635 || test ! -s conftest.err'
2636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2637 (eval $ac_try) 2>&5
2638 ac_status=$?
2639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640 (exit $ac_status); }; } &&
2641 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2647 ac_cv_prog_cc_g=yes
2648 else
2649 echo "$as_me: failed program was:" >&5
2650 sed 's/^/| /' conftest.$ac_ext >&5
2652 ac_cv_prog_cc_g=no
2654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2656 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2657 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2658 if test "$ac_test_CFLAGS" = set; then
2659 CFLAGS=$ac_save_CFLAGS
2660 elif test $ac_cv_prog_cc_g = yes; then
2661 if test "$GCC" = yes; then
2662 CFLAGS="-g -O2"
2663 else
2664 CFLAGS="-g"
2666 else
2667 if test "$GCC" = yes; then
2668 CFLAGS="-O2"
2669 else
2670 CFLAGS=
2673 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2674 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2675 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2676 echo $ECHO_N "(cached) $ECHO_C" >&6
2677 else
2678 ac_cv_prog_cc_stdc=no
2679 ac_save_CC=$CC
2680 cat >conftest.$ac_ext <<_ACEOF
2681 /* confdefs.h. */
2682 _ACEOF
2683 cat confdefs.h >>conftest.$ac_ext
2684 cat >>conftest.$ac_ext <<_ACEOF
2685 /* end confdefs.h. */
2686 #include <stdarg.h>
2687 #include <stdio.h>
2688 #include <sys/types.h>
2689 #include <sys/stat.h>
2690 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2691 struct buf { int x; };
2692 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2693 static char *e (p, i)
2694 char **p;
2695 int i;
2697 return p[i];
2699 static char *f (char * (*g) (char **, int), char **p, ...)
2701 char *s;
2702 va_list v;
2703 va_start (v,p);
2704 s = g (p, va_arg (v,int));
2705 va_end (v);
2706 return s;
2709 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2710 function prototypes and stuff, but not '\xHH' hex character constants.
2711 These don't provoke an error unfortunately, instead are silently treated
2712 as 'x'. The following induces an error, until -std1 is added to get
2713 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2714 array size at least. It's necessary to write '\x00'==0 to get something
2715 that's true only with -std1. */
2716 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2718 int test (int i, double x);
2719 struct s1 {int (*f) (int a);};
2720 struct s2 {int (*f) (double a);};
2721 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2722 int argc;
2723 char **argv;
2725 main ()
2727 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2729 return 0;
2731 _ACEOF
2732 # Don't try gcc -ansi; that turns off useful extensions and
2733 # breaks some systems' header files.
2734 # AIX -qlanglvl=ansi
2735 # Ultrix and OSF/1 -std1
2736 # HP-UX 10.20 and later -Ae
2737 # HP-UX older versions -Aa -D_HPUX_SOURCE
2738 # SVR4 -Xc -D__EXTENSIONS__
2739 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2741 CC="$ac_save_CC $ac_arg"
2742 rm -f conftest.$ac_objext
2743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2744 (eval $ac_compile) 2>conftest.er1
2745 ac_status=$?
2746 grep -v '^ *+' conftest.er1 >conftest.err
2747 rm -f conftest.er1
2748 cat conftest.err >&5
2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750 (exit $ac_status); } &&
2751 { ac_try='test -z "$ac_c_werror_flag"
2752 || test ! -s conftest.err'
2753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2754 (eval $ac_try) 2>&5
2755 ac_status=$?
2756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757 (exit $ac_status); }; } &&
2758 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2764 ac_cv_prog_cc_stdc=$ac_arg
2765 break
2766 else
2767 echo "$as_me: failed program was:" >&5
2768 sed 's/^/| /' conftest.$ac_ext >&5
2771 rm -f conftest.err conftest.$ac_objext
2772 done
2773 rm -f conftest.$ac_ext conftest.$ac_objext
2774 CC=$ac_save_CC
2778 case "x$ac_cv_prog_cc_stdc" in
2779 x|xno)
2780 echo "$as_me:$LINENO: result: none needed" >&5
2781 echo "${ECHO_T}none needed" >&6 ;;
2783 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2784 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2785 CC="$CC $ac_cv_prog_cc_stdc" ;;
2786 esac
2788 # Some people use a C++ compiler to compile C. Since we use `exit',
2789 # in C++ we need to declare it. In case someone uses the same compiler
2790 # for both compiling C and C++ we need to have the C++ compiler decide
2791 # the declaration of exit, since it's the most demanding environment.
2792 cat >conftest.$ac_ext <<_ACEOF
2793 #ifndef __cplusplus
2794 choke me
2795 #endif
2796 _ACEOF
2797 rm -f conftest.$ac_objext
2798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2799 (eval $ac_compile) 2>conftest.er1
2800 ac_status=$?
2801 grep -v '^ *+' conftest.er1 >conftest.err
2802 rm -f conftest.er1
2803 cat conftest.err >&5
2804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805 (exit $ac_status); } &&
2806 { ac_try='test -z "$ac_c_werror_flag"
2807 || test ! -s conftest.err'
2808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2809 (eval $ac_try) 2>&5
2810 ac_status=$?
2811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812 (exit $ac_status); }; } &&
2813 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2819 for ac_declaration in \
2820 '' \
2821 'extern "C" void std::exit (int) throw (); using std::exit;' \
2822 'extern "C" void std::exit (int); using std::exit;' \
2823 'extern "C" void exit (int) throw ();' \
2824 'extern "C" void exit (int);' \
2825 'void exit (int);'
2827 cat >conftest.$ac_ext <<_ACEOF
2828 /* confdefs.h. */
2829 _ACEOF
2830 cat confdefs.h >>conftest.$ac_ext
2831 cat >>conftest.$ac_ext <<_ACEOF
2832 /* end confdefs.h. */
2833 $ac_declaration
2834 #include <stdlib.h>
2836 main ()
2838 exit (42);
2840 return 0;
2842 _ACEOF
2843 rm -f conftest.$ac_objext
2844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2845 (eval $ac_compile) 2>conftest.er1
2846 ac_status=$?
2847 grep -v '^ *+' conftest.er1 >conftest.err
2848 rm -f conftest.er1
2849 cat conftest.err >&5
2850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851 (exit $ac_status); } &&
2852 { ac_try='test -z "$ac_c_werror_flag"
2853 || test ! -s conftest.err'
2854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2855 (eval $ac_try) 2>&5
2856 ac_status=$?
2857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858 (exit $ac_status); }; } &&
2859 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2866 else
2867 echo "$as_me: failed program was:" >&5
2868 sed 's/^/| /' conftest.$ac_ext >&5
2870 continue
2872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2873 cat >conftest.$ac_ext <<_ACEOF
2874 /* confdefs.h. */
2875 _ACEOF
2876 cat confdefs.h >>conftest.$ac_ext
2877 cat >>conftest.$ac_ext <<_ACEOF
2878 /* end confdefs.h. */
2879 $ac_declaration
2881 main ()
2883 exit (42);
2885 return 0;
2887 _ACEOF
2888 rm -f conftest.$ac_objext
2889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2890 (eval $ac_compile) 2>conftest.er1
2891 ac_status=$?
2892 grep -v '^ *+' conftest.er1 >conftest.err
2893 rm -f conftest.er1
2894 cat conftest.err >&5
2895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896 (exit $ac_status); } &&
2897 { ac_try='test -z "$ac_c_werror_flag"
2898 || test ! -s conftest.err'
2899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2900 (eval $ac_try) 2>&5
2901 ac_status=$?
2902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903 (exit $ac_status); }; } &&
2904 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2910 break
2911 else
2912 echo "$as_me: failed program was:" >&5
2913 sed 's/^/| /' conftest.$ac_ext >&5
2916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2917 done
2918 rm -f conftest*
2919 if test -n "$ac_declaration"; then
2920 echo '#ifdef __cplusplus' >>confdefs.h
2921 echo $ac_declaration >>confdefs.h
2922 echo '#endif' >>confdefs.h
2925 else
2926 echo "$as_me: failed program was:" >&5
2927 sed 's/^/| /' conftest.$ac_ext >&5
2930 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2931 ac_ext=c
2932 ac_cpp='$CPP $CPPFLAGS'
2933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2936 DEPDIR="${am__leading_dot}deps"
2938 ac_config_commands="$ac_config_commands depfiles"
2941 am_make=${MAKE-make}
2942 cat > confinc << 'END'
2943 am__doit:
2944 @echo done
2945 .PHONY: am__doit
2947 # If we don't find an include directive, just comment out the code.
2948 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2949 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2950 am__include="#"
2951 am__quote=
2952 _am_result=none
2953 # First try GNU make style include.
2954 echo "include confinc" > confmf
2955 # We grep out `Entering directory' and `Leaving directory'
2956 # messages which can occur if `w' ends up in MAKEFLAGS.
2957 # In particular we don't look at `^make:' because GNU make might
2958 # be invoked under some other name (usually "gmake"), in which
2959 # case it prints its new name instead of `make'.
2960 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2961 am__include=include
2962 am__quote=
2963 _am_result=GNU
2965 # Now try BSD make style include.
2966 if test "$am__include" = "#"; then
2967 echo '.include "confinc"' > confmf
2968 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2969 am__include=.include
2970 am__quote="\""
2971 _am_result=BSD
2976 echo "$as_me:$LINENO: result: $_am_result" >&5
2977 echo "${ECHO_T}$_am_result" >&6
2978 rm -f confinc confmf
2980 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2981 if test "${enable_dependency_tracking+set}" = set; then
2982 enableval="$enable_dependency_tracking"
2985 if test "x$enable_dependency_tracking" != xno; then
2986 am_depcomp="$ac_aux_dir/depcomp"
2987 AMDEPBACKSLASH='\'
2991 if test "x$enable_dependency_tracking" != xno; then
2992 AMDEP_TRUE=
2993 AMDEP_FALSE='#'
2994 else
2995 AMDEP_TRUE='#'
2996 AMDEP_FALSE=
3002 depcc="$CC" am_compiler_list=
3004 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3005 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3006 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3007 echo $ECHO_N "(cached) $ECHO_C" >&6
3008 else
3009 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3010 # We make a subdir and do the tests there. Otherwise we can end up
3011 # making bogus files that we don't know about and never remove. For
3012 # instance it was reported that on HP-UX the gcc test will end up
3013 # making a dummy file named `D' -- because `-MD' means `put the output
3014 # in D'.
3015 mkdir conftest.dir
3016 # Copy depcomp to subdir because otherwise we won't find it if we're
3017 # using a relative directory.
3018 cp "$am_depcomp" conftest.dir
3019 cd conftest.dir
3020 # We will build objects and dependencies in a subdirectory because
3021 # it helps to detect inapplicable dependency modes. For instance
3022 # both Tru64's cc and ICC support -MD to output dependencies as a
3023 # side effect of compilation, but ICC will put the dependencies in
3024 # the current directory while Tru64 will put them in the object
3025 # directory.
3026 mkdir sub
3028 am_cv_CC_dependencies_compiler_type=none
3029 if test "$am_compiler_list" = ""; then
3030 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3032 for depmode in $am_compiler_list; do
3033 # Setup a source with many dependencies, because some compilers
3034 # like to wrap large dependency lists on column 80 (with \), and
3035 # we should not choose a depcomp mode which is confused by this.
3037 # We need to recreate these files for each test, as the compiler may
3038 # overwrite some of them when testing with obscure command lines.
3039 # This happens at least with the AIX C compiler.
3040 : > sub/conftest.c
3041 for i in 1 2 3 4 5 6; do
3042 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3043 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3044 # Solaris 8's {/usr,}/bin/sh.
3045 touch sub/conftst$i.h
3046 done
3047 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3049 case $depmode in
3050 nosideeffect)
3051 # after this tag, mechanisms are not by side-effect, so they'll
3052 # only be used when explicitly requested
3053 if test "x$enable_dependency_tracking" = xyes; then
3054 continue
3055 else
3056 break
3059 none) break ;;
3060 esac
3061 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3062 # mode. It turns out that the SunPro C++ compiler does not properly
3063 # handle `-M -o', and we need to detect this.
3064 if depmode=$depmode \
3065 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3066 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3067 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3068 >/dev/null 2>conftest.err &&
3069 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3070 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3071 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3072 # icc doesn't choke on unknown options, it will just issue warnings
3073 # or remarks (even with -Werror). So we grep stderr for any message
3074 # that says an option was ignored or not supported.
3075 # When given -MP, icc 7.0 and 7.1 complain thusly:
3076 # icc: Command line warning: ignoring option '-M'; no argument required
3077 # The diagnosis changed in icc 8.0:
3078 # icc: Command line remark: option '-MP' not supported
3079 if (grep 'ignoring option' conftest.err ||
3080 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3081 am_cv_CC_dependencies_compiler_type=$depmode
3082 break
3085 done
3087 cd ..
3088 rm -rf conftest.dir
3089 else
3090 am_cv_CC_dependencies_compiler_type=none
3094 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3095 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3096 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3101 test "x$enable_dependency_tracking" != xno \
3102 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3103 am__fastdepCC_TRUE=
3104 am__fastdepCC_FALSE='#'
3105 else
3106 am__fastdepCC_TRUE='#'
3107 am__fastdepCC_FALSE=
3115 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
3116 # in XCFLAGS. But we need them in CFLAGS during configury. So put them
3117 # in both places for now and restore CFLAGS at the end of config.
3118 save_CFLAGS="$CFLAGS"
3120 # Add -Wall -Werror if we are using GCC.
3121 if test "x$GCC" = "xyes"; then
3122 XCFLAGS="$XCFLAGS -Wall -Werror"
3125 # Find other programs we need.
3126 if test -n "$ac_tool_prefix"; then
3127 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3128 set dummy ${ac_tool_prefix}ar; ac_word=$2
3129 echo "$as_me:$LINENO: checking for $ac_word" >&5
3130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3131 if test "${ac_cv_prog_AR+set}" = set; then
3132 echo $ECHO_N "(cached) $ECHO_C" >&6
3133 else
3134 if test -n "$AR"; then
3135 ac_cv_prog_AR="$AR" # Let the user override the test.
3136 else
3137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3138 for as_dir in $PATH
3140 IFS=$as_save_IFS
3141 test -z "$as_dir" && as_dir=.
3142 for ac_exec_ext in '' $ac_executable_extensions; do
3143 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3144 ac_cv_prog_AR="${ac_tool_prefix}ar"
3145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3146 break 2
3148 done
3149 done
3153 AR=$ac_cv_prog_AR
3154 if test -n "$AR"; then
3155 echo "$as_me:$LINENO: result: $AR" >&5
3156 echo "${ECHO_T}$AR" >&6
3157 else
3158 echo "$as_me:$LINENO: result: no" >&5
3159 echo "${ECHO_T}no" >&6
3163 if test -z "$ac_cv_prog_AR"; then
3164 ac_ct_AR=$AR
3165 # Extract the first word of "ar", so it can be a program name with args.
3166 set dummy ar; ac_word=$2
3167 echo "$as_me:$LINENO: checking for $ac_word" >&5
3168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3169 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3170 echo $ECHO_N "(cached) $ECHO_C" >&6
3171 else
3172 if test -n "$ac_ct_AR"; then
3173 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3174 else
3175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3176 for as_dir in $PATH
3178 IFS=$as_save_IFS
3179 test -z "$as_dir" && as_dir=.
3180 for ac_exec_ext in '' $ac_executable_extensions; do
3181 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3182 ac_cv_prog_ac_ct_AR="ar"
3183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3184 break 2
3186 done
3187 done
3191 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3192 if test -n "$ac_ct_AR"; then
3193 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3194 echo "${ECHO_T}$ac_ct_AR" >&6
3195 else
3196 echo "$as_me:$LINENO: result: no" >&5
3197 echo "${ECHO_T}no" >&6
3200 AR=$ac_ct_AR
3201 else
3202 AR="$ac_cv_prog_AR"
3205 if test -n "$ac_tool_prefix"; then
3206 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3207 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3208 echo "$as_me:$LINENO: checking for $ac_word" >&5
3209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3210 if test "${ac_cv_prog_RANLIB+set}" = set; then
3211 echo $ECHO_N "(cached) $ECHO_C" >&6
3212 else
3213 if test -n "$RANLIB"; then
3214 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3215 else
3216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3217 for as_dir in $PATH
3219 IFS=$as_save_IFS
3220 test -z "$as_dir" && as_dir=.
3221 for ac_exec_ext in '' $ac_executable_extensions; do
3222 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3223 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3225 break 2
3227 done
3228 done
3232 RANLIB=$ac_cv_prog_RANLIB
3233 if test -n "$RANLIB"; then
3234 echo "$as_me:$LINENO: result: $RANLIB" >&5
3235 echo "${ECHO_T}$RANLIB" >&6
3236 else
3237 echo "$as_me:$LINENO: result: no" >&5
3238 echo "${ECHO_T}no" >&6
3242 if test -z "$ac_cv_prog_RANLIB"; then
3243 ac_ct_RANLIB=$RANLIB
3244 # Extract the first word of "ranlib", so it can be a program name with args.
3245 set dummy ranlib; ac_word=$2
3246 echo "$as_me:$LINENO: checking for $ac_word" >&5
3247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3248 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3249 echo $ECHO_N "(cached) $ECHO_C" >&6
3250 else
3251 if test -n "$ac_ct_RANLIB"; then
3252 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3253 else
3254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3255 for as_dir in $PATH
3257 IFS=$as_save_IFS
3258 test -z "$as_dir" && as_dir=.
3259 for ac_exec_ext in '' $ac_executable_extensions; do
3260 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3261 ac_cv_prog_ac_ct_RANLIB="ranlib"
3262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3263 break 2
3265 done
3266 done
3268 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error"
3271 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3272 if test -n "$ac_ct_RANLIB"; then
3273 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3274 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3275 else
3276 echo "$as_me:$LINENO: result: no" >&5
3277 echo "${ECHO_T}no" >&6
3280 RANLIB=$ac_ct_RANLIB
3281 else
3282 RANLIB="$ac_cv_prog_RANLIB"
3285 # Extract the first word of "perl", so it can be a program name with args.
3286 set dummy perl; ac_word=$2
3287 echo "$as_me:$LINENO: checking for $ac_word" >&5
3288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3289 if test "${ac_cv_path_PERL+set}" = set; then
3290 echo $ECHO_N "(cached) $ECHO_C" >&6
3291 else
3292 case $PERL in
3293 [\\/]* | ?:[\\/]*)
3294 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3298 for as_dir in $PATH
3300 IFS=$as_save_IFS
3301 test -z "$as_dir" && as_dir=.
3302 for ac_exec_ext in '' $ac_executable_extensions; do
3303 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3304 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
3305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3306 break 2
3308 done
3309 done
3311 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
3313 esac
3315 PERL=$ac_cv_path_PERL
3317 if test -n "$PERL"; then
3318 echo "$as_me:$LINENO: result: $PERL" >&5
3319 echo "${ECHO_T}$PERL" >&6
3320 else
3321 echo "$as_me:$LINENO: result: no" >&5
3322 echo "${ECHO_T}no" >&6
3325 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3326 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3327 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3328 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3329 echo $ECHO_N "(cached) $ECHO_C" >&6
3330 else
3331 cat >conftest.make <<\_ACEOF
3332 all:
3333 @echo 'ac_maketemp="$(MAKE)"'
3334 _ACEOF
3335 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3336 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3337 if test -n "$ac_maketemp"; then
3338 eval ac_cv_prog_make_${ac_make}_set=yes
3339 else
3340 eval ac_cv_prog_make_${ac_make}_set=no
3342 rm -f conftest.make
3344 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3345 echo "$as_me:$LINENO: result: yes" >&5
3346 echo "${ECHO_T}yes" >&6
3347 SET_MAKE=
3348 else
3349 echo "$as_me:$LINENO: result: no" >&5
3350 echo "${ECHO_T}no" >&6
3351 SET_MAKE="MAKE=${MAKE-make}"
3354 # Find a good install program. We prefer a C program (faster),
3355 # so one script is as good as another. But avoid the broken or
3356 # incompatible versions:
3357 # SysV /etc/install, /usr/sbin/install
3358 # SunOS /usr/etc/install
3359 # IRIX /sbin/install
3360 # AIX /bin/install
3361 # AmigaOS /C/install, which installs bootblocks on floppy discs
3362 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3363 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3364 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3365 # OS/2's system install, which has a completely different semantic
3366 # ./install, which can be erroneously created by make from ./install.sh.
3367 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3368 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3369 if test -z "$INSTALL"; then
3370 if test "${ac_cv_path_install+set}" = set; then
3371 echo $ECHO_N "(cached) $ECHO_C" >&6
3372 else
3373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3374 for as_dir in $PATH
3376 IFS=$as_save_IFS
3377 test -z "$as_dir" && as_dir=.
3378 # Account for people who put trailing slashes in PATH elements.
3379 case $as_dir/ in
3380 ./ | .// | /cC/* | \
3381 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3382 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3383 /usr/ucb/* ) ;;
3385 # OSF1 and SCO ODT 3.0 have their own names for install.
3386 # Don't use installbsd from OSF since it installs stuff as root
3387 # by default.
3388 for ac_prog in ginstall scoinst install; do
3389 for ac_exec_ext in '' $ac_executable_extensions; do
3390 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3391 if test $ac_prog = install &&
3392 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3393 # AIX install. It has an incompatible calling convention.
3395 elif test $ac_prog = install &&
3396 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3397 # program-specific install script used by HP pwplus--don't use.
3399 else
3400 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3401 break 3
3404 done
3405 done
3407 esac
3408 done
3412 if test "${ac_cv_path_install+set}" = set; then
3413 INSTALL=$ac_cv_path_install
3414 else
3415 # As a last resort, use the slow shell script. We don't cache a
3416 # path for INSTALL within a source directory, because that will
3417 # break other packages using the cache if that directory is
3418 # removed, or if the path is relative.
3419 INSTALL=$ac_install_sh
3422 echo "$as_me:$LINENO: result: $INSTALL" >&5
3423 echo "${ECHO_T}$INSTALL" >&6
3425 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3426 # It thinks the first close brace ends the variable substitution.
3427 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3429 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3431 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3434 # Configure libtool
3435 # Check whether --enable-shared or --disable-shared was given.
3436 if test "${enable_shared+set}" = set; then
3437 enableval="$enable_shared"
3438 p=${PACKAGE-default}
3439 case $enableval in
3440 yes) enable_shared=yes ;;
3441 no) enable_shared=no ;;
3443 enable_shared=no
3444 # Look at the argument we got. We use all the common list separators.
3445 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3446 for pkg in $enableval; do
3447 if test "X$pkg" = "X$p"; then
3448 enable_shared=yes
3450 done
3451 IFS="$ac_save_ifs"
3453 esac
3454 else
3455 enable_shared=yes
3457 # Check whether --enable-static or --disable-static was given.
3458 if test "${enable_static+set}" = set; then
3459 enableval="$enable_static"
3460 p=${PACKAGE-default}
3461 case $enableval in
3462 yes) enable_static=yes ;;
3463 no) enable_static=no ;;
3465 enable_static=no
3466 # Look at the argument we got. We use all the common list separators.
3467 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3468 for pkg in $enableval; do
3469 if test "X$pkg" = "X$p"; then
3470 enable_static=yes
3472 done
3473 IFS="$ac_save_ifs"
3475 esac
3476 else
3477 enable_static=yes
3479 # Check whether --enable-fast-install or --disable-fast-install was given.
3480 if test "${enable_fast_install+set}" = set; then
3481 enableval="$enable_fast_install"
3482 p=${PACKAGE-default}
3483 case $enableval in
3484 yes) enable_fast_install=yes ;;
3485 no) enable_fast_install=no ;;
3487 enable_fast_install=no
3488 # Look at the argument we got. We use all the common list separators.
3489 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3490 for pkg in $enableval; do
3491 if test "X$pkg" = "X$p"; then
3492 enable_fast_install=yes
3494 done
3495 IFS="$ac_save_ifs"
3497 esac
3498 else
3499 enable_fast_install=yes
3502 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3503 if test "${with_gnu_ld+set}" = set; then
3504 withval="$with_gnu_ld"
3505 test "$withval" = no || with_gnu_ld=yes
3506 else
3507 with_gnu_ld=no
3509 ac_prog=ld
3510 if test "$GCC" = yes; then
3511 # Check if gcc -print-prog-name=ld gives a path.
3512 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3513 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3514 case $host in
3515 *-*-mingw*)
3516 # gcc leaves a trailing carriage return which upsets mingw
3517 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3519 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3520 esac
3521 case $ac_prog in
3522 # Accept absolute paths.
3523 [\\/]* | [A-Za-z]:[\\/]*)
3524 re_direlt='/[^/][^/]*/\.\./'
3525 # Canonicalize the path of ld
3526 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3527 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3528 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3529 done
3530 test -z "$LD" && LD="$ac_prog"
3533 # If it fails, then pretend we aren't using GCC.
3534 ac_prog=ld
3537 # If it is relative, then search for the first ld in PATH.
3538 with_gnu_ld=unknown
3540 esac
3541 elif test "$with_gnu_ld" = yes; then
3542 echo "$as_me:$LINENO: checking for GNU ld" >&5
3543 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3544 else
3545 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3546 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3548 if test "${lt_cv_path_LD+set}" = set; then
3549 echo $ECHO_N "(cached) $ECHO_C" >&6
3550 else
3551 if test -z "$LD"; then
3552 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3553 for ac_dir in $PATH; do
3554 test -z "$ac_dir" && ac_dir=.
3555 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3556 lt_cv_path_LD="$ac_dir/$ac_prog"
3557 # Check to see if the program is GNU ld. I'd rather use --version,
3558 # but apparently some GNU ld's only accept -v.
3559 # Break only if it was the GNU/non-GNU ld that we prefer.
3560 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3561 test "$with_gnu_ld" != no && break
3562 else
3563 test "$with_gnu_ld" != yes && break
3566 done
3567 IFS="$ac_save_ifs"
3568 else
3569 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3573 LD="$lt_cv_path_LD"
3574 if test -n "$LD"; then
3575 echo "$as_me:$LINENO: result: $LD" >&5
3576 echo "${ECHO_T}$LD" >&6
3577 else
3578 echo "$as_me:$LINENO: result: no" >&5
3579 echo "${ECHO_T}no" >&6
3581 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3582 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3583 { (exit 1); exit 1; }; }
3584 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3585 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3586 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3587 echo $ECHO_N "(cached) $ECHO_C" >&6
3588 else
3589 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3590 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3591 lt_cv_prog_gnu_ld=yes
3592 else
3593 lt_cv_prog_gnu_ld=no
3596 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3597 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3598 with_gnu_ld=$lt_cv_prog_gnu_ld
3601 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3602 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3603 if test "${lt_cv_ld_reload_flag+set}" = set; then
3604 echo $ECHO_N "(cached) $ECHO_C" >&6
3605 else
3606 lt_cv_ld_reload_flag='-r'
3608 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3609 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3610 reload_flag=$lt_cv_ld_reload_flag
3611 test -n "$reload_flag" && reload_flag=" $reload_flag"
3613 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3614 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3615 if test "${lt_cv_path_NM+set}" = set; then
3616 echo $ECHO_N "(cached) $ECHO_C" >&6
3617 else
3618 if test -n "$NM"; then
3619 # Let the user override the test.
3620 lt_cv_path_NM="$NM"
3621 else
3622 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3623 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3624 test -z "$ac_dir" && ac_dir=.
3625 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3626 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3627 # Check to see if the nm accepts a BSD-compat flag.
3628 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3629 # nm: unknown option "B" ignored
3630 # Tru64's nm complains that /dev/null is an invalid object file
3631 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3632 lt_cv_path_NM="$tmp_nm -B"
3633 break
3634 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3635 lt_cv_path_NM="$tmp_nm -p"
3636 break
3637 else
3638 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3639 continue # so that we can try to find one that supports BSD flags
3642 done
3643 IFS="$ac_save_ifs"
3644 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3648 NM="$lt_cv_path_NM"
3649 echo "$as_me:$LINENO: result: $NM" >&5
3650 echo "${ECHO_T}$NM" >&6
3652 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3653 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3654 LN_S=$as_ln_s
3655 if test "$LN_S" = "ln -s"; then
3656 echo "$as_me:$LINENO: result: yes" >&5
3657 echo "${ECHO_T}yes" >&6
3658 else
3659 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3660 echo "${ECHO_T}no, using $LN_S" >&6
3663 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3664 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3665 if test "${lt_cv_deplibs_check_method+set}" = set; then
3666 echo $ECHO_N "(cached) $ECHO_C" >&6
3667 else
3668 lt_cv_file_magic_cmd='$MAGIC_CMD'
3669 lt_cv_file_magic_test_file=
3670 lt_cv_deplibs_check_method='unknown'
3671 # Need to set the preceding variable on all platforms that support
3672 # interlibrary dependencies.
3673 # 'none' -- dependencies not supported.
3674 # `unknown' -- same as none, but documents that we really don't know.
3675 # 'pass_all' -- all dependencies passed with no checks.
3676 # 'test_compile' -- check by making test program.
3677 # 'file_magic [regex]' -- check by looking for files in library path
3678 # which responds to the $file_magic_cmd with a given egrep regex.
3679 # If you have `file' or equivalent on your system and you're not sure
3680 # whether `pass_all' will *always* work, you probably want this one.
3682 case $host_os in
3683 aix*)
3684 lt_cv_deplibs_check_method=pass_all
3687 beos*)
3688 lt_cv_deplibs_check_method=pass_all
3691 bsdi4*)
3692 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3693 lt_cv_file_magic_cmd='/usr/bin/file -L'
3694 lt_cv_file_magic_test_file=/shlib/libc.so
3697 cygwin* | mingw* |pw32*)
3698 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3699 lt_cv_file_magic_cmd='$OBJDUMP -f'
3702 darwin* | rhapsody*)
3703 # this will be overwritten by pass_all, but leave it in just in case
3704 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3705 lt_cv_file_magic_cmd='/usr/bin/file -L'
3706 case "$host_os" in
3707 rhapsody* | darwin1.012)
3708 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3710 *) # Darwin 1.3 on
3711 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3713 esac
3714 lt_cv_deplibs_check_method=pass_all
3717 freebsd* | kfreebsd*-gnu)
3718 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3719 case $host_cpu in
3720 i*86 )
3721 # Not sure whether the presence of OpenBSD here was a mistake.
3722 # Let's accept both of them until this is cleared up.
3723 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3724 lt_cv_file_magic_cmd=/usr/bin/file
3725 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3727 esac
3728 else
3729 lt_cv_deplibs_check_method=pass_all
3733 gnu*)
3734 lt_cv_deplibs_check_method=pass_all
3737 hpux10.20*|hpux11*)
3738 case $host_cpu in
3739 hppa*)
3740 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3741 lt_cv_file_magic_cmd=/usr/bin/file
3742 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3744 ia64*)
3745 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3746 lt_cv_file_magic_cmd=/usr/bin/file
3747 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3749 esac
3752 irix5* | irix6*)
3753 case $host_os in
3754 irix5*)
3755 # this will be overridden with pass_all, but let us keep it just in case
3756 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3759 case $LD in
3760 *-32|*"-32 ") libmagic=32-bit;;
3761 *-n32|*"-n32 ") libmagic=N32;;
3762 *-64|*"-64 ") libmagic=64-bit;;
3763 *) libmagic=never-match;;
3764 esac
3765 # this will be overridden with pass_all, but let us keep it just in case
3766 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3768 esac
3769 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3770 lt_cv_deplibs_check_method=pass_all
3773 # This must be Linux ELF.
3774 linux-gnu*)
3775 lt_cv_deplibs_check_method=pass_all
3778 netbsd* | knetbsd*-gnu)
3779 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3780 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3781 else
3782 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3786 newsos6)
3787 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3788 lt_cv_file_magic_cmd=/usr/bin/file
3789 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3792 osf3* | osf4* | osf5*)
3793 # this will be overridden with pass_all, but let us keep it just in case
3794 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3795 lt_cv_file_magic_test_file=/shlib/libc.so
3796 lt_cv_deplibs_check_method=pass_all
3799 sco3.2v5*)
3800 lt_cv_deplibs_check_method=pass_all
3803 solaris*)
3804 lt_cv_deplibs_check_method=pass_all
3805 lt_cv_file_magic_test_file=/lib/libc.so
3808 sysv5uw[78]* | sysv4*uw2*)
3809 lt_cv_deplibs_check_method=pass_all
3812 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3813 case $host_vendor in
3814 ncr)
3815 lt_cv_deplibs_check_method=pass_all
3817 motorola)
3818 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]'
3819 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3821 esac
3823 esac
3826 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3827 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3828 file_magic_cmd=$lt_cv_file_magic_cmd
3829 deplibs_check_method=$lt_cv_deplibs_check_method
3835 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3837 # find the maximum length of command line arguments
3838 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3839 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3840 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3841 echo $ECHO_N "(cached) $ECHO_C" >&6
3842 else
3844 teststring="ABCD"
3846 case $build_os in
3847 msdosdjgpp*)
3848 # On DJGPP, this test can blow up pretty badly due to problems in libc
3849 # (any single argument exceeding 2000 bytes causes a buffer overrun
3850 # during glob expansion). Even if it were fixed, the result of this
3851 # check would be larger than it should be.
3852 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3855 cygwin* | mingw*)
3856 # On Win9x/ME, this test blows up -- it succeeds, but takes
3857 # about 5 minutes as the teststring grows exponentially.
3858 # Worse, since 9x/ME are not pre-emptively multitasking,
3859 # you end up with a "frozen" computer, even though with patience
3860 # the test eventually succeeds (with a max line length of 256k).
3861 # Instead, let's just punt: use the minimum linelength reported by
3862 # all of the supported platforms: 8192 (on NT/2K/XP).
3863 lt_cv_sys_max_cmd_len=8192;
3866 amigaos*)
3867 # On AmigaOS with pdksh, this test takes hours, literally.
3868 # So we just punt and use a minimum line length of 8192.
3869 lt_cv_sys_max_cmd_len=8192;
3872 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3873 # This has been around since 386BSD, at least. Likely further.
3874 if test -x /sbin/sysctl; then
3875 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3876 elif test -x /usr/sbin/sysctl; then
3877 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3878 else
3879 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
3881 # And add a safety zone
3882 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3883 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3885 esac
3889 if test -n "$lt_cv_sys_max_cmd_len" ; then
3890 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3891 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3892 else
3893 echo "$as_me:$LINENO: result: none" >&5
3894 echo "${ECHO_T}none" >&6
3898 # Only perform the check for file, if the check method requires it
3899 case $deplibs_check_method in
3900 file_magic*)
3901 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3902 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3903 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3904 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3905 echo $ECHO_N "(cached) $ECHO_C" >&6
3906 else
3907 case $MAGIC_CMD in
3909 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3911 ?:/*)
3912 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3915 ac_save_MAGIC_CMD="$MAGIC_CMD"
3916 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3917 ac_dummy="/usr/bin:$PATH"
3918 for ac_dir in $ac_dummy; do
3919 test -z "$ac_dir" && ac_dir=.
3920 if test -f $ac_dir/${ac_tool_prefix}file; then
3921 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3922 if test -n "$file_magic_test_file"; then
3923 case $deplibs_check_method in
3924 "file_magic "*)
3925 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3926 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3927 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3928 egrep "$file_magic_regex" > /dev/null; then
3930 else
3931 cat <<EOF 1>&2
3933 *** Warning: the command libtool uses to detect shared libraries,
3934 *** $file_magic_cmd, produces output that libtool cannot recognize.
3935 *** The result is that libtool may fail to recognize shared libraries
3936 *** as such. This will affect the creation of libtool libraries that
3937 *** depend on shared libraries, but programs linked with such libtool
3938 *** libraries will work regardless of this problem. Nevertheless, you
3939 *** may want to report the problem to your system manager and/or to
3940 *** bug-libtool@gnu.org
3943 fi ;;
3944 esac
3946 break
3948 done
3949 IFS="$ac_save_ifs"
3950 MAGIC_CMD="$ac_save_MAGIC_CMD"
3952 esac
3955 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3956 if test -n "$MAGIC_CMD"; then
3957 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3958 echo "${ECHO_T}$MAGIC_CMD" >&6
3959 else
3960 echo "$as_me:$LINENO: result: no" >&5
3961 echo "${ECHO_T}no" >&6
3964 if test -z "$lt_cv_path_MAGIC_CMD"; then
3965 if test -n "$ac_tool_prefix"; then
3966 echo "$as_me:$LINENO: checking for file" >&5
3967 echo $ECHO_N "checking for file... $ECHO_C" >&6
3968 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3969 echo $ECHO_N "(cached) $ECHO_C" >&6
3970 else
3971 case $MAGIC_CMD in
3973 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3975 ?:/*)
3976 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3979 ac_save_MAGIC_CMD="$MAGIC_CMD"
3980 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3981 ac_dummy="/usr/bin:$PATH"
3982 for ac_dir in $ac_dummy; do
3983 test -z "$ac_dir" && ac_dir=.
3984 if test -f $ac_dir/file; then
3985 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3986 if test -n "$file_magic_test_file"; then
3987 case $deplibs_check_method in
3988 "file_magic "*)
3989 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3990 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3991 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3992 egrep "$file_magic_regex" > /dev/null; then
3994 else
3995 cat <<EOF 1>&2
3997 *** Warning: the command libtool uses to detect shared libraries,
3998 *** $file_magic_cmd, produces output that libtool cannot recognize.
3999 *** The result is that libtool may fail to recognize shared libraries
4000 *** as such. This will affect the creation of libtool libraries that
4001 *** depend on shared libraries, but programs linked with such libtool
4002 *** libraries will work regardless of this problem. Nevertheless, you
4003 *** may want to report the problem to your system manager and/or to
4004 *** bug-libtool@gnu.org
4007 fi ;;
4008 esac
4010 break
4012 done
4013 IFS="$ac_save_ifs"
4014 MAGIC_CMD="$ac_save_MAGIC_CMD"
4016 esac
4019 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4020 if test -n "$MAGIC_CMD"; then
4021 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4022 echo "${ECHO_T}$MAGIC_CMD" >&6
4023 else
4024 echo "$as_me:$LINENO: result: no" >&5
4025 echo "${ECHO_T}no" >&6
4028 else
4029 MAGIC_CMD=:
4035 esac
4037 if test -n "$ac_tool_prefix"; then
4038 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4039 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4040 echo "$as_me:$LINENO: checking for $ac_word" >&5
4041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4042 if test "${ac_cv_prog_RANLIB+set}" = set; then
4043 echo $ECHO_N "(cached) $ECHO_C" >&6
4044 else
4045 if test -n "$RANLIB"; then
4046 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4047 else
4048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4049 for as_dir in $PATH
4051 IFS=$as_save_IFS
4052 test -z "$as_dir" && as_dir=.
4053 for ac_exec_ext in '' $ac_executable_extensions; do
4054 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4055 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4057 break 2
4059 done
4060 done
4064 RANLIB=$ac_cv_prog_RANLIB
4065 if test -n "$RANLIB"; then
4066 echo "$as_me:$LINENO: result: $RANLIB" >&5
4067 echo "${ECHO_T}$RANLIB" >&6
4068 else
4069 echo "$as_me:$LINENO: result: no" >&5
4070 echo "${ECHO_T}no" >&6
4074 if test -z "$ac_cv_prog_RANLIB"; then
4075 ac_ct_RANLIB=$RANLIB
4076 # Extract the first word of "ranlib", so it can be a program name with args.
4077 set dummy ranlib; ac_word=$2
4078 echo "$as_me:$LINENO: checking for $ac_word" >&5
4079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4080 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4081 echo $ECHO_N "(cached) $ECHO_C" >&6
4082 else
4083 if test -n "$ac_ct_RANLIB"; then
4084 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4085 else
4086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4087 for as_dir in $PATH
4089 IFS=$as_save_IFS
4090 test -z "$as_dir" && as_dir=.
4091 for ac_exec_ext in '' $ac_executable_extensions; do
4092 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4093 ac_cv_prog_ac_ct_RANLIB="ranlib"
4094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4095 break 2
4097 done
4098 done
4100 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4103 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4104 if test -n "$ac_ct_RANLIB"; then
4105 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4106 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4107 else
4108 echo "$as_me:$LINENO: result: no" >&5
4109 echo "${ECHO_T}no" >&6
4112 RANLIB=$ac_ct_RANLIB
4113 else
4114 RANLIB="$ac_cv_prog_RANLIB"
4117 if test -n "$ac_tool_prefix"; then
4118 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4119 set dummy ${ac_tool_prefix}strip; ac_word=$2
4120 echo "$as_me:$LINENO: checking for $ac_word" >&5
4121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4122 if test "${ac_cv_prog_STRIP+set}" = set; then
4123 echo $ECHO_N "(cached) $ECHO_C" >&6
4124 else
4125 if test -n "$STRIP"; then
4126 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4127 else
4128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4129 for as_dir in $PATH
4131 IFS=$as_save_IFS
4132 test -z "$as_dir" && as_dir=.
4133 for ac_exec_ext in '' $ac_executable_extensions; do
4134 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4135 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4137 break 2
4139 done
4140 done
4144 STRIP=$ac_cv_prog_STRIP
4145 if test -n "$STRIP"; then
4146 echo "$as_me:$LINENO: result: $STRIP" >&5
4147 echo "${ECHO_T}$STRIP" >&6
4148 else
4149 echo "$as_me:$LINENO: result: no" >&5
4150 echo "${ECHO_T}no" >&6
4154 if test -z "$ac_cv_prog_STRIP"; then
4155 ac_ct_STRIP=$STRIP
4156 # Extract the first word of "strip", so it can be a program name with args.
4157 set dummy strip; ac_word=$2
4158 echo "$as_me:$LINENO: checking for $ac_word" >&5
4159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4160 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4161 echo $ECHO_N "(cached) $ECHO_C" >&6
4162 else
4163 if test -n "$ac_ct_STRIP"; then
4164 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4165 else
4166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4167 for as_dir in $PATH
4169 IFS=$as_save_IFS
4170 test -z "$as_dir" && as_dir=.
4171 for ac_exec_ext in '' $ac_executable_extensions; do
4172 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4173 ac_cv_prog_ac_ct_STRIP="strip"
4174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4175 break 2
4177 done
4178 done
4180 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4183 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4184 if test -n "$ac_ct_STRIP"; then
4185 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4186 echo "${ECHO_T}$ac_ct_STRIP" >&6
4187 else
4188 echo "$as_me:$LINENO: result: no" >&5
4189 echo "${ECHO_T}no" >&6
4192 STRIP=$ac_ct_STRIP
4193 else
4194 STRIP="$ac_cv_prog_STRIP"
4198 # Check for any special flags to pass to ltconfig.
4199 libtool_flags="--cache-file=$cache_file"
4200 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4201 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4202 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4203 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4204 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4207 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4208 if test "${enable_libtool_lock+set}" = set; then
4209 enableval="$enable_libtool_lock"
4212 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4213 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4216 # Check whether --with-pic or --without-pic was given.
4217 if test "${with_pic+set}" = set; then
4218 withval="$with_pic"
4219 pic_mode="$withval"
4220 else
4221 pic_mode=default
4223 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4224 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4226 # Some flags need to be propagated to the compiler or linker for good
4227 # libtool support.
4228 case $host in
4229 *-*-irix6*)
4230 # Find out which ABI we are using.
4231 echo '#line 4231 "configure"' > conftest.$ac_ext
4232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4233 (eval $ac_compile) 2>&5
4234 ac_status=$?
4235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236 (exit $ac_status); }; then
4237 if test "$lt_cv_prog_gnu_ld" = yes; then
4238 case `/usr/bin/file conftest.$ac_objext` in
4239 *32-bit*)
4240 LD="${LD-ld} -melf32bsmip"
4242 *N32*)
4243 LD="${LD-ld} -melf32bmipn32"
4245 *64-bit*)
4246 LD="${LD-ld} -melf64bmip"
4248 esac
4249 else
4250 case `/usr/bin/file conftest.$ac_objext` in
4251 *32-bit*)
4252 LD="${LD-ld} -32"
4254 *N32*)
4255 LD="${LD-ld} -n32"
4257 *64-bit*)
4258 LD="${LD-ld} -64"
4260 esac
4263 rm -rf conftest*
4266 ia64-*-hpux*)
4267 # Find out which ABI we are using.
4268 echo 'int i;' > conftest.$ac_ext
4269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4270 (eval $ac_compile) 2>&5
4271 ac_status=$?
4272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273 (exit $ac_status); }; then
4274 case "`/usr/bin/file conftest.o`" in
4275 *ELF-32*)
4276 HPUX_IA64_MODE="32"
4278 *ELF-64*)
4279 HPUX_IA64_MODE="64"
4281 esac
4283 rm -rf conftest*
4286 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4287 # Find out which ABI we are using.
4288 echo 'int i;' > conftest.$ac_ext
4289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4290 (eval $ac_compile) 2>&5
4291 ac_status=$?
4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293 (exit $ac_status); }; then
4294 case "`/usr/bin/file conftest.o`" in
4295 *32-bit*)
4296 case $host in
4297 x86_64-*linux*)
4298 LD="${LD-ld} -m elf_i386"
4300 ppc64-*linux*|powerpc64-*linux*)
4301 LD="${LD-ld} -m elf32ppclinux"
4303 s390x-*linux*)
4304 LD="${LD-ld} -m elf_s390"
4306 sparc64-*linux*)
4307 LD="${LD-ld} -m elf32_sparc"
4309 esac
4311 *64-bit*)
4312 case $host in
4313 x86_64-*linux*)
4314 LD="${LD-ld} -m elf_x86_64"
4316 ppc*-*linux*|powerpc*-*linux*)
4317 LD="${LD-ld} -m elf64ppc"
4319 s390*-*linux*)
4320 LD="${LD-ld} -m elf64_s390"
4322 sparc*-*linux*)
4323 LD="${LD-ld} -m elf64_sparc"
4325 esac
4327 esac
4329 rm -rf conftest*
4332 *-*-sco3.2v5*)
4333 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4334 SAVE_CFLAGS="$CFLAGS"
4335 CFLAGS="$CFLAGS -belf"
4336 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4337 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4338 if test "${lt_cv_cc_needs_belf+set}" = set; then
4339 echo $ECHO_N "(cached) $ECHO_C" >&6
4340 else
4343 ac_ext=c
4344 ac_cpp='$CPP $CPPFLAGS'
4345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4349 cat >conftest.$ac_ext <<_ACEOF
4350 /* confdefs.h. */
4351 _ACEOF
4352 cat confdefs.h >>conftest.$ac_ext
4353 cat >>conftest.$ac_ext <<_ACEOF
4354 /* end confdefs.h. */
4357 main ()
4361 return 0;
4363 _ACEOF
4364 rm -f conftest.$ac_objext conftest$ac_exeext
4365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4366 (eval $ac_link) 2>conftest.er1
4367 ac_status=$?
4368 grep -v '^ *+' conftest.er1 >conftest.err
4369 rm -f conftest.er1
4370 cat conftest.err >&5
4371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372 (exit $ac_status); } &&
4373 { ac_try='test -z "$ac_c_werror_flag"
4374 || test ! -s conftest.err'
4375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4376 (eval $ac_try) 2>&5
4377 ac_status=$?
4378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379 (exit $ac_status); }; } &&
4380 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
4386 lt_cv_cc_needs_belf=yes
4387 else
4388 echo "$as_me: failed program was:" >&5
4389 sed 's/^/| /' conftest.$ac_ext >&5
4391 lt_cv_cc_needs_belf=no
4393 rm -f conftest.err conftest.$ac_objext \
4394 conftest$ac_exeext conftest.$ac_ext
4395 ac_ext=c
4396 ac_cpp='$CPP $CPPFLAGS'
4397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4402 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4403 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4404 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4405 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4406 CFLAGS="$SAVE_CFLAGS"
4411 esac
4414 # Save cache, so that ltconfig can load it
4415 cat >confcache <<\_ACEOF
4416 # This file is a shell script that caches the results of configure
4417 # tests run on this system so they can be shared between configure
4418 # scripts and configure runs, see configure's option --config-cache.
4419 # It is not useful on other systems. If it contains results you don't
4420 # want to keep, you may remove or edit it.
4422 # config.status only pays attention to the cache file if you give it
4423 # the --recheck option to rerun configure.
4425 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4426 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4427 # following values.
4429 _ACEOF
4431 # The following way of writing the cache mishandles newlines in values,
4432 # but we know of no workaround that is simple, portable, and efficient.
4433 # So, don't put newlines in cache variables' values.
4434 # Ultrix sh set writes to stderr and can't be redirected directly,
4435 # and sets the high bit in the cache file unless we assign to the vars.
4437 (set) 2>&1 |
4438 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4439 *ac_space=\ *)
4440 # `set' does not quote correctly, so add quotes (double-quote
4441 # substitution turns \\\\ into \\, and sed turns \\ into \).
4442 sed -n \
4443 "s/'/'\\\\''/g;
4444 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4447 # `set' quotes correctly as required by POSIX, so do not add quotes.
4448 sed -n \
4449 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4451 esac;
4453 sed '
4454 t clear
4455 : clear
4456 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4457 t end
4458 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4459 : end' >>confcache
4460 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4461 if test -w $cache_file; then
4462 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4463 cat confcache >$cache_file
4464 else
4465 echo "not updating unwritable cache $cache_file"
4468 rm -f confcache
4470 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4471 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4472 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4473 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4474 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4475 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4476 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4477 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4478 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4479 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4480 echo "$as_me: error: libtool configure failed" >&2;}
4481 { (exit 1); exit 1; }; }
4483 # Reload cache, that may have been modified by ltconfig
4484 if test -r "$cache_file"; then
4485 # Some versions of bash will fail to source /dev/null (special
4486 # files actually), so we avoid doing that.
4487 if test -f "$cache_file"; then
4488 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4489 echo "$as_me: loading cache $cache_file" >&6;}
4490 case $cache_file in
4491 [\\/]* | ?:[\\/]* ) . $cache_file;;
4492 *) . ./$cache_file;;
4493 esac
4495 else
4496 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4497 echo "$as_me: creating cache $cache_file" >&6;}
4498 >$cache_file
4502 # This can be used to rebuild libtool when needed
4503 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4505 # Always use our own libtool.
4506 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4508 # Redirect the config.log output again, so that the ltconfig log is not
4509 # clobbered by the next message.
4510 exec 5>>./config.log
4520 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4521 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4522 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4523 if test "${enable_maintainer_mode+set}" = set; then
4524 enableval="$enable_maintainer_mode"
4525 USE_MAINTAINER_MODE=$enableval
4526 else
4527 USE_MAINTAINER_MODE=no
4529 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4530 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4533 if test $USE_MAINTAINER_MODE = yes; then
4534 MAINTAINER_MODE_TRUE=
4535 MAINTAINER_MODE_FALSE='#'
4536 else
4537 MAINTAINER_MODE_TRUE='#'
4538 MAINTAINER_MODE_FALSE=
4541 MAINT=$MAINTAINER_MODE_TRUE
4545 # We need gfortran to compile parts of the library
4546 # We can't use AC_PROG_FC because it expects a fully working gfortran.
4547 #AC_PROG_FC(gfortran)
4548 FC="$GFORTRAN"
4549 ac_ext=${FC_SRCEXT-f}
4550 ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
4551 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
4552 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4553 if test -n "$ac_tool_prefix"; then
4554 for ac_prog in gfortran
4556 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4557 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4558 echo "$as_me:$LINENO: checking for $ac_word" >&5
4559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4560 if test "${ac_cv_prog_FC+set}" = set; then
4561 echo $ECHO_N "(cached) $ECHO_C" >&6
4562 else
4563 if test -n "$FC"; then
4564 ac_cv_prog_FC="$FC" # Let the user override the test.
4565 else
4566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4567 for as_dir in $PATH
4569 IFS=$as_save_IFS
4570 test -z "$as_dir" && as_dir=.
4571 for ac_exec_ext in '' $ac_executable_extensions; do
4572 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4573 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
4574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4575 break 2
4577 done
4578 done
4582 FC=$ac_cv_prog_FC
4583 if test -n "$FC"; then
4584 echo "$as_me:$LINENO: result: $FC" >&5
4585 echo "${ECHO_T}$FC" >&6
4586 else
4587 echo "$as_me:$LINENO: result: no" >&5
4588 echo "${ECHO_T}no" >&6
4591 test -n "$FC" && break
4592 done
4594 if test -z "$FC"; then
4595 ac_ct_FC=$FC
4596 for ac_prog in gfortran
4598 # Extract the first word of "$ac_prog", so it can be a program name with args.
4599 set dummy $ac_prog; ac_word=$2
4600 echo "$as_me:$LINENO: checking for $ac_word" >&5
4601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4602 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then
4603 echo $ECHO_N "(cached) $ECHO_C" >&6
4604 else
4605 if test -n "$ac_ct_FC"; then
4606 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
4607 else
4608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4609 for as_dir in $PATH
4611 IFS=$as_save_IFS
4612 test -z "$as_dir" && as_dir=.
4613 for ac_exec_ext in '' $ac_executable_extensions; do
4614 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4615 ac_cv_prog_ac_ct_FC="$ac_prog"
4616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4617 break 2
4619 done
4620 done
4624 ac_ct_FC=$ac_cv_prog_ac_ct_FC
4625 if test -n "$ac_ct_FC"; then
4626 echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
4627 echo "${ECHO_T}$ac_ct_FC" >&6
4628 else
4629 echo "$as_me:$LINENO: result: no" >&5
4630 echo "${ECHO_T}no" >&6
4633 test -n "$ac_ct_FC" && break
4634 done
4636 FC=$ac_ct_FC
4640 # Provide some information about the compiler.
4641 echo "$as_me:4641:" \
4642 "checking for Fortran compiler version" >&5
4643 ac_compiler=`set X $ac_compile; echo $2`
4644 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4645 (eval $ac_compiler --version </dev/null >&5) 2>&5
4646 ac_status=$?
4647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648 (exit $ac_status); }
4649 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4650 (eval $ac_compiler -v </dev/null >&5) 2>&5
4651 ac_status=$?
4652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653 (exit $ac_status); }
4654 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4655 (eval $ac_compiler -V </dev/null >&5) 2>&5
4656 ac_status=$?
4657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658 (exit $ac_status); }
4659 rm -f a.out
4661 # If we don't use `.F' as extension, the preprocessor is not run on the
4662 # input file. (Note that this only needs to work for GNU compilers.)
4663 ac_save_ext=$ac_ext
4664 ac_ext=F
4665 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
4666 echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6
4667 if test "${ac_cv_fc_compiler_gnu+set}" = set; then
4668 echo $ECHO_N "(cached) $ECHO_C" >&6
4669 else
4670 cat >conftest.$ac_ext <<_ACEOF
4671 program main
4672 #ifndef __GNUC__
4673 choke me
4674 #endif
4677 _ACEOF
4678 rm -f conftest.$ac_objext
4679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4680 (eval $ac_compile) 2>conftest.er1
4681 ac_status=$?
4682 grep -v '^ *+' conftest.er1 >conftest.err
4683 rm -f conftest.er1
4684 cat conftest.err >&5
4685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686 (exit $ac_status); } &&
4687 { ac_try='test -z "$ac_fc_werror_flag"
4688 || test ! -s conftest.err'
4689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4690 (eval $ac_try) 2>&5
4691 ac_status=$?
4692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693 (exit $ac_status); }; } &&
4694 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
4700 ac_compiler_gnu=yes
4701 else
4702 echo "$as_me: failed program was:" >&5
4703 sed 's/^/| /' conftest.$ac_ext >&5
4705 ac_compiler_gnu=no
4707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4708 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
4711 echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
4712 echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6
4713 ac_ext=$ac_save_ext
4714 ac_test_FFLAGS=${FCFLAGS+set}
4715 ac_save_FFLAGS=$FCFLAGS
4716 FCFLAGS=
4717 echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
4718 echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6
4719 if test "${ac_cv_prog_fc_g+set}" = set; then
4720 echo $ECHO_N "(cached) $ECHO_C" >&6
4721 else
4722 FCFLAGS=-g
4723 cat >conftest.$ac_ext <<_ACEOF
4724 program main
4727 _ACEOF
4728 rm -f conftest.$ac_objext
4729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4730 (eval $ac_compile) 2>conftest.er1
4731 ac_status=$?
4732 grep -v '^ *+' conftest.er1 >conftest.err
4733 rm -f conftest.er1
4734 cat conftest.err >&5
4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736 (exit $ac_status); } &&
4737 { ac_try='test -z "$ac_fc_werror_flag"
4738 || test ! -s conftest.err'
4739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4740 (eval $ac_try) 2>&5
4741 ac_status=$?
4742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4743 (exit $ac_status); }; } &&
4744 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
4750 ac_cv_prog_fc_g=yes
4751 else
4752 echo "$as_me: failed program was:" >&5
4753 sed 's/^/| /' conftest.$ac_ext >&5
4755 ac_cv_prog_fc_g=no
4757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4760 echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
4761 echo "${ECHO_T}$ac_cv_prog_fc_g" >&6
4762 if test "$ac_test_FFLAGS" = set; then
4763 FCFLAGS=$ac_save_FFLAGS
4764 elif test $ac_cv_prog_fc_g = yes; then
4765 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4766 FCFLAGS="-g -O2"
4767 else
4768 FCFLAGS="-g"
4770 else
4771 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4772 FCFLAGS="-O2"
4773 else
4774 FCFLAGS=
4778 ac_ext=c
4779 ac_cpp='$CPP $CPPFLAGS'
4780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4784 FCFLAGS="$FCFLAGS -Wall"
4786 # For libtool versioning info, format is CURRENT:REVISION:AGE
4787 libtool_VERSION=1:0:0
4790 # Check header files.
4791 ac_ext=c
4792 ac_cpp='$CPP $CPPFLAGS'
4793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4796 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4797 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4798 # On Suns, sometimes $CPP names a directory.
4799 if test -n "$CPP" && test -d "$CPP"; then
4800 CPP=
4802 if test -z "$CPP"; then
4803 if test "${ac_cv_prog_CPP+set}" = set; then
4804 echo $ECHO_N "(cached) $ECHO_C" >&6
4805 else
4806 # Double quotes because CPP needs to be expanded
4807 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4809 ac_preproc_ok=false
4810 for ac_c_preproc_warn_flag in '' yes
4812 # Use a header file that comes with gcc, so configuring glibc
4813 # with a fresh cross-compiler works.
4814 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4815 # <limits.h> exists even on freestanding compilers.
4816 # On the NeXT, cc -E runs the code through the compiler's parser,
4817 # not just through cpp. "Syntax error" is here to catch this case.
4818 cat >conftest.$ac_ext <<_ACEOF
4819 /* confdefs.h. */
4820 _ACEOF
4821 cat confdefs.h >>conftest.$ac_ext
4822 cat >>conftest.$ac_ext <<_ACEOF
4823 /* end confdefs.h. */
4824 #ifdef __STDC__
4825 # include <limits.h>
4826 #else
4827 # include <assert.h>
4828 #endif
4829 Syntax error
4830 _ACEOF
4831 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4832 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4833 ac_status=$?
4834 grep -v '^ *+' conftest.er1 >conftest.err
4835 rm -f conftest.er1
4836 cat conftest.err >&5
4837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4838 (exit $ac_status); } >/dev/null; then
4839 if test -s conftest.err; then
4840 ac_cpp_err=$ac_c_preproc_warn_flag
4841 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4842 else
4843 ac_cpp_err=
4845 else
4846 ac_cpp_err=yes
4848 if test -z "$ac_cpp_err"; then
4850 else
4851 echo "$as_me: failed program was:" >&5
4852 sed 's/^/| /' conftest.$ac_ext >&5
4854 # Broken: fails on valid input.
4855 continue
4857 rm -f conftest.err conftest.$ac_ext
4859 # OK, works on sane cases. Now check whether non-existent headers
4860 # can be detected and how.
4861 cat >conftest.$ac_ext <<_ACEOF
4862 /* confdefs.h. */
4863 _ACEOF
4864 cat confdefs.h >>conftest.$ac_ext
4865 cat >>conftest.$ac_ext <<_ACEOF
4866 /* end confdefs.h. */
4867 #include <ac_nonexistent.h>
4868 _ACEOF
4869 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4870 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4871 ac_status=$?
4872 grep -v '^ *+' conftest.er1 >conftest.err
4873 rm -f conftest.er1
4874 cat conftest.err >&5
4875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4876 (exit $ac_status); } >/dev/null; then
4877 if test -s conftest.err; then
4878 ac_cpp_err=$ac_c_preproc_warn_flag
4879 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4880 else
4881 ac_cpp_err=
4883 else
4884 ac_cpp_err=yes
4886 if test -z "$ac_cpp_err"; then
4887 # Broken: success on invalid input.
4888 continue
4889 else
4890 echo "$as_me: failed program was:" >&5
4891 sed 's/^/| /' conftest.$ac_ext >&5
4893 # Passes both tests.
4894 ac_preproc_ok=:
4895 break
4897 rm -f conftest.err conftest.$ac_ext
4899 done
4900 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4901 rm -f conftest.err conftest.$ac_ext
4902 if $ac_preproc_ok; then
4903 break
4906 done
4907 ac_cv_prog_CPP=$CPP
4910 CPP=$ac_cv_prog_CPP
4911 else
4912 ac_cv_prog_CPP=$CPP
4914 echo "$as_me:$LINENO: result: $CPP" >&5
4915 echo "${ECHO_T}$CPP" >&6
4916 ac_preproc_ok=false
4917 for ac_c_preproc_warn_flag in '' yes
4919 # Use a header file that comes with gcc, so configuring glibc
4920 # with a fresh cross-compiler works.
4921 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4922 # <limits.h> exists even on freestanding compilers.
4923 # On the NeXT, cc -E runs the code through the compiler's parser,
4924 # not just through cpp. "Syntax error" is here to catch this case.
4925 cat >conftest.$ac_ext <<_ACEOF
4926 /* confdefs.h. */
4927 _ACEOF
4928 cat confdefs.h >>conftest.$ac_ext
4929 cat >>conftest.$ac_ext <<_ACEOF
4930 /* end confdefs.h. */
4931 #ifdef __STDC__
4932 # include <limits.h>
4933 #else
4934 # include <assert.h>
4935 #endif
4936 Syntax error
4937 _ACEOF
4938 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4939 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4940 ac_status=$?
4941 grep -v '^ *+' conftest.er1 >conftest.err
4942 rm -f conftest.er1
4943 cat conftest.err >&5
4944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945 (exit $ac_status); } >/dev/null; then
4946 if test -s conftest.err; then
4947 ac_cpp_err=$ac_c_preproc_warn_flag
4948 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4949 else
4950 ac_cpp_err=
4952 else
4953 ac_cpp_err=yes
4955 if test -z "$ac_cpp_err"; then
4957 else
4958 echo "$as_me: failed program was:" >&5
4959 sed 's/^/| /' conftest.$ac_ext >&5
4961 # Broken: fails on valid input.
4962 continue
4964 rm -f conftest.err conftest.$ac_ext
4966 # OK, works on sane cases. Now check whether non-existent headers
4967 # can be detected and how.
4968 cat >conftest.$ac_ext <<_ACEOF
4969 /* confdefs.h. */
4970 _ACEOF
4971 cat confdefs.h >>conftest.$ac_ext
4972 cat >>conftest.$ac_ext <<_ACEOF
4973 /* end confdefs.h. */
4974 #include <ac_nonexistent.h>
4975 _ACEOF
4976 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4977 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4978 ac_status=$?
4979 grep -v '^ *+' conftest.er1 >conftest.err
4980 rm -f conftest.er1
4981 cat conftest.err >&5
4982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983 (exit $ac_status); } >/dev/null; then
4984 if test -s conftest.err; then
4985 ac_cpp_err=$ac_c_preproc_warn_flag
4986 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4987 else
4988 ac_cpp_err=
4990 else
4991 ac_cpp_err=yes
4993 if test -z "$ac_cpp_err"; then
4994 # Broken: success on invalid input.
4995 continue
4996 else
4997 echo "$as_me: failed program was:" >&5
4998 sed 's/^/| /' conftest.$ac_ext >&5
5000 # Passes both tests.
5001 ac_preproc_ok=:
5002 break
5004 rm -f conftest.err conftest.$ac_ext
5006 done
5007 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5008 rm -f conftest.err conftest.$ac_ext
5009 if $ac_preproc_ok; then
5011 else
5012 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5013 See \`config.log' for more details." >&5
5014 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5015 See \`config.log' for more details." >&2;}
5016 { (exit 1); exit 1; }; }
5019 ac_ext=c
5020 ac_cpp='$CPP $CPPFLAGS'
5021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5026 echo "$as_me:$LINENO: checking for egrep" >&5
5027 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5028 if test "${ac_cv_prog_egrep+set}" = set; then
5029 echo $ECHO_N "(cached) $ECHO_C" >&6
5030 else
5031 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5032 then ac_cv_prog_egrep='grep -E'
5033 else ac_cv_prog_egrep='egrep'
5036 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5037 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5038 EGREP=$ac_cv_prog_egrep
5041 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5042 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5043 if test "${ac_cv_header_stdc+set}" = set; then
5044 echo $ECHO_N "(cached) $ECHO_C" >&6
5045 else
5046 cat >conftest.$ac_ext <<_ACEOF
5047 /* confdefs.h. */
5048 _ACEOF
5049 cat confdefs.h >>conftest.$ac_ext
5050 cat >>conftest.$ac_ext <<_ACEOF
5051 /* end confdefs.h. */
5052 #include <stdlib.h>
5053 #include <stdarg.h>
5054 #include <string.h>
5055 #include <float.h>
5058 main ()
5062 return 0;
5064 _ACEOF
5065 rm -f conftest.$ac_objext
5066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5067 (eval $ac_compile) 2>conftest.er1
5068 ac_status=$?
5069 grep -v '^ *+' conftest.er1 >conftest.err
5070 rm -f conftest.er1
5071 cat conftest.err >&5
5072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073 (exit $ac_status); } &&
5074 { ac_try='test -z "$ac_c_werror_flag"
5075 || test ! -s conftest.err'
5076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5077 (eval $ac_try) 2>&5
5078 ac_status=$?
5079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080 (exit $ac_status); }; } &&
5081 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
5087 ac_cv_header_stdc=yes
5088 else
5089 echo "$as_me: failed program was:" >&5
5090 sed 's/^/| /' conftest.$ac_ext >&5
5092 ac_cv_header_stdc=no
5094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5096 if test $ac_cv_header_stdc = yes; then
5097 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5098 cat >conftest.$ac_ext <<_ACEOF
5099 /* confdefs.h. */
5100 _ACEOF
5101 cat confdefs.h >>conftest.$ac_ext
5102 cat >>conftest.$ac_ext <<_ACEOF
5103 /* end confdefs.h. */
5104 #include <string.h>
5106 _ACEOF
5107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5108 $EGREP "memchr" >/dev/null 2>&1; then
5110 else
5111 ac_cv_header_stdc=no
5113 rm -f conftest*
5117 if test $ac_cv_header_stdc = yes; then
5118 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5119 cat >conftest.$ac_ext <<_ACEOF
5120 /* confdefs.h. */
5121 _ACEOF
5122 cat confdefs.h >>conftest.$ac_ext
5123 cat >>conftest.$ac_ext <<_ACEOF
5124 /* end confdefs.h. */
5125 #include <stdlib.h>
5127 _ACEOF
5128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5129 $EGREP "free" >/dev/null 2>&1; then
5131 else
5132 ac_cv_header_stdc=no
5134 rm -f conftest*
5138 if test $ac_cv_header_stdc = yes; then
5139 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5140 if test "$cross_compiling" = yes; then
5142 else
5143 cat >conftest.$ac_ext <<_ACEOF
5144 /* confdefs.h. */
5145 _ACEOF
5146 cat confdefs.h >>conftest.$ac_ext
5147 cat >>conftest.$ac_ext <<_ACEOF
5148 /* end confdefs.h. */
5149 #include <ctype.h>
5150 #if ((' ' & 0x0FF) == 0x020)
5151 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5152 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5153 #else
5154 # define ISLOWER(c) \
5155 (('a' <= (c) && (c) <= 'i') \
5156 || ('j' <= (c) && (c) <= 'r') \
5157 || ('s' <= (c) && (c) <= 'z'))
5158 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5159 #endif
5161 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5163 main ()
5165 int i;
5166 for (i = 0; i < 256; i++)
5167 if (XOR (islower (i), ISLOWER (i))
5168 || toupper (i) != TOUPPER (i))
5169 exit(2);
5170 exit (0);
5172 _ACEOF
5173 rm -f conftest$ac_exeext
5174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5175 (eval $ac_link) 2>&5
5176 ac_status=$?
5177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5178 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5180 (eval $ac_try) 2>&5
5181 ac_status=$?
5182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5183 (exit $ac_status); }; }; then
5185 else
5186 echo "$as_me: program exited with status $ac_status" >&5
5187 echo "$as_me: failed program was:" >&5
5188 sed 's/^/| /' conftest.$ac_ext >&5
5190 ( exit $ac_status )
5191 ac_cv_header_stdc=no
5193 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5197 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5198 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5199 if test $ac_cv_header_stdc = yes; then
5201 cat >>confdefs.h <<\_ACEOF
5202 #define STDC_HEADERS 1
5203 _ACEOF
5207 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5208 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5209 if test "${ac_cv_header_time+set}" = set; then
5210 echo $ECHO_N "(cached) $ECHO_C" >&6
5211 else
5212 cat >conftest.$ac_ext <<_ACEOF
5213 /* confdefs.h. */
5214 _ACEOF
5215 cat confdefs.h >>conftest.$ac_ext
5216 cat >>conftest.$ac_ext <<_ACEOF
5217 /* end confdefs.h. */
5218 #include <sys/types.h>
5219 #include <sys/time.h>
5220 #include <time.h>
5223 main ()
5225 if ((struct tm *) 0)
5226 return 0;
5228 return 0;
5230 _ACEOF
5231 rm -f conftest.$ac_objext
5232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5233 (eval $ac_compile) 2>conftest.er1
5234 ac_status=$?
5235 grep -v '^ *+' conftest.er1 >conftest.err
5236 rm -f conftest.er1
5237 cat conftest.err >&5
5238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5239 (exit $ac_status); } &&
5240 { ac_try='test -z "$ac_c_werror_flag"
5241 || test ! -s conftest.err'
5242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5243 (eval $ac_try) 2>&5
5244 ac_status=$?
5245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5246 (exit $ac_status); }; } &&
5247 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
5253 ac_cv_header_time=yes
5254 else
5255 echo "$as_me: failed program was:" >&5
5256 sed 's/^/| /' conftest.$ac_ext >&5
5258 ac_cv_header_time=no
5260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5262 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5263 echo "${ECHO_T}$ac_cv_header_time" >&6
5264 if test $ac_cv_header_time = yes; then
5266 cat >>confdefs.h <<\_ACEOF
5267 #define TIME_WITH_SYS_TIME 1
5268 _ACEOF
5272 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5282 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5283 inttypes.h stdint.h unistd.h
5285 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5286 echo "$as_me:$LINENO: checking for $ac_header" >&5
5287 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5288 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5289 echo $ECHO_N "(cached) $ECHO_C" >&6
5290 else
5291 cat >conftest.$ac_ext <<_ACEOF
5292 /* confdefs.h. */
5293 _ACEOF
5294 cat confdefs.h >>conftest.$ac_ext
5295 cat >>conftest.$ac_ext <<_ACEOF
5296 /* end confdefs.h. */
5297 $ac_includes_default
5299 #include <$ac_header>
5300 _ACEOF
5301 rm -f conftest.$ac_objext
5302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5303 (eval $ac_compile) 2>conftest.er1
5304 ac_status=$?
5305 grep -v '^ *+' conftest.er1 >conftest.err
5306 rm -f conftest.er1
5307 cat conftest.err >&5
5308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309 (exit $ac_status); } &&
5310 { ac_try='test -z "$ac_c_werror_flag"
5311 || test ! -s conftest.err'
5312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5313 (eval $ac_try) 2>&5
5314 ac_status=$?
5315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316 (exit $ac_status); }; } &&
5317 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
5323 eval "$as_ac_Header=yes"
5324 else
5325 echo "$as_me: failed program was:" >&5
5326 sed 's/^/| /' conftest.$ac_ext >&5
5328 eval "$as_ac_Header=no"
5330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5332 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5333 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5334 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5335 cat >>confdefs.h <<_ACEOF
5336 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5337 _ACEOF
5341 done
5348 for ac_header in unistd.h semaphore.h sys/loadavg.h sys/time.h
5350 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5351 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5352 echo "$as_me:$LINENO: checking for $ac_header" >&5
5353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5354 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5355 echo $ECHO_N "(cached) $ECHO_C" >&6
5357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5358 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5359 else
5360 # Is the header compilable?
5361 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5362 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5363 cat >conftest.$ac_ext <<_ACEOF
5364 /* confdefs.h. */
5365 _ACEOF
5366 cat confdefs.h >>conftest.$ac_ext
5367 cat >>conftest.$ac_ext <<_ACEOF
5368 /* end confdefs.h. */
5369 $ac_includes_default
5370 #include <$ac_header>
5371 _ACEOF
5372 rm -f conftest.$ac_objext
5373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5374 (eval $ac_compile) 2>conftest.er1
5375 ac_status=$?
5376 grep -v '^ *+' conftest.er1 >conftest.err
5377 rm -f conftest.er1
5378 cat conftest.err >&5
5379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380 (exit $ac_status); } &&
5381 { ac_try='test -z "$ac_c_werror_flag"
5382 || test ! -s conftest.err'
5383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5384 (eval $ac_try) 2>&5
5385 ac_status=$?
5386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5387 (exit $ac_status); }; } &&
5388 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
5394 ac_header_compiler=yes
5395 else
5396 echo "$as_me: failed program was:" >&5
5397 sed 's/^/| /' conftest.$ac_ext >&5
5399 ac_header_compiler=no
5401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5402 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5403 echo "${ECHO_T}$ac_header_compiler" >&6
5405 # Is the header present?
5406 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5407 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5408 cat >conftest.$ac_ext <<_ACEOF
5409 /* confdefs.h. */
5410 _ACEOF
5411 cat confdefs.h >>conftest.$ac_ext
5412 cat >>conftest.$ac_ext <<_ACEOF
5413 /* end confdefs.h. */
5414 #include <$ac_header>
5415 _ACEOF
5416 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5417 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5418 ac_status=$?
5419 grep -v '^ *+' conftest.er1 >conftest.err
5420 rm -f conftest.er1
5421 cat conftest.err >&5
5422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5423 (exit $ac_status); } >/dev/null; then
5424 if test -s conftest.err; then
5425 ac_cpp_err=$ac_c_preproc_warn_flag
5426 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5427 else
5428 ac_cpp_err=
5430 else
5431 ac_cpp_err=yes
5433 if test -z "$ac_cpp_err"; then
5434 ac_header_preproc=yes
5435 else
5436 echo "$as_me: failed program was:" >&5
5437 sed 's/^/| /' conftest.$ac_ext >&5
5439 ac_header_preproc=no
5441 rm -f conftest.err conftest.$ac_ext
5442 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5443 echo "${ECHO_T}$ac_header_preproc" >&6
5445 # So? What about this header?
5446 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5447 yes:no: )
5448 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5449 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5451 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5452 ac_header_preproc=yes
5454 no:yes:* )
5455 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5456 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5457 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5458 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5459 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5460 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5461 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5462 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5463 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5464 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5465 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5466 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5468 cat <<\_ASBOX
5469 ## ----------------------------------------------------- ##
5470 ## Report this to the GNU OpenMP Runtime Library lists. ##
5471 ## ----------------------------------------------------- ##
5472 _ASBOX
5474 sed "s/^/$as_me: WARNING: /" >&2
5476 esac
5477 echo "$as_me:$LINENO: checking for $ac_header" >&5
5478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5479 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5480 echo $ECHO_N "(cached) $ECHO_C" >&6
5481 else
5482 eval "$as_ac_Header=\$ac_header_preproc"
5484 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5485 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5488 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5489 cat >>confdefs.h <<_ACEOF
5490 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5491 _ACEOF
5495 done
5500 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
5502 acx_cv_header_stdint=stddef.h
5503 acx_cv_header_stdint_kind="(already complete)"
5504 for i in stdint.h $inttype_headers; do
5505 unset ac_cv_type_uintptr_t
5506 unset ac_cv_type_uintmax_t
5507 unset ac_cv_type_int_least32_t
5508 unset ac_cv_type_int_fast32_t
5509 unset ac_cv_type_uint64_t
5510 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
5511 echo "$as_me:$LINENO: checking for uintmax_t" >&5
5512 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
5513 if test "${ac_cv_type_uintmax_t+set}" = set; then
5514 echo $ECHO_N "(cached) $ECHO_C" >&6
5515 else
5516 cat >conftest.$ac_ext <<_ACEOF
5517 /* confdefs.h. */
5518 _ACEOF
5519 cat confdefs.h >>conftest.$ac_ext
5520 cat >>conftest.$ac_ext <<_ACEOF
5521 /* end confdefs.h. */
5522 #include <sys/types.h>
5523 #include <$i>
5526 main ()
5528 if ((uintmax_t *) 0)
5529 return 0;
5530 if (sizeof (uintmax_t))
5531 return 0;
5533 return 0;
5535 _ACEOF
5536 rm -f conftest.$ac_objext
5537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5538 (eval $ac_compile) 2>conftest.er1
5539 ac_status=$?
5540 grep -v '^ *+' conftest.er1 >conftest.err
5541 rm -f conftest.er1
5542 cat conftest.err >&5
5543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544 (exit $ac_status); } &&
5545 { ac_try='test -z "$ac_c_werror_flag"
5546 || test ! -s conftest.err'
5547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5548 (eval $ac_try) 2>&5
5549 ac_status=$?
5550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551 (exit $ac_status); }; } &&
5552 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
5558 ac_cv_type_uintmax_t=yes
5559 else
5560 echo "$as_me: failed program was:" >&5
5561 sed 's/^/| /' conftest.$ac_ext >&5
5563 ac_cv_type_uintmax_t=no
5565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5567 echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
5568 echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
5569 if test $ac_cv_type_uintmax_t = yes; then
5570 acx_cv_header_stdint=$i
5571 else
5572 continue
5575 echo "$as_me:$LINENO: checking for uintptr_t" >&5
5576 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
5577 if test "${ac_cv_type_uintptr_t+set}" = set; then
5578 echo $ECHO_N "(cached) $ECHO_C" >&6
5579 else
5580 cat >conftest.$ac_ext <<_ACEOF
5581 /* confdefs.h. */
5582 _ACEOF
5583 cat confdefs.h >>conftest.$ac_ext
5584 cat >>conftest.$ac_ext <<_ACEOF
5585 /* end confdefs.h. */
5586 #include <sys/types.h>
5587 #include <$i>
5590 main ()
5592 if ((uintptr_t *) 0)
5593 return 0;
5594 if (sizeof (uintptr_t))
5595 return 0;
5597 return 0;
5599 _ACEOF
5600 rm -f conftest.$ac_objext
5601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5602 (eval $ac_compile) 2>conftest.er1
5603 ac_status=$?
5604 grep -v '^ *+' conftest.er1 >conftest.err
5605 rm -f conftest.er1
5606 cat conftest.err >&5
5607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608 (exit $ac_status); } &&
5609 { ac_try='test -z "$ac_c_werror_flag"
5610 || test ! -s conftest.err'
5611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5612 (eval $ac_try) 2>&5
5613 ac_status=$?
5614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615 (exit $ac_status); }; } &&
5616 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
5622 ac_cv_type_uintptr_t=yes
5623 else
5624 echo "$as_me: failed program was:" >&5
5625 sed 's/^/| /' conftest.$ac_ext >&5
5627 ac_cv_type_uintptr_t=no
5629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5631 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
5632 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
5633 if test $ac_cv_type_uintptr_t = yes; then
5635 else
5636 acx_cv_header_stdint_kind="(mostly complete)"
5639 echo "$as_me:$LINENO: checking for int_least32_t" >&5
5640 echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
5641 if test "${ac_cv_type_int_least32_t+set}" = set; then
5642 echo $ECHO_N "(cached) $ECHO_C" >&6
5643 else
5644 cat >conftest.$ac_ext <<_ACEOF
5645 /* confdefs.h. */
5646 _ACEOF
5647 cat confdefs.h >>conftest.$ac_ext
5648 cat >>conftest.$ac_ext <<_ACEOF
5649 /* end confdefs.h. */
5650 #include <sys/types.h>
5651 #include <$i>
5654 main ()
5656 if ((int_least32_t *) 0)
5657 return 0;
5658 if (sizeof (int_least32_t))
5659 return 0;
5661 return 0;
5663 _ACEOF
5664 rm -f conftest.$ac_objext
5665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5666 (eval $ac_compile) 2>conftest.er1
5667 ac_status=$?
5668 grep -v '^ *+' conftest.er1 >conftest.err
5669 rm -f conftest.er1
5670 cat conftest.err >&5
5671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672 (exit $ac_status); } &&
5673 { ac_try='test -z "$ac_c_werror_flag"
5674 || test ! -s conftest.err'
5675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5676 (eval $ac_try) 2>&5
5677 ac_status=$?
5678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679 (exit $ac_status); }; } &&
5680 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
5686 ac_cv_type_int_least32_t=yes
5687 else
5688 echo "$as_me: failed program was:" >&5
5689 sed 's/^/| /' conftest.$ac_ext >&5
5691 ac_cv_type_int_least32_t=no
5693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5695 echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
5696 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
5697 if test $ac_cv_type_int_least32_t = yes; then
5699 else
5700 acx_cv_header_stdint_kind="(mostly complete)"
5703 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
5704 echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
5705 if test "${ac_cv_type_int_fast32_t+set}" = set; then
5706 echo $ECHO_N "(cached) $ECHO_C" >&6
5707 else
5708 cat >conftest.$ac_ext <<_ACEOF
5709 /* confdefs.h. */
5710 _ACEOF
5711 cat confdefs.h >>conftest.$ac_ext
5712 cat >>conftest.$ac_ext <<_ACEOF
5713 /* end confdefs.h. */
5714 #include <sys/types.h>
5715 #include <$i>
5718 main ()
5720 if ((int_fast32_t *) 0)
5721 return 0;
5722 if (sizeof (int_fast32_t))
5723 return 0;
5725 return 0;
5727 _ACEOF
5728 rm -f conftest.$ac_objext
5729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5730 (eval $ac_compile) 2>conftest.er1
5731 ac_status=$?
5732 grep -v '^ *+' conftest.er1 >conftest.err
5733 rm -f conftest.er1
5734 cat conftest.err >&5
5735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736 (exit $ac_status); } &&
5737 { ac_try='test -z "$ac_c_werror_flag"
5738 || test ! -s conftest.err'
5739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5740 (eval $ac_try) 2>&5
5741 ac_status=$?
5742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743 (exit $ac_status); }; } &&
5744 { ac_try='test -s conftest.$ac_objext'
5745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5746 (eval $ac_try) 2>&5
5747 ac_status=$?
5748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5749 (exit $ac_status); }; }; then
5750 ac_cv_type_int_fast32_t=yes
5751 else
5752 echo "$as_me: failed program was:" >&5
5753 sed 's/^/| /' conftest.$ac_ext >&5
5755 ac_cv_type_int_fast32_t=no
5757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5759 echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
5760 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
5761 if test $ac_cv_type_int_fast32_t = yes; then
5763 else
5764 acx_cv_header_stdint_kind="(mostly complete)"
5767 echo "$as_me:$LINENO: checking for uint64_t" >&5
5768 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
5769 if test "${ac_cv_type_uint64_t+set}" = set; then
5770 echo $ECHO_N "(cached) $ECHO_C" >&6
5771 else
5772 cat >conftest.$ac_ext <<_ACEOF
5773 /* confdefs.h. */
5774 _ACEOF
5775 cat confdefs.h >>conftest.$ac_ext
5776 cat >>conftest.$ac_ext <<_ACEOF
5777 /* end confdefs.h. */
5778 #include <sys/types.h>
5779 #include <$i>
5782 main ()
5784 if ((uint64_t *) 0)
5785 return 0;
5786 if (sizeof (uint64_t))
5787 return 0;
5789 return 0;
5791 _ACEOF
5792 rm -f conftest.$ac_objext
5793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5794 (eval $ac_compile) 2>conftest.er1
5795 ac_status=$?
5796 grep -v '^ *+' conftest.er1 >conftest.err
5797 rm -f conftest.er1
5798 cat conftest.err >&5
5799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800 (exit $ac_status); } &&
5801 { ac_try='test -z "$ac_c_werror_flag"
5802 || test ! -s conftest.err'
5803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5804 (eval $ac_try) 2>&5
5805 ac_status=$?
5806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807 (exit $ac_status); }; } &&
5808 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
5814 ac_cv_type_uint64_t=yes
5815 else
5816 echo "$as_me: failed program was:" >&5
5817 sed 's/^/| /' conftest.$ac_ext >&5
5819 ac_cv_type_uint64_t=no
5821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5823 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
5824 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
5825 if test $ac_cv_type_uint64_t = yes; then
5827 else
5828 acx_cv_header_stdint_kind="(lacks uint64_t)"
5831 break
5832 done
5833 if test "$acx_cv_header_stdint" = stddef.h; then
5834 acx_cv_header_stdint_kind="(lacks uintptr_t)"
5835 for i in stdint.h $inttype_headers; do
5836 unset ac_cv_type_uint32_t
5837 unset ac_cv_type_uint64_t
5838 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
5839 echo "$as_me:$LINENO: checking for uint32_t" >&5
5840 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
5841 if test "${ac_cv_type_uint32_t+set}" = set; then
5842 echo $ECHO_N "(cached) $ECHO_C" >&6
5843 else
5844 cat >conftest.$ac_ext <<_ACEOF
5845 /* confdefs.h. */
5846 _ACEOF
5847 cat confdefs.h >>conftest.$ac_ext
5848 cat >>conftest.$ac_ext <<_ACEOF
5849 /* end confdefs.h. */
5850 #include <sys/types.h>
5851 #include <$i>
5854 main ()
5856 if ((uint32_t *) 0)
5857 return 0;
5858 if (sizeof (uint32_t))
5859 return 0;
5861 return 0;
5863 _ACEOF
5864 rm -f conftest.$ac_objext
5865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5866 (eval $ac_compile) 2>conftest.er1
5867 ac_status=$?
5868 grep -v '^ *+' conftest.er1 >conftest.err
5869 rm -f conftest.er1
5870 cat conftest.err >&5
5871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872 (exit $ac_status); } &&
5873 { ac_try='test -z "$ac_c_werror_flag"
5874 || test ! -s conftest.err'
5875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5876 (eval $ac_try) 2>&5
5877 ac_status=$?
5878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879 (exit $ac_status); }; } &&
5880 { ac_try='test -s conftest.$ac_objext'
5881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5882 (eval $ac_try) 2>&5
5883 ac_status=$?
5884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885 (exit $ac_status); }; }; then
5886 ac_cv_type_uint32_t=yes
5887 else
5888 echo "$as_me: failed program was:" >&5
5889 sed 's/^/| /' conftest.$ac_ext >&5
5891 ac_cv_type_uint32_t=no
5893 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5895 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
5896 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
5897 if test $ac_cv_type_uint32_t = yes; then
5898 acx_cv_header_stdint=$i
5899 else
5900 continue
5903 echo "$as_me:$LINENO: checking for uint64_t" >&5
5904 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
5905 if test "${ac_cv_type_uint64_t+set}" = set; then
5906 echo $ECHO_N "(cached) $ECHO_C" >&6
5907 else
5908 cat >conftest.$ac_ext <<_ACEOF
5909 /* confdefs.h. */
5910 _ACEOF
5911 cat confdefs.h >>conftest.$ac_ext
5912 cat >>conftest.$ac_ext <<_ACEOF
5913 /* end confdefs.h. */
5914 #include <sys/types.h>
5915 #include <$i>
5918 main ()
5920 if ((uint64_t *) 0)
5921 return 0;
5922 if (sizeof (uint64_t))
5923 return 0;
5925 return 0;
5927 _ACEOF
5928 rm -f conftest.$ac_objext
5929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5930 (eval $ac_compile) 2>conftest.er1
5931 ac_status=$?
5932 grep -v '^ *+' conftest.er1 >conftest.err
5933 rm -f conftest.er1
5934 cat conftest.err >&5
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); } &&
5937 { ac_try='test -z "$ac_c_werror_flag"
5938 || test ! -s conftest.err'
5939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5940 (eval $ac_try) 2>&5
5941 ac_status=$?
5942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 (exit $ac_status); }; } &&
5944 { ac_try='test -s conftest.$ac_objext'
5945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5946 (eval $ac_try) 2>&5
5947 ac_status=$?
5948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949 (exit $ac_status); }; }; then
5950 ac_cv_type_uint64_t=yes
5951 else
5952 echo "$as_me: failed program was:" >&5
5953 sed 's/^/| /' conftest.$ac_ext >&5
5955 ac_cv_type_uint64_t=no
5957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5959 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
5960 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
5961 if test $ac_cv_type_uint64_t = yes; then
5963 else
5964 acx_cv_header_stdint_kind="(lacks uintptr_t and uint64_t)"
5967 break
5968 done
5970 if test "$acx_cv_header_stdint" = stddef.h; then
5971 acx_cv_header_stdint_kind="(u_intXX_t style)"
5972 for i in sys/types.h $inttype_headers; do
5973 unset ac_cv_type_u_int32_t
5974 unset ac_cv_type_u_int64_t
5975 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
5976 echo "$as_me:$LINENO: checking for u_int32_t" >&5
5977 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
5978 if test "${ac_cv_type_u_int32_t+set}" = set; then
5979 echo $ECHO_N "(cached) $ECHO_C" >&6
5980 else
5981 cat >conftest.$ac_ext <<_ACEOF
5982 /* confdefs.h. */
5983 _ACEOF
5984 cat confdefs.h >>conftest.$ac_ext
5985 cat >>conftest.$ac_ext <<_ACEOF
5986 /* end confdefs.h. */
5987 #include <sys/types.h>
5988 #include <$i>
5991 main ()
5993 if ((u_int32_t *) 0)
5994 return 0;
5995 if (sizeof (u_int32_t))
5996 return 0;
5998 return 0;
6000 _ACEOF
6001 rm -f conftest.$ac_objext
6002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6003 (eval $ac_compile) 2>conftest.er1
6004 ac_status=$?
6005 grep -v '^ *+' conftest.er1 >conftest.err
6006 rm -f conftest.er1
6007 cat conftest.err >&5
6008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009 (exit $ac_status); } &&
6010 { ac_try='test -z "$ac_c_werror_flag"
6011 || test ! -s conftest.err'
6012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6013 (eval $ac_try) 2>&5
6014 ac_status=$?
6015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6016 (exit $ac_status); }; } &&
6017 { ac_try='test -s conftest.$ac_objext'
6018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6019 (eval $ac_try) 2>&5
6020 ac_status=$?
6021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022 (exit $ac_status); }; }; then
6023 ac_cv_type_u_int32_t=yes
6024 else
6025 echo "$as_me: failed program was:" >&5
6026 sed 's/^/| /' conftest.$ac_ext >&5
6028 ac_cv_type_u_int32_t=no
6030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6032 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
6033 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
6034 if test $ac_cv_type_u_int32_t = yes; then
6035 acx_cv_header_stdint=$i
6036 else
6037 continue
6040 echo "$as_me:$LINENO: checking for u_int64_t" >&5
6041 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
6042 if test "${ac_cv_type_u_int64_t+set}" = set; then
6043 echo $ECHO_N "(cached) $ECHO_C" >&6
6044 else
6045 cat >conftest.$ac_ext <<_ACEOF
6046 /* confdefs.h. */
6047 _ACEOF
6048 cat confdefs.h >>conftest.$ac_ext
6049 cat >>conftest.$ac_ext <<_ACEOF
6050 /* end confdefs.h. */
6051 #include <sys/types.h>
6052 #include <$i>
6055 main ()
6057 if ((u_int64_t *) 0)
6058 return 0;
6059 if (sizeof (u_int64_t))
6060 return 0;
6062 return 0;
6064 _ACEOF
6065 rm -f conftest.$ac_objext
6066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6067 (eval $ac_compile) 2>conftest.er1
6068 ac_status=$?
6069 grep -v '^ *+' conftest.er1 >conftest.err
6070 rm -f conftest.er1
6071 cat conftest.err >&5
6072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073 (exit $ac_status); } &&
6074 { ac_try='test -z "$ac_c_werror_flag"
6075 || test ! -s conftest.err'
6076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6077 (eval $ac_try) 2>&5
6078 ac_status=$?
6079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080 (exit $ac_status); }; } &&
6081 { ac_try='test -s conftest.$ac_objext'
6082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6083 (eval $ac_try) 2>&5
6084 ac_status=$?
6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086 (exit $ac_status); }; }; then
6087 ac_cv_type_u_int64_t=yes
6088 else
6089 echo "$as_me: failed program was:" >&5
6090 sed 's/^/| /' conftest.$ac_ext >&5
6092 ac_cv_type_u_int64_t=no
6094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6096 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
6097 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
6098 if test $ac_cv_type_u_int64_t = yes; then
6100 else
6101 acx_cv_header_stdint_kind="(u_intXX_t style, lacks u_int64_t)"
6104 break
6105 done
6107 if test "$acx_cv_header_stdint" = stddef.h; then
6108 acx_cv_header_stdint_kind="(using manual detection)"
6111 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
6112 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
6113 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
6114 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
6115 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
6117 # ----------------- Summarize what we found so far
6119 echo "$as_me:$LINENO: checking what to include in gstdint.h" >&5
6120 echo $ECHO_N "checking what to include in gstdint.h... $ECHO_C" >&6
6122 case `$as_basename gstdint.h ||
6123 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
6124 Xgstdint.h : 'X\(//\)$' \| \
6125 Xgstdint.h : 'X\(/\)$' \| \
6126 . : '\(.\)' 2>/dev/null ||
6127 echo X/gstdint.h |
6128 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6129 /^X\/\(\/\/\)$/{ s//\1/; q; }
6130 /^X\/\(\/\).*/{ s//\1/; q; }
6131 s/.*/./; q'` in
6132 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
6133 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
6134 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
6135 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
6136 *) ;;
6137 esac
6139 echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
6140 echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
6142 # ----------------- done included file, check C basic types --------
6144 # Lacking an uintptr_t? Test size of void *
6145 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
6146 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
6147 echo $ECHO_N "checking for void *... $ECHO_C" >&6
6148 if test "${ac_cv_type_void_p+set}" = set; then
6149 echo $ECHO_N "(cached) $ECHO_C" >&6
6150 else
6151 cat >conftest.$ac_ext <<_ACEOF
6152 /* confdefs.h. */
6153 _ACEOF
6154 cat confdefs.h >>conftest.$ac_ext
6155 cat >>conftest.$ac_ext <<_ACEOF
6156 /* end confdefs.h. */
6157 $ac_includes_default
6159 main ()
6161 if ((void * *) 0)
6162 return 0;
6163 if (sizeof (void *))
6164 return 0;
6166 return 0;
6168 _ACEOF
6169 rm -f conftest.$ac_objext
6170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6171 (eval $ac_compile) 2>conftest.er1
6172 ac_status=$?
6173 grep -v '^ *+' conftest.er1 >conftest.err
6174 rm -f conftest.er1
6175 cat conftest.err >&5
6176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6177 (exit $ac_status); } &&
6178 { ac_try='test -z "$ac_c_werror_flag"
6179 || test ! -s conftest.err'
6180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6181 (eval $ac_try) 2>&5
6182 ac_status=$?
6183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184 (exit $ac_status); }; } &&
6185 { ac_try='test -s conftest.$ac_objext'
6186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6187 (eval $ac_try) 2>&5
6188 ac_status=$?
6189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190 (exit $ac_status); }; }; then
6191 ac_cv_type_void_p=yes
6192 else
6193 echo "$as_me: failed program was:" >&5
6194 sed 's/^/| /' conftest.$ac_ext >&5
6196 ac_cv_type_void_p=no
6198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6200 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
6201 echo "${ECHO_T}$ac_cv_type_void_p" >&6
6203 echo "$as_me:$LINENO: checking size of void *" >&5
6204 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
6205 if test "${ac_cv_sizeof_void_p+set}" = set; then
6206 echo $ECHO_N "(cached) $ECHO_C" >&6
6207 else
6208 if test "$ac_cv_type_void_p" = yes; then
6209 # The cast to unsigned long works around a bug in the HP C Compiler
6210 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6211 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6212 # This bug is HP SR number 8606223364.
6213 if test "$cross_compiling" = yes; then
6214 # Depending upon the size, compute the lo and hi bounds.
6215 cat >conftest.$ac_ext <<_ACEOF
6216 /* confdefs.h. */
6217 _ACEOF
6218 cat confdefs.h >>conftest.$ac_ext
6219 cat >>conftest.$ac_ext <<_ACEOF
6220 /* end confdefs.h. */
6221 $ac_includes_default
6223 main ()
6225 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
6226 test_array [0] = 0
6229 return 0;
6231 _ACEOF
6232 rm -f conftest.$ac_objext
6233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6234 (eval $ac_compile) 2>conftest.er1
6235 ac_status=$?
6236 grep -v '^ *+' conftest.er1 >conftest.err
6237 rm -f conftest.er1
6238 cat conftest.err >&5
6239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240 (exit $ac_status); } &&
6241 { ac_try='test -z "$ac_c_werror_flag"
6242 || test ! -s conftest.err'
6243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6244 (eval $ac_try) 2>&5
6245 ac_status=$?
6246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247 (exit $ac_status); }; } &&
6248 { ac_try='test -s conftest.$ac_objext'
6249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6250 (eval $ac_try) 2>&5
6251 ac_status=$?
6252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253 (exit $ac_status); }; }; then
6254 ac_lo=0 ac_mid=0
6255 while :; do
6256 cat >conftest.$ac_ext <<_ACEOF
6257 /* confdefs.h. */
6258 _ACEOF
6259 cat confdefs.h >>conftest.$ac_ext
6260 cat >>conftest.$ac_ext <<_ACEOF
6261 /* end confdefs.h. */
6262 $ac_includes_default
6264 main ()
6266 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
6267 test_array [0] = 0
6270 return 0;
6272 _ACEOF
6273 rm -f conftest.$ac_objext
6274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6275 (eval $ac_compile) 2>conftest.er1
6276 ac_status=$?
6277 grep -v '^ *+' conftest.er1 >conftest.err
6278 rm -f conftest.er1
6279 cat conftest.err >&5
6280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6281 (exit $ac_status); } &&
6282 { ac_try='test -z "$ac_c_werror_flag"
6283 || test ! -s conftest.err'
6284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6285 (eval $ac_try) 2>&5
6286 ac_status=$?
6287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288 (exit $ac_status); }; } &&
6289 { ac_try='test -s conftest.$ac_objext'
6290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6291 (eval $ac_try) 2>&5
6292 ac_status=$?
6293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294 (exit $ac_status); }; }; then
6295 ac_hi=$ac_mid; break
6296 else
6297 echo "$as_me: failed program was:" >&5
6298 sed 's/^/| /' conftest.$ac_ext >&5
6300 ac_lo=`expr $ac_mid + 1`
6301 if test $ac_lo -le $ac_mid; then
6302 ac_lo= ac_hi=
6303 break
6305 ac_mid=`expr 2 '*' $ac_mid + 1`
6307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6308 done
6309 else
6310 echo "$as_me: failed program was:" >&5
6311 sed 's/^/| /' conftest.$ac_ext >&5
6313 cat >conftest.$ac_ext <<_ACEOF
6314 /* confdefs.h. */
6315 _ACEOF
6316 cat confdefs.h >>conftest.$ac_ext
6317 cat >>conftest.$ac_ext <<_ACEOF
6318 /* end confdefs.h. */
6319 $ac_includes_default
6321 main ()
6323 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
6324 test_array [0] = 0
6327 return 0;
6329 _ACEOF
6330 rm -f conftest.$ac_objext
6331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6332 (eval $ac_compile) 2>conftest.er1
6333 ac_status=$?
6334 grep -v '^ *+' conftest.er1 >conftest.err
6335 rm -f conftest.er1
6336 cat conftest.err >&5
6337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338 (exit $ac_status); } &&
6339 { ac_try='test -z "$ac_c_werror_flag"
6340 || test ! -s conftest.err'
6341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6342 (eval $ac_try) 2>&5
6343 ac_status=$?
6344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6345 (exit $ac_status); }; } &&
6346 { ac_try='test -s conftest.$ac_objext'
6347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6348 (eval $ac_try) 2>&5
6349 ac_status=$?
6350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351 (exit $ac_status); }; }; then
6352 ac_hi=-1 ac_mid=-1
6353 while :; do
6354 cat >conftest.$ac_ext <<_ACEOF
6355 /* confdefs.h. */
6356 _ACEOF
6357 cat confdefs.h >>conftest.$ac_ext
6358 cat >>conftest.$ac_ext <<_ACEOF
6359 /* end confdefs.h. */
6360 $ac_includes_default
6362 main ()
6364 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
6365 test_array [0] = 0
6368 return 0;
6370 _ACEOF
6371 rm -f conftest.$ac_objext
6372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6373 (eval $ac_compile) 2>conftest.er1
6374 ac_status=$?
6375 grep -v '^ *+' conftest.er1 >conftest.err
6376 rm -f conftest.er1
6377 cat conftest.err >&5
6378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379 (exit $ac_status); } &&
6380 { ac_try='test -z "$ac_c_werror_flag"
6381 || test ! -s conftest.err'
6382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6383 (eval $ac_try) 2>&5
6384 ac_status=$?
6385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6386 (exit $ac_status); }; } &&
6387 { ac_try='test -s conftest.$ac_objext'
6388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6389 (eval $ac_try) 2>&5
6390 ac_status=$?
6391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6392 (exit $ac_status); }; }; then
6393 ac_lo=$ac_mid; break
6394 else
6395 echo "$as_me: failed program was:" >&5
6396 sed 's/^/| /' conftest.$ac_ext >&5
6398 ac_hi=`expr '(' $ac_mid ')' - 1`
6399 if test $ac_mid -le $ac_hi; then
6400 ac_lo= ac_hi=
6401 break
6403 ac_mid=`expr 2 '*' $ac_mid`
6405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6406 done
6407 else
6408 echo "$as_me: failed program was:" >&5
6409 sed 's/^/| /' conftest.$ac_ext >&5
6411 ac_lo= ac_hi=
6413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6416 # Binary search between lo and hi bounds.
6417 while test "x$ac_lo" != "x$ac_hi"; do
6418 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6419 cat >conftest.$ac_ext <<_ACEOF
6420 /* confdefs.h. */
6421 _ACEOF
6422 cat confdefs.h >>conftest.$ac_ext
6423 cat >>conftest.$ac_ext <<_ACEOF
6424 /* end confdefs.h. */
6425 $ac_includes_default
6427 main ()
6429 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
6430 test_array [0] = 0
6433 return 0;
6435 _ACEOF
6436 rm -f conftest.$ac_objext
6437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6438 (eval $ac_compile) 2>conftest.er1
6439 ac_status=$?
6440 grep -v '^ *+' conftest.er1 >conftest.err
6441 rm -f conftest.er1
6442 cat conftest.err >&5
6443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6444 (exit $ac_status); } &&
6445 { ac_try='test -z "$ac_c_werror_flag"
6446 || test ! -s conftest.err'
6447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6448 (eval $ac_try) 2>&5
6449 ac_status=$?
6450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451 (exit $ac_status); }; } &&
6452 { ac_try='test -s conftest.$ac_objext'
6453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6454 (eval $ac_try) 2>&5
6455 ac_status=$?
6456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6457 (exit $ac_status); }; }; then
6458 ac_hi=$ac_mid
6459 else
6460 echo "$as_me: failed program was:" >&5
6461 sed 's/^/| /' conftest.$ac_ext >&5
6463 ac_lo=`expr '(' $ac_mid ')' + 1`
6465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6466 done
6467 case $ac_lo in
6468 ?*) ac_cv_sizeof_void_p=$ac_lo;;
6469 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
6470 See \`config.log' for more details." >&5
6471 echo "$as_me: error: cannot compute sizeof (void *), 77
6472 See \`config.log' for more details." >&2;}
6473 { (exit 1); exit 1; }; } ;;
6474 esac
6475 else
6476 if test "$cross_compiling" = yes; then
6477 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6478 See \`config.log' for more details." >&5
6479 echo "$as_me: error: cannot run test program while cross compiling
6480 See \`config.log' for more details." >&2;}
6481 { (exit 1); exit 1; }; }
6482 else
6483 cat >conftest.$ac_ext <<_ACEOF
6484 /* confdefs.h. */
6485 _ACEOF
6486 cat confdefs.h >>conftest.$ac_ext
6487 cat >>conftest.$ac_ext <<_ACEOF
6488 /* end confdefs.h. */
6489 $ac_includes_default
6490 long longval () { return (long) (sizeof (void *)); }
6491 unsigned long ulongval () { return (long) (sizeof (void *)); }
6492 #include <stdio.h>
6493 #include <stdlib.h>
6495 main ()
6498 FILE *f = fopen ("conftest.val", "w");
6499 if (! f)
6500 exit (1);
6501 if (((long) (sizeof (void *))) < 0)
6503 long i = longval ();
6504 if (i != ((long) (sizeof (void *))))
6505 exit (1);
6506 fprintf (f, "%ld\n", i);
6508 else
6510 unsigned long i = ulongval ();
6511 if (i != ((long) (sizeof (void *))))
6512 exit (1);
6513 fprintf (f, "%lu\n", i);
6515 exit (ferror (f) || fclose (f) != 0);
6518 return 0;
6520 _ACEOF
6521 rm -f conftest$ac_exeext
6522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6523 (eval $ac_link) 2>&5
6524 ac_status=$?
6525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6528 (eval $ac_try) 2>&5
6529 ac_status=$?
6530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531 (exit $ac_status); }; }; then
6532 ac_cv_sizeof_void_p=`cat conftest.val`
6533 else
6534 echo "$as_me: program exited with status $ac_status" >&5
6535 echo "$as_me: failed program was:" >&5
6536 sed 's/^/| /' conftest.$ac_ext >&5
6538 ( exit $ac_status )
6539 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
6540 See \`config.log' for more details." >&5
6541 echo "$as_me: error: cannot compute sizeof (void *), 77
6542 See \`config.log' for more details." >&2;}
6543 { (exit 1); exit 1; }; }
6545 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6548 rm -f conftest.val
6549 else
6550 ac_cv_sizeof_void_p=0
6553 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
6554 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
6555 cat >>confdefs.h <<_ACEOF
6556 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6557 _ACEOF
6560 esac
6562 # Lacking an uint64_t? Test size of long
6563 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
6564 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
6565 echo $ECHO_N "checking for long... $ECHO_C" >&6
6566 if test "${ac_cv_type_long+set}" = set; then
6567 echo $ECHO_N "(cached) $ECHO_C" >&6
6568 else
6569 cat >conftest.$ac_ext <<_ACEOF
6570 /* confdefs.h. */
6571 _ACEOF
6572 cat confdefs.h >>conftest.$ac_ext
6573 cat >>conftest.$ac_ext <<_ACEOF
6574 /* end confdefs.h. */
6575 $ac_includes_default
6577 main ()
6579 if ((long *) 0)
6580 return 0;
6581 if (sizeof (long))
6582 return 0;
6584 return 0;
6586 _ACEOF
6587 rm -f conftest.$ac_objext
6588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6589 (eval $ac_compile) 2>conftest.er1
6590 ac_status=$?
6591 grep -v '^ *+' conftest.er1 >conftest.err
6592 rm -f conftest.er1
6593 cat conftest.err >&5
6594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595 (exit $ac_status); } &&
6596 { ac_try='test -z "$ac_c_werror_flag"
6597 || test ! -s conftest.err'
6598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6599 (eval $ac_try) 2>&5
6600 ac_status=$?
6601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602 (exit $ac_status); }; } &&
6603 { ac_try='test -s conftest.$ac_objext'
6604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6605 (eval $ac_try) 2>&5
6606 ac_status=$?
6607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608 (exit $ac_status); }; }; then
6609 ac_cv_type_long=yes
6610 else
6611 echo "$as_me: failed program was:" >&5
6612 sed 's/^/| /' conftest.$ac_ext >&5
6614 ac_cv_type_long=no
6616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6618 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6619 echo "${ECHO_T}$ac_cv_type_long" >&6
6621 echo "$as_me:$LINENO: checking size of long" >&5
6622 echo $ECHO_N "checking size of long... $ECHO_C" >&6
6623 if test "${ac_cv_sizeof_long+set}" = set; then
6624 echo $ECHO_N "(cached) $ECHO_C" >&6
6625 else
6626 if test "$ac_cv_type_long" = yes; then
6627 # The cast to unsigned long works around a bug in the HP C Compiler
6628 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6629 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6630 # This bug is HP SR number 8606223364.
6631 if test "$cross_compiling" = yes; then
6632 # Depending upon the size, compute the lo and hi bounds.
6633 cat >conftest.$ac_ext <<_ACEOF
6634 /* confdefs.h. */
6635 _ACEOF
6636 cat confdefs.h >>conftest.$ac_ext
6637 cat >>conftest.$ac_ext <<_ACEOF
6638 /* end confdefs.h. */
6639 $ac_includes_default
6641 main ()
6643 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6644 test_array [0] = 0
6647 return 0;
6649 _ACEOF
6650 rm -f conftest.$ac_objext
6651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6652 (eval $ac_compile) 2>conftest.er1
6653 ac_status=$?
6654 grep -v '^ *+' conftest.er1 >conftest.err
6655 rm -f conftest.er1
6656 cat conftest.err >&5
6657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658 (exit $ac_status); } &&
6659 { ac_try='test -z "$ac_c_werror_flag"
6660 || test ! -s conftest.err'
6661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6662 (eval $ac_try) 2>&5
6663 ac_status=$?
6664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6665 (exit $ac_status); }; } &&
6666 { ac_try='test -s conftest.$ac_objext'
6667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6668 (eval $ac_try) 2>&5
6669 ac_status=$?
6670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6671 (exit $ac_status); }; }; then
6672 ac_lo=0 ac_mid=0
6673 while :; do
6674 cat >conftest.$ac_ext <<_ACEOF
6675 /* confdefs.h. */
6676 _ACEOF
6677 cat confdefs.h >>conftest.$ac_ext
6678 cat >>conftest.$ac_ext <<_ACEOF
6679 /* end confdefs.h. */
6680 $ac_includes_default
6682 main ()
6684 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6685 test_array [0] = 0
6688 return 0;
6690 _ACEOF
6691 rm -f conftest.$ac_objext
6692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6693 (eval $ac_compile) 2>conftest.er1
6694 ac_status=$?
6695 grep -v '^ *+' conftest.er1 >conftest.err
6696 rm -f conftest.er1
6697 cat conftest.err >&5
6698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6699 (exit $ac_status); } &&
6700 { ac_try='test -z "$ac_c_werror_flag"
6701 || test ! -s conftest.err'
6702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6703 (eval $ac_try) 2>&5
6704 ac_status=$?
6705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706 (exit $ac_status); }; } &&
6707 { ac_try='test -s conftest.$ac_objext'
6708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6709 (eval $ac_try) 2>&5
6710 ac_status=$?
6711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712 (exit $ac_status); }; }; then
6713 ac_hi=$ac_mid; break
6714 else
6715 echo "$as_me: failed program was:" >&5
6716 sed 's/^/| /' conftest.$ac_ext >&5
6718 ac_lo=`expr $ac_mid + 1`
6719 if test $ac_lo -le $ac_mid; then
6720 ac_lo= ac_hi=
6721 break
6723 ac_mid=`expr 2 '*' $ac_mid + 1`
6725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6726 done
6727 else
6728 echo "$as_me: failed program was:" >&5
6729 sed 's/^/| /' conftest.$ac_ext >&5
6731 cat >conftest.$ac_ext <<_ACEOF
6732 /* confdefs.h. */
6733 _ACEOF
6734 cat confdefs.h >>conftest.$ac_ext
6735 cat >>conftest.$ac_ext <<_ACEOF
6736 /* end confdefs.h. */
6737 $ac_includes_default
6739 main ()
6741 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6742 test_array [0] = 0
6745 return 0;
6747 _ACEOF
6748 rm -f conftest.$ac_objext
6749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6750 (eval $ac_compile) 2>conftest.er1
6751 ac_status=$?
6752 grep -v '^ *+' conftest.er1 >conftest.err
6753 rm -f conftest.er1
6754 cat conftest.err >&5
6755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6756 (exit $ac_status); } &&
6757 { ac_try='test -z "$ac_c_werror_flag"
6758 || test ! -s conftest.err'
6759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6760 (eval $ac_try) 2>&5
6761 ac_status=$?
6762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763 (exit $ac_status); }; } &&
6764 { ac_try='test -s conftest.$ac_objext'
6765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6766 (eval $ac_try) 2>&5
6767 ac_status=$?
6768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6769 (exit $ac_status); }; }; then
6770 ac_hi=-1 ac_mid=-1
6771 while :; do
6772 cat >conftest.$ac_ext <<_ACEOF
6773 /* confdefs.h. */
6774 _ACEOF
6775 cat confdefs.h >>conftest.$ac_ext
6776 cat >>conftest.$ac_ext <<_ACEOF
6777 /* end confdefs.h. */
6778 $ac_includes_default
6780 main ()
6782 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6783 test_array [0] = 0
6786 return 0;
6788 _ACEOF
6789 rm -f conftest.$ac_objext
6790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6791 (eval $ac_compile) 2>conftest.er1
6792 ac_status=$?
6793 grep -v '^ *+' conftest.er1 >conftest.err
6794 rm -f conftest.er1
6795 cat conftest.err >&5
6796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6797 (exit $ac_status); } &&
6798 { ac_try='test -z "$ac_c_werror_flag"
6799 || test ! -s conftest.err'
6800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6801 (eval $ac_try) 2>&5
6802 ac_status=$?
6803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804 (exit $ac_status); }; } &&
6805 { ac_try='test -s conftest.$ac_objext'
6806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6807 (eval $ac_try) 2>&5
6808 ac_status=$?
6809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6810 (exit $ac_status); }; }; then
6811 ac_lo=$ac_mid; break
6812 else
6813 echo "$as_me: failed program was:" >&5
6814 sed 's/^/| /' conftest.$ac_ext >&5
6816 ac_hi=`expr '(' $ac_mid ')' - 1`
6817 if test $ac_mid -le $ac_hi; then
6818 ac_lo= ac_hi=
6819 break
6821 ac_mid=`expr 2 '*' $ac_mid`
6823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6824 done
6825 else
6826 echo "$as_me: failed program was:" >&5
6827 sed 's/^/| /' conftest.$ac_ext >&5
6829 ac_lo= ac_hi=
6831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6834 # Binary search between lo and hi bounds.
6835 while test "x$ac_lo" != "x$ac_hi"; do
6836 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6837 cat >conftest.$ac_ext <<_ACEOF
6838 /* confdefs.h. */
6839 _ACEOF
6840 cat confdefs.h >>conftest.$ac_ext
6841 cat >>conftest.$ac_ext <<_ACEOF
6842 /* end confdefs.h. */
6843 $ac_includes_default
6845 main ()
6847 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6848 test_array [0] = 0
6851 return 0;
6853 _ACEOF
6854 rm -f conftest.$ac_objext
6855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6856 (eval $ac_compile) 2>conftest.er1
6857 ac_status=$?
6858 grep -v '^ *+' conftest.er1 >conftest.err
6859 rm -f conftest.er1
6860 cat conftest.err >&5
6861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6862 (exit $ac_status); } &&
6863 { ac_try='test -z "$ac_c_werror_flag"
6864 || test ! -s conftest.err'
6865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6866 (eval $ac_try) 2>&5
6867 ac_status=$?
6868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6869 (exit $ac_status); }; } &&
6870 { ac_try='test -s conftest.$ac_objext'
6871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6872 (eval $ac_try) 2>&5
6873 ac_status=$?
6874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875 (exit $ac_status); }; }; then
6876 ac_hi=$ac_mid
6877 else
6878 echo "$as_me: failed program was:" >&5
6879 sed 's/^/| /' conftest.$ac_ext >&5
6881 ac_lo=`expr '(' $ac_mid ')' + 1`
6883 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6884 done
6885 case $ac_lo in
6886 ?*) ac_cv_sizeof_long=$ac_lo;;
6887 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6888 See \`config.log' for more details." >&5
6889 echo "$as_me: error: cannot compute sizeof (long), 77
6890 See \`config.log' for more details." >&2;}
6891 { (exit 1); exit 1; }; } ;;
6892 esac
6893 else
6894 if test "$cross_compiling" = yes; then
6895 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6896 See \`config.log' for more details." >&5
6897 echo "$as_me: error: cannot run test program while cross compiling
6898 See \`config.log' for more details." >&2;}
6899 { (exit 1); exit 1; }; }
6900 else
6901 cat >conftest.$ac_ext <<_ACEOF
6902 /* confdefs.h. */
6903 _ACEOF
6904 cat confdefs.h >>conftest.$ac_ext
6905 cat >>conftest.$ac_ext <<_ACEOF
6906 /* end confdefs.h. */
6907 $ac_includes_default
6908 long longval () { return (long) (sizeof (long)); }
6909 unsigned long ulongval () { return (long) (sizeof (long)); }
6910 #include <stdio.h>
6911 #include <stdlib.h>
6913 main ()
6916 FILE *f = fopen ("conftest.val", "w");
6917 if (! f)
6918 exit (1);
6919 if (((long) (sizeof (long))) < 0)
6921 long i = longval ();
6922 if (i != ((long) (sizeof (long))))
6923 exit (1);
6924 fprintf (f, "%ld\n", i);
6926 else
6928 unsigned long i = ulongval ();
6929 if (i != ((long) (sizeof (long))))
6930 exit (1);
6931 fprintf (f, "%lu\n", i);
6933 exit (ferror (f) || fclose (f) != 0);
6936 return 0;
6938 _ACEOF
6939 rm -f conftest$ac_exeext
6940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6941 (eval $ac_link) 2>&5
6942 ac_status=$?
6943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6944 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6946 (eval $ac_try) 2>&5
6947 ac_status=$?
6948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6949 (exit $ac_status); }; }; then
6950 ac_cv_sizeof_long=`cat conftest.val`
6951 else
6952 echo "$as_me: program exited with status $ac_status" >&5
6953 echo "$as_me: failed program was:" >&5
6954 sed 's/^/| /' conftest.$ac_ext >&5
6956 ( exit $ac_status )
6957 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6958 See \`config.log' for more details." >&5
6959 echo "$as_me: error: cannot compute sizeof (long), 77
6960 See \`config.log' for more details." >&2;}
6961 { (exit 1); exit 1; }; }
6963 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6966 rm -f conftest.val
6967 else
6968 ac_cv_sizeof_long=0
6971 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6972 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
6973 cat >>confdefs.h <<_ACEOF
6974 #define SIZEOF_LONG $ac_cv_sizeof_long
6975 _ACEOF
6978 esac
6980 if test $acx_cv_header_stdint = stddef.h; then
6981 # Lacking a good header? Test size of everything and deduce all types.
6982 echo "$as_me:$LINENO: checking for int" >&5
6983 echo $ECHO_N "checking for int... $ECHO_C" >&6
6984 if test "${ac_cv_type_int+set}" = set; then
6985 echo $ECHO_N "(cached) $ECHO_C" >&6
6986 else
6987 cat >conftest.$ac_ext <<_ACEOF
6988 /* confdefs.h. */
6989 _ACEOF
6990 cat confdefs.h >>conftest.$ac_ext
6991 cat >>conftest.$ac_ext <<_ACEOF
6992 /* end confdefs.h. */
6993 $ac_includes_default
6995 main ()
6997 if ((int *) 0)
6998 return 0;
6999 if (sizeof (int))
7000 return 0;
7002 return 0;
7004 _ACEOF
7005 rm -f conftest.$ac_objext
7006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7007 (eval $ac_compile) 2>conftest.er1
7008 ac_status=$?
7009 grep -v '^ *+' conftest.er1 >conftest.err
7010 rm -f conftest.er1
7011 cat conftest.err >&5
7012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013 (exit $ac_status); } &&
7014 { ac_try='test -z "$ac_c_werror_flag"
7015 || test ! -s conftest.err'
7016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7017 (eval $ac_try) 2>&5
7018 ac_status=$?
7019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7020 (exit $ac_status); }; } &&
7021 { ac_try='test -s conftest.$ac_objext'
7022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7023 (eval $ac_try) 2>&5
7024 ac_status=$?
7025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7026 (exit $ac_status); }; }; then
7027 ac_cv_type_int=yes
7028 else
7029 echo "$as_me: failed program was:" >&5
7030 sed 's/^/| /' conftest.$ac_ext >&5
7032 ac_cv_type_int=no
7034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7036 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
7037 echo "${ECHO_T}$ac_cv_type_int" >&6
7039 echo "$as_me:$LINENO: checking size of int" >&5
7040 echo $ECHO_N "checking size of int... $ECHO_C" >&6
7041 if test "${ac_cv_sizeof_int+set}" = set; then
7042 echo $ECHO_N "(cached) $ECHO_C" >&6
7043 else
7044 if test "$ac_cv_type_int" = yes; then
7045 # The cast to unsigned long works around a bug in the HP C Compiler
7046 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7047 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7048 # This bug is HP SR number 8606223364.
7049 if test "$cross_compiling" = yes; then
7050 # Depending upon the size, compute the lo and hi bounds.
7051 cat >conftest.$ac_ext <<_ACEOF
7052 /* confdefs.h. */
7053 _ACEOF
7054 cat confdefs.h >>conftest.$ac_ext
7055 cat >>conftest.$ac_ext <<_ACEOF
7056 /* end confdefs.h. */
7057 $ac_includes_default
7059 main ()
7061 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
7062 test_array [0] = 0
7065 return 0;
7067 _ACEOF
7068 rm -f conftest.$ac_objext
7069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7070 (eval $ac_compile) 2>conftest.er1
7071 ac_status=$?
7072 grep -v '^ *+' conftest.er1 >conftest.err
7073 rm -f conftest.er1
7074 cat conftest.err >&5
7075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7076 (exit $ac_status); } &&
7077 { ac_try='test -z "$ac_c_werror_flag"
7078 || test ! -s conftest.err'
7079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7080 (eval $ac_try) 2>&5
7081 ac_status=$?
7082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083 (exit $ac_status); }; } &&
7084 { ac_try='test -s conftest.$ac_objext'
7085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7086 (eval $ac_try) 2>&5
7087 ac_status=$?
7088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089 (exit $ac_status); }; }; then
7090 ac_lo=0 ac_mid=0
7091 while :; do
7092 cat >conftest.$ac_ext <<_ACEOF
7093 /* confdefs.h. */
7094 _ACEOF
7095 cat confdefs.h >>conftest.$ac_ext
7096 cat >>conftest.$ac_ext <<_ACEOF
7097 /* end confdefs.h. */
7098 $ac_includes_default
7100 main ()
7102 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
7103 test_array [0] = 0
7106 return 0;
7108 _ACEOF
7109 rm -f conftest.$ac_objext
7110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7111 (eval $ac_compile) 2>conftest.er1
7112 ac_status=$?
7113 grep -v '^ *+' conftest.er1 >conftest.err
7114 rm -f conftest.er1
7115 cat conftest.err >&5
7116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117 (exit $ac_status); } &&
7118 { ac_try='test -z "$ac_c_werror_flag"
7119 || test ! -s conftest.err'
7120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7121 (eval $ac_try) 2>&5
7122 ac_status=$?
7123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124 (exit $ac_status); }; } &&
7125 { ac_try='test -s conftest.$ac_objext'
7126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7127 (eval $ac_try) 2>&5
7128 ac_status=$?
7129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7130 (exit $ac_status); }; }; then
7131 ac_hi=$ac_mid; break
7132 else
7133 echo "$as_me: failed program was:" >&5
7134 sed 's/^/| /' conftest.$ac_ext >&5
7136 ac_lo=`expr $ac_mid + 1`
7137 if test $ac_lo -le $ac_mid; then
7138 ac_lo= ac_hi=
7139 break
7141 ac_mid=`expr 2 '*' $ac_mid + 1`
7143 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7144 done
7145 else
7146 echo "$as_me: failed program was:" >&5
7147 sed 's/^/| /' conftest.$ac_ext >&5
7149 cat >conftest.$ac_ext <<_ACEOF
7150 /* confdefs.h. */
7151 _ACEOF
7152 cat confdefs.h >>conftest.$ac_ext
7153 cat >>conftest.$ac_ext <<_ACEOF
7154 /* end confdefs.h. */
7155 $ac_includes_default
7157 main ()
7159 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
7160 test_array [0] = 0
7163 return 0;
7165 _ACEOF
7166 rm -f conftest.$ac_objext
7167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7168 (eval $ac_compile) 2>conftest.er1
7169 ac_status=$?
7170 grep -v '^ *+' conftest.er1 >conftest.err
7171 rm -f conftest.er1
7172 cat conftest.err >&5
7173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7174 (exit $ac_status); } &&
7175 { ac_try='test -z "$ac_c_werror_flag"
7176 || test ! -s conftest.err'
7177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7178 (eval $ac_try) 2>&5
7179 ac_status=$?
7180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7181 (exit $ac_status); }; } &&
7182 { ac_try='test -s conftest.$ac_objext'
7183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7184 (eval $ac_try) 2>&5
7185 ac_status=$?
7186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7187 (exit $ac_status); }; }; then
7188 ac_hi=-1 ac_mid=-1
7189 while :; do
7190 cat >conftest.$ac_ext <<_ACEOF
7191 /* confdefs.h. */
7192 _ACEOF
7193 cat confdefs.h >>conftest.$ac_ext
7194 cat >>conftest.$ac_ext <<_ACEOF
7195 /* end confdefs.h. */
7196 $ac_includes_default
7198 main ()
7200 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
7201 test_array [0] = 0
7204 return 0;
7206 _ACEOF
7207 rm -f conftest.$ac_objext
7208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7209 (eval $ac_compile) 2>conftest.er1
7210 ac_status=$?
7211 grep -v '^ *+' conftest.er1 >conftest.err
7212 rm -f conftest.er1
7213 cat conftest.err >&5
7214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7215 (exit $ac_status); } &&
7216 { ac_try='test -z "$ac_c_werror_flag"
7217 || test ! -s conftest.err'
7218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7219 (eval $ac_try) 2>&5
7220 ac_status=$?
7221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7222 (exit $ac_status); }; } &&
7223 { ac_try='test -s conftest.$ac_objext'
7224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7225 (eval $ac_try) 2>&5
7226 ac_status=$?
7227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228 (exit $ac_status); }; }; then
7229 ac_lo=$ac_mid; break
7230 else
7231 echo "$as_me: failed program was:" >&5
7232 sed 's/^/| /' conftest.$ac_ext >&5
7234 ac_hi=`expr '(' $ac_mid ')' - 1`
7235 if test $ac_mid -le $ac_hi; then
7236 ac_lo= ac_hi=
7237 break
7239 ac_mid=`expr 2 '*' $ac_mid`
7241 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7242 done
7243 else
7244 echo "$as_me: failed program was:" >&5
7245 sed 's/^/| /' conftest.$ac_ext >&5
7247 ac_lo= ac_hi=
7249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7252 # Binary search between lo and hi bounds.
7253 while test "x$ac_lo" != "x$ac_hi"; do
7254 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7255 cat >conftest.$ac_ext <<_ACEOF
7256 /* confdefs.h. */
7257 _ACEOF
7258 cat confdefs.h >>conftest.$ac_ext
7259 cat >>conftest.$ac_ext <<_ACEOF
7260 /* end confdefs.h. */
7261 $ac_includes_default
7263 main ()
7265 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
7266 test_array [0] = 0
7269 return 0;
7271 _ACEOF
7272 rm -f conftest.$ac_objext
7273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7274 (eval $ac_compile) 2>conftest.er1
7275 ac_status=$?
7276 grep -v '^ *+' conftest.er1 >conftest.err
7277 rm -f conftest.er1
7278 cat conftest.err >&5
7279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7280 (exit $ac_status); } &&
7281 { ac_try='test -z "$ac_c_werror_flag"
7282 || test ! -s conftest.err'
7283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7284 (eval $ac_try) 2>&5
7285 ac_status=$?
7286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7287 (exit $ac_status); }; } &&
7288 { ac_try='test -s conftest.$ac_objext'
7289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7290 (eval $ac_try) 2>&5
7291 ac_status=$?
7292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7293 (exit $ac_status); }; }; then
7294 ac_hi=$ac_mid
7295 else
7296 echo "$as_me: failed program was:" >&5
7297 sed 's/^/| /' conftest.$ac_ext >&5
7299 ac_lo=`expr '(' $ac_mid ')' + 1`
7301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7302 done
7303 case $ac_lo in
7304 ?*) ac_cv_sizeof_int=$ac_lo;;
7305 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
7306 See \`config.log' for more details." >&5
7307 echo "$as_me: error: cannot compute sizeof (int), 77
7308 See \`config.log' for more details." >&2;}
7309 { (exit 1); exit 1; }; } ;;
7310 esac
7311 else
7312 if test "$cross_compiling" = yes; then
7313 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7314 See \`config.log' for more details." >&5
7315 echo "$as_me: error: cannot run test program while cross compiling
7316 See \`config.log' for more details." >&2;}
7317 { (exit 1); exit 1; }; }
7318 else
7319 cat >conftest.$ac_ext <<_ACEOF
7320 /* confdefs.h. */
7321 _ACEOF
7322 cat confdefs.h >>conftest.$ac_ext
7323 cat >>conftest.$ac_ext <<_ACEOF
7324 /* end confdefs.h. */
7325 $ac_includes_default
7326 long longval () { return (long) (sizeof (int)); }
7327 unsigned long ulongval () { return (long) (sizeof (int)); }
7328 #include <stdio.h>
7329 #include <stdlib.h>
7331 main ()
7334 FILE *f = fopen ("conftest.val", "w");
7335 if (! f)
7336 exit (1);
7337 if (((long) (sizeof (int))) < 0)
7339 long i = longval ();
7340 if (i != ((long) (sizeof (int))))
7341 exit (1);
7342 fprintf (f, "%ld\n", i);
7344 else
7346 unsigned long i = ulongval ();
7347 if (i != ((long) (sizeof (int))))
7348 exit (1);
7349 fprintf (f, "%lu\n", i);
7351 exit (ferror (f) || fclose (f) != 0);
7354 return 0;
7356 _ACEOF
7357 rm -f conftest$ac_exeext
7358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7359 (eval $ac_link) 2>&5
7360 ac_status=$?
7361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7362 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7364 (eval $ac_try) 2>&5
7365 ac_status=$?
7366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7367 (exit $ac_status); }; }; then
7368 ac_cv_sizeof_int=`cat conftest.val`
7369 else
7370 echo "$as_me: program exited with status $ac_status" >&5
7371 echo "$as_me: failed program was:" >&5
7372 sed 's/^/| /' conftest.$ac_ext >&5
7374 ( exit $ac_status )
7375 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
7376 See \`config.log' for more details." >&5
7377 echo "$as_me: error: cannot compute sizeof (int), 77
7378 See \`config.log' for more details." >&2;}
7379 { (exit 1); exit 1; }; }
7381 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7384 rm -f conftest.val
7385 else
7386 ac_cv_sizeof_int=0
7389 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
7390 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
7391 cat >>confdefs.h <<_ACEOF
7392 #define SIZEOF_INT $ac_cv_sizeof_int
7393 _ACEOF
7396 echo "$as_me:$LINENO: checking for short" >&5
7397 echo $ECHO_N "checking for short... $ECHO_C" >&6
7398 if test "${ac_cv_type_short+set}" = set; then
7399 echo $ECHO_N "(cached) $ECHO_C" >&6
7400 else
7401 cat >conftest.$ac_ext <<_ACEOF
7402 /* confdefs.h. */
7403 _ACEOF
7404 cat confdefs.h >>conftest.$ac_ext
7405 cat >>conftest.$ac_ext <<_ACEOF
7406 /* end confdefs.h. */
7407 $ac_includes_default
7409 main ()
7411 if ((short *) 0)
7412 return 0;
7413 if (sizeof (short))
7414 return 0;
7416 return 0;
7418 _ACEOF
7419 rm -f conftest.$ac_objext
7420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7421 (eval $ac_compile) 2>conftest.er1
7422 ac_status=$?
7423 grep -v '^ *+' conftest.er1 >conftest.err
7424 rm -f conftest.er1
7425 cat conftest.err >&5
7426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7427 (exit $ac_status); } &&
7428 { ac_try='test -z "$ac_c_werror_flag"
7429 || test ! -s conftest.err'
7430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7431 (eval $ac_try) 2>&5
7432 ac_status=$?
7433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7434 (exit $ac_status); }; } &&
7435 { ac_try='test -s conftest.$ac_objext'
7436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7437 (eval $ac_try) 2>&5
7438 ac_status=$?
7439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7440 (exit $ac_status); }; }; then
7441 ac_cv_type_short=yes
7442 else
7443 echo "$as_me: failed program was:" >&5
7444 sed 's/^/| /' conftest.$ac_ext >&5
7446 ac_cv_type_short=no
7448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7450 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
7451 echo "${ECHO_T}$ac_cv_type_short" >&6
7453 echo "$as_me:$LINENO: checking size of short" >&5
7454 echo $ECHO_N "checking size of short... $ECHO_C" >&6
7455 if test "${ac_cv_sizeof_short+set}" = set; then
7456 echo $ECHO_N "(cached) $ECHO_C" >&6
7457 else
7458 if test "$ac_cv_type_short" = yes; then
7459 # The cast to unsigned long works around a bug in the HP C Compiler
7460 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7461 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7462 # This bug is HP SR number 8606223364.
7463 if test "$cross_compiling" = yes; then
7464 # Depending upon the size, compute the lo and hi bounds.
7465 cat >conftest.$ac_ext <<_ACEOF
7466 /* confdefs.h. */
7467 _ACEOF
7468 cat confdefs.h >>conftest.$ac_ext
7469 cat >>conftest.$ac_ext <<_ACEOF
7470 /* end confdefs.h. */
7471 $ac_includes_default
7473 main ()
7475 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
7476 test_array [0] = 0
7479 return 0;
7481 _ACEOF
7482 rm -f conftest.$ac_objext
7483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7484 (eval $ac_compile) 2>conftest.er1
7485 ac_status=$?
7486 grep -v '^ *+' conftest.er1 >conftest.err
7487 rm -f conftest.er1
7488 cat conftest.err >&5
7489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7490 (exit $ac_status); } &&
7491 { ac_try='test -z "$ac_c_werror_flag"
7492 || test ! -s conftest.err'
7493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7494 (eval $ac_try) 2>&5
7495 ac_status=$?
7496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7497 (exit $ac_status); }; } &&
7498 { ac_try='test -s conftest.$ac_objext'
7499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7500 (eval $ac_try) 2>&5
7501 ac_status=$?
7502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7503 (exit $ac_status); }; }; then
7504 ac_lo=0 ac_mid=0
7505 while :; do
7506 cat >conftest.$ac_ext <<_ACEOF
7507 /* confdefs.h. */
7508 _ACEOF
7509 cat confdefs.h >>conftest.$ac_ext
7510 cat >>conftest.$ac_ext <<_ACEOF
7511 /* end confdefs.h. */
7512 $ac_includes_default
7514 main ()
7516 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7517 test_array [0] = 0
7520 return 0;
7522 _ACEOF
7523 rm -f conftest.$ac_objext
7524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7525 (eval $ac_compile) 2>conftest.er1
7526 ac_status=$?
7527 grep -v '^ *+' conftest.er1 >conftest.err
7528 rm -f conftest.er1
7529 cat conftest.err >&5
7530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7531 (exit $ac_status); } &&
7532 { ac_try='test -z "$ac_c_werror_flag"
7533 || test ! -s conftest.err'
7534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7535 (eval $ac_try) 2>&5
7536 ac_status=$?
7537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7538 (exit $ac_status); }; } &&
7539 { ac_try='test -s conftest.$ac_objext'
7540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7541 (eval $ac_try) 2>&5
7542 ac_status=$?
7543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7544 (exit $ac_status); }; }; then
7545 ac_hi=$ac_mid; break
7546 else
7547 echo "$as_me: failed program was:" >&5
7548 sed 's/^/| /' conftest.$ac_ext >&5
7550 ac_lo=`expr $ac_mid + 1`
7551 if test $ac_lo -le $ac_mid; then
7552 ac_lo= ac_hi=
7553 break
7555 ac_mid=`expr 2 '*' $ac_mid + 1`
7557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7558 done
7559 else
7560 echo "$as_me: failed program was:" >&5
7561 sed 's/^/| /' conftest.$ac_ext >&5
7563 cat >conftest.$ac_ext <<_ACEOF
7564 /* confdefs.h. */
7565 _ACEOF
7566 cat confdefs.h >>conftest.$ac_ext
7567 cat >>conftest.$ac_ext <<_ACEOF
7568 /* end confdefs.h. */
7569 $ac_includes_default
7571 main ()
7573 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
7574 test_array [0] = 0
7577 return 0;
7579 _ACEOF
7580 rm -f conftest.$ac_objext
7581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7582 (eval $ac_compile) 2>conftest.er1
7583 ac_status=$?
7584 grep -v '^ *+' conftest.er1 >conftest.err
7585 rm -f conftest.er1
7586 cat conftest.err >&5
7587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7588 (exit $ac_status); } &&
7589 { ac_try='test -z "$ac_c_werror_flag"
7590 || test ! -s conftest.err'
7591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7592 (eval $ac_try) 2>&5
7593 ac_status=$?
7594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7595 (exit $ac_status); }; } &&
7596 { ac_try='test -s conftest.$ac_objext'
7597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7598 (eval $ac_try) 2>&5
7599 ac_status=$?
7600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7601 (exit $ac_status); }; }; then
7602 ac_hi=-1 ac_mid=-1
7603 while :; do
7604 cat >conftest.$ac_ext <<_ACEOF
7605 /* confdefs.h. */
7606 _ACEOF
7607 cat confdefs.h >>conftest.$ac_ext
7608 cat >>conftest.$ac_ext <<_ACEOF
7609 /* end confdefs.h. */
7610 $ac_includes_default
7612 main ()
7614 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
7615 test_array [0] = 0
7618 return 0;
7620 _ACEOF
7621 rm -f conftest.$ac_objext
7622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7623 (eval $ac_compile) 2>conftest.er1
7624 ac_status=$?
7625 grep -v '^ *+' conftest.er1 >conftest.err
7626 rm -f conftest.er1
7627 cat conftest.err >&5
7628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7629 (exit $ac_status); } &&
7630 { ac_try='test -z "$ac_c_werror_flag"
7631 || test ! -s conftest.err'
7632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7633 (eval $ac_try) 2>&5
7634 ac_status=$?
7635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7636 (exit $ac_status); }; } &&
7637 { ac_try='test -s conftest.$ac_objext'
7638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7639 (eval $ac_try) 2>&5
7640 ac_status=$?
7641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7642 (exit $ac_status); }; }; then
7643 ac_lo=$ac_mid; break
7644 else
7645 echo "$as_me: failed program was:" >&5
7646 sed 's/^/| /' conftest.$ac_ext >&5
7648 ac_hi=`expr '(' $ac_mid ')' - 1`
7649 if test $ac_mid -le $ac_hi; then
7650 ac_lo= ac_hi=
7651 break
7653 ac_mid=`expr 2 '*' $ac_mid`
7655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7656 done
7657 else
7658 echo "$as_me: failed program was:" >&5
7659 sed 's/^/| /' conftest.$ac_ext >&5
7661 ac_lo= ac_hi=
7663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7666 # Binary search between lo and hi bounds.
7667 while test "x$ac_lo" != "x$ac_hi"; do
7668 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7669 cat >conftest.$ac_ext <<_ACEOF
7670 /* confdefs.h. */
7671 _ACEOF
7672 cat confdefs.h >>conftest.$ac_ext
7673 cat >>conftest.$ac_ext <<_ACEOF
7674 /* end confdefs.h. */
7675 $ac_includes_default
7677 main ()
7679 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7680 test_array [0] = 0
7683 return 0;
7685 _ACEOF
7686 rm -f conftest.$ac_objext
7687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7688 (eval $ac_compile) 2>conftest.er1
7689 ac_status=$?
7690 grep -v '^ *+' conftest.er1 >conftest.err
7691 rm -f conftest.er1
7692 cat conftest.err >&5
7693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7694 (exit $ac_status); } &&
7695 { ac_try='test -z "$ac_c_werror_flag"
7696 || test ! -s conftest.err'
7697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7698 (eval $ac_try) 2>&5
7699 ac_status=$?
7700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7701 (exit $ac_status); }; } &&
7702 { ac_try='test -s conftest.$ac_objext'
7703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7704 (eval $ac_try) 2>&5
7705 ac_status=$?
7706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7707 (exit $ac_status); }; }; then
7708 ac_hi=$ac_mid
7709 else
7710 echo "$as_me: failed program was:" >&5
7711 sed 's/^/| /' conftest.$ac_ext >&5
7713 ac_lo=`expr '(' $ac_mid ')' + 1`
7715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7716 done
7717 case $ac_lo in
7718 ?*) ac_cv_sizeof_short=$ac_lo;;
7719 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7720 See \`config.log' for more details." >&5
7721 echo "$as_me: error: cannot compute sizeof (short), 77
7722 See \`config.log' for more details." >&2;}
7723 { (exit 1); exit 1; }; } ;;
7724 esac
7725 else
7726 if test "$cross_compiling" = yes; then
7727 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7728 See \`config.log' for more details." >&5
7729 echo "$as_me: error: cannot run test program while cross compiling
7730 See \`config.log' for more details." >&2;}
7731 { (exit 1); exit 1; }; }
7732 else
7733 cat >conftest.$ac_ext <<_ACEOF
7734 /* confdefs.h. */
7735 _ACEOF
7736 cat confdefs.h >>conftest.$ac_ext
7737 cat >>conftest.$ac_ext <<_ACEOF
7738 /* end confdefs.h. */
7739 $ac_includes_default
7740 long longval () { return (long) (sizeof (short)); }
7741 unsigned long ulongval () { return (long) (sizeof (short)); }
7742 #include <stdio.h>
7743 #include <stdlib.h>
7745 main ()
7748 FILE *f = fopen ("conftest.val", "w");
7749 if (! f)
7750 exit (1);
7751 if (((long) (sizeof (short))) < 0)
7753 long i = longval ();
7754 if (i != ((long) (sizeof (short))))
7755 exit (1);
7756 fprintf (f, "%ld\n", i);
7758 else
7760 unsigned long i = ulongval ();
7761 if (i != ((long) (sizeof (short))))
7762 exit (1);
7763 fprintf (f, "%lu\n", i);
7765 exit (ferror (f) || fclose (f) != 0);
7768 return 0;
7770 _ACEOF
7771 rm -f conftest$ac_exeext
7772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7773 (eval $ac_link) 2>&5
7774 ac_status=$?
7775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7776 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7778 (eval $ac_try) 2>&5
7779 ac_status=$?
7780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7781 (exit $ac_status); }; }; then
7782 ac_cv_sizeof_short=`cat conftest.val`
7783 else
7784 echo "$as_me: program exited with status $ac_status" >&5
7785 echo "$as_me: failed program was:" >&5
7786 sed 's/^/| /' conftest.$ac_ext >&5
7788 ( exit $ac_status )
7789 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7790 See \`config.log' for more details." >&5
7791 echo "$as_me: error: cannot compute sizeof (short), 77
7792 See \`config.log' for more details." >&2;}
7793 { (exit 1); exit 1; }; }
7795 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7798 rm -f conftest.val
7799 else
7800 ac_cv_sizeof_short=0
7803 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
7804 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
7805 cat >>confdefs.h <<_ACEOF
7806 #define SIZEOF_SHORT $ac_cv_sizeof_short
7807 _ACEOF
7810 echo "$as_me:$LINENO: checking for char" >&5
7811 echo $ECHO_N "checking for char... $ECHO_C" >&6
7812 if test "${ac_cv_type_char+set}" = set; then
7813 echo $ECHO_N "(cached) $ECHO_C" >&6
7814 else
7815 cat >conftest.$ac_ext <<_ACEOF
7816 /* confdefs.h. */
7817 _ACEOF
7818 cat confdefs.h >>conftest.$ac_ext
7819 cat >>conftest.$ac_ext <<_ACEOF
7820 /* end confdefs.h. */
7821 $ac_includes_default
7823 main ()
7825 if ((char *) 0)
7826 return 0;
7827 if (sizeof (char))
7828 return 0;
7830 return 0;
7832 _ACEOF
7833 rm -f conftest.$ac_objext
7834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7835 (eval $ac_compile) 2>conftest.er1
7836 ac_status=$?
7837 grep -v '^ *+' conftest.er1 >conftest.err
7838 rm -f conftest.er1
7839 cat conftest.err >&5
7840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7841 (exit $ac_status); } &&
7842 { ac_try='test -z "$ac_c_werror_flag"
7843 || test ! -s conftest.err'
7844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7845 (eval $ac_try) 2>&5
7846 ac_status=$?
7847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848 (exit $ac_status); }; } &&
7849 { ac_try='test -s conftest.$ac_objext'
7850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7851 (eval $ac_try) 2>&5
7852 ac_status=$?
7853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854 (exit $ac_status); }; }; then
7855 ac_cv_type_char=yes
7856 else
7857 echo "$as_me: failed program was:" >&5
7858 sed 's/^/| /' conftest.$ac_ext >&5
7860 ac_cv_type_char=no
7862 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7864 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
7865 echo "${ECHO_T}$ac_cv_type_char" >&6
7867 echo "$as_me:$LINENO: checking size of char" >&5
7868 echo $ECHO_N "checking size of char... $ECHO_C" >&6
7869 if test "${ac_cv_sizeof_char+set}" = set; then
7870 echo $ECHO_N "(cached) $ECHO_C" >&6
7871 else
7872 if test "$ac_cv_type_char" = yes; then
7873 # The cast to unsigned long works around a bug in the HP C Compiler
7874 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7875 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7876 # This bug is HP SR number 8606223364.
7877 if test "$cross_compiling" = yes; then
7878 # Depending upon the size, compute the lo and hi bounds.
7879 cat >conftest.$ac_ext <<_ACEOF
7880 /* confdefs.h. */
7881 _ACEOF
7882 cat confdefs.h >>conftest.$ac_ext
7883 cat >>conftest.$ac_ext <<_ACEOF
7884 /* end confdefs.h. */
7885 $ac_includes_default
7887 main ()
7889 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
7890 test_array [0] = 0
7893 return 0;
7895 _ACEOF
7896 rm -f conftest.$ac_objext
7897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7898 (eval $ac_compile) 2>conftest.er1
7899 ac_status=$?
7900 grep -v '^ *+' conftest.er1 >conftest.err
7901 rm -f conftest.er1
7902 cat conftest.err >&5
7903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904 (exit $ac_status); } &&
7905 { ac_try='test -z "$ac_c_werror_flag"
7906 || test ! -s conftest.err'
7907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7908 (eval $ac_try) 2>&5
7909 ac_status=$?
7910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911 (exit $ac_status); }; } &&
7912 { ac_try='test -s conftest.$ac_objext'
7913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7914 (eval $ac_try) 2>&5
7915 ac_status=$?
7916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7917 (exit $ac_status); }; }; then
7918 ac_lo=0 ac_mid=0
7919 while :; do
7920 cat >conftest.$ac_ext <<_ACEOF
7921 /* confdefs.h. */
7922 _ACEOF
7923 cat confdefs.h >>conftest.$ac_ext
7924 cat >>conftest.$ac_ext <<_ACEOF
7925 /* end confdefs.h. */
7926 $ac_includes_default
7928 main ()
7930 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
7931 test_array [0] = 0
7934 return 0;
7936 _ACEOF
7937 rm -f conftest.$ac_objext
7938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7939 (eval $ac_compile) 2>conftest.er1
7940 ac_status=$?
7941 grep -v '^ *+' conftest.er1 >conftest.err
7942 rm -f conftest.er1
7943 cat conftest.err >&5
7944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945 (exit $ac_status); } &&
7946 { ac_try='test -z "$ac_c_werror_flag"
7947 || test ! -s conftest.err'
7948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7949 (eval $ac_try) 2>&5
7950 ac_status=$?
7951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952 (exit $ac_status); }; } &&
7953 { ac_try='test -s conftest.$ac_objext'
7954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7955 (eval $ac_try) 2>&5
7956 ac_status=$?
7957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7958 (exit $ac_status); }; }; then
7959 ac_hi=$ac_mid; break
7960 else
7961 echo "$as_me: failed program was:" >&5
7962 sed 's/^/| /' conftest.$ac_ext >&5
7964 ac_lo=`expr $ac_mid + 1`
7965 if test $ac_lo -le $ac_mid; then
7966 ac_lo= ac_hi=
7967 break
7969 ac_mid=`expr 2 '*' $ac_mid + 1`
7971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7972 done
7973 else
7974 echo "$as_me: failed program was:" >&5
7975 sed 's/^/| /' conftest.$ac_ext >&5
7977 cat >conftest.$ac_ext <<_ACEOF
7978 /* confdefs.h. */
7979 _ACEOF
7980 cat confdefs.h >>conftest.$ac_ext
7981 cat >>conftest.$ac_ext <<_ACEOF
7982 /* end confdefs.h. */
7983 $ac_includes_default
7985 main ()
7987 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
7988 test_array [0] = 0
7991 return 0;
7993 _ACEOF
7994 rm -f conftest.$ac_objext
7995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7996 (eval $ac_compile) 2>conftest.er1
7997 ac_status=$?
7998 grep -v '^ *+' conftest.er1 >conftest.err
7999 rm -f conftest.er1
8000 cat conftest.err >&5
8001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8002 (exit $ac_status); } &&
8003 { ac_try='test -z "$ac_c_werror_flag"
8004 || test ! -s conftest.err'
8005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8006 (eval $ac_try) 2>&5
8007 ac_status=$?
8008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8009 (exit $ac_status); }; } &&
8010 { ac_try='test -s conftest.$ac_objext'
8011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8012 (eval $ac_try) 2>&5
8013 ac_status=$?
8014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015 (exit $ac_status); }; }; then
8016 ac_hi=-1 ac_mid=-1
8017 while :; do
8018 cat >conftest.$ac_ext <<_ACEOF
8019 /* confdefs.h. */
8020 _ACEOF
8021 cat confdefs.h >>conftest.$ac_ext
8022 cat >>conftest.$ac_ext <<_ACEOF
8023 /* end confdefs.h. */
8024 $ac_includes_default
8026 main ()
8028 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
8029 test_array [0] = 0
8032 return 0;
8034 _ACEOF
8035 rm -f conftest.$ac_objext
8036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8037 (eval $ac_compile) 2>conftest.er1
8038 ac_status=$?
8039 grep -v '^ *+' conftest.er1 >conftest.err
8040 rm -f conftest.er1
8041 cat conftest.err >&5
8042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8043 (exit $ac_status); } &&
8044 { ac_try='test -z "$ac_c_werror_flag"
8045 || test ! -s conftest.err'
8046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8047 (eval $ac_try) 2>&5
8048 ac_status=$?
8049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8050 (exit $ac_status); }; } &&
8051 { ac_try='test -s conftest.$ac_objext'
8052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8053 (eval $ac_try) 2>&5
8054 ac_status=$?
8055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8056 (exit $ac_status); }; }; then
8057 ac_lo=$ac_mid; break
8058 else
8059 echo "$as_me: failed program was:" >&5
8060 sed 's/^/| /' conftest.$ac_ext >&5
8062 ac_hi=`expr '(' $ac_mid ')' - 1`
8063 if test $ac_mid -le $ac_hi; then
8064 ac_lo= ac_hi=
8065 break
8067 ac_mid=`expr 2 '*' $ac_mid`
8069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8070 done
8071 else
8072 echo "$as_me: failed program was:" >&5
8073 sed 's/^/| /' conftest.$ac_ext >&5
8075 ac_lo= ac_hi=
8077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8080 # Binary search between lo and hi bounds.
8081 while test "x$ac_lo" != "x$ac_hi"; do
8082 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8083 cat >conftest.$ac_ext <<_ACEOF
8084 /* confdefs.h. */
8085 _ACEOF
8086 cat confdefs.h >>conftest.$ac_ext
8087 cat >>conftest.$ac_ext <<_ACEOF
8088 /* end confdefs.h. */
8089 $ac_includes_default
8091 main ()
8093 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
8094 test_array [0] = 0
8097 return 0;
8099 _ACEOF
8100 rm -f conftest.$ac_objext
8101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8102 (eval $ac_compile) 2>conftest.er1
8103 ac_status=$?
8104 grep -v '^ *+' conftest.er1 >conftest.err
8105 rm -f conftest.er1
8106 cat conftest.err >&5
8107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8108 (exit $ac_status); } &&
8109 { ac_try='test -z "$ac_c_werror_flag"
8110 || test ! -s conftest.err'
8111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8112 (eval $ac_try) 2>&5
8113 ac_status=$?
8114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8115 (exit $ac_status); }; } &&
8116 { ac_try='test -s conftest.$ac_objext'
8117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8118 (eval $ac_try) 2>&5
8119 ac_status=$?
8120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121 (exit $ac_status); }; }; then
8122 ac_hi=$ac_mid
8123 else
8124 echo "$as_me: failed program was:" >&5
8125 sed 's/^/| /' conftest.$ac_ext >&5
8127 ac_lo=`expr '(' $ac_mid ')' + 1`
8129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8130 done
8131 case $ac_lo in
8132 ?*) ac_cv_sizeof_char=$ac_lo;;
8133 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
8134 See \`config.log' for more details." >&5
8135 echo "$as_me: error: cannot compute sizeof (char), 77
8136 See \`config.log' for more details." >&2;}
8137 { (exit 1); exit 1; }; } ;;
8138 esac
8139 else
8140 if test "$cross_compiling" = yes; then
8141 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8142 See \`config.log' for more details." >&5
8143 echo "$as_me: error: cannot run test program while cross compiling
8144 See \`config.log' for more details." >&2;}
8145 { (exit 1); exit 1; }; }
8146 else
8147 cat >conftest.$ac_ext <<_ACEOF
8148 /* confdefs.h. */
8149 _ACEOF
8150 cat confdefs.h >>conftest.$ac_ext
8151 cat >>conftest.$ac_ext <<_ACEOF
8152 /* end confdefs.h. */
8153 $ac_includes_default
8154 long longval () { return (long) (sizeof (char)); }
8155 unsigned long ulongval () { return (long) (sizeof (char)); }
8156 #include <stdio.h>
8157 #include <stdlib.h>
8159 main ()
8162 FILE *f = fopen ("conftest.val", "w");
8163 if (! f)
8164 exit (1);
8165 if (((long) (sizeof (char))) < 0)
8167 long i = longval ();
8168 if (i != ((long) (sizeof (char))))
8169 exit (1);
8170 fprintf (f, "%ld\n", i);
8172 else
8174 unsigned long i = ulongval ();
8175 if (i != ((long) (sizeof (char))))
8176 exit (1);
8177 fprintf (f, "%lu\n", i);
8179 exit (ferror (f) || fclose (f) != 0);
8182 return 0;
8184 _ACEOF
8185 rm -f conftest$ac_exeext
8186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8187 (eval $ac_link) 2>&5
8188 ac_status=$?
8189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8192 (eval $ac_try) 2>&5
8193 ac_status=$?
8194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8195 (exit $ac_status); }; }; then
8196 ac_cv_sizeof_char=`cat conftest.val`
8197 else
8198 echo "$as_me: program exited with status $ac_status" >&5
8199 echo "$as_me: failed program was:" >&5
8200 sed 's/^/| /' conftest.$ac_ext >&5
8202 ( exit $ac_status )
8203 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
8204 See \`config.log' for more details." >&5
8205 echo "$as_me: error: cannot compute sizeof (char), 77
8206 See \`config.log' for more details." >&2;}
8207 { (exit 1); exit 1; }; }
8209 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8212 rm -f conftest.val
8213 else
8214 ac_cv_sizeof_char=0
8217 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
8218 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
8219 cat >>confdefs.h <<_ACEOF
8220 #define SIZEOF_CHAR $ac_cv_sizeof_char
8221 _ACEOF
8225 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
8226 echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
8227 case "$ac_cv_sizeof_char" in
8228 1) acx_cv_type_int8_t=char ;;
8229 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
8230 echo "$as_me: error: no 8-bit type" >&2;}
8231 { (exit please report a bug); exit please report a bug; }; }
8232 esac
8233 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
8234 echo "${ECHO_T}$acx_cv_type_int8_t" >&6
8236 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
8237 echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
8238 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
8239 2:*) acx_cv_type_int16_t=int ;;
8240 *:2) acx_cv_type_int16_t=short ;;
8241 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
8242 echo "$as_me: error: no 16-bit type" >&2;}
8243 { (exit please report a bug); exit please report a bug; }; }
8244 esac
8245 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
8246 echo "${ECHO_T}$acx_cv_type_int16_t" >&6
8248 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
8249 echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
8250 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
8251 4:*) acx_cv_type_int32_t=int ;;
8252 *:4) acx_cv_type_int32_t=long ;;
8253 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
8254 echo "$as_me: error: no 32-bit type" >&2;}
8255 { (exit please report a bug); exit please report a bug; }; }
8256 esac
8257 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
8258 echo "${ECHO_T}$acx_cv_type_int32_t" >&6
8261 # These tests are here to make the output prettier
8263 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
8264 case "$ac_cv_sizeof_long" in
8265 8) acx_cv_type_int64_t=long ;;
8266 esac
8267 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
8268 echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
8269 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
8270 echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
8273 # Now we can use the above types
8275 if test "$ac_cv_type_uintptr_t" != yes; then
8276 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
8277 echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
8278 case $ac_cv_sizeof_void_p in
8279 2) acx_cv_type_intptr_t=int16_t ;;
8280 4) acx_cv_type_intptr_t=int32_t ;;
8281 8) acx_cv_type_intptr_t=int64_t ;;
8282 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
8283 echo "$as_me: error: no equivalent for intptr_t" >&2;}
8284 { (exit please report a bug); exit please report a bug; }; }
8285 esac
8286 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
8287 echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
8290 # ----------------- done all checks, emit header -------------
8291 ac_config_commands="$ac_config_commands gstdint.h"
8296 # Check to see if -pthread or -lpthread is needed. Prefer the former.
8297 # In case the pthread.h system header is not found, this test will fail.
8298 XPCFLAGS=""
8299 CFLAGS="$CFLAGS -pthread"
8300 cat >conftest.$ac_ext <<_ACEOF
8301 /* confdefs.h. */
8302 _ACEOF
8303 cat confdefs.h >>conftest.$ac_ext
8304 cat >>conftest.$ac_ext <<_ACEOF
8305 /* end confdefs.h. */
8306 #include <pthread.h>
8307 void *g(void *d) { return NULL; }
8309 main ()
8311 pthread_t t; pthread_create(&t,NULL,g,NULL);
8313 return 0;
8315 _ACEOF
8316 rm -f conftest.$ac_objext conftest$ac_exeext
8317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8318 (eval $ac_link) 2>conftest.er1
8319 ac_status=$?
8320 grep -v '^ *+' conftest.er1 >conftest.err
8321 rm -f conftest.er1
8322 cat conftest.err >&5
8323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324 (exit $ac_status); } &&
8325 { ac_try='test -z "$ac_c_werror_flag"
8326 || test ! -s conftest.err'
8327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8328 (eval $ac_try) 2>&5
8329 ac_status=$?
8330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331 (exit $ac_status); }; } &&
8332 { ac_try='test -s conftest$ac_exeext'
8333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8334 (eval $ac_try) 2>&5
8335 ac_status=$?
8336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337 (exit $ac_status); }; }; then
8338 XPCFLAGS=" -Wc,-pthread"
8339 else
8340 echo "$as_me: failed program was:" >&5
8341 sed 's/^/| /' conftest.$ac_ext >&5
8343 CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
8344 cat >conftest.$ac_ext <<_ACEOF
8345 /* confdefs.h. */
8346 _ACEOF
8347 cat confdefs.h >>conftest.$ac_ext
8348 cat >>conftest.$ac_ext <<_ACEOF
8349 /* end confdefs.h. */
8350 #include <pthread.h>
8351 void *g(void *d) { return NULL; }
8353 main ()
8355 pthread_t t; pthread_create(&t,NULL,g,NULL);
8357 return 0;
8359 _ACEOF
8360 rm -f conftest.$ac_objext conftest$ac_exeext
8361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8362 (eval $ac_link) 2>conftest.er1
8363 ac_status=$?
8364 grep -v '^ *+' conftest.er1 >conftest.err
8365 rm -f conftest.er1
8366 cat conftest.err >&5
8367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8368 (exit $ac_status); } &&
8369 { ac_try='test -z "$ac_c_werror_flag"
8370 || test ! -s conftest.err'
8371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8372 (eval $ac_try) 2>&5
8373 ac_status=$?
8374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375 (exit $ac_status); }; } &&
8376 { ac_try='test -s conftest$ac_exeext'
8377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8378 (eval $ac_try) 2>&5
8379 ac_status=$?
8380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381 (exit $ac_status); }; }; then
8383 else
8384 echo "$as_me: failed program was:" >&5
8385 sed 's/^/| /' conftest.$ac_ext >&5
8387 { { echo "$as_me:$LINENO: error: Pthreads are required to build libgomp" >&5
8388 echo "$as_me: error: Pthreads are required to build libgomp" >&2;}
8389 { (exit 1); exit 1; }; }
8391 rm -f conftest.err conftest.$ac_objext \
8392 conftest$ac_exeext conftest.$ac_ext
8394 rm -f conftest.err conftest.$ac_objext \
8395 conftest$ac_exeext conftest.$ac_ext
8397 # Check for functions needed.
8400 for ac_func in getloadavg clock_gettime
8402 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8403 echo "$as_me:$LINENO: checking for $ac_func" >&5
8404 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8405 if eval "test \"\${$as_ac_var+set}\" = set"; then
8406 echo $ECHO_N "(cached) $ECHO_C" >&6
8407 else
8408 cat >conftest.$ac_ext <<_ACEOF
8409 /* confdefs.h. */
8410 _ACEOF
8411 cat confdefs.h >>conftest.$ac_ext
8412 cat >>conftest.$ac_ext <<_ACEOF
8413 /* end confdefs.h. */
8414 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8415 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8416 #define $ac_func innocuous_$ac_func
8418 /* System header to define __stub macros and hopefully few prototypes,
8419 which can conflict with char $ac_func (); below.
8420 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8421 <limits.h> exists even on freestanding compilers. */
8423 #ifdef __STDC__
8424 # include <limits.h>
8425 #else
8426 # include <assert.h>
8427 #endif
8429 #undef $ac_func
8431 /* Override any gcc2 internal prototype to avoid an error. */
8432 #ifdef __cplusplus
8433 extern "C"
8435 #endif
8436 /* We use char because int might match the return type of a gcc2
8437 builtin and then its argument prototype would still apply. */
8438 char $ac_func ();
8439 /* The GNU C library defines this for functions which it implements
8440 to always fail with ENOSYS. Some functions are actually named
8441 something starting with __ and the normal name is an alias. */
8442 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8443 choke me
8444 #else
8445 char (*f) () = $ac_func;
8446 #endif
8447 #ifdef __cplusplus
8449 #endif
8452 main ()
8454 return f != $ac_func;
8456 return 0;
8458 _ACEOF
8459 rm -f conftest.$ac_objext conftest$ac_exeext
8460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8461 (eval $ac_link) 2>conftest.er1
8462 ac_status=$?
8463 grep -v '^ *+' conftest.er1 >conftest.err
8464 rm -f conftest.er1
8465 cat conftest.err >&5
8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 (exit $ac_status); } &&
8468 { ac_try='test -z "$ac_c_werror_flag"
8469 || test ! -s conftest.err'
8470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8471 (eval $ac_try) 2>&5
8472 ac_status=$?
8473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474 (exit $ac_status); }; } &&
8475 { ac_try='test -s conftest$ac_exeext'
8476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8477 (eval $ac_try) 2>&5
8478 ac_status=$?
8479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8480 (exit $ac_status); }; }; then
8481 eval "$as_ac_var=yes"
8482 else
8483 echo "$as_me: failed program was:" >&5
8484 sed 's/^/| /' conftest.$ac_ext >&5
8486 eval "$as_ac_var=no"
8488 rm -f conftest.err conftest.$ac_objext \
8489 conftest$ac_exeext conftest.$ac_ext
8491 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8492 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8493 if test `eval echo '${'$as_ac_var'}'` = yes; then
8494 cat >>confdefs.h <<_ACEOF
8495 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8496 _ACEOF
8499 done
8502 # Check for broken semaphore implementation on darwin.
8503 # sem_init returns: sem_init error: Function not implemented.
8504 case "$host" in
8505 *-darwin*)
8507 cat >>confdefs.h <<\_ACEOF
8508 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
8509 _ACEOF
8512 *-linux*)
8513 case "$enable_linux_futex" in
8514 default)
8515 # If headers don't have gettid/futex syscalls definition, then
8516 # default to no, otherwise there will be compile time failures.
8517 # Otherwise, default to yes. If we don't detect we are
8518 # compiled/linked against NPTL and not cross-compiling, check
8519 # if programs are run by default against NPTL and if not, issue
8520 # a warning.
8521 enable_linux_futex=no
8522 cat >conftest.$ac_ext <<_ACEOF
8523 /* confdefs.h. */
8524 _ACEOF
8525 cat confdefs.h >>conftest.$ac_ext
8526 cat >>conftest.$ac_ext <<_ACEOF
8527 /* end confdefs.h. */
8528 #include <sys/syscall.h>
8529 int lk;
8531 main ()
8533 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
8535 return 0;
8537 _ACEOF
8538 rm -f conftest.$ac_objext conftest$ac_exeext
8539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8540 (eval $ac_link) 2>conftest.er1
8541 ac_status=$?
8542 grep -v '^ *+' conftest.er1 >conftest.err
8543 rm -f conftest.er1
8544 cat conftest.err >&5
8545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546 (exit $ac_status); } &&
8547 { ac_try='test -z "$ac_c_werror_flag"
8548 || test ! -s conftest.err'
8549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8550 (eval $ac_try) 2>&5
8551 ac_status=$?
8552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553 (exit $ac_status); }; } &&
8554 { ac_try='test -s conftest$ac_exeext'
8555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8556 (eval $ac_try) 2>&5
8557 ac_status=$?
8558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559 (exit $ac_status); }; }; then
8560 cat >conftest.$ac_ext <<_ACEOF
8561 /* confdefs.h. */
8562 _ACEOF
8563 cat confdefs.h >>conftest.$ac_ext
8564 cat >>conftest.$ac_ext <<_ACEOF
8565 /* end confdefs.h. */
8566 #ifndef _GNU_SOURCE
8567 #define _GNU_SOURCE 1
8568 #endif
8569 #include <pthread.h>
8570 pthread_t th; void *status;
8572 main ()
8574 pthread_tryjoin_np (th, &status);
8576 return 0;
8578 _ACEOF
8579 rm -f conftest.$ac_objext conftest$ac_exeext
8580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8581 (eval $ac_link) 2>conftest.er1
8582 ac_status=$?
8583 grep -v '^ *+' conftest.er1 >conftest.err
8584 rm -f conftest.er1
8585 cat conftest.err >&5
8586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587 (exit $ac_status); } &&
8588 { ac_try='test -z "$ac_c_werror_flag"
8589 || test ! -s conftest.err'
8590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8591 (eval $ac_try) 2>&5
8592 ac_status=$?
8593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8594 (exit $ac_status); }; } &&
8595 { ac_try='test -s conftest$ac_exeext'
8596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8597 (eval $ac_try) 2>&5
8598 ac_status=$?
8599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600 (exit $ac_status); }; }; then
8601 enable_linux_futex=yes
8602 else
8603 echo "$as_me: failed program was:" >&5
8604 sed 's/^/| /' conftest.$ac_ext >&5
8606 if test x$cross_compiling = xno; then
8607 if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
8608 | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then
8609 { echo "$as_me:$LINENO: WARNING: The kernel might not support futex or gettid syscalls.
8610 If so, please configure with --disable-linux-futex" >&5
8611 echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
8612 If so, please configure with --disable-linux-futex" >&2;}
8615 enable_linux_futex=yes
8617 rm -f conftest.err conftest.$ac_objext \
8618 conftest$ac_exeext conftest.$ac_ext
8619 else
8620 echo "$as_me: failed program was:" >&5
8621 sed 's/^/| /' conftest.$ac_ext >&5
8624 rm -f conftest.err conftest.$ac_objext \
8625 conftest$ac_exeext conftest.$ac_ext
8627 yes)
8628 cat >conftest.$ac_ext <<_ACEOF
8629 /* confdefs.h. */
8630 _ACEOF
8631 cat confdefs.h >>conftest.$ac_ext
8632 cat >>conftest.$ac_ext <<_ACEOF
8633 /* end confdefs.h. */
8634 #include <sys/syscall.h>
8635 int lk;
8637 main ()
8639 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
8641 return 0;
8643 _ACEOF
8644 rm -f conftest.$ac_objext conftest$ac_exeext
8645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8646 (eval $ac_link) 2>conftest.er1
8647 ac_status=$?
8648 grep -v '^ *+' conftest.er1 >conftest.err
8649 rm -f conftest.er1
8650 cat conftest.err >&5
8651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652 (exit $ac_status); } &&
8653 { ac_try='test -z "$ac_c_werror_flag"
8654 || test ! -s conftest.err'
8655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8656 (eval $ac_try) 2>&5
8657 ac_status=$?
8658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659 (exit $ac_status); }; } &&
8660 { ac_try='test -s conftest$ac_exeext'
8661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8662 (eval $ac_try) 2>&5
8663 ac_status=$?
8664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8665 (exit $ac_status); }; }; then
8667 else
8668 echo "$as_me: failed program was:" >&5
8669 sed 's/^/| /' conftest.$ac_ext >&5
8671 { { echo "$as_me:$LINENO: error: SYS_gettid and SYS_futex required for --enable-linux-futex" >&5
8672 echo "$as_me: error: SYS_gettid and SYS_futex required for --enable-linux-futex" >&2;}
8673 { (exit 1); exit 1; }; }
8675 rm -f conftest.err conftest.$ac_objext \
8676 conftest$ac_exeext conftest.$ac_ext
8678 esac
8680 esac
8682 # At least for glibc, clock_gettime is in librt. But don't pull that
8683 # in if it still doesn't give us the function we want.
8684 if test $ac_cv_func_clock_gettime = no; then
8685 echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
8686 echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
8687 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
8688 echo $ECHO_N "(cached) $ECHO_C" >&6
8689 else
8690 ac_check_lib_save_LIBS=$LIBS
8691 LIBS="-lrt $LIBS"
8692 cat >conftest.$ac_ext <<_ACEOF
8693 /* confdefs.h. */
8694 _ACEOF
8695 cat confdefs.h >>conftest.$ac_ext
8696 cat >>conftest.$ac_ext <<_ACEOF
8697 /* end confdefs.h. */
8699 /* Override any gcc2 internal prototype to avoid an error. */
8700 #ifdef __cplusplus
8701 extern "C"
8702 #endif
8703 /* We use char because int might match the return type of a gcc2
8704 builtin and then its argument prototype would still apply. */
8705 char clock_gettime ();
8707 main ()
8709 clock_gettime ();
8711 return 0;
8713 _ACEOF
8714 rm -f conftest.$ac_objext conftest$ac_exeext
8715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8716 (eval $ac_link) 2>conftest.er1
8717 ac_status=$?
8718 grep -v '^ *+' conftest.er1 >conftest.err
8719 rm -f conftest.er1
8720 cat conftest.err >&5
8721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722 (exit $ac_status); } &&
8723 { ac_try='test -z "$ac_c_werror_flag"
8724 || test ! -s conftest.err'
8725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8726 (eval $ac_try) 2>&5
8727 ac_status=$?
8728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729 (exit $ac_status); }; } &&
8730 { ac_try='test -s conftest$ac_exeext'
8731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8732 (eval $ac_try) 2>&5
8733 ac_status=$?
8734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735 (exit $ac_status); }; }; then
8736 ac_cv_lib_rt_clock_gettime=yes
8737 else
8738 echo "$as_me: failed program was:" >&5
8739 sed 's/^/| /' conftest.$ac_ext >&5
8741 ac_cv_lib_rt_clock_gettime=no
8743 rm -f conftest.err conftest.$ac_objext \
8744 conftest$ac_exeext conftest.$ac_ext
8745 LIBS=$ac_check_lib_save_LIBS
8747 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
8748 echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
8749 if test $ac_cv_lib_rt_clock_gettime = yes; then
8750 LIBS="-lrt $LIBS"
8751 cat >>confdefs.h <<\_ACEOF
8752 #define HAVE_CLOCK_GETTIME Define to 1 if you have the `clock_gettime' function.
8753 _ACEOF
8759 # See if we support thread-local storage.
8761 # Check whether --enable-tls or --disable-tls was given.
8762 if test "${enable_tls+set}" = set; then
8763 enableval="$enable_tls"
8765 case "$enableval" in
8766 yes|no) ;;
8767 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
8768 echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
8769 { (exit 1); exit 1; }; } ;;
8770 esac
8772 else
8773 enable_tls=yes
8776 echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
8777 echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
8778 if test "${have_tls+set}" = set; then
8779 echo $ECHO_N "(cached) $ECHO_C" >&6
8780 else
8782 if test "$cross_compiling" = yes; then
8783 cat >conftest.$ac_ext <<_ACEOF
8784 __thread int foo;
8785 _ACEOF
8786 rm -f conftest.$ac_objext
8787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8788 (eval $ac_compile) 2>conftest.er1
8789 ac_status=$?
8790 grep -v '^ *+' conftest.er1 >conftest.err
8791 rm -f conftest.er1
8792 cat conftest.err >&5
8793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8794 (exit $ac_status); } &&
8795 { ac_try='test -z "$ac_c_werror_flag"
8796 || test ! -s conftest.err'
8797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8798 (eval $ac_try) 2>&5
8799 ac_status=$?
8800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8801 (exit $ac_status); }; } &&
8802 { ac_try='test -s conftest.$ac_objext'
8803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8804 (eval $ac_try) 2>&5
8805 ac_status=$?
8806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807 (exit $ac_status); }; }; then
8808 have_tls=yes
8809 else
8810 echo "$as_me: failed program was:" >&5
8811 sed 's/^/| /' conftest.$ac_ext >&5
8813 have_tls=no
8815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8817 else
8818 cat >conftest.$ac_ext <<_ACEOF
8819 __thread int a; int b; int main() { return a = b; }
8820 _ACEOF
8821 rm -f conftest$ac_exeext
8822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8823 (eval $ac_link) 2>&5
8824 ac_status=$?
8825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8826 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8828 (eval $ac_try) 2>&5
8829 ac_status=$?
8830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831 (exit $ac_status); }; }; then
8832 save_LDFLAGS="$LDFLAGS"
8833 LDFLAGS="-static $LDFLAGS"
8834 if test "$cross_compiling" = yes; then
8835 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8836 See \`config.log' for more details." >&5
8837 echo "$as_me: error: cannot run test program while cross compiling
8838 See \`config.log' for more details." >&2;}
8839 { (exit 1); exit 1; }; }
8840 else
8841 cat >conftest.$ac_ext <<_ACEOF
8842 __thread int a; int b; int main() { return a = b; }
8843 _ACEOF
8844 rm -f conftest$ac_exeext
8845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8846 (eval $ac_link) 2>&5
8847 ac_status=$?
8848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8849 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8851 (eval $ac_try) 2>&5
8852 ac_status=$?
8853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8854 (exit $ac_status); }; }; then
8855 have_tls=yes
8856 else
8857 echo "$as_me: program exited with status $ac_status" >&5
8858 echo "$as_me: failed program was:" >&5
8859 sed 's/^/| /' conftest.$ac_ext >&5
8861 ( exit $ac_status )
8862 have_tls=no
8864 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8866 LDFLAGS="$save_LDFLAGS"
8867 else
8868 echo "$as_me: program exited with status $ac_status" >&5
8869 echo "$as_me: failed program was:" >&5
8870 sed 's/^/| /' conftest.$ac_ext >&5
8872 ( exit $ac_status )
8873 have_tls=no
8875 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8878 echo "$as_me:$LINENO: result: $have_tls" >&5
8879 echo "${ECHO_T}$have_tls" >&6
8880 if test "$enable_tls $have_tls" = "yes yes"; then
8882 cat >>confdefs.h <<\_ACEOF
8883 #define HAVE_TLS 1
8884 _ACEOF
8888 # See what sort of export controls are availible.
8890 echo "$as_me:$LINENO: checking whether the target supports hidden visibility" >&5
8891 echo $ECHO_N "checking whether the target supports hidden visibility... $ECHO_C" >&6
8892 if test "${have_attribute_visibility+set}" = set; then
8893 echo $ECHO_N "(cached) $ECHO_C" >&6
8894 else
8896 save_CFLAGS="$CFLAGS"
8897 CFLAGS="$CFLAGS -Werror"
8898 cat >conftest.$ac_ext <<_ACEOF
8899 /* confdefs.h. */
8900 _ACEOF
8901 cat confdefs.h >>conftest.$ac_ext
8902 cat >>conftest.$ac_ext <<_ACEOF
8903 /* end confdefs.h. */
8904 void __attribute__((visibility("hidden"))) foo(void) { }
8906 main ()
8910 return 0;
8912 _ACEOF
8913 rm -f conftest.$ac_objext
8914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8915 (eval $ac_compile) 2>conftest.er1
8916 ac_status=$?
8917 grep -v '^ *+' conftest.er1 >conftest.err
8918 rm -f conftest.er1
8919 cat conftest.err >&5
8920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8921 (exit $ac_status); } &&
8922 { ac_try='test -z "$ac_c_werror_flag"
8923 || test ! -s conftest.err'
8924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8925 (eval $ac_try) 2>&5
8926 ac_status=$?
8927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928 (exit $ac_status); }; } &&
8929 { ac_try='test -s conftest.$ac_objext'
8930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8931 (eval $ac_try) 2>&5
8932 ac_status=$?
8933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8934 (exit $ac_status); }; }; then
8935 have_attribute_visibility=yes
8936 else
8937 echo "$as_me: failed program was:" >&5
8938 sed 's/^/| /' conftest.$ac_ext >&5
8940 have_attribute_visibility=no
8942 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8943 CFLAGS="$save_CFLAGS"
8945 echo "$as_me:$LINENO: result: $have_attribute_visibility" >&5
8946 echo "${ECHO_T}$have_attribute_visibility" >&6
8947 if test $have_attribute_visibility = yes; then
8949 cat >>confdefs.h <<\_ACEOF
8950 #define HAVE_ATTRIBUTE_VISIBILITY 1
8951 _ACEOF
8955 echo "$as_me:$LINENO: checking whether the target supports dllexport" >&5
8956 echo $ECHO_N "checking whether the target supports dllexport... $ECHO_C" >&6
8957 if test "${have_attribute_dllexport+set}" = set; then
8958 echo $ECHO_N "(cached) $ECHO_C" >&6
8959 else
8961 save_CFLAGS="$CFLAGS"
8962 CFLAGS="$CFLAGS -Werror"
8963 cat >conftest.$ac_ext <<_ACEOF
8964 /* confdefs.h. */
8965 _ACEOF
8966 cat confdefs.h >>conftest.$ac_ext
8967 cat >>conftest.$ac_ext <<_ACEOF
8968 /* end confdefs.h. */
8969 void __attribute__((dllexport)) foo(void) { }
8971 main ()
8975 return 0;
8977 _ACEOF
8978 rm -f conftest.$ac_objext
8979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8980 (eval $ac_compile) 2>conftest.er1
8981 ac_status=$?
8982 grep -v '^ *+' conftest.er1 >conftest.err
8983 rm -f conftest.er1
8984 cat conftest.err >&5
8985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8986 (exit $ac_status); } &&
8987 { ac_try='test -z "$ac_c_werror_flag"
8988 || test ! -s conftest.err'
8989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8990 (eval $ac_try) 2>&5
8991 ac_status=$?
8992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8993 (exit $ac_status); }; } &&
8994 { ac_try='test -s conftest.$ac_objext'
8995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8996 (eval $ac_try) 2>&5
8997 ac_status=$?
8998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8999 (exit $ac_status); }; }; then
9000 have_attribute_dllexport=yes
9001 else
9002 echo "$as_me: failed program was:" >&5
9003 sed 's/^/| /' conftest.$ac_ext >&5
9005 have_attribute_dllexport=no
9007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9008 CFLAGS="$save_CFLAGS"
9010 echo "$as_me:$LINENO: result: $have_attribute_dllexport" >&5
9011 echo "${ECHO_T}$have_attribute_dllexport" >&6
9012 if test $have_attribute_dllexport = yes; then
9014 cat >>confdefs.h <<\_ACEOF
9015 #define HAVE_ATTRIBUTE_DLLEXPORT 1
9016 _ACEOF
9020 echo "$as_me:$LINENO: checking whether the target supports symbol aliases" >&5
9021 echo $ECHO_N "checking whether the target supports symbol aliases... $ECHO_C" >&6
9022 if test "${have_attribute_alias+set}" = set; then
9023 echo $ECHO_N "(cached) $ECHO_C" >&6
9024 else
9026 cat >conftest.$ac_ext <<_ACEOF
9027 /* confdefs.h. */
9028 _ACEOF
9029 cat confdefs.h >>conftest.$ac_ext
9030 cat >>conftest.$ac_ext <<_ACEOF
9031 /* end confdefs.h. */
9033 #define ULP STR1(__USER_LABEL_PREFIX__)
9034 #define STR1(x) STR2(x)
9035 #define STR2(x) #x
9036 void foo(void) { }
9037 extern void bar(void) __attribute__((alias(ULP "foo")));
9039 main ()
9041 bar();
9043 return 0;
9045 _ACEOF
9046 rm -f conftest.$ac_objext conftest$ac_exeext
9047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9048 (eval $ac_link) 2>conftest.er1
9049 ac_status=$?
9050 grep -v '^ *+' conftest.er1 >conftest.err
9051 rm -f conftest.er1
9052 cat conftest.err >&5
9053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9054 (exit $ac_status); } &&
9055 { ac_try='test -z "$ac_c_werror_flag"
9056 || test ! -s conftest.err'
9057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9058 (eval $ac_try) 2>&5
9059 ac_status=$?
9060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9061 (exit $ac_status); }; } &&
9062 { ac_try='test -s conftest$ac_exeext'
9063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9064 (eval $ac_try) 2>&5
9065 ac_status=$?
9066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067 (exit $ac_status); }; }; then
9068 have_attribute_alias=yes
9069 else
9070 echo "$as_me: failed program was:" >&5
9071 sed 's/^/| /' conftest.$ac_ext >&5
9073 have_attribute_alias=no
9075 rm -f conftest.err conftest.$ac_objext \
9076 conftest$ac_exeext conftest.$ac_ext
9078 echo "$as_me:$LINENO: result: $have_attribute_alias" >&5
9079 echo "${ECHO_T}$have_attribute_alias" >&6
9080 if test $have_attribute_alias = yes; then
9082 cat >>confdefs.h <<\_ACEOF
9083 #define HAVE_ATTRIBUTE_ALIAS 1
9084 _ACEOF
9088 # If we're not using GNU ld, then there's no point in even trying these
9089 # tests. Check for that first. We should have already tested for gld
9090 # by now (in libtool), but require it now just to be safe...
9091 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
9092 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
9096 # The name set by libtool depends on the version of libtool. Shame on us
9097 # for depending on an impl detail, but c'est la vie. Older versions used
9098 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
9099 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
9100 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
9101 # set (hence we're using an older libtool), then set it.
9102 if test x${with_gnu_ld+set} != xset; then
9103 if test x${ac_cv_prog_gnu_ld+set} != xset; then
9104 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
9105 with_gnu_ld=no
9106 else
9107 with_gnu_ld=$ac_cv_prog_gnu_ld
9111 # Start by getting the version number. I think the libtool test already
9112 # does some of this, but throws away the result.
9114 ldver=`$LD --version 2>/dev/null | head -1 | \
9115 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
9117 libgomp_gnu_ld_version=`echo $ldver | \
9118 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
9120 # Set --gc-sections.
9121 if test "$with_gnu_ld" = "notbroken"; then
9122 # GNU ld it is! Joy and bunny rabbits!
9124 # All these tests are for C++; save the language and the compiler flags.
9125 # Need to do this so that g++ won't try to link in libstdc++
9126 ac_test_CFLAGS="${CFLAGS+set}"
9127 ac_save_CFLAGS="$CFLAGS"
9128 CFLAGS='-x c++ -Wl,--gc-sections'
9130 # Check for -Wl,--gc-sections
9131 # XXX This test is broken at the moment, as symbols required for linking
9132 # are now in libsupc++ (not built yet). In addition, this test has
9133 # cored on solaris in the past. In addition, --gc-sections doesn't
9134 # really work at the moment (keeps on discarding used sections, first
9135 # .eh_frame and now some of the glibc sections for iconv).
9136 # Bzzzzt. Thanks for playing, maybe next time.
9137 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
9138 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
9139 if test "$cross_compiling" = yes; then
9140 ac_sectionLDflags=yes
9141 else
9142 cat >conftest.$ac_ext <<_ACEOF
9143 /* confdefs.h. */
9144 _ACEOF
9145 cat confdefs.h >>conftest.$ac_ext
9146 cat >>conftest.$ac_ext <<_ACEOF
9147 /* end confdefs.h. */
9149 int main(void)
9151 try { throw 1; }
9152 catch (...) { };
9153 return 0;
9156 _ACEOF
9157 rm -f conftest$ac_exeext
9158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9159 (eval $ac_link) 2>&5
9160 ac_status=$?
9161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9162 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9164 (eval $ac_try) 2>&5
9165 ac_status=$?
9166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9167 (exit $ac_status); }; }; then
9168 ac_sectionLDflags=yes
9169 else
9170 echo "$as_me: program exited with status $ac_status" >&5
9171 echo "$as_me: failed program was:" >&5
9172 sed 's/^/| /' conftest.$ac_ext >&5
9174 ( exit $ac_status )
9175 ac_sectionLDflags=no
9177 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9179 if test "$ac_test_CFLAGS" = set; then
9180 CFLAGS="$ac_save_CFLAGS"
9181 else
9182 # this is the suspicious part
9183 CFLAGS=''
9185 if test "$ac_sectionLDflags" = "yes"; then
9186 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
9188 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
9189 echo "${ECHO_T}$ac_sectionLDflags" >&6
9192 # Set linker optimization flags.
9193 if test x"$with_gnu_ld" = x"yes"; then
9194 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
9202 # Check whether --enable-symvers or --disable-symvers was given.
9203 if test "${enable_symvers+set}" = set; then
9204 enableval="$enable_symvers"
9206 case "$enableval" in
9207 yes|no|gnu) ;;
9208 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable symvers" >&5
9209 echo "$as_me: error: Unknown argument to enable/disable symvers" >&2;}
9210 { (exit 1); exit 1; }; } ;;
9211 esac
9213 else
9214 enable_symvers=yes
9218 # If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
9219 # don't know enough about $LD to do tricks...
9221 # FIXME The following test is too strict, in theory.
9222 if test $enable_shared = no ||
9223 test "x$LD" = x ||
9224 test x$libgomp_gnu_ld_version = x; then
9225 enable_symvers=no
9228 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
9229 if test $enable_symvers != no; then
9230 echo "$as_me:$LINENO: checking for shared libgcc" >&5
9231 echo $ECHO_N "checking for shared libgcc... $ECHO_C" >&6
9232 ac_save_CFLAGS="$CFLAGS"
9233 CFLAGS=' -lgcc_s'
9234 cat >conftest.$ac_ext <<_ACEOF
9235 /* confdefs.h. */
9236 _ACEOF
9237 cat confdefs.h >>conftest.$ac_ext
9238 cat >>conftest.$ac_ext <<_ACEOF
9239 /* end confdefs.h. */
9242 main ()
9244 return 0;
9246 return 0;
9248 _ACEOF
9249 rm -f conftest.$ac_objext conftest$ac_exeext
9250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9251 (eval $ac_link) 2>conftest.er1
9252 ac_status=$?
9253 grep -v '^ *+' conftest.er1 >conftest.err
9254 rm -f conftest.er1
9255 cat conftest.err >&5
9256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9257 (exit $ac_status); } &&
9258 { ac_try='test -z "$ac_c_werror_flag"
9259 || test ! -s conftest.err'
9260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9261 (eval $ac_try) 2>&5
9262 ac_status=$?
9263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9264 (exit $ac_status); }; } &&
9265 { ac_try='test -s conftest$ac_exeext'
9266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9267 (eval $ac_try) 2>&5
9268 ac_status=$?
9269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9270 (exit $ac_status); }; }; then
9271 libgomp_shared_libgcc=yes
9272 else
9273 echo "$as_me: failed program was:" >&5
9274 sed 's/^/| /' conftest.$ac_ext >&5
9276 libgomp_shared_libgcc=no
9278 rm -f conftest.err conftest.$ac_objext \
9279 conftest$ac_exeext conftest.$ac_ext
9280 CFLAGS="$ac_save_CFLAGS"
9281 if test $libgomp_shared_libgcc = no; then
9282 cat > conftest.c <<EOF
9283 int main (void) { return 0; }
9285 libgomp_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
9286 -shared -shared-libgcc -o conftest.so \
9287 conftest.c -v 2>&1 >/dev/null \
9288 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
9289 rm -f conftest.c conftest.so
9290 if test x${libgomp_libgcc_s_suffix+set} = xset; then
9291 CFLAGS=" -lgcc_s$libgomp_libgcc_s_suffix"
9292 cat >conftest.$ac_ext <<_ACEOF
9293 /* confdefs.h. */
9294 _ACEOF
9295 cat confdefs.h >>conftest.$ac_ext
9296 cat >>conftest.$ac_ext <<_ACEOF
9297 /* end confdefs.h. */
9300 main ()
9302 return 0;
9304 return 0;
9306 _ACEOF
9307 rm -f conftest.$ac_objext conftest$ac_exeext
9308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9309 (eval $ac_link) 2>conftest.er1
9310 ac_status=$?
9311 grep -v '^ *+' conftest.er1 >conftest.err
9312 rm -f conftest.er1
9313 cat conftest.err >&5
9314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9315 (exit $ac_status); } &&
9316 { ac_try='test -z "$ac_c_werror_flag"
9317 || test ! -s conftest.err'
9318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9319 (eval $ac_try) 2>&5
9320 ac_status=$?
9321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9322 (exit $ac_status); }; } &&
9323 { ac_try='test -s conftest$ac_exeext'
9324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9325 (eval $ac_try) 2>&5
9326 ac_status=$?
9327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9328 (exit $ac_status); }; }; then
9329 libgomp_shared_libgcc=yes
9330 else
9331 echo "$as_me: failed program was:" >&5
9332 sed 's/^/| /' conftest.$ac_ext >&5
9335 rm -f conftest.err conftest.$ac_objext \
9336 conftest$ac_exeext conftest.$ac_ext
9337 CFLAGS="$ac_save_CFLAGS"
9340 echo "$as_me:$LINENO: result: $libgomp_shared_libgcc" >&5
9341 echo "${ECHO_T}$libgomp_shared_libgcc" >&6
9344 # For GNU ld, we need at least this version. The format is described in
9345 # LIBGOMP_CHECK_LINKER_FEATURES above.
9346 libgomp_min_gnu_ld_version=21400
9347 # XXXXXXXXXXX libgomp_gnu_ld_version=21390
9349 # Check to see if unspecified "yes" value can win, given results above.
9350 # Change "yes" into either "no" or a style name.
9351 if test $enable_symvers = yes; then
9352 if test $with_gnu_ld = yes &&
9353 test $libgomp_shared_libgcc = yes;
9354 then
9355 if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
9356 enable_symvers=gnu
9357 else
9358 # The right tools, the right setup, but too old. Fallbacks?
9359 { echo "$as_me:$LINENO: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
9360 echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
9361 { echo "$as_me:$LINENO: WARNING: === full symbol versioning support in this release of GCC." >&5
9362 echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
9363 { echo "$as_me:$LINENO: WARNING: === You would need to upgrade your binutils to version" >&5
9364 echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
9365 { echo "$as_me:$LINENO: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
9366 echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
9367 if test $libgomp_gnu_ld_version -ge 21200 ; then
9368 # Globbing fix is present, proper block support is not.
9369 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
9370 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
9371 enable_symvers=no
9372 else
9373 # 2.11 or older.
9374 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
9375 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
9376 enable_symvers=no
9379 else
9380 # just fail for now
9381 { echo "$as_me:$LINENO: WARNING: === You have requested some kind of symbol versioning, but" >&5
9382 echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
9383 { echo "$as_me:$LINENO: WARNING: === either you are not using a supported linker, or you are" >&5
9384 echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
9385 { echo "$as_me:$LINENO: WARNING: === not building a shared libgcc_s (which is required)." >&5
9386 echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
9387 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
9388 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
9389 enable_symvers=no
9395 if test $enable_symvers != no; then
9396 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE=
9397 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE='#'
9398 else
9399 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='#'
9400 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE=
9403 { echo "$as_me:$LINENO: versioning on shared library symbols is $enable_symvers" >&5
9404 echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
9407 # Get target configury.
9408 . ${srcdir}/configure.tgt
9409 CFLAGS="$save_CFLAGS $XCFLAGS"
9411 # Check for __sync_val_compare_and_swap, but only after the target has
9412 # had a chance to set XCFLAGS.
9414 echo "$as_me:$LINENO: checking whether the target supports __sync_*_compare_and_swap" >&5
9415 echo $ECHO_N "checking whether the target supports __sync_*_compare_and_swap... $ECHO_C" >&6
9416 if test "${have_sync_builtins+set}" = set; then
9417 echo $ECHO_N "(cached) $ECHO_C" >&6
9418 else
9420 cat >conftest.$ac_ext <<_ACEOF
9421 /* confdefs.h. */
9422 _ACEOF
9423 cat confdefs.h >>conftest.$ac_ext
9424 cat >>conftest.$ac_ext <<_ACEOF
9425 /* end confdefs.h. */
9428 main ()
9430 int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
9432 return 0;
9434 _ACEOF
9435 rm -f conftest.$ac_objext conftest$ac_exeext
9436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9437 (eval $ac_link) 2>conftest.er1
9438 ac_status=$?
9439 grep -v '^ *+' conftest.er1 >conftest.err
9440 rm -f conftest.er1
9441 cat conftest.err >&5
9442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9443 (exit $ac_status); } &&
9444 { ac_try='test -z "$ac_c_werror_flag"
9445 || test ! -s conftest.err'
9446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9447 (eval $ac_try) 2>&5
9448 ac_status=$?
9449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9450 (exit $ac_status); }; } &&
9451 { ac_try='test -s conftest$ac_exeext'
9452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9453 (eval $ac_try) 2>&5
9454 ac_status=$?
9455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9456 (exit $ac_status); }; }; then
9457 have_sync_builtins=yes
9458 else
9459 echo "$as_me: failed program was:" >&5
9460 sed 's/^/| /' conftest.$ac_ext >&5
9462 have_sync_builtins=no
9464 rm -f conftest.err conftest.$ac_objext \
9465 conftest$ac_exeext conftest.$ac_ext
9467 echo "$as_me:$LINENO: result: $have_sync_builtins" >&5
9468 echo "${ECHO_T}$have_sync_builtins" >&6
9469 if test $have_sync_builtins = yes; then
9471 cat >>confdefs.h <<\_ACEOF
9472 #define HAVE_SYNC_BUILTINS 1
9473 _ACEOF
9477 XCFLAGS="$XCFLAGS$XPCFLAGS"
9483 # Cleanup and exit.
9484 CFLAGS="$save_CFLAGS"
9485 cat >confcache <<\_ACEOF
9486 # This file is a shell script that caches the results of configure
9487 # tests run on this system so they can be shared between configure
9488 # scripts and configure runs, see configure's option --config-cache.
9489 # It is not useful on other systems. If it contains results you don't
9490 # want to keep, you may remove or edit it.
9492 # config.status only pays attention to the cache file if you give it
9493 # the --recheck option to rerun configure.
9495 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9496 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9497 # following values.
9499 _ACEOF
9501 # The following way of writing the cache mishandles newlines in values,
9502 # but we know of no workaround that is simple, portable, and efficient.
9503 # So, don't put newlines in cache variables' values.
9504 # Ultrix sh set writes to stderr and can't be redirected directly,
9505 # and sets the high bit in the cache file unless we assign to the vars.
9507 (set) 2>&1 |
9508 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9509 *ac_space=\ *)
9510 # `set' does not quote correctly, so add quotes (double-quote
9511 # substitution turns \\\\ into \\, and sed turns \\ into \).
9512 sed -n \
9513 "s/'/'\\\\''/g;
9514 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9517 # `set' quotes correctly as required by POSIX, so do not add quotes.
9518 sed -n \
9519 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9521 esac;
9523 sed '
9524 t clear
9525 : clear
9526 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9527 t end
9528 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9529 : end' >>confcache
9530 if diff $cache_file confcache >/dev/null 2>&1; then :; else
9531 if test -w $cache_file; then
9532 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9533 cat confcache >$cache_file
9534 else
9535 echo "not updating unwritable cache $cache_file"
9538 rm -f confcache
9540 if test ${multilib} = yes; then
9541 multilib_arg="--enable-multilib"
9542 else
9543 multilib_arg=
9546 # Set up the set of libraries that we need to link against for libgomp.
9547 # Note that the GOMP_SELF_SPEC in gcc.c will force -pthread for -fopenmp,
9548 # which will force linkage against -lpthread (or equivalent for the system).
9549 # That's not 100% ideal, but about the best we can do easily.
9550 if test $enable_shared = yes; then
9551 link_gomp="-lgomp %{static: $LIBS}"
9552 else
9553 link_gomp="-lgomp $LIBS"
9559 if test "$ac_cv_fc_compiler_gnu" = yes; then
9560 USE_FORTRAN_TRUE=
9561 USE_FORTRAN_FALSE='#'
9562 else
9563 USE_FORTRAN_TRUE='#'
9564 USE_FORTRAN_FALSE=
9568 # ??? 2006-01-24: Paulo committed to asking autoconf folk to document
9569 # and export AC_COMPUTE_INT. If that happens, then we'll need to remove
9570 # the underscore here and update the PREREQ. If it doesn't, then we'll
9571 # need to copy this macro to our acinclude.m4.
9572 save_CFLAGS="$CFLAGS"
9573 for i in $config_path; do
9574 if test -f $srcdir/config/$i/omp-lock.h; then
9575 CFLAGS="$CFLAGS -include $srcdir/config/$i/omp-lock.h"
9576 break
9578 done
9580 if test "$cross_compiling" = yes; then
9581 # Depending upon the size, compute the lo and hi bounds.
9582 cat >conftest.$ac_ext <<_ACEOF
9583 /* confdefs.h. */
9584 _ACEOF
9585 cat confdefs.h >>conftest.$ac_ext
9586 cat >>conftest.$ac_ext <<_ACEOF
9587 /* end confdefs.h. */
9590 main ()
9592 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) >= 0)];
9593 test_array [0] = 0
9596 return 0;
9598 _ACEOF
9599 rm -f conftest.$ac_objext
9600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9601 (eval $ac_compile) 2>conftest.er1
9602 ac_status=$?
9603 grep -v '^ *+' conftest.er1 >conftest.err
9604 rm -f conftest.er1
9605 cat conftest.err >&5
9606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9607 (exit $ac_status); } &&
9608 { ac_try='test -z "$ac_c_werror_flag"
9609 || test ! -s conftest.err'
9610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9611 (eval $ac_try) 2>&5
9612 ac_status=$?
9613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614 (exit $ac_status); }; } &&
9615 { ac_try='test -s conftest.$ac_objext'
9616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9617 (eval $ac_try) 2>&5
9618 ac_status=$?
9619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9620 (exit $ac_status); }; }; then
9621 ac_lo=0 ac_mid=0
9622 while :; do
9623 cat >conftest.$ac_ext <<_ACEOF
9624 /* confdefs.h. */
9625 _ACEOF
9626 cat confdefs.h >>conftest.$ac_ext
9627 cat >>conftest.$ac_ext <<_ACEOF
9628 /* end confdefs.h. */
9631 main ()
9633 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) <= $ac_mid)];
9634 test_array [0] = 0
9637 return 0;
9639 _ACEOF
9640 rm -f conftest.$ac_objext
9641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9642 (eval $ac_compile) 2>conftest.er1
9643 ac_status=$?
9644 grep -v '^ *+' conftest.er1 >conftest.err
9645 rm -f conftest.er1
9646 cat conftest.err >&5
9647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9648 (exit $ac_status); } &&
9649 { ac_try='test -z "$ac_c_werror_flag"
9650 || test ! -s conftest.err'
9651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9652 (eval $ac_try) 2>&5
9653 ac_status=$?
9654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9655 (exit $ac_status); }; } &&
9656 { ac_try='test -s conftest.$ac_objext'
9657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9658 (eval $ac_try) 2>&5
9659 ac_status=$?
9660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9661 (exit $ac_status); }; }; then
9662 ac_hi=$ac_mid; break
9663 else
9664 echo "$as_me: failed program was:" >&5
9665 sed 's/^/| /' conftest.$ac_ext >&5
9667 ac_lo=`expr $ac_mid + 1`
9668 if test $ac_lo -le $ac_mid; then
9669 ac_lo= ac_hi=
9670 break
9672 ac_mid=`expr 2 '*' $ac_mid + 1`
9674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9675 done
9676 else
9677 echo "$as_me: failed program was:" >&5
9678 sed 's/^/| /' conftest.$ac_ext >&5
9680 cat >conftest.$ac_ext <<_ACEOF
9681 /* confdefs.h. */
9682 _ACEOF
9683 cat confdefs.h >>conftest.$ac_ext
9684 cat >>conftest.$ac_ext <<_ACEOF
9685 /* end confdefs.h. */
9688 main ()
9690 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) < 0)];
9691 test_array [0] = 0
9694 return 0;
9696 _ACEOF
9697 rm -f conftest.$ac_objext
9698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9699 (eval $ac_compile) 2>conftest.er1
9700 ac_status=$?
9701 grep -v '^ *+' conftest.er1 >conftest.err
9702 rm -f conftest.er1
9703 cat conftest.err >&5
9704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705 (exit $ac_status); } &&
9706 { ac_try='test -z "$ac_c_werror_flag"
9707 || test ! -s conftest.err'
9708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9709 (eval $ac_try) 2>&5
9710 ac_status=$?
9711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9712 (exit $ac_status); }; } &&
9713 { ac_try='test -s conftest.$ac_objext'
9714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9715 (eval $ac_try) 2>&5
9716 ac_status=$?
9717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718 (exit $ac_status); }; }; then
9719 ac_hi=-1 ac_mid=-1
9720 while :; do
9721 cat >conftest.$ac_ext <<_ACEOF
9722 /* confdefs.h. */
9723 _ACEOF
9724 cat confdefs.h >>conftest.$ac_ext
9725 cat >>conftest.$ac_ext <<_ACEOF
9726 /* end confdefs.h. */
9729 main ()
9731 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) >= $ac_mid)];
9732 test_array [0] = 0
9735 return 0;
9737 _ACEOF
9738 rm -f conftest.$ac_objext
9739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9740 (eval $ac_compile) 2>conftest.er1
9741 ac_status=$?
9742 grep -v '^ *+' conftest.er1 >conftest.err
9743 rm -f conftest.er1
9744 cat conftest.err >&5
9745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746 (exit $ac_status); } &&
9747 { ac_try='test -z "$ac_c_werror_flag"
9748 || test ! -s conftest.err'
9749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9750 (eval $ac_try) 2>&5
9751 ac_status=$?
9752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753 (exit $ac_status); }; } &&
9754 { ac_try='test -s conftest.$ac_objext'
9755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9756 (eval $ac_try) 2>&5
9757 ac_status=$?
9758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9759 (exit $ac_status); }; }; then
9760 ac_lo=$ac_mid; break
9761 else
9762 echo "$as_me: failed program was:" >&5
9763 sed 's/^/| /' conftest.$ac_ext >&5
9765 ac_hi=`expr '(' $ac_mid ')' - 1`
9766 if test $ac_mid -le $ac_hi; then
9767 ac_lo= ac_hi=
9768 break
9770 ac_mid=`expr 2 '*' $ac_mid`
9772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9773 done
9774 else
9775 echo "$as_me: failed program was:" >&5
9776 sed 's/^/| /' conftest.$ac_ext >&5
9778 ac_lo= ac_hi=
9780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9783 # Binary search between lo and hi bounds.
9784 while test "x$ac_lo" != "x$ac_hi"; do
9785 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9786 cat >conftest.$ac_ext <<_ACEOF
9787 /* confdefs.h. */
9788 _ACEOF
9789 cat confdefs.h >>conftest.$ac_ext
9790 cat >>conftest.$ac_ext <<_ACEOF
9791 /* end confdefs.h. */
9794 main ()
9796 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) <= $ac_mid)];
9797 test_array [0] = 0
9800 return 0;
9802 _ACEOF
9803 rm -f conftest.$ac_objext
9804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9805 (eval $ac_compile) 2>conftest.er1
9806 ac_status=$?
9807 grep -v '^ *+' conftest.er1 >conftest.err
9808 rm -f conftest.er1
9809 cat conftest.err >&5
9810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9811 (exit $ac_status); } &&
9812 { ac_try='test -z "$ac_c_werror_flag"
9813 || test ! -s conftest.err'
9814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9815 (eval $ac_try) 2>&5
9816 ac_status=$?
9817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818 (exit $ac_status); }; } &&
9819 { ac_try='test -s conftest.$ac_objext'
9820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9821 (eval $ac_try) 2>&5
9822 ac_status=$?
9823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9824 (exit $ac_status); }; }; then
9825 ac_hi=$ac_mid
9826 else
9827 echo "$as_me: failed program was:" >&5
9828 sed 's/^/| /' conftest.$ac_ext >&5
9830 ac_lo=`expr '(' $ac_mid ')' + 1`
9832 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9833 done
9834 case $ac_lo in
9835 ?*) OMP_LOCK_SIZE=$ac_lo;;
9836 '') { { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_t)" >&5
9837 echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_t)" >&2;}
9838 { (exit 1); exit 1; }; } ;;
9839 esac
9840 else
9841 if test "$cross_compiling" = yes; then
9842 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9843 See \`config.log' for more details." >&5
9844 echo "$as_me: error: cannot run test program while cross compiling
9845 See \`config.log' for more details." >&2;}
9846 { (exit 1); exit 1; }; }
9847 else
9848 cat >conftest.$ac_ext <<_ACEOF
9849 /* confdefs.h. */
9850 _ACEOF
9851 cat confdefs.h >>conftest.$ac_ext
9852 cat >>conftest.$ac_ext <<_ACEOF
9853 /* end confdefs.h. */
9855 long longval () { return sizeof (omp_lock_t); }
9856 unsigned long ulongval () { return sizeof (omp_lock_t); }
9857 #include <stdio.h>
9858 #include <stdlib.h>
9860 main ()
9863 FILE *f = fopen ("conftest.val", "w");
9864 if (! f)
9865 exit (1);
9866 if ((sizeof (omp_lock_t)) < 0)
9868 long i = longval ();
9869 if (i != (sizeof (omp_lock_t)))
9870 exit (1);
9871 fprintf (f, "%ld\n", i);
9873 else
9875 unsigned long i = ulongval ();
9876 if (i != (sizeof (omp_lock_t)))
9877 exit (1);
9878 fprintf (f, "%lu\n", i);
9880 exit (ferror (f) || fclose (f) != 0);
9883 return 0;
9885 _ACEOF
9886 rm -f conftest$ac_exeext
9887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9888 (eval $ac_link) 2>&5
9889 ac_status=$?
9890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9891 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9893 (eval $ac_try) 2>&5
9894 ac_status=$?
9895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9896 (exit $ac_status); }; }; then
9897 OMP_LOCK_SIZE=`cat conftest.val`
9898 else
9899 echo "$as_me: program exited with status $ac_status" >&5
9900 echo "$as_me: failed program was:" >&5
9901 sed 's/^/| /' conftest.$ac_ext >&5
9903 ( exit $ac_status )
9904 { { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_t)" >&5
9905 echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_t)" >&2;}
9906 { (exit 1); exit 1; }; }
9908 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9911 rm -f conftest.val
9912 if test "$cross_compiling" = yes; then
9913 # Depending upon the size, compute the lo and hi bounds.
9914 cat >conftest.$ac_ext <<_ACEOF
9915 /* confdefs.h. */
9916 _ACEOF
9917 cat confdefs.h >>conftest.$ac_ext
9918 cat >>conftest.$ac_ext <<_ACEOF
9919 /* end confdefs.h. */
9922 main ()
9924 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) >= 0)];
9925 test_array [0] = 0
9928 return 0;
9930 _ACEOF
9931 rm -f conftest.$ac_objext
9932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9933 (eval $ac_compile) 2>conftest.er1
9934 ac_status=$?
9935 grep -v '^ *+' conftest.er1 >conftest.err
9936 rm -f conftest.er1
9937 cat conftest.err >&5
9938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9939 (exit $ac_status); } &&
9940 { ac_try='test -z "$ac_c_werror_flag"
9941 || test ! -s conftest.err'
9942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9943 (eval $ac_try) 2>&5
9944 ac_status=$?
9945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946 (exit $ac_status); }; } &&
9947 { ac_try='test -s conftest.$ac_objext'
9948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9949 (eval $ac_try) 2>&5
9950 ac_status=$?
9951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9952 (exit $ac_status); }; }; then
9953 ac_lo=0 ac_mid=0
9954 while :; do
9955 cat >conftest.$ac_ext <<_ACEOF
9956 /* confdefs.h. */
9957 _ACEOF
9958 cat confdefs.h >>conftest.$ac_ext
9959 cat >>conftest.$ac_ext <<_ACEOF
9960 /* end confdefs.h. */
9963 main ()
9965 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) <= $ac_mid)];
9966 test_array [0] = 0
9969 return 0;
9971 _ACEOF
9972 rm -f conftest.$ac_objext
9973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9974 (eval $ac_compile) 2>conftest.er1
9975 ac_status=$?
9976 grep -v '^ *+' conftest.er1 >conftest.err
9977 rm -f conftest.er1
9978 cat conftest.err >&5
9979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9980 (exit $ac_status); } &&
9981 { ac_try='test -z "$ac_c_werror_flag"
9982 || test ! -s conftest.err'
9983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9984 (eval $ac_try) 2>&5
9985 ac_status=$?
9986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9987 (exit $ac_status); }; } &&
9988 { ac_try='test -s conftest.$ac_objext'
9989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9990 (eval $ac_try) 2>&5
9991 ac_status=$?
9992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9993 (exit $ac_status); }; }; then
9994 ac_hi=$ac_mid; break
9995 else
9996 echo "$as_me: failed program was:" >&5
9997 sed 's/^/| /' conftest.$ac_ext >&5
9999 ac_lo=`expr $ac_mid + 1`
10000 if test $ac_lo -le $ac_mid; then
10001 ac_lo= ac_hi=
10002 break
10004 ac_mid=`expr 2 '*' $ac_mid + 1`
10006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10007 done
10008 else
10009 echo "$as_me: failed program was:" >&5
10010 sed 's/^/| /' conftest.$ac_ext >&5
10012 cat >conftest.$ac_ext <<_ACEOF
10013 /* confdefs.h. */
10014 _ACEOF
10015 cat confdefs.h >>conftest.$ac_ext
10016 cat >>conftest.$ac_ext <<_ACEOF
10017 /* end confdefs.h. */
10020 main ()
10022 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) < 0)];
10023 test_array [0] = 0
10026 return 0;
10028 _ACEOF
10029 rm -f conftest.$ac_objext
10030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10031 (eval $ac_compile) 2>conftest.er1
10032 ac_status=$?
10033 grep -v '^ *+' conftest.er1 >conftest.err
10034 rm -f conftest.er1
10035 cat conftest.err >&5
10036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10037 (exit $ac_status); } &&
10038 { ac_try='test -z "$ac_c_werror_flag"
10039 || test ! -s conftest.err'
10040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10041 (eval $ac_try) 2>&5
10042 ac_status=$?
10043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044 (exit $ac_status); }; } &&
10045 { ac_try='test -s conftest.$ac_objext'
10046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10047 (eval $ac_try) 2>&5
10048 ac_status=$?
10049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050 (exit $ac_status); }; }; then
10051 ac_hi=-1 ac_mid=-1
10052 while :; do
10053 cat >conftest.$ac_ext <<_ACEOF
10054 /* confdefs.h. */
10055 _ACEOF
10056 cat confdefs.h >>conftest.$ac_ext
10057 cat >>conftest.$ac_ext <<_ACEOF
10058 /* end confdefs.h. */
10061 main ()
10063 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) >= $ac_mid)];
10064 test_array [0] = 0
10067 return 0;
10069 _ACEOF
10070 rm -f conftest.$ac_objext
10071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10072 (eval $ac_compile) 2>conftest.er1
10073 ac_status=$?
10074 grep -v '^ *+' conftest.er1 >conftest.err
10075 rm -f conftest.er1
10076 cat conftest.err >&5
10077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10078 (exit $ac_status); } &&
10079 { ac_try='test -z "$ac_c_werror_flag"
10080 || test ! -s conftest.err'
10081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10082 (eval $ac_try) 2>&5
10083 ac_status=$?
10084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10085 (exit $ac_status); }; } &&
10086 { ac_try='test -s conftest.$ac_objext'
10087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10088 (eval $ac_try) 2>&5
10089 ac_status=$?
10090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10091 (exit $ac_status); }; }; then
10092 ac_lo=$ac_mid; break
10093 else
10094 echo "$as_me: failed program was:" >&5
10095 sed 's/^/| /' conftest.$ac_ext >&5
10097 ac_hi=`expr '(' $ac_mid ')' - 1`
10098 if test $ac_mid -le $ac_hi; then
10099 ac_lo= ac_hi=
10100 break
10102 ac_mid=`expr 2 '*' $ac_mid`
10104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10105 done
10106 else
10107 echo "$as_me: failed program was:" >&5
10108 sed 's/^/| /' conftest.$ac_ext >&5
10110 ac_lo= ac_hi=
10112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10115 # Binary search between lo and hi bounds.
10116 while test "x$ac_lo" != "x$ac_hi"; do
10117 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10118 cat >conftest.$ac_ext <<_ACEOF
10119 /* confdefs.h. */
10120 _ACEOF
10121 cat confdefs.h >>conftest.$ac_ext
10122 cat >>conftest.$ac_ext <<_ACEOF
10123 /* end confdefs.h. */
10126 main ()
10128 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) <= $ac_mid)];
10129 test_array [0] = 0
10132 return 0;
10134 _ACEOF
10135 rm -f conftest.$ac_objext
10136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10137 (eval $ac_compile) 2>conftest.er1
10138 ac_status=$?
10139 grep -v '^ *+' conftest.er1 >conftest.err
10140 rm -f conftest.er1
10141 cat conftest.err >&5
10142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143 (exit $ac_status); } &&
10144 { ac_try='test -z "$ac_c_werror_flag"
10145 || test ! -s conftest.err'
10146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10147 (eval $ac_try) 2>&5
10148 ac_status=$?
10149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150 (exit $ac_status); }; } &&
10151 { ac_try='test -s conftest.$ac_objext'
10152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10153 (eval $ac_try) 2>&5
10154 ac_status=$?
10155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156 (exit $ac_status); }; }; then
10157 ac_hi=$ac_mid
10158 else
10159 echo "$as_me: failed program was:" >&5
10160 sed 's/^/| /' conftest.$ac_ext >&5
10162 ac_lo=`expr '(' $ac_mid ')' + 1`
10164 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10165 done
10166 case $ac_lo in
10167 ?*) OMP_LOCK_ALIGN=$ac_lo;;
10168 '') ;;
10169 esac
10170 else
10171 if test "$cross_compiling" = yes; then
10172 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10173 See \`config.log' for more details." >&5
10174 echo "$as_me: error: cannot run test program while cross compiling
10175 See \`config.log' for more details." >&2;}
10176 { (exit 1); exit 1; }; }
10177 else
10178 cat >conftest.$ac_ext <<_ACEOF
10179 /* confdefs.h. */
10180 _ACEOF
10181 cat confdefs.h >>conftest.$ac_ext
10182 cat >>conftest.$ac_ext <<_ACEOF
10183 /* end confdefs.h. */
10185 long longval () { return __alignof (omp_lock_t); }
10186 unsigned long ulongval () { return __alignof (omp_lock_t); }
10187 #include <stdio.h>
10188 #include <stdlib.h>
10190 main ()
10193 FILE *f = fopen ("conftest.val", "w");
10194 if (! f)
10195 exit (1);
10196 if ((__alignof (omp_lock_t)) < 0)
10198 long i = longval ();
10199 if (i != (__alignof (omp_lock_t)))
10200 exit (1);
10201 fprintf (f, "%ld\n", i);
10203 else
10205 unsigned long i = ulongval ();
10206 if (i != (__alignof (omp_lock_t)))
10207 exit (1);
10208 fprintf (f, "%lu\n", i);
10210 exit (ferror (f) || fclose (f) != 0);
10213 return 0;
10215 _ACEOF
10216 rm -f conftest$ac_exeext
10217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10218 (eval $ac_link) 2>&5
10219 ac_status=$?
10220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10223 (eval $ac_try) 2>&5
10224 ac_status=$?
10225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10226 (exit $ac_status); }; }; then
10227 OMP_LOCK_ALIGN=`cat conftest.val`
10228 else
10229 echo "$as_me: program exited with status $ac_status" >&5
10230 echo "$as_me: failed program was:" >&5
10231 sed 's/^/| /' conftest.$ac_ext >&5
10234 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10237 rm -f conftest.val
10238 if test "$cross_compiling" = yes; then
10239 # Depending upon the size, compute the lo and hi bounds.
10240 cat >conftest.$ac_ext <<_ACEOF
10241 /* confdefs.h. */
10242 _ACEOF
10243 cat confdefs.h >>conftest.$ac_ext
10244 cat >>conftest.$ac_ext <<_ACEOF
10245 /* end confdefs.h. */
10248 main ()
10250 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) >= 0)];
10251 test_array [0] = 0
10254 return 0;
10256 _ACEOF
10257 rm -f conftest.$ac_objext
10258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10259 (eval $ac_compile) 2>conftest.er1
10260 ac_status=$?
10261 grep -v '^ *+' conftest.er1 >conftest.err
10262 rm -f conftest.er1
10263 cat conftest.err >&5
10264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10265 (exit $ac_status); } &&
10266 { ac_try='test -z "$ac_c_werror_flag"
10267 || test ! -s conftest.err'
10268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10269 (eval $ac_try) 2>&5
10270 ac_status=$?
10271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10272 (exit $ac_status); }; } &&
10273 { ac_try='test -s conftest.$ac_objext'
10274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10275 (eval $ac_try) 2>&5
10276 ac_status=$?
10277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278 (exit $ac_status); }; }; then
10279 ac_lo=0 ac_mid=0
10280 while :; do
10281 cat >conftest.$ac_ext <<_ACEOF
10282 /* confdefs.h. */
10283 _ACEOF
10284 cat confdefs.h >>conftest.$ac_ext
10285 cat >>conftest.$ac_ext <<_ACEOF
10286 /* end confdefs.h. */
10289 main ()
10291 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) <= $ac_mid)];
10292 test_array [0] = 0
10295 return 0;
10297 _ACEOF
10298 rm -f conftest.$ac_objext
10299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10300 (eval $ac_compile) 2>conftest.er1
10301 ac_status=$?
10302 grep -v '^ *+' conftest.er1 >conftest.err
10303 rm -f conftest.er1
10304 cat conftest.err >&5
10305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306 (exit $ac_status); } &&
10307 { ac_try='test -z "$ac_c_werror_flag"
10308 || test ! -s conftest.err'
10309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10310 (eval $ac_try) 2>&5
10311 ac_status=$?
10312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10313 (exit $ac_status); }; } &&
10314 { ac_try='test -s conftest.$ac_objext'
10315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10316 (eval $ac_try) 2>&5
10317 ac_status=$?
10318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10319 (exit $ac_status); }; }; then
10320 ac_hi=$ac_mid; break
10321 else
10322 echo "$as_me: failed program was:" >&5
10323 sed 's/^/| /' conftest.$ac_ext >&5
10325 ac_lo=`expr $ac_mid + 1`
10326 if test $ac_lo -le $ac_mid; then
10327 ac_lo= ac_hi=
10328 break
10330 ac_mid=`expr 2 '*' $ac_mid + 1`
10332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10333 done
10334 else
10335 echo "$as_me: failed program was:" >&5
10336 sed 's/^/| /' conftest.$ac_ext >&5
10338 cat >conftest.$ac_ext <<_ACEOF
10339 /* confdefs.h. */
10340 _ACEOF
10341 cat confdefs.h >>conftest.$ac_ext
10342 cat >>conftest.$ac_ext <<_ACEOF
10343 /* end confdefs.h. */
10346 main ()
10348 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) < 0)];
10349 test_array [0] = 0
10352 return 0;
10354 _ACEOF
10355 rm -f conftest.$ac_objext
10356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10357 (eval $ac_compile) 2>conftest.er1
10358 ac_status=$?
10359 grep -v '^ *+' conftest.er1 >conftest.err
10360 rm -f conftest.er1
10361 cat conftest.err >&5
10362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363 (exit $ac_status); } &&
10364 { ac_try='test -z "$ac_c_werror_flag"
10365 || test ! -s conftest.err'
10366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10367 (eval $ac_try) 2>&5
10368 ac_status=$?
10369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370 (exit $ac_status); }; } &&
10371 { ac_try='test -s conftest.$ac_objext'
10372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10373 (eval $ac_try) 2>&5
10374 ac_status=$?
10375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10376 (exit $ac_status); }; }; then
10377 ac_hi=-1 ac_mid=-1
10378 while :; do
10379 cat >conftest.$ac_ext <<_ACEOF
10380 /* confdefs.h. */
10381 _ACEOF
10382 cat confdefs.h >>conftest.$ac_ext
10383 cat >>conftest.$ac_ext <<_ACEOF
10384 /* end confdefs.h. */
10387 main ()
10389 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) >= $ac_mid)];
10390 test_array [0] = 0
10393 return 0;
10395 _ACEOF
10396 rm -f conftest.$ac_objext
10397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10398 (eval $ac_compile) 2>conftest.er1
10399 ac_status=$?
10400 grep -v '^ *+' conftest.er1 >conftest.err
10401 rm -f conftest.er1
10402 cat conftest.err >&5
10403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404 (exit $ac_status); } &&
10405 { ac_try='test -z "$ac_c_werror_flag"
10406 || test ! -s conftest.err'
10407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10408 (eval $ac_try) 2>&5
10409 ac_status=$?
10410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10411 (exit $ac_status); }; } &&
10412 { ac_try='test -s conftest.$ac_objext'
10413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10414 (eval $ac_try) 2>&5
10415 ac_status=$?
10416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10417 (exit $ac_status); }; }; then
10418 ac_lo=$ac_mid; break
10419 else
10420 echo "$as_me: failed program was:" >&5
10421 sed 's/^/| /' conftest.$ac_ext >&5
10423 ac_hi=`expr '(' $ac_mid ')' - 1`
10424 if test $ac_mid -le $ac_hi; then
10425 ac_lo= ac_hi=
10426 break
10428 ac_mid=`expr 2 '*' $ac_mid`
10430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10431 done
10432 else
10433 echo "$as_me: failed program was:" >&5
10434 sed 's/^/| /' conftest.$ac_ext >&5
10436 ac_lo= ac_hi=
10438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10441 # Binary search between lo and hi bounds.
10442 while test "x$ac_lo" != "x$ac_hi"; do
10443 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10444 cat >conftest.$ac_ext <<_ACEOF
10445 /* confdefs.h. */
10446 _ACEOF
10447 cat confdefs.h >>conftest.$ac_ext
10448 cat >>conftest.$ac_ext <<_ACEOF
10449 /* end confdefs.h. */
10452 main ()
10454 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) <= $ac_mid)];
10455 test_array [0] = 0
10458 return 0;
10460 _ACEOF
10461 rm -f conftest.$ac_objext
10462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10463 (eval $ac_compile) 2>conftest.er1
10464 ac_status=$?
10465 grep -v '^ *+' conftest.er1 >conftest.err
10466 rm -f conftest.er1
10467 cat conftest.err >&5
10468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10469 (exit $ac_status); } &&
10470 { ac_try='test -z "$ac_c_werror_flag"
10471 || test ! -s conftest.err'
10472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10473 (eval $ac_try) 2>&5
10474 ac_status=$?
10475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10476 (exit $ac_status); }; } &&
10477 { ac_try='test -s conftest.$ac_objext'
10478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10479 (eval $ac_try) 2>&5
10480 ac_status=$?
10481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10482 (exit $ac_status); }; }; then
10483 ac_hi=$ac_mid
10484 else
10485 echo "$as_me: failed program was:" >&5
10486 sed 's/^/| /' conftest.$ac_ext >&5
10488 ac_lo=`expr '(' $ac_mid ')' + 1`
10490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10491 done
10492 case $ac_lo in
10493 ?*) OMP_NEST_LOCK_SIZE=$ac_lo;;
10494 '') ;;
10495 esac
10496 else
10497 if test "$cross_compiling" = yes; then
10498 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10499 See \`config.log' for more details." >&5
10500 echo "$as_me: error: cannot run test program while cross compiling
10501 See \`config.log' for more details." >&2;}
10502 { (exit 1); exit 1; }; }
10503 else
10504 cat >conftest.$ac_ext <<_ACEOF
10505 /* confdefs.h. */
10506 _ACEOF
10507 cat confdefs.h >>conftest.$ac_ext
10508 cat >>conftest.$ac_ext <<_ACEOF
10509 /* end confdefs.h. */
10511 long longval () { return sizeof (omp_nest_lock_t); }
10512 unsigned long ulongval () { return sizeof (omp_nest_lock_t); }
10513 #include <stdio.h>
10514 #include <stdlib.h>
10516 main ()
10519 FILE *f = fopen ("conftest.val", "w");
10520 if (! f)
10521 exit (1);
10522 if ((sizeof (omp_nest_lock_t)) < 0)
10524 long i = longval ();
10525 if (i != (sizeof (omp_nest_lock_t)))
10526 exit (1);
10527 fprintf (f, "%ld\n", i);
10529 else
10531 unsigned long i = ulongval ();
10532 if (i != (sizeof (omp_nest_lock_t)))
10533 exit (1);
10534 fprintf (f, "%lu\n", i);
10536 exit (ferror (f) || fclose (f) != 0);
10539 return 0;
10541 _ACEOF
10542 rm -f conftest$ac_exeext
10543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10544 (eval $ac_link) 2>&5
10545 ac_status=$?
10546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10549 (eval $ac_try) 2>&5
10550 ac_status=$?
10551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10552 (exit $ac_status); }; }; then
10553 OMP_NEST_LOCK_SIZE=`cat conftest.val`
10554 else
10555 echo "$as_me: program exited with status $ac_status" >&5
10556 echo "$as_me: failed program was:" >&5
10557 sed 's/^/| /' conftest.$ac_ext >&5
10560 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10563 rm -f conftest.val
10564 if test "$cross_compiling" = yes; then
10565 # Depending upon the size, compute the lo and hi bounds.
10566 cat >conftest.$ac_ext <<_ACEOF
10567 /* confdefs.h. */
10568 _ACEOF
10569 cat confdefs.h >>conftest.$ac_ext
10570 cat >>conftest.$ac_ext <<_ACEOF
10571 /* end confdefs.h. */
10574 main ()
10576 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) >= 0)];
10577 test_array [0] = 0
10580 return 0;
10582 _ACEOF
10583 rm -f conftest.$ac_objext
10584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10585 (eval $ac_compile) 2>conftest.er1
10586 ac_status=$?
10587 grep -v '^ *+' conftest.er1 >conftest.err
10588 rm -f conftest.er1
10589 cat conftest.err >&5
10590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591 (exit $ac_status); } &&
10592 { ac_try='test -z "$ac_c_werror_flag"
10593 || test ! -s conftest.err'
10594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10595 (eval $ac_try) 2>&5
10596 ac_status=$?
10597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10598 (exit $ac_status); }; } &&
10599 { ac_try='test -s conftest.$ac_objext'
10600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10601 (eval $ac_try) 2>&5
10602 ac_status=$?
10603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10604 (exit $ac_status); }; }; then
10605 ac_lo=0 ac_mid=0
10606 while :; do
10607 cat >conftest.$ac_ext <<_ACEOF
10608 /* confdefs.h. */
10609 _ACEOF
10610 cat confdefs.h >>conftest.$ac_ext
10611 cat >>conftest.$ac_ext <<_ACEOF
10612 /* end confdefs.h. */
10615 main ()
10617 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) <= $ac_mid)];
10618 test_array [0] = 0
10621 return 0;
10623 _ACEOF
10624 rm -f conftest.$ac_objext
10625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10626 (eval $ac_compile) 2>conftest.er1
10627 ac_status=$?
10628 grep -v '^ *+' conftest.er1 >conftest.err
10629 rm -f conftest.er1
10630 cat conftest.err >&5
10631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10632 (exit $ac_status); } &&
10633 { ac_try='test -z "$ac_c_werror_flag"
10634 || test ! -s conftest.err'
10635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10636 (eval $ac_try) 2>&5
10637 ac_status=$?
10638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10639 (exit $ac_status); }; } &&
10640 { ac_try='test -s conftest.$ac_objext'
10641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10642 (eval $ac_try) 2>&5
10643 ac_status=$?
10644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10645 (exit $ac_status); }; }; then
10646 ac_hi=$ac_mid; break
10647 else
10648 echo "$as_me: failed program was:" >&5
10649 sed 's/^/| /' conftest.$ac_ext >&5
10651 ac_lo=`expr $ac_mid + 1`
10652 if test $ac_lo -le $ac_mid; then
10653 ac_lo= ac_hi=
10654 break
10656 ac_mid=`expr 2 '*' $ac_mid + 1`
10658 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10659 done
10660 else
10661 echo "$as_me: failed program was:" >&5
10662 sed 's/^/| /' conftest.$ac_ext >&5
10664 cat >conftest.$ac_ext <<_ACEOF
10665 /* confdefs.h. */
10666 _ACEOF
10667 cat confdefs.h >>conftest.$ac_ext
10668 cat >>conftest.$ac_ext <<_ACEOF
10669 /* end confdefs.h. */
10672 main ()
10674 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) < 0)];
10675 test_array [0] = 0
10678 return 0;
10680 _ACEOF
10681 rm -f conftest.$ac_objext
10682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10683 (eval $ac_compile) 2>conftest.er1
10684 ac_status=$?
10685 grep -v '^ *+' conftest.er1 >conftest.err
10686 rm -f conftest.er1
10687 cat conftest.err >&5
10688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10689 (exit $ac_status); } &&
10690 { ac_try='test -z "$ac_c_werror_flag"
10691 || test ! -s conftest.err'
10692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10693 (eval $ac_try) 2>&5
10694 ac_status=$?
10695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10696 (exit $ac_status); }; } &&
10697 { ac_try='test -s conftest.$ac_objext'
10698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10699 (eval $ac_try) 2>&5
10700 ac_status=$?
10701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702 (exit $ac_status); }; }; then
10703 ac_hi=-1 ac_mid=-1
10704 while :; do
10705 cat >conftest.$ac_ext <<_ACEOF
10706 /* confdefs.h. */
10707 _ACEOF
10708 cat confdefs.h >>conftest.$ac_ext
10709 cat >>conftest.$ac_ext <<_ACEOF
10710 /* end confdefs.h. */
10713 main ()
10715 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) >= $ac_mid)];
10716 test_array [0] = 0
10719 return 0;
10721 _ACEOF
10722 rm -f conftest.$ac_objext
10723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10724 (eval $ac_compile) 2>conftest.er1
10725 ac_status=$?
10726 grep -v '^ *+' conftest.er1 >conftest.err
10727 rm -f conftest.er1
10728 cat conftest.err >&5
10729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10730 (exit $ac_status); } &&
10731 { ac_try='test -z "$ac_c_werror_flag"
10732 || test ! -s conftest.err'
10733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10734 (eval $ac_try) 2>&5
10735 ac_status=$?
10736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10737 (exit $ac_status); }; } &&
10738 { ac_try='test -s conftest.$ac_objext'
10739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10740 (eval $ac_try) 2>&5
10741 ac_status=$?
10742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10743 (exit $ac_status); }; }; then
10744 ac_lo=$ac_mid; break
10745 else
10746 echo "$as_me: failed program was:" >&5
10747 sed 's/^/| /' conftest.$ac_ext >&5
10749 ac_hi=`expr '(' $ac_mid ')' - 1`
10750 if test $ac_mid -le $ac_hi; then
10751 ac_lo= ac_hi=
10752 break
10754 ac_mid=`expr 2 '*' $ac_mid`
10756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10757 done
10758 else
10759 echo "$as_me: failed program was:" >&5
10760 sed 's/^/| /' conftest.$ac_ext >&5
10762 ac_lo= ac_hi=
10764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10767 # Binary search between lo and hi bounds.
10768 while test "x$ac_lo" != "x$ac_hi"; do
10769 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10770 cat >conftest.$ac_ext <<_ACEOF
10771 /* confdefs.h. */
10772 _ACEOF
10773 cat confdefs.h >>conftest.$ac_ext
10774 cat >>conftest.$ac_ext <<_ACEOF
10775 /* end confdefs.h. */
10778 main ()
10780 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) <= $ac_mid)];
10781 test_array [0] = 0
10784 return 0;
10786 _ACEOF
10787 rm -f conftest.$ac_objext
10788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10789 (eval $ac_compile) 2>conftest.er1
10790 ac_status=$?
10791 grep -v '^ *+' conftest.er1 >conftest.err
10792 rm -f conftest.er1
10793 cat conftest.err >&5
10794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10795 (exit $ac_status); } &&
10796 { ac_try='test -z "$ac_c_werror_flag"
10797 || test ! -s conftest.err'
10798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10799 (eval $ac_try) 2>&5
10800 ac_status=$?
10801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10802 (exit $ac_status); }; } &&
10803 { ac_try='test -s conftest.$ac_objext'
10804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10805 (eval $ac_try) 2>&5
10806 ac_status=$?
10807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10808 (exit $ac_status); }; }; then
10809 ac_hi=$ac_mid
10810 else
10811 echo "$as_me: failed program was:" >&5
10812 sed 's/^/| /' conftest.$ac_ext >&5
10814 ac_lo=`expr '(' $ac_mid ')' + 1`
10816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10817 done
10818 case $ac_lo in
10819 ?*) OMP_NEST_LOCK_ALIGN=$ac_lo;;
10820 '') ;;
10821 esac
10822 else
10823 if test "$cross_compiling" = yes; then
10824 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10825 See \`config.log' for more details." >&5
10826 echo "$as_me: error: cannot run test program while cross compiling
10827 See \`config.log' for more details." >&2;}
10828 { (exit 1); exit 1; }; }
10829 else
10830 cat >conftest.$ac_ext <<_ACEOF
10831 /* confdefs.h. */
10832 _ACEOF
10833 cat confdefs.h >>conftest.$ac_ext
10834 cat >>conftest.$ac_ext <<_ACEOF
10835 /* end confdefs.h. */
10837 long longval () { return __alignof (omp_nest_lock_t); }
10838 unsigned long ulongval () { return __alignof (omp_nest_lock_t); }
10839 #include <stdio.h>
10840 #include <stdlib.h>
10842 main ()
10845 FILE *f = fopen ("conftest.val", "w");
10846 if (! f)
10847 exit (1);
10848 if ((__alignof (omp_nest_lock_t)) < 0)
10850 long i = longval ();
10851 if (i != (__alignof (omp_nest_lock_t)))
10852 exit (1);
10853 fprintf (f, "%ld\n", i);
10855 else
10857 unsigned long i = ulongval ();
10858 if (i != (__alignof (omp_nest_lock_t)))
10859 exit (1);
10860 fprintf (f, "%lu\n", i);
10862 exit (ferror (f) || fclose (f) != 0);
10865 return 0;
10867 _ACEOF
10868 rm -f conftest$ac_exeext
10869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10870 (eval $ac_link) 2>&5
10871 ac_status=$?
10872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10875 (eval $ac_try) 2>&5
10876 ac_status=$?
10877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10878 (exit $ac_status); }; }; then
10879 OMP_NEST_LOCK_ALIGN=`cat conftest.val`
10880 else
10881 echo "$as_me: program exited with status $ac_status" >&5
10882 echo "$as_me: failed program was:" >&5
10883 sed 's/^/| /' conftest.$ac_ext >&5
10886 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10889 rm -f conftest.val
10891 # If the lock fits in an integer, then arrange for Fortran to use that
10892 # integer. If it doesn't, then arrange for Fortran to use a pointer.
10893 # Except that we don't have a way at present to multi-lib the installed
10894 # Fortran modules, so we assume 8 bytes for pointers, regardless of the
10895 # actual target.
10896 OMP_LOCK_KIND=$OMP_LOCK_SIZE
10897 OMP_NEST_LOCK_KIND=$OMP_NEST_LOCK_SIZE
10898 if test $OMP_LOCK_SIZE -gt 8 || test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then
10899 OMP_LOCK_KIND=8
10901 if test $OMP_NEST_LOCK_SIZE -gt 8 || test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then
10902 OMP_NEST_LOCK_KIND=8
10911 CFLAGS="$save_CFLAGS"
10913 ac_config_files="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h"
10915 ac_config_files="$ac_config_files Makefile testsuite/Makefile libgomp.spec"
10917 cat >confcache <<\_ACEOF
10918 # This file is a shell script that caches the results of configure
10919 # tests run on this system so they can be shared between configure
10920 # scripts and configure runs, see configure's option --config-cache.
10921 # It is not useful on other systems. If it contains results you don't
10922 # want to keep, you may remove or edit it.
10924 # config.status only pays attention to the cache file if you give it
10925 # the --recheck option to rerun configure.
10927 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10928 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10929 # following values.
10931 _ACEOF
10933 # The following way of writing the cache mishandles newlines in values,
10934 # but we know of no workaround that is simple, portable, and efficient.
10935 # So, don't put newlines in cache variables' values.
10936 # Ultrix sh set writes to stderr and can't be redirected directly,
10937 # and sets the high bit in the cache file unless we assign to the vars.
10939 (set) 2>&1 |
10940 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10941 *ac_space=\ *)
10942 # `set' does not quote correctly, so add quotes (double-quote
10943 # substitution turns \\\\ into \\, and sed turns \\ into \).
10944 sed -n \
10945 "s/'/'\\\\''/g;
10946 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10949 # `set' quotes correctly as required by POSIX, so do not add quotes.
10950 sed -n \
10951 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10953 esac;
10955 sed '
10956 t clear
10957 : clear
10958 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10959 t end
10960 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10961 : end' >>confcache
10962 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10963 if test -w $cache_file; then
10964 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10965 cat confcache >$cache_file
10966 else
10967 echo "not updating unwritable cache $cache_file"
10970 rm -f confcache
10972 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10973 # Let make expand exec_prefix.
10974 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10976 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10977 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10978 # trailing colons and then remove the whole line if VPATH becomes empty
10979 # (actually we leave an empty line to preserve line numbers).
10980 if test "x$srcdir" = x.; then
10981 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10982 s/:*\$(srcdir):*/:/;
10983 s/:*\${srcdir}:*/:/;
10984 s/:*@srcdir@:*/:/;
10985 s/^\([^=]*=[ ]*\):*/\1/;
10986 s/:*$//;
10987 s/^[^=]*=[ ]*$//;
10991 DEFS=-DHAVE_CONFIG_H
10993 ac_libobjs=
10994 ac_ltlibobjs=
10995 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10996 # 1. Remove the extension, and $U if already installed.
10997 ac_i=`echo "$ac_i" |
10998 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10999 # 2. Add them.
11000 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11001 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11002 done
11003 LIBOBJS=$ac_libobjs
11005 LTLIBOBJS=$ac_ltlibobjs
11008 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11009 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11010 Usually this means the macro was only invoked conditionally." >&5
11011 echo "$as_me: error: conditional \"AMDEP\" was never defined.
11012 Usually this means the macro was only invoked conditionally." >&2;}
11013 { (exit 1); exit 1; }; }
11015 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11016 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11017 Usually this means the macro was only invoked conditionally." >&5
11018 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11019 Usually this means the macro was only invoked conditionally." >&2;}
11020 { (exit 1); exit 1; }; }
11022 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11023 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
11024 Usually this means the macro was only invoked conditionally." >&5
11025 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
11026 Usually this means the macro was only invoked conditionally." >&2;}
11027 { (exit 1); exit 1; }; }
11029 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
11030 { { echo "$as_me:$LINENO: error: conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
11031 Usually this means the macro was only invoked conditionally." >&5
11032 echo "$as_me: error: conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
11033 Usually this means the macro was only invoked conditionally." >&2;}
11034 { (exit 1); exit 1; }; }
11036 if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
11037 { { echo "$as_me:$LINENO: error: conditional \"USE_FORTRAN\" was never defined.
11038 Usually this means the macro was only invoked conditionally." >&5
11039 echo "$as_me: error: conditional \"USE_FORTRAN\" was never defined.
11040 Usually this means the macro was only invoked conditionally." >&2;}
11041 { (exit 1); exit 1; }; }
11044 : ${CONFIG_STATUS=./config.status}
11045 ac_clean_files_save=$ac_clean_files
11046 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11047 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11048 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11049 cat >$CONFIG_STATUS <<_ACEOF
11050 #! $SHELL
11051 # Generated by $as_me.
11052 # Run this file to recreate the current configuration.
11053 # Compiler output produced by configure, useful for debugging
11054 # configure, is in config.log if it exists.
11056 debug=false
11057 ac_cs_recheck=false
11058 ac_cs_silent=false
11059 SHELL=\${CONFIG_SHELL-$SHELL}
11060 _ACEOF
11062 cat >>$CONFIG_STATUS <<\_ACEOF
11063 ## --------------------- ##
11064 ## M4sh Initialization. ##
11065 ## --------------------- ##
11067 # Be Bourne compatible
11068 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11069 emulate sh
11070 NULLCMD=:
11071 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11072 # is contrary to our usage. Disable this feature.
11073 alias -g '${1+"$@"}'='"$@"'
11074 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11075 set -o posix
11077 DUALCASE=1; export DUALCASE # for MKS sh
11079 # Support unset when possible.
11080 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11081 as_unset=unset
11082 else
11083 as_unset=false
11087 # Work around bugs in pre-3.0 UWIN ksh.
11088 $as_unset ENV MAIL MAILPATH
11089 PS1='$ '
11090 PS2='> '
11091 PS4='+ '
11093 # NLS nuisances.
11094 for as_var in \
11095 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11096 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11097 LC_TELEPHONE LC_TIME
11099 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11100 eval $as_var=C; export $as_var
11101 else
11102 $as_unset $as_var
11104 done
11106 # Required to use basename.
11107 if expr a : '\(a\)' >/dev/null 2>&1; then
11108 as_expr=expr
11109 else
11110 as_expr=false
11113 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11114 as_basename=basename
11115 else
11116 as_basename=false
11120 # Name of the executable.
11121 as_me=`$as_basename "$0" ||
11122 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11123 X"$0" : 'X\(//\)$' \| \
11124 X"$0" : 'X\(/\)$' \| \
11125 . : '\(.\)' 2>/dev/null ||
11126 echo X/"$0" |
11127 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11128 /^X\/\(\/\/\)$/{ s//\1/; q; }
11129 /^X\/\(\/\).*/{ s//\1/; q; }
11130 s/.*/./; q'`
11133 # PATH needs CR, and LINENO needs CR and PATH.
11134 # Avoid depending upon Character Ranges.
11135 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11136 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11137 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11138 as_cr_digits='0123456789'
11139 as_cr_alnum=$as_cr_Letters$as_cr_digits
11141 # The user is always right.
11142 if test "${PATH_SEPARATOR+set}" != set; then
11143 echo "#! /bin/sh" >conf$$.sh
11144 echo "exit 0" >>conf$$.sh
11145 chmod +x conf$$.sh
11146 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11147 PATH_SEPARATOR=';'
11148 else
11149 PATH_SEPARATOR=:
11151 rm -f conf$$.sh
11155 as_lineno_1=$LINENO
11156 as_lineno_2=$LINENO
11157 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11158 test "x$as_lineno_1" != "x$as_lineno_2" &&
11159 test "x$as_lineno_3" = "x$as_lineno_2" || {
11160 # Find who we are. Look in the path if we contain no path at all
11161 # relative or not.
11162 case $0 in
11163 *[\\/]* ) as_myself=$0 ;;
11164 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11165 for as_dir in $PATH
11167 IFS=$as_save_IFS
11168 test -z "$as_dir" && as_dir=.
11169 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11170 done
11173 esac
11174 # We did not find ourselves, most probably we were run as `sh COMMAND'
11175 # in which case we are not to be found in the path.
11176 if test "x$as_myself" = x; then
11177 as_myself=$0
11179 if test ! -f "$as_myself"; then
11180 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11181 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11182 { (exit 1); exit 1; }; }
11184 case $CONFIG_SHELL in
11186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11189 IFS=$as_save_IFS
11190 test -z "$as_dir" && as_dir=.
11191 for as_base in sh bash ksh sh5; do
11192 case $as_dir in
11194 if ("$as_dir/$as_base" -c '
11195 as_lineno_1=$LINENO
11196 as_lineno_2=$LINENO
11197 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11198 test "x$as_lineno_1" != "x$as_lineno_2" &&
11199 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11200 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11201 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11202 CONFIG_SHELL=$as_dir/$as_base
11203 export CONFIG_SHELL
11204 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11205 fi;;
11206 esac
11207 done
11208 done
11210 esac
11212 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11213 # uniformly replaced by the line number. The first 'sed' inserts a
11214 # line-number line before each line; the second 'sed' does the real
11215 # work. The second script uses 'N' to pair each line-number line
11216 # with the numbered line, and appends trailing '-' during
11217 # substitution so that $LINENO is not a special case at line end.
11218 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11219 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11220 sed '=' <$as_myself |
11221 sed '
11223 s,$,-,
11224 : loop
11225 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11226 t loop
11227 s,-$,,
11228 s,^['$as_cr_digits']*\n,,
11229 ' >$as_me.lineno &&
11230 chmod +x $as_me.lineno ||
11231 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11232 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11233 { (exit 1); exit 1; }; }
11235 # Don't try to exec as it changes $[0], causing all sort of problems
11236 # (the dirname of $[0] is not the place where we might find the
11237 # original and so on. Autoconf is especially sensible to this).
11238 . ./$as_me.lineno
11239 # Exit status is that of the last command.
11240 exit
11244 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11245 *c*,-n*) ECHO_N= ECHO_C='
11246 ' ECHO_T=' ' ;;
11247 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11248 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11249 esac
11251 if expr a : '\(a\)' >/dev/null 2>&1; then
11252 as_expr=expr
11253 else
11254 as_expr=false
11257 rm -f conf$$ conf$$.exe conf$$.file
11258 echo >conf$$.file
11259 if ln -s conf$$.file conf$$ 2>/dev/null; then
11260 # We could just check for DJGPP; but this test a) works b) is more generic
11261 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11262 if test -f conf$$.exe; then
11263 # Don't use ln at all; we don't have any links
11264 as_ln_s='cp -p'
11265 else
11266 as_ln_s='ln -s'
11268 elif ln conf$$.file conf$$ 2>/dev/null; then
11269 as_ln_s=ln
11270 else
11271 as_ln_s='cp -p'
11273 rm -f conf$$ conf$$.exe conf$$.file
11275 if mkdir -p . 2>/dev/null; then
11276 as_mkdir_p=:
11277 else
11278 test -d ./-p && rmdir ./-p
11279 as_mkdir_p=false
11282 as_executable_p="test -f"
11284 # Sed expression to map a string onto a valid CPP name.
11285 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11287 # Sed expression to map a string onto a valid variable name.
11288 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11291 # IFS
11292 # We need space, tab and new line, in precisely that order.
11293 as_nl='
11295 IFS=" $as_nl"
11297 # CDPATH.
11298 $as_unset CDPATH
11300 exec 6>&1
11302 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11303 # report actual input values of CONFIG_FILES etc. instead of their
11304 # values after options handling. Logging --version etc. is OK.
11305 exec 5>>config.log
11307 echo
11308 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11309 ## Running $as_me. ##
11310 _ASBOX
11311 } >&5
11312 cat >&5 <<_CSEOF
11314 This file was extended by GNU OpenMP Runtime Library $as_me 1.0, which was
11315 generated by GNU Autoconf 2.59. Invocation command line was
11317 CONFIG_FILES = $CONFIG_FILES
11318 CONFIG_HEADERS = $CONFIG_HEADERS
11319 CONFIG_LINKS = $CONFIG_LINKS
11320 CONFIG_COMMANDS = $CONFIG_COMMANDS
11321 $ $0 $@
11323 _CSEOF
11324 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11325 echo >&5
11326 _ACEOF
11328 # Files that config.status was made for.
11329 if test -n "$ac_config_files"; then
11330 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11333 if test -n "$ac_config_headers"; then
11334 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11337 if test -n "$ac_config_links"; then
11338 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11341 if test -n "$ac_config_commands"; then
11342 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11345 cat >>$CONFIG_STATUS <<\_ACEOF
11347 ac_cs_usage="\
11348 \`$as_me' instantiates files from templates according to the
11349 current configuration.
11351 Usage: $0 [OPTIONS] [FILE]...
11353 -h, --help print this help, then exit
11354 -V, --version print version number, then exit
11355 -q, --quiet do not print progress messages
11356 -d, --debug don't remove temporary files
11357 --recheck update $as_me by reconfiguring in the same conditions
11358 --file=FILE[:TEMPLATE]
11359 instantiate the configuration file FILE
11360 --header=FILE[:TEMPLATE]
11361 instantiate the configuration header FILE
11363 Configuration files:
11364 $config_files
11366 Configuration headers:
11367 $config_headers
11369 Configuration commands:
11370 $config_commands
11372 Report bugs to <bug-autoconf@gnu.org>."
11373 _ACEOF
11375 cat >>$CONFIG_STATUS <<_ACEOF
11376 ac_cs_version="\\
11377 GNU OpenMP Runtime Library config.status 1.0
11378 configured by $0, generated by GNU Autoconf 2.59,
11379 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11381 Copyright (C) 2003 Free Software Foundation, Inc.
11382 This config.status script is free software; the Free Software Foundation
11383 gives unlimited permission to copy, distribute and modify it."
11384 srcdir=$srcdir
11385 INSTALL="$INSTALL"
11386 _ACEOF
11388 cat >>$CONFIG_STATUS <<\_ACEOF
11389 # If no file are specified by the user, then we need to provide default
11390 # value. By we need to know if files were specified by the user.
11391 ac_need_defaults=:
11392 while test $# != 0
11394 case $1 in
11395 --*=*)
11396 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11397 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11398 ac_shift=:
11401 ac_option=$1
11402 ac_optarg=$2
11403 ac_shift=shift
11405 *) # This is not an option, so the user has probably given explicit
11406 # arguments.
11407 ac_option=$1
11408 ac_need_defaults=false;;
11409 esac
11411 case $ac_option in
11412 # Handling of the options.
11413 _ACEOF
11414 cat >>$CONFIG_STATUS <<\_ACEOF
11415 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11416 ac_cs_recheck=: ;;
11417 --version | --vers* | -V )
11418 echo "$ac_cs_version"; exit 0 ;;
11419 --he | --h)
11420 # Conflict between --help and --header
11421 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11422 Try \`$0 --help' for more information." >&5
11423 echo "$as_me: error: ambiguous option: $1
11424 Try \`$0 --help' for more information." >&2;}
11425 { (exit 1); exit 1; }; };;
11426 --help | --hel | -h )
11427 echo "$ac_cs_usage"; exit 0 ;;
11428 --debug | --d* | -d )
11429 debug=: ;;
11430 --file | --fil | --fi | --f )
11431 $ac_shift
11432 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11433 ac_need_defaults=false;;
11434 --header | --heade | --head | --hea )
11435 $ac_shift
11436 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11437 ac_need_defaults=false;;
11438 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11439 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11440 ac_cs_silent=: ;;
11442 # This is an error.
11443 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11444 Try \`$0 --help' for more information." >&5
11445 echo "$as_me: error: unrecognized option: $1
11446 Try \`$0 --help' for more information." >&2;}
11447 { (exit 1); exit 1; }; } ;;
11449 *) ac_config_targets="$ac_config_targets $1" ;;
11451 esac
11452 shift
11453 done
11455 ac_configure_extra_args=
11457 if $ac_cs_silent; then
11458 exec 6>/dev/null
11459 ac_configure_extra_args="$ac_configure_extra_args --silent"
11462 _ACEOF
11463 cat >>$CONFIG_STATUS <<_ACEOF
11464 if \$ac_cs_recheck; then
11465 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11466 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11469 _ACEOF
11471 cat >>$CONFIG_STATUS <<_ACEOF
11473 # INIT-COMMANDS section.
11477 srcdir="$srcdir"
11478 host="$host"
11479 target="$target"
11480 with_multisubdir="$with_multisubdir"
11481 with_multisrctop="$with_multisrctop"
11482 with_target_subdir="$with_target_subdir"
11483 ac_configure_args="${multilib_arg} ${ac_configure_args}"
11484 multi_basedir="$multi_basedir"
11485 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
11486 CC="$CC"
11487 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11489 GCC="$GCC"
11490 CC="$CC"
11491 acx_cv_header_stdint="$acx_cv_header_stdint"
11492 acx_cv_type_int8_t="$acx_cv_type_int8_t"
11493 acx_cv_type_int16_t="$acx_cv_type_int16_t"
11494 acx_cv_type_int32_t="$acx_cv_type_int32_t"
11495 acx_cv_type_int64_t="$acx_cv_type_int64_t"
11496 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
11497 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
11498 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
11499 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
11500 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
11501 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
11502 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
11503 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
11504 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
11507 _ACEOF
11511 cat >>$CONFIG_STATUS <<\_ACEOF
11512 for ac_config_target in $ac_config_targets
11514 case "$ac_config_target" in
11515 # Handling of arguments.
11516 "omp.h" ) CONFIG_FILES="$CONFIG_FILES omp.h" ;;
11517 "omp_lib.h" ) CONFIG_FILES="$CONFIG_FILES omp_lib.h" ;;
11518 "omp_lib.f90" ) CONFIG_FILES="$CONFIG_FILES omp_lib.f90" ;;
11519 "libgomp_f.h" ) CONFIG_FILES="$CONFIG_FILES libgomp_f.h" ;;
11520 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11521 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
11522 "libgomp.spec" ) CONFIG_FILES="$CONFIG_FILES libgomp.spec" ;;
11523 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
11524 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11525 "gstdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
11526 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11527 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11528 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11529 { (exit 1); exit 1; }; };;
11530 esac
11531 done
11533 # If the user did not use the arguments to specify the items to instantiate,
11534 # then the envvar interface is used. Set only those that are not.
11535 # We use the long form for the default assignment because of an extremely
11536 # bizarre bug on SunOS 4.1.3.
11537 if $ac_need_defaults; then
11538 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11539 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11540 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11543 # Have a temporary directory for convenience. Make it in the build tree
11544 # simply because there is no reason to put it here, and in addition,
11545 # creating and moving files from /tmp can sometimes cause problems.
11546 # Create a temporary directory, and hook for its removal unless debugging.
11547 $debug ||
11549 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11550 trap '{ (exit 1); exit 1; }' 1 2 13 15
11553 # Create a (secure) tmp directory for tmp files.
11556 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11557 test -n "$tmp" && test -d "$tmp"
11558 } ||
11560 tmp=./confstat$$-$RANDOM
11561 (umask 077 && mkdir $tmp)
11562 } ||
11564 echo "$me: cannot create a temporary directory in ." >&2
11565 { (exit 1); exit 1; }
11568 _ACEOF
11570 cat >>$CONFIG_STATUS <<_ACEOF
11573 # CONFIG_FILES section.
11576 # No need to generate the scripts if there are no CONFIG_FILES.
11577 # This happens for instance when ./config.status config.h
11578 if test -n "\$CONFIG_FILES"; then
11579 # Protect against being on the right side of a sed subst in config.status.
11580 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11581 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11582 s,@SHELL@,$SHELL,;t t
11583 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11584 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11585 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11586 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11587 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11588 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11589 s,@exec_prefix@,$exec_prefix,;t t
11590 s,@prefix@,$prefix,;t t
11591 s,@program_transform_name@,$program_transform_name,;t t
11592 s,@bindir@,$bindir,;t t
11593 s,@sbindir@,$sbindir,;t t
11594 s,@libexecdir@,$libexecdir,;t t
11595 s,@datadir@,$datadir,;t t
11596 s,@sysconfdir@,$sysconfdir,;t t
11597 s,@sharedstatedir@,$sharedstatedir,;t t
11598 s,@localstatedir@,$localstatedir,;t t
11599 s,@libdir@,$libdir,;t t
11600 s,@includedir@,$includedir,;t t
11601 s,@oldincludedir@,$oldincludedir,;t t
11602 s,@infodir@,$infodir,;t t
11603 s,@mandir@,$mandir,;t t
11604 s,@build_alias@,$build_alias,;t t
11605 s,@host_alias@,$host_alias,;t t
11606 s,@target_alias@,$target_alias,;t t
11607 s,@DEFS@,$DEFS,;t t
11608 s,@ECHO_C@,$ECHO_C,;t t
11609 s,@ECHO_N@,$ECHO_N,;t t
11610 s,@ECHO_T@,$ECHO_T,;t t
11611 s,@LIBS@,$LIBS,;t t
11612 s,@build@,$build,;t t
11613 s,@build_cpu@,$build_cpu,;t t
11614 s,@build_vendor@,$build_vendor,;t t
11615 s,@build_os@,$build_os,;t t
11616 s,@host@,$host,;t t
11617 s,@host_cpu@,$host_cpu,;t t
11618 s,@host_vendor@,$host_vendor,;t t
11619 s,@host_os@,$host_os,;t t
11620 s,@target@,$target,;t t
11621 s,@target_cpu@,$target_cpu,;t t
11622 s,@target_vendor@,$target_vendor,;t t
11623 s,@target_os@,$target_os,;t t
11624 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11625 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11626 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11627 s,@CYGPATH_W@,$CYGPATH_W,;t t
11628 s,@PACKAGE@,$PACKAGE,;t t
11629 s,@VERSION@,$VERSION,;t t
11630 s,@ACLOCAL@,$ACLOCAL,;t t
11631 s,@AUTOCONF@,$AUTOCONF,;t t
11632 s,@AUTOMAKE@,$AUTOMAKE,;t t
11633 s,@AUTOHEADER@,$AUTOHEADER,;t t
11634 s,@MAKEINFO@,$MAKEINFO,;t t
11635 s,@install_sh@,$install_sh,;t t
11636 s,@STRIP@,$STRIP,;t t
11637 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11638 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
11639 s,@mkdir_p@,$mkdir_p,;t t
11640 s,@AWK@,$AWK,;t t
11641 s,@SET_MAKE@,$SET_MAKE,;t t
11642 s,@am__leading_dot@,$am__leading_dot,;t t
11643 s,@AMTAR@,$AMTAR,;t t
11644 s,@am__tar@,$am__tar,;t t
11645 s,@am__untar@,$am__untar,;t t
11646 s,@multi_basedir@,$multi_basedir,;t t
11647 s,@toolexecdir@,$toolexecdir,;t t
11648 s,@toolexeclibdir@,$toolexeclibdir,;t t
11649 s,@CC@,$CC,;t t
11650 s,@ac_ct_CC@,$ac_ct_CC,;t t
11651 s,@EXEEXT@,$EXEEXT,;t t
11652 s,@OBJEXT@,$OBJEXT,;t t
11653 s,@DEPDIR@,$DEPDIR,;t t
11654 s,@am__include@,$am__include,;t t
11655 s,@am__quote@,$am__quote,;t t
11656 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
11657 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
11658 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
11659 s,@CCDEPMODE@,$CCDEPMODE,;t t
11660 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
11661 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
11662 s,@CFLAGS@,$CFLAGS,;t t
11663 s,@AR@,$AR,;t t
11664 s,@ac_ct_AR@,$ac_ct_AR,;t t
11665 s,@RANLIB@,$RANLIB,;t t
11666 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11667 s,@PERL@,$PERL,;t t
11668 s,@LN_S@,$LN_S,;t t
11669 s,@LIBTOOL@,$LIBTOOL,;t t
11670 s,@enable_shared@,$enable_shared,;t t
11671 s,@enable_static@,$enable_static,;t t
11672 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
11673 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
11674 s,@MAINT@,$MAINT,;t t
11675 s,@FC@,$FC,;t t
11676 s,@FCFLAGS@,$FCFLAGS,;t t
11677 s,@LDFLAGS@,$LDFLAGS,;t t
11678 s,@ac_ct_FC@,$ac_ct_FC,;t t
11679 s,@libtool_VERSION@,$libtool_VERSION,;t t
11680 s,@CPP@,$CPP,;t t
11681 s,@CPPFLAGS@,$CPPFLAGS,;t t
11682 s,@EGREP@,$EGREP,;t t
11683 s,@SECTION_LDFLAGS@,$SECTION_LDFLAGS,;t t
11684 s,@OPT_LDFLAGS@,$OPT_LDFLAGS,;t t
11685 s,@LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE@,$LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE,;t t
11686 s,@LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE@,$LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE,;t t
11687 s,@config_path@,$config_path,;t t
11688 s,@XCFLAGS@,$XCFLAGS,;t t
11689 s,@XLDFLAGS@,$XLDFLAGS,;t t
11690 s,@link_gomp@,$link_gomp,;t t
11691 s,@USE_FORTRAN_TRUE@,$USE_FORTRAN_TRUE,;t t
11692 s,@USE_FORTRAN_FALSE@,$USE_FORTRAN_FALSE,;t t
11693 s,@OMP_LOCK_SIZE@,$OMP_LOCK_SIZE,;t t
11694 s,@OMP_LOCK_ALIGN@,$OMP_LOCK_ALIGN,;t t
11695 s,@OMP_NEST_LOCK_SIZE@,$OMP_NEST_LOCK_SIZE,;t t
11696 s,@OMP_NEST_LOCK_ALIGN@,$OMP_NEST_LOCK_ALIGN,;t t
11697 s,@OMP_LOCK_KIND@,$OMP_LOCK_KIND,;t t
11698 s,@OMP_NEST_LOCK_KIND@,$OMP_NEST_LOCK_KIND,;t t
11699 s,@LIBOBJS@,$LIBOBJS,;t t
11700 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11701 CEOF
11703 _ACEOF
11705 cat >>$CONFIG_STATUS <<\_ACEOF
11706 # Split the substitutions into bite-sized pieces for seds with
11707 # small command number limits, like on Digital OSF/1 and HP-UX.
11708 ac_max_sed_lines=48
11709 ac_sed_frag=1 # Number of current file.
11710 ac_beg=1 # First line for current file.
11711 ac_end=$ac_max_sed_lines # Line after last line for current file.
11712 ac_more_lines=:
11713 ac_sed_cmds=
11714 while $ac_more_lines; do
11715 if test $ac_beg -gt 1; then
11716 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11717 else
11718 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11720 if test ! -s $tmp/subs.frag; then
11721 ac_more_lines=false
11722 else
11723 # The purpose of the label and of the branching condition is to
11724 # speed up the sed processing (if there are no `@' at all, there
11725 # is no need to browse any of the substitutions).
11726 # These are the two extra sed commands mentioned above.
11727 (echo ':t
11728 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11729 if test -z "$ac_sed_cmds"; then
11730 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11731 else
11732 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11734 ac_sed_frag=`expr $ac_sed_frag + 1`
11735 ac_beg=$ac_end
11736 ac_end=`expr $ac_end + $ac_max_sed_lines`
11738 done
11739 if test -z "$ac_sed_cmds"; then
11740 ac_sed_cmds=cat
11742 fi # test -n "$CONFIG_FILES"
11744 _ACEOF
11745 cat >>$CONFIG_STATUS <<\_ACEOF
11746 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11747 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11748 case $ac_file in
11749 - | *:- | *:-:* ) # input from stdin
11750 cat >$tmp/stdin
11751 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11752 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11753 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11754 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11755 * ) ac_file_in=$ac_file.in ;;
11756 esac
11758 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11759 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11760 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11761 X"$ac_file" : 'X\(//\)[^/]' \| \
11762 X"$ac_file" : 'X\(//\)$' \| \
11763 X"$ac_file" : 'X\(/\)' \| \
11764 . : '\(.\)' 2>/dev/null ||
11765 echo X"$ac_file" |
11766 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11767 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11768 /^X\(\/\/\)$/{ s//\1/; q; }
11769 /^X\(\/\).*/{ s//\1/; q; }
11770 s/.*/./; q'`
11771 { if $as_mkdir_p; then
11772 mkdir -p "$ac_dir"
11773 else
11774 as_dir="$ac_dir"
11775 as_dirs=
11776 while test ! -d "$as_dir"; do
11777 as_dirs="$as_dir $as_dirs"
11778 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11779 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11780 X"$as_dir" : 'X\(//\)[^/]' \| \
11781 X"$as_dir" : 'X\(//\)$' \| \
11782 X"$as_dir" : 'X\(/\)' \| \
11783 . : '\(.\)' 2>/dev/null ||
11784 echo X"$as_dir" |
11785 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11786 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11787 /^X\(\/\/\)$/{ s//\1/; q; }
11788 /^X\(\/\).*/{ s//\1/; q; }
11789 s/.*/./; q'`
11790 done
11791 test ! -n "$as_dirs" || mkdir $as_dirs
11792 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11793 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11794 { (exit 1); exit 1; }; }; }
11796 ac_builddir=.
11798 if test "$ac_dir" != .; then
11799 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11800 # A "../" for each directory in $ac_dir_suffix.
11801 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11802 else
11803 ac_dir_suffix= ac_top_builddir=
11806 case $srcdir in
11807 .) # No --srcdir option. We are building in place.
11808 ac_srcdir=.
11809 if test -z "$ac_top_builddir"; then
11810 ac_top_srcdir=.
11811 else
11812 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11813 fi ;;
11814 [\\/]* | ?:[\\/]* ) # Absolute path.
11815 ac_srcdir=$srcdir$ac_dir_suffix;
11816 ac_top_srcdir=$srcdir ;;
11817 *) # Relative path.
11818 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11819 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11820 esac
11822 # Do not use `cd foo && pwd` to compute absolute paths, because
11823 # the directories may not exist.
11824 case `pwd` in
11825 .) ac_abs_builddir="$ac_dir";;
11827 case "$ac_dir" in
11828 .) ac_abs_builddir=`pwd`;;
11829 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11830 *) ac_abs_builddir=`pwd`/"$ac_dir";;
11831 esac;;
11832 esac
11833 case $ac_abs_builddir in
11834 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11836 case ${ac_top_builddir}. in
11837 .) ac_abs_top_builddir=$ac_abs_builddir;;
11838 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11839 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11840 esac;;
11841 esac
11842 case $ac_abs_builddir in
11843 .) ac_abs_srcdir=$ac_srcdir;;
11845 case $ac_srcdir in
11846 .) ac_abs_srcdir=$ac_abs_builddir;;
11847 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11848 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11849 esac;;
11850 esac
11851 case $ac_abs_builddir in
11852 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11854 case $ac_top_srcdir in
11855 .) ac_abs_top_srcdir=$ac_abs_builddir;;
11856 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11857 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11858 esac;;
11859 esac
11862 case $INSTALL in
11863 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11864 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11865 esac
11867 if test x"$ac_file" != x-; then
11868 { echo "$as_me:$LINENO: creating $ac_file" >&5
11869 echo "$as_me: creating $ac_file" >&6;}
11870 rm -f "$ac_file"
11872 # Let's still pretend it is `configure' which instantiates (i.e., don't
11873 # use $as_me), people would be surprised to read:
11874 # /* config.h. Generated by config.status. */
11875 if test x"$ac_file" = x-; then
11876 configure_input=
11877 else
11878 configure_input="$ac_file. "
11880 configure_input=$configure_input"Generated from `echo $ac_file_in |
11881 sed 's,.*/,,'` by configure."
11883 # First look for the input files in the build tree, otherwise in the
11884 # src tree.
11885 ac_file_inputs=`IFS=:
11886 for f in $ac_file_in; do
11887 case $f in
11888 -) echo $tmp/stdin ;;
11889 [\\/$]*)
11890 # Absolute (can't be DOS-style, as IFS=:)
11891 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11892 echo "$as_me: error: cannot find input file: $f" >&2;}
11893 { (exit 1); exit 1; }; }
11894 echo "$f";;
11895 *) # Relative
11896 if test -f "$f"; then
11897 # Build tree
11898 echo "$f"
11899 elif test -f "$srcdir/$f"; then
11900 # Source tree
11901 echo "$srcdir/$f"
11902 else
11903 # /dev/null tree
11904 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11905 echo "$as_me: error: cannot find input file: $f" >&2;}
11906 { (exit 1); exit 1; }; }
11907 fi;;
11908 esac
11909 done` || { (exit 1); exit 1; }
11910 _ACEOF
11911 cat >>$CONFIG_STATUS <<_ACEOF
11912 sed "$ac_vpsub
11913 $extrasub
11914 _ACEOF
11915 cat >>$CONFIG_STATUS <<\_ACEOF
11917 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11918 s,@configure_input@,$configure_input,;t t
11919 s,@srcdir@,$ac_srcdir,;t t
11920 s,@abs_srcdir@,$ac_abs_srcdir,;t t
11921 s,@top_srcdir@,$ac_top_srcdir,;t t
11922 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11923 s,@builddir@,$ac_builddir,;t t
11924 s,@abs_builddir@,$ac_abs_builddir,;t t
11925 s,@top_builddir@,$ac_top_builddir,;t t
11926 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11927 s,@INSTALL@,$ac_INSTALL,;t t
11928 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11929 rm -f $tmp/stdin
11930 if test x"$ac_file" != x-; then
11931 mv $tmp/out $ac_file
11932 else
11933 cat $tmp/out
11934 rm -f $tmp/out
11937 done
11938 _ACEOF
11939 cat >>$CONFIG_STATUS <<\_ACEOF
11942 # CONFIG_HEADER section.
11945 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11946 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11948 # ac_d sets the value in "#define NAME VALUE" lines.
11949 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11950 ac_dB='[ ].*$,\1#\2'
11951 ac_dC=' '
11952 ac_dD=',;t'
11953 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11954 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11955 ac_uB='$,\1#\2define\3'
11956 ac_uC=' '
11957 ac_uD=',;t'
11959 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11960 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11961 case $ac_file in
11962 - | *:- | *:-:* ) # input from stdin
11963 cat >$tmp/stdin
11964 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11965 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11966 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11967 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11968 * ) ac_file_in=$ac_file.in ;;
11969 esac
11971 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11972 echo "$as_me: creating $ac_file" >&6;}
11974 # First look for the input files in the build tree, otherwise in the
11975 # src tree.
11976 ac_file_inputs=`IFS=:
11977 for f in $ac_file_in; do
11978 case $f in
11979 -) echo $tmp/stdin ;;
11980 [\\/$]*)
11981 # Absolute (can't be DOS-style, as IFS=:)
11982 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11983 echo "$as_me: error: cannot find input file: $f" >&2;}
11984 { (exit 1); exit 1; }; }
11985 # Do quote $f, to prevent DOS paths from being IFS'd.
11986 echo "$f";;
11987 *) # Relative
11988 if test -f "$f"; then
11989 # Build tree
11990 echo "$f"
11991 elif test -f "$srcdir/$f"; then
11992 # Source tree
11993 echo "$srcdir/$f"
11994 else
11995 # /dev/null tree
11996 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11997 echo "$as_me: error: cannot find input file: $f" >&2;}
11998 { (exit 1); exit 1; }; }
11999 fi;;
12000 esac
12001 done` || { (exit 1); exit 1; }
12002 # Remove the trailing spaces.
12003 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
12005 _ACEOF
12007 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12008 # `conftest.undefs', that substitutes the proper values into
12009 # config.h.in to produce config.h. The first handles `#define'
12010 # templates, and the second `#undef' templates.
12011 # And first: Protect against being on the right side of a sed subst in
12012 # config.status. Protect against being in an unquoted here document
12013 # in config.status.
12014 rm -f conftest.defines conftest.undefs
12015 # Using a here document instead of a string reduces the quoting nightmare.
12016 # Putting comments in sed scripts is not portable.
12018 # `end' is used to avoid that the second main sed command (meant for
12019 # 0-ary CPP macros) applies to n-ary macro definitions.
12020 # See the Autoconf documentation for `clear'.
12021 cat >confdef2sed.sed <<\_ACEOF
12022 s/[\\&,]/\\&/g
12023 s,[\\$`],\\&,g
12024 t clear
12025 : clear
12026 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12027 t end
12028 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12029 : end
12030 _ACEOF
12031 # If some macros were called several times there might be several times
12032 # the same #defines, which is useless. Nevertheless, we may not want to
12033 # sort them, since we want the *last* AC-DEFINE to be honored.
12034 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12035 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12036 rm -f confdef2sed.sed
12038 # This sed command replaces #undef with comments. This is necessary, for
12039 # example, in the case of _POSIX_SOURCE, which is predefined and required
12040 # on some systems where configure will not decide to define it.
12041 cat >>conftest.undefs <<\_ACEOF
12042 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12043 _ACEOF
12045 # Break up conftest.defines because some shells have a limit on the size
12046 # of here documents, and old seds have small limits too (100 cmds).
12047 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12048 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12049 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12050 echo ' :' >>$CONFIG_STATUS
12051 rm -f conftest.tail
12052 while grep . conftest.defines >/dev/null
12054 # Write a limited-size here document to $tmp/defines.sed.
12055 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12056 # Speed up: don't consider the non `#define' lines.
12057 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
12058 # Work around the forget-to-reset-the-flag bug.
12059 echo 't clr' >>$CONFIG_STATUS
12060 echo ': clr' >>$CONFIG_STATUS
12061 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12062 echo 'CEOF
12063 sed -f $tmp/defines.sed $tmp/in >$tmp/out
12064 rm -f $tmp/in
12065 mv $tmp/out $tmp/in
12066 ' >>$CONFIG_STATUS
12067 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12068 rm -f conftest.defines
12069 mv conftest.tail conftest.defines
12070 done
12071 rm -f conftest.defines
12072 echo ' fi # grep' >>$CONFIG_STATUS
12073 echo >>$CONFIG_STATUS
12075 # Break up conftest.undefs because some shells have a limit on the size
12076 # of here documents, and old seds have small limits too (100 cmds).
12077 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
12078 rm -f conftest.tail
12079 while grep . conftest.undefs >/dev/null
12081 # Write a limited-size here document to $tmp/undefs.sed.
12082 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12083 # Speed up: don't consider the non `#undef'
12084 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
12085 # Work around the forget-to-reset-the-flag bug.
12086 echo 't clr' >>$CONFIG_STATUS
12087 echo ': clr' >>$CONFIG_STATUS
12088 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12089 echo 'CEOF
12090 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12091 rm -f $tmp/in
12092 mv $tmp/out $tmp/in
12093 ' >>$CONFIG_STATUS
12094 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12095 rm -f conftest.undefs
12096 mv conftest.tail conftest.undefs
12097 done
12098 rm -f conftest.undefs
12100 cat >>$CONFIG_STATUS <<\_ACEOF
12101 # Let's still pretend it is `configure' which instantiates (i.e., don't
12102 # use $as_me), people would be surprised to read:
12103 # /* config.h. Generated by config.status. */
12104 if test x"$ac_file" = x-; then
12105 echo "/* Generated by configure. */" >$tmp/config.h
12106 else
12107 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
12109 cat $tmp/in >>$tmp/config.h
12110 rm -f $tmp/in
12111 if test x"$ac_file" != x-; then
12112 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12113 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12114 echo "$as_me: $ac_file is unchanged" >&6;}
12115 else
12116 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12117 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12118 X"$ac_file" : 'X\(//\)[^/]' \| \
12119 X"$ac_file" : 'X\(//\)$' \| \
12120 X"$ac_file" : 'X\(/\)' \| \
12121 . : '\(.\)' 2>/dev/null ||
12122 echo X"$ac_file" |
12123 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12124 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12125 /^X\(\/\/\)$/{ s//\1/; q; }
12126 /^X\(\/\).*/{ s//\1/; q; }
12127 s/.*/./; q'`
12128 { if $as_mkdir_p; then
12129 mkdir -p "$ac_dir"
12130 else
12131 as_dir="$ac_dir"
12132 as_dirs=
12133 while test ! -d "$as_dir"; do
12134 as_dirs="$as_dir $as_dirs"
12135 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12136 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12137 X"$as_dir" : 'X\(//\)[^/]' \| \
12138 X"$as_dir" : 'X\(//\)$' \| \
12139 X"$as_dir" : 'X\(/\)' \| \
12140 . : '\(.\)' 2>/dev/null ||
12141 echo X"$as_dir" |
12142 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12143 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12144 /^X\(\/\/\)$/{ s//\1/; q; }
12145 /^X\(\/\).*/{ s//\1/; q; }
12146 s/.*/./; q'`
12147 done
12148 test ! -n "$as_dirs" || mkdir $as_dirs
12149 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12150 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12151 { (exit 1); exit 1; }; }; }
12153 rm -f $ac_file
12154 mv $tmp/config.h $ac_file
12156 else
12157 cat $tmp/config.h
12158 rm -f $tmp/config.h
12160 # Compute $ac_file's index in $config_headers.
12161 _am_stamp_count=1
12162 for _am_header in $config_headers :; do
12163 case $_am_header in
12164 $ac_file | $ac_file:* )
12165 break ;;
12167 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12168 esac
12169 done
12170 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
12171 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12172 X$ac_file : 'X\(//\)[^/]' \| \
12173 X$ac_file : 'X\(//\)$' \| \
12174 X$ac_file : 'X\(/\)' \| \
12175 . : '\(.\)' 2>/dev/null ||
12176 echo X$ac_file |
12177 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12178 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12179 /^X\(\/\/\)$/{ s//\1/; q; }
12180 /^X\(\/\).*/{ s//\1/; q; }
12181 s/.*/./; q'`/stamp-h$_am_stamp_count
12182 done
12183 _ACEOF
12184 cat >>$CONFIG_STATUS <<\_ACEOF
12187 # CONFIG_COMMANDS section.
12189 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12190 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12191 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12192 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12193 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12194 X"$ac_dest" : 'X\(//\)[^/]' \| \
12195 X"$ac_dest" : 'X\(//\)$' \| \
12196 X"$ac_dest" : 'X\(/\)' \| \
12197 . : '\(.\)' 2>/dev/null ||
12198 echo X"$ac_dest" |
12199 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12200 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12201 /^X\(\/\/\)$/{ s//\1/; q; }
12202 /^X\(\/\).*/{ s//\1/; q; }
12203 s/.*/./; q'`
12204 { if $as_mkdir_p; then
12205 mkdir -p "$ac_dir"
12206 else
12207 as_dir="$ac_dir"
12208 as_dirs=
12209 while test ! -d "$as_dir"; do
12210 as_dirs="$as_dir $as_dirs"
12211 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12212 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12213 X"$as_dir" : 'X\(//\)[^/]' \| \
12214 X"$as_dir" : 'X\(//\)$' \| \
12215 X"$as_dir" : 'X\(/\)' \| \
12216 . : '\(.\)' 2>/dev/null ||
12217 echo X"$as_dir" |
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 done
12224 test ! -n "$as_dirs" || mkdir $as_dirs
12225 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12226 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12227 { (exit 1); exit 1; }; }; }
12229 ac_builddir=.
12231 if test "$ac_dir" != .; then
12232 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12233 # A "../" for each directory in $ac_dir_suffix.
12234 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12235 else
12236 ac_dir_suffix= ac_top_builddir=
12239 case $srcdir in
12240 .) # No --srcdir option. We are building in place.
12241 ac_srcdir=.
12242 if test -z "$ac_top_builddir"; then
12243 ac_top_srcdir=.
12244 else
12245 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12246 fi ;;
12247 [\\/]* | ?:[\\/]* ) # Absolute path.
12248 ac_srcdir=$srcdir$ac_dir_suffix;
12249 ac_top_srcdir=$srcdir ;;
12250 *) # Relative path.
12251 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12252 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12253 esac
12255 # Do not use `cd foo && pwd` to compute absolute paths, because
12256 # the directories may not exist.
12257 case `pwd` in
12258 .) ac_abs_builddir="$ac_dir";;
12260 case "$ac_dir" in
12261 .) ac_abs_builddir=`pwd`;;
12262 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12263 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12264 esac;;
12265 esac
12266 case $ac_abs_builddir in
12267 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12269 case ${ac_top_builddir}. in
12270 .) ac_abs_top_builddir=$ac_abs_builddir;;
12271 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12272 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12273 esac;;
12274 esac
12275 case $ac_abs_builddir in
12276 .) ac_abs_srcdir=$ac_srcdir;;
12278 case $ac_srcdir in
12279 .) ac_abs_srcdir=$ac_abs_builddir;;
12280 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12281 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12282 esac;;
12283 esac
12284 case $ac_abs_builddir in
12285 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12287 case $ac_top_srcdir in
12288 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12289 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12290 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12291 esac;;
12292 esac
12295 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12296 echo "$as_me: executing $ac_dest commands" >&6;}
12297 case $ac_dest in
12298 default-1 )
12299 # Only add multilib support code if we just rebuilt the top-level
12300 # Makefile.
12301 case " $CONFIG_FILES " in
12302 *" Makefile "*)
12303 ac_file=Makefile . ${multi_basedir}/config-ml.in
12305 esac ;;
12306 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12307 # Strip MF so we end up with the name of the file.
12308 mf=`echo "$mf" | sed -e 's/:.*$//'`
12309 # Check whether this is an Automake generated Makefile or not.
12310 # We used to match only the files named `Makefile.in', but
12311 # some people rename them; so instead we look at the file content.
12312 # Grep'ing the first line is not enough: some people post-process
12313 # each Makefile.in and add a new line on top of each file to say so.
12314 # So let's grep whole file.
12315 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12316 dirpart=`(dirname "$mf") 2>/dev/null ||
12317 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12318 X"$mf" : 'X\(//\)[^/]' \| \
12319 X"$mf" : 'X\(//\)$' \| \
12320 X"$mf" : 'X\(/\)' \| \
12321 . : '\(.\)' 2>/dev/null ||
12322 echo X"$mf" |
12323 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12324 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12325 /^X\(\/\/\)$/{ s//\1/; q; }
12326 /^X\(\/\).*/{ s//\1/; q; }
12327 s/.*/./; q'`
12328 else
12329 continue
12331 # Extract the definition of DEPDIR, am__include, and am__quote
12332 # from the Makefile without running `make'.
12333 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12334 test -z "$DEPDIR" && continue
12335 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12336 test -z "am__include" && continue
12337 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12338 # When using ansi2knr, U may be empty or an underscore; expand it
12339 U=`sed -n 's/^U = //p' < "$mf"`
12340 # Find all dependency output files, they are included files with
12341 # $(DEPDIR) in their names. We invoke sed twice because it is the
12342 # simplest approach to changing $(DEPDIR) to its actual value in the
12343 # expansion.
12344 for file in `sed -n "
12345 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12346 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12347 # Make sure the directory exists.
12348 test -f "$dirpart/$file" && continue
12349 fdir=`(dirname "$file") 2>/dev/null ||
12350 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12351 X"$file" : 'X\(//\)[^/]' \| \
12352 X"$file" : 'X\(//\)$' \| \
12353 X"$file" : 'X\(/\)' \| \
12354 . : '\(.\)' 2>/dev/null ||
12355 echo X"$file" |
12356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12357 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12358 /^X\(\/\/\)$/{ s//\1/; q; }
12359 /^X\(\/\).*/{ s//\1/; q; }
12360 s/.*/./; q'`
12361 { if $as_mkdir_p; then
12362 mkdir -p $dirpart/$fdir
12363 else
12364 as_dir=$dirpart/$fdir
12365 as_dirs=
12366 while test ! -d "$as_dir"; do
12367 as_dirs="$as_dir $as_dirs"
12368 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12369 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12370 X"$as_dir" : 'X\(//\)[^/]' \| \
12371 X"$as_dir" : 'X\(//\)$' \| \
12372 X"$as_dir" : 'X\(/\)' \| \
12373 . : '\(.\)' 2>/dev/null ||
12374 echo X"$as_dir" |
12375 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12376 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12377 /^X\(\/\/\)$/{ s//\1/; q; }
12378 /^X\(\/\).*/{ s//\1/; q; }
12379 s/.*/./; q'`
12380 done
12381 test ! -n "$as_dirs" || mkdir $as_dirs
12382 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
12383 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
12384 { (exit 1); exit 1; }; }; }
12386 # echo "creating $dirpart/$file"
12387 echo '# dummy' > "$dirpart/$file"
12388 done
12389 done
12391 gstdint.h )
12392 if test "$GCC" = yes; then
12393 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
12394 else
12395 echo "/* generated for $CC */" > tmp-stdint.h
12398 sed 's/^ *//' >> tmp-stdint.h <<EOF
12400 #ifndef GCC_GENERATED_STDINT_H
12401 #define GCC_GENERATED_STDINT_H 1
12403 #include <sys/types.h>
12406 if test "$acx_cv_header_stdint" != stdint.h; then
12407 echo "#include <stddef.h>" >> tmp-stdint.h
12409 if test "$acx_cv_header_stdint" != stddef.h; then
12410 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
12413 sed 's/^ *//' >> tmp-stdint.h <<EOF
12414 /* glibc uses these symbols as guards to prevent redefinitions. */
12415 #ifdef __int8_t_defined
12416 #define _INT8_T
12417 #define _INT16_T
12418 #define _INT32_T
12419 #endif
12420 #ifdef __uint32_t_defined
12421 #define _UINT32_T
12422 #endif
12426 # ----------------- done header, emit basic int types -------------
12427 if test "$acx_cv_header_stdint" = stddef.h; then
12428 sed 's/^ *//' >> tmp-stdint.h <<EOF
12430 #ifndef _UINT8_T
12431 #define _UINT8_T
12432 typedef unsigned $acx_cv_type_int8_t uint8_t;
12433 #endif
12435 #ifndef _UINT16_T
12436 #define _UINT16_T
12437 typedef unsigned $acx_cv_type_int16_t uint16_t;
12438 #endif
12440 #ifndef _UINT32_T
12441 #define _UINT32_T
12442 typedef unsigned $acx_cv_type_int32_t uint32_t;
12443 #endif
12445 #ifndef _INT8_T
12446 #define _INT8_T
12447 typedef $acx_cv_type_int8_t int8_t;
12448 #endif
12450 #ifndef _INT16_T
12451 #define _INT16_T
12452 typedef $acx_cv_type_int16_t int16_t;
12453 #endif
12455 #ifndef _INT32_T
12456 #define _INT32_T
12457 typedef $acx_cv_type_int32_t int32_t;
12458 #endif
12460 elif test "$ac_cv_type_u_int32_t" = yes; then
12461 sed 's/^ *//' >> tmp-stdint.h <<EOF
12463 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
12464 #ifndef _INT8_T
12465 #define _INT8_T
12466 #endif
12467 #ifndef _INT16_T
12468 #define _INT16_T
12469 #endif
12470 #ifndef _INT32_T
12471 #define _INT32_T
12472 #endif
12474 #ifndef _UINT8_T
12475 #define _UINT8_T
12476 typedef u_int8_t uint8_t;
12477 #endif
12479 #ifndef _UINT16_T
12480 #define _UINT16_T
12481 typedef u_int16_t uint16_t;
12482 #endif
12484 #ifndef _UINT32_T
12485 #define _UINT32_T
12486 typedef u_int32_t uint32_t;
12487 #endif
12489 else
12490 sed 's/^ *//' >> tmp-stdint.h <<EOF
12492 /* Some systems have guard macros to prevent redefinitions, define them. */
12493 #ifndef _INT8_T
12494 #define _INT8_T
12495 #endif
12496 #ifndef _INT16_T
12497 #define _INT16_T
12498 #endif
12499 #ifndef _INT32_T
12500 #define _INT32_T
12501 #endif
12502 #ifndef _UINT8_T
12503 #define _UINT8_T
12504 #endif
12505 #ifndef _UINT16_T
12506 #define _UINT16_T
12507 #endif
12508 #ifndef _UINT32_T
12509 #define _UINT32_T
12510 #endif
12514 # ------------- done basic int types, emit int64_t types ------------
12515 if test "$ac_cv_type_uint64_t" = yes; then
12516 sed 's/^ *//' >> tmp-stdint.h <<EOF
12518 /* system headers have good uint64_t and int64_t */
12519 #ifndef _INT64_T
12520 #define _INT64_T
12521 #endif
12522 #ifndef _UINT64_T
12523 #define _UINT64_T
12524 #endif
12526 elif test "$ac_cv_type_u_int64_t" = yes; then
12527 sed 's/^ *//' >> tmp-stdint.h <<EOF
12529 /* system headers have an u_int64_t (and int64_t) */
12530 #ifndef _INT64_T
12531 #define _INT64_T
12532 #endif
12533 #ifndef _UINT64_T
12534 #define _UINT64_T
12535 typedef u_int64_t uint64_t;
12536 #endif
12538 elif test -n "$acx_cv_type_int64_t"; then
12539 sed 's/^ *//' >> tmp-stdint.h <<EOF
12541 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
12542 #ifndef _INT64_T
12543 #define _INT64_T
12544 typedef $acx_cv_type_int64_t int64_t;
12545 #endif
12546 #ifndef _UINT64_T
12547 #define _UINT64_T
12548 typedef unsigned $acx_cv_type_int64_t uint64_t;
12549 #endif
12551 else
12552 sed 's/^ *//' >> tmp-stdint.h <<EOF
12554 /* some common heuristics for int64_t, using compiler-specific tests */
12555 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
12556 #ifndef _INT64_T
12557 #define _INT64_T
12558 typedef long long int64_t;
12559 #endif
12560 #ifndef _UINT64_T
12561 #define _UINT64_T
12562 typedef unsigned long long uint64_t;
12563 #endif
12565 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
12566 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
12567 does not implement __extension__. But that compiler doesn't define
12568 __GNUC_MINOR__. */
12569 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
12570 # define __extension__
12571 # endif
12573 # ifndef _INT64_T
12574 # define _INT64_T
12575 __extension__ typedef long long int64_t;
12576 # endif
12577 # ifndef _UINT64_T
12578 # define _UINT64_T
12579 __extension__ typedef unsigned long long uint64_t;
12580 # endif
12582 #elif !defined __STRICT_ANSI__
12583 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
12585 # ifndef _INT64_T
12586 # define _INT64_T
12587 typedef __int64 int64_t;
12588 # endif
12589 # ifndef _UINT64_T
12590 # define _UINT64_T
12591 typedef unsigned __int64 uint64_t;
12592 # endif
12593 # endif /* compiler */
12595 #endif /* ANSI version */
12599 # ------------- done int64_t types, emit intptr types ------------
12600 if test "$ac_cv_type_uintptr_t" != yes; then
12601 sed 's/^ *//' >> tmp-stdint.h <<EOF
12603 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
12604 typedef u$acx_cv_type_intptr_t uintptr_t;
12605 typedef $acx_cv_type_intptr_t intptr_t;
12609 # ------------- done intptr types, emit int_least types ------------
12610 if test "$ac_cv_type_int_least32_t" != yes; then
12611 sed 's/^ *//' >> tmp-stdint.h <<EOF
12613 /* Define int_least types */
12614 typedef int8_t int_least8_t;
12615 typedef int16_t int_least16_t;
12616 typedef int32_t int_least32_t;
12617 #ifdef _INT64_T
12618 typedef int64_t int_least64_t;
12619 #endif
12621 typedef uint8_t uint_least8_t;
12622 typedef uint16_t uint_least16_t;
12623 typedef uint32_t uint_least32_t;
12624 #ifdef _UINT64_T
12625 typedef uint64_t uint_least64_t;
12626 #endif
12630 # ------------- done intptr types, emit int_fast types ------------
12631 if test "$ac_cv_type_int_fast32_t" != yes; then
12632 sed 's/^ *//' >> tmp-stdint.h <<EOF
12634 /* Define int_fast types. short is often slow */
12635 typedef int8_t int_fast8_t;
12636 typedef int int_fast16_t;
12637 typedef int32_t int_fast32_t;
12638 #ifdef _INT64_T
12639 typedef int64_t int_fast64_t;
12640 #endif
12642 typedef uint8_t uint_fast8_t;
12643 typedef unsigned int uint_fast16_t;
12644 typedef uint32_t uint_fast32_t;
12645 #ifdef _UINT64_T
12646 typedef uint64_t uint_fast64_t;
12647 #endif
12651 if test "$ac_cv_type_uintmax_t" != yes; then
12652 sed 's/^ *//' >> tmp-stdint.h <<EOF
12654 /* Define intmax based on what we found */
12655 #ifdef _INT64_T
12656 typedef int64_t intmax_t;
12657 #else
12658 typedef long intmax_t;
12659 #endif
12660 #ifdef _UINT64_T
12661 typedef uint64_t uintmax_t;
12662 #else
12663 typedef unsigned long uintmax_t;
12664 #endif
12668 sed 's/^ *//' >> tmp-stdint.h <<EOF
12670 #endif /* GCC_GENERATED_STDINT_H */
12673 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
12674 rm -f tmp-stdint.h
12675 else
12676 mv -f tmp-stdint.h gstdint.h
12680 esac
12681 done
12682 _ACEOF
12684 cat >>$CONFIG_STATUS <<\_ACEOF
12686 { (exit 0); exit 0; }
12687 _ACEOF
12688 chmod +x $CONFIG_STATUS
12689 ac_clean_files=$ac_clean_files_save
12692 # configure is writing to config.log, and then calls config.status.
12693 # config.status does its own redirection, appending to config.log.
12694 # Unfortunately, on DOS this fails, as config.log is still kept open
12695 # by configure, so config.status won't be able to write to it; its
12696 # output is simply discarded. So we exec the FD to /dev/null,
12697 # effectively closing config.log, so it can be properly (re)opened and
12698 # appended to by config.status. When coming back to configure, we
12699 # need to make the FD available again.
12700 if test "$no_create" != yes; then
12701 ac_cs_success=:
12702 ac_config_status_args=
12703 test "$silent" = yes &&
12704 ac_config_status_args="$ac_config_status_args --quiet"
12705 exec 5>/dev/null
12706 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12707 exec 5>>config.log
12708 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12709 # would make configure fail if this is the last instruction.
12710 $ac_cs_success || { (exit 1); exit 1; }