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
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
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
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
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 \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
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 ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; 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
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
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
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
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
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
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
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
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 |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
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).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe 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
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
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'"
235 # We need space, tab and new line, in precisely that order.
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`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
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'
274 # Factoring default headers for most tests.
275 ac_includes_default="\
278 # include <sys/types.h>
281 # include <sys/stat.h>
292 # if !STDC_HEADERS && HAVE_MEMORY_H
298 # include <strings.h>
301 # include <inttypes.h>
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 GENINSRC_TRUE GENINSRC_FALSE 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'
314 # Initialize some variables set by options.
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
326 program_transform_name=s,x,x,
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'
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364 # Accept the important Cygnus configure options, so we can diagnose typos.
368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
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 ;;
386 cache_file=config.cache ;;
388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
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'`
411 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
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.
429 -help | --help | --hel | --he | -h)
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)
450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451 infodir=$ac_optarg ;;
453 -libdir | --libdir | --libdi | --libd)
455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
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)
476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480 # Obsolete; use --without-fp.
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484 | --no-cr | --no-c | -n)
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
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)
502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
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)
540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 sbindir=$ac_optarg ;;
546 -sharedstatedir | --sharedstatedir | --sharedstatedi \
547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548 | --sharedst | --shareds | --shared | --share | --shar \
550 ac_prev=sharedstatedir ;;
551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 sharedstatedir=$ac_optarg ;;
557 -site | --site | --sit)
559 -site=* | --site=* | --sit=*)
562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
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)
582 -version | --version | --versio | --versi | --vers | -V)
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'`
593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
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" ;;
608 # Obsolete; use --with-x.
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; }; }
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'"
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}
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`
662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
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`
674 [\\/$]* | ?:[\\/]* ) ;;
675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676 { (exit 1); exit 1; }; };;
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.
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
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 ||
715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
721 if test ! -r $srcdir/$ac_unique_file; then
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; }; }
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}
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.
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.
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 \`..']
803 Installation directories:
804 --prefix=PREFIX install architecture-independent files in PREFIX
806 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
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]
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
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]
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:";;
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
859 --enable-generated-files-in-srcdir
860 put copies of generated files in source dir intended
861 for creating source tarballs for users without
862 texinfo bison or flex. [default=no]
863 --enable-multilib build many library versions (default)
864 --disable-dependency-tracking speeds up one-time build
865 --enable-dependency-tracking do not reject slow dependency extractors
866 --enable-shared=PKGS build shared libraries default=yes
867 --enable-static=PKGS build static libraries default=yes
868 --enable-fast-install=PKGS optimize for fast installation default=yes
869 --disable-libtool-lock avoid locking (might break parallel builds)
870 --enable-maintainer-mode enable make rules and dependencies not useful
871 (and sometimes confusing) to the casual installer
872 --enable-tls Use thread-local storage [default=yes]
873 --enable-symvers=STYLE enables symbol versioning of the shared library
877 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
878 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
879 --with-gnu-ld assume the C compiler uses GNU ld default=no
880 --with-pic try to use only PIC/non-PIC objects default=use both
882 Some influential environment variables:
883 CC C compiler command
884 CFLAGS C compiler flags
885 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
886 nonstandard directory <lib dir>
887 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
888 headers in a nonstandard directory <include dir>
889 FC Fortran compiler command
890 FCFLAGS Fortran compiler flags
893 Use these variables to override the choices made by `configure' or to help
894 it to find libraries and programs with nonstandard names/locations.
899 if test "$ac_init_help" = "recursive"; then
900 # If there are subdirs, report their specific --help.
902 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
903 test -d $ac_dir || continue
906 if test "$ac_dir" != .; then
907 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
908 # A "../" for each directory in $ac_dir_suffix.
909 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
911 ac_dir_suffix= ac_top_builddir=
915 .) # No --srcdir option. We are building in place.
917 if test -z "$ac_top_builddir"; then
920 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
922 [\\/]* | ?:[\\/]* ) # Absolute path.
923 ac_srcdir=$srcdir$ac_dir_suffix;
924 ac_top_srcdir=$srcdir ;;
926 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
927 ac_top_srcdir=$ac_top_builddir$srcdir ;;
930 # Do not use `cd foo && pwd` to compute absolute paths, because
931 # the directories may not exist.
933 .) ac_abs_builddir="$ac_dir";;
936 .) ac_abs_builddir=`pwd`;;
937 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
938 *) ac_abs_builddir=`pwd`/"$ac_dir";;
941 case $ac_abs_builddir in
942 .) ac_abs_top_builddir=${ac_top_builddir}.;;
944 case ${ac_top_builddir}. in
945 .) ac_abs_top_builddir=$ac_abs_builddir;;
946 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
947 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
950 case $ac_abs_builddir in
951 .) ac_abs_srcdir=$ac_srcdir;;
954 .) ac_abs_srcdir=$ac_abs_builddir;;
955 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
956 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
959 case $ac_abs_builddir in
960 .) ac_abs_top_srcdir=$ac_top_srcdir;;
962 case $ac_top_srcdir in
963 .) ac_abs_top_srcdir=$ac_abs_builddir;;
964 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
965 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
970 # Check for guested configure; otherwise get Cygnus style configure.
971 if test -f $ac_srcdir/configure.gnu; then
973 $SHELL $ac_srcdir/configure.gnu --help=recursive
974 elif test -f $ac_srcdir/configure; then
976 $SHELL $ac_srcdir/configure --help=recursive
977 elif test -f $ac_srcdir/configure.ac ||
978 test -f $ac_srcdir/configure.in; then
982 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
988 test -n "$ac_init_help" && exit 0
989 if $ac_init_version; then
991 GNU OpenMP Runtime Library configure 1.0
992 generated by GNU Autoconf 2.59
994 Copyright (C) 2003 Free Software Foundation, Inc.
995 This configure script is free software; the Free Software Foundation
996 gives unlimited permission to copy, distribute and modify it.
1002 This file contains any messages produced by compilers while
1003 running configure, to aid debugging if configure makes a mistake.
1005 It was created by GNU OpenMP Runtime Library $as_me 1.0, which was
1006 generated by GNU Autoconf 2.59. Invocation command line was
1017 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1018 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1019 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1020 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1021 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1023 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1024 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1026 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1027 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1028 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1029 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1030 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1031 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1032 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1040 test -z "$as_dir" && as_dir=.
1041 echo "PATH: $as_dir"
1056 # Keep a trace of the command line.
1057 # Strip out --no-create and --no-recursion so they do not pile up.
1058 # Strip out --silent because we don't want to record it for future runs.
1059 # Also quote any args containing shell meta-characters.
1060 # Make two passes to allow for proper duplicate-argument suppression.
1065 ac_must_keep_next=false
1071 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1072 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1073 | -silent | --silent | --silen | --sile | --sil)
1075 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1076 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1079 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1081 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1082 if test $ac_must_keep_next = true; then
1083 ac_must_keep_next=false # Got value, back to normal.
1086 *=* | --config-cache | -C | -disable-* | --disable-* \
1087 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1088 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1089 | -with-* | --with-* | -without-* | --without-* | --x)
1090 case "$ac_configure_args0 " in
1091 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1094 -* ) ac_must_keep_next=true ;;
1097 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1098 # Get rid of the leading space.
1104 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1105 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1107 # When interrupted or exit'd, cleanup temporary files, and complete
1108 # config.log. We remove comments because anyway the quotes in there
1109 # would cause problems or look ugly.
1110 # WARNING: Be sure not to use single quotes in there, as some shells,
1111 # such as our DU 5.0 friend, will then `close' the trap.
1112 trap 'exit_status=$?
1113 # Save into config.log some information that might help in debugging.
1118 ## ---------------- ##
1119 ## Cache variables. ##
1120 ## ---------------- ##
1123 # The following way of writing the cache mishandles newlines in values,
1126 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1129 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1130 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1134 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1141 ## ----------------- ##
1142 ## Output variables. ##
1143 ## ----------------- ##
1146 for ac_var in $ac_subst_vars
1148 eval ac_val=$`echo $ac_var`
1149 echo "$ac_var='"'"'$ac_val'"'"'"
1153 if test -n "$ac_subst_files"; then
1160 for ac_var in $ac_subst_files
1162 eval ac_val=$`echo $ac_var`
1163 echo "$ac_var='"'"'$ac_val'"'"'"
1168 if test -s confdefs.h; then
1175 sed "/^$/d" confdefs.h | sort
1178 test "$ac_signal" != 0 &&
1179 echo "$as_me: caught signal $ac_signal"
1180 echo "$as_me: exit $exit_status"
1182 rm -f core *.core &&
1183 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1186 for ac_signal in 1 2 13 15; do
1187 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1191 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1192 rm -rf conftest* confdefs.h
1193 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1196 # Predefined preprocessor variables.
1198 cat >>confdefs.h <<_ACEOF
1199 #define PACKAGE_NAME "$PACKAGE_NAME"
1203 cat >>confdefs.h <<_ACEOF
1204 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1208 cat >>confdefs.h <<_ACEOF
1209 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1213 cat >>confdefs.h <<_ACEOF
1214 #define PACKAGE_STRING "$PACKAGE_STRING"
1218 cat >>confdefs.h <<_ACEOF
1219 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1223 # Let the site file select an alternate cache file if it wants to.
1224 # Prefer explicitly selected file to automatically selected ones.
1225 if test -z "$CONFIG_SITE"; then
1226 if test "x$prefix" != xNONE; then
1227 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1229 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1232 for ac_site_file in $CONFIG_SITE; do
1233 if test -r "$ac_site_file"; then
1234 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1235 echo "$as_me: loading site script $ac_site_file" >&6;}
1236 sed 's/^/| /' "$ac_site_file" >&5
1241 if test -r "$cache_file"; then
1242 # Some versions of bash will fail to source /dev/null (special
1243 # files actually), so we avoid doing that.
1244 if test -f "$cache_file"; then
1245 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1246 echo "$as_me: loading cache $cache_file" >&6;}
1248 [\\/]* | ?:[\\/]* ) . $cache_file;;
1249 *) . ./$cache_file;;
1253 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1254 echo "$as_me: creating cache $cache_file" >&6;}
1258 # Check that the precious variables saved in the cache have kept the same
1260 ac_cache_corrupted=false
1261 for ac_var in `(set) 2>&1 |
1262 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1263 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1264 eval ac_new_set=\$ac_env_${ac_var}_set
1265 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1266 eval ac_new_val="\$ac_env_${ac_var}_value"
1267 case $ac_old_set,$ac_new_set in
1269 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1270 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1271 ac_cache_corrupted=: ;;
1273 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1274 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1275 ac_cache_corrupted=: ;;
1278 if test "x$ac_old_val" != "x$ac_new_val"; then
1279 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1280 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1281 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1282 echo "$as_me: former value: $ac_old_val" >&2;}
1283 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1284 echo "$as_me: current value: $ac_new_val" >&2;}
1285 ac_cache_corrupted=:
1288 # Pass precious variables to config.status.
1289 if test "$ac_new_set" = set; then
1291 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1292 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1293 *) ac_arg=$ac_var=$ac_new_val ;;
1295 case " $ac_configure_args " in
1296 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1297 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1301 if $ac_cache_corrupted; then
1302 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1303 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1304 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1305 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1306 { (exit 1); exit 1; }; }
1310 ac_cpp='$CPP $CPPFLAGS'
1311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1341 ac_config_headers="$ac_config_headers config.h"
1348 echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
1349 echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6
1350 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1351 if test "${enable_version_specific_runtime_libs+set}" = set; then
1352 enableval="$enable_version_specific_runtime_libs"
1354 case "$enableval" in
1356 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific-runtime-libs" >&5
1357 echo "$as_me: error: Unknown argument to enable/disable version-specific-runtime-libs" >&2;}
1358 { (exit 1); exit 1; }; } ;;
1362 enable_version_specific_runtime_libs=no
1365 echo "$as_me:$LINENO: result: $enable_version_specific_runtime_libs" >&5
1366 echo "${ECHO_T}$enable_version_specific_runtime_libs" >&6
1368 echo "$as_me:$LINENO: checking for --enable-linux-futex" >&5
1369 echo $ECHO_N "checking for --enable-linux-futex... $ECHO_C" >&6
1370 # Check whether --enable-linux-futex or --disable-linux-futex was given.
1371 if test "${enable_linux_futex+set}" = set; then
1372 enableval="$enable_linux_futex"
1374 case "$enableval" in
1376 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable linux-futex" >&5
1377 echo "$as_me: error: Unknown argument to enable/disable linux-futex" >&2;}
1378 { (exit 1); exit 1; }; } ;;
1382 enable_linux_futex=default
1385 echo "$as_me:$LINENO: result: $enable_linux_futex" >&5
1386 echo "${ECHO_T}$enable_linux_futex" >&6
1388 # We would like our source tree to be readonly. However when releases or
1389 # pre-releases are generated, the flex/bison generated files as well as the
1390 # various formats of manuals need to be included along with the rest of the
1391 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1393 echo "$as_me:$LINENO: checking for --enable-generated-files-in-srcdir" >&5
1394 echo $ECHO_N "checking for --enable-generated-files-in-srcdir... $ECHO_C" >&6
1395 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1396 if test "${enable_generated_files_in_srcdir+set}" = set; then
1397 enableval="$enable_generated_files_in_srcdir"
1399 case "$enableval" in
1401 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable generated-files-in-srcdir" >&5
1402 echo "$as_me: error: Unknown argument to enable/disable generated-files-in-srcdir" >&2;}
1403 { (exit 1); exit 1; }; } ;;
1407 enable_generated_files_in_srcdir=no
1410 echo "$as_me:$LINENO: result: $enable_generated_files_in_srcdir" >&5
1411 echo "${ECHO_T}$enable_generated_files_in_srcdir" >&6
1414 if test "$enable_generated_files_in_srcdir" = yes; then
1427 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
1429 # You will slowly go insane if you do not grok the following fact: when
1430 # building this library, the top-level /target/ becomes the library's /host/.
1432 # configure then causes --target to default to --host, exactly like any
1433 # other package using autoconf. Therefore, 'target' and 'host' will
1434 # always be the same. This makes sense both for native and cross compilers
1435 # just think about it for a little while. :-)
1437 # Also, if this library is being configured as part of a cross compiler, the
1438 # top-level configure script will pass the "real" host as $with_cross_host.
1440 # Do not delete or change the following two lines. For why, see
1441 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
1443 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1444 if test -f $ac_dir/install-sh; then
1446 ac_install_sh="$ac_aux_dir/install-sh -c"
1448 elif test -f $ac_dir/install.sh; then
1450 ac_install_sh="$ac_aux_dir/install.sh -c"
1452 elif test -f $ac_dir/shtool; then
1454 ac_install_sh="$ac_aux_dir/shtool install -c"
1458 if test -z "$ac_aux_dir"; then
1459 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1460 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1461 { (exit 1); exit 1; }; }
1463 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1464 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1465 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1467 # Make sure we can run config.sub.
1468 $ac_config_sub sun4 >/dev/null 2>&1 ||
1469 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1470 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1471 { (exit 1); exit 1; }; }
1473 echo "$as_me:$LINENO: checking build system type" >&5
1474 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1475 if test "${ac_cv_build+set}" = set; then
1476 echo $ECHO_N "(cached) $ECHO_C" >&6
1478 ac_cv_build_alias=$build_alias
1479 test -z "$ac_cv_build_alias" &&
1480 ac_cv_build_alias=`$ac_config_guess`
1481 test -z "$ac_cv_build_alias" &&
1482 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1483 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1484 { (exit 1); exit 1; }; }
1485 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1486 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1487 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1488 { (exit 1); exit 1; }; }
1491 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1492 echo "${ECHO_T}$ac_cv_build" >&6
1494 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1495 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1496 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1499 echo "$as_me:$LINENO: checking host system type" >&5
1500 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1501 if test "${ac_cv_host+set}" = set; then
1502 echo $ECHO_N "(cached) $ECHO_C" >&6
1504 ac_cv_host_alias=$host_alias
1505 test -z "$ac_cv_host_alias" &&
1506 ac_cv_host_alias=$ac_cv_build_alias
1507 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1508 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1509 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1510 { (exit 1); exit 1; }; }
1513 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1514 echo "${ECHO_T}$ac_cv_host" >&6
1516 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1517 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1518 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1521 echo "$as_me:$LINENO: checking target system type" >&5
1522 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1523 if test "${ac_cv_target+set}" = set; then
1524 echo $ECHO_N "(cached) $ECHO_C" >&6
1526 ac_cv_target_alias=$target_alias
1527 test "x$ac_cv_target_alias" = "x" &&
1528 ac_cv_target_alias=$ac_cv_host_alias
1529 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1530 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1531 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1532 { (exit 1); exit 1; }; }
1535 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1536 echo "${ECHO_T}$ac_cv_target" >&6
1537 target=$ac_cv_target
1538 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1539 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1540 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1543 # The aliases save the names the user supplied, while $host etc.
1544 # will get canonicalized.
1545 test -n "$target_alias" &&
1546 test "$program_prefix$program_suffix$program_transform_name" = \
1548 program_prefix=${target_alias}-
1549 target_alias=${target_alias-$host_alias}
1551 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
1552 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
1553 # 1.9.0: minimum required version
1554 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
1555 # of other PACKAGE_* variables will, however, and there's nothing
1556 # we can do about that; they come from AC_INIT).
1557 # foreign: we don't follow the normal rules for GNU packages (no COPYING
1558 # file in the top srcdir, etc, etc), so stop complaining.
1559 # -Wall: turns on all automake warnings...
1560 # -Wno-portability: ...except this one, since GNU make is required.
1561 # -Wno-override: ... and this one, since we do want this in testsuite.
1562 am__api_version="1.9"
1563 # Find a good install program. We prefer a C program (faster),
1564 # so one script is as good as another. But avoid the broken or
1565 # incompatible versions:
1566 # SysV /etc/install, /usr/sbin/install
1567 # SunOS /usr/etc/install
1568 # IRIX /sbin/install
1570 # AmigaOS /C/install, which installs bootblocks on floppy discs
1571 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1572 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1573 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1574 # OS/2's system install, which has a completely different semantic
1575 # ./install, which can be erroneously created by make from ./install.sh.
1576 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1577 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1578 if test -z "$INSTALL"; then
1579 if test "${ac_cv_path_install+set}" = set; then
1580 echo $ECHO_N "(cached) $ECHO_C" >&6
1582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1586 test -z "$as_dir" && as_dir=.
1587 # Account for people who put trailing slashes in PATH elements.
1589 ./ | .// | /cC/* | \
1590 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1591 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1594 # OSF1 and SCO ODT 3.0 have their own names for install.
1595 # Don't use installbsd from OSF since it installs stuff as root
1597 for ac_prog in ginstall scoinst install; do
1598 for ac_exec_ext in '' $ac_executable_extensions; do
1599 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1600 if test $ac_prog = install &&
1601 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1602 # AIX install. It has an incompatible calling convention.
1604 elif test $ac_prog = install &&
1605 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1606 # program-specific install script used by HP pwplus--don't use.
1609 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1621 if test "${ac_cv_path_install+set}" = set; then
1622 INSTALL=$ac_cv_path_install
1624 # As a last resort, use the slow shell script. We don't cache a
1625 # path for INSTALL within a source directory, because that will
1626 # break other packages using the cache if that directory is
1627 # removed, or if the path is relative.
1628 INSTALL=$ac_install_sh
1631 echo "$as_me:$LINENO: result: $INSTALL" >&5
1632 echo "${ECHO_T}$INSTALL" >&6
1634 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1635 # It thinks the first close brace ends the variable substitution.
1636 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1638 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1640 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1642 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1643 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1646 echo timestamp > conftest.file
1647 # Do `set' in a subshell so we don't clobber the current shell's
1648 # arguments. Must try -L first in case configure is actually a
1649 # symlink; some systems play weird games with the mod time of symlinks
1650 # (eg FreeBSD returns the mod time of the symlink's containing
1653 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1654 if test "$*" = "X"; then
1656 set X `ls -t $srcdir/configure conftest.file`
1659 if test "$*" != "X $srcdir/configure conftest.file" \
1660 && test "$*" != "X conftest.file $srcdir/configure"; then
1662 # If neither matched, then we have a broken ls. This can happen
1663 # if, for instance, CONFIG_SHELL is bash and it inherits a
1664 # broken ls alias from the environment. This has actually
1665 # happened. Such a system could not be considered "sane".
1666 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1667 alias in your environment" >&5
1668 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1669 alias in your environment" >&2;}
1670 { (exit 1); exit 1; }; }
1673 test "$2" = conftest.file
1679 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1680 Check your system clock" >&5
1681 echo "$as_me: error: newly created file is older than distributed files!
1682 Check your system clock" >&2;}
1683 { (exit 1); exit 1; }; }
1685 echo "$as_me:$LINENO: result: yes" >&5
1686 echo "${ECHO_T}yes" >&6
1687 test "$program_prefix" != NONE &&
1688 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1689 # Use a double $ so make ignores it.
1690 test "$program_suffix" != NONE &&
1691 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1692 # Double any \ or $. echo might interpret backslashes.
1693 # By default was `s,x,x', remove it if useless.
1694 cat <<\_ACEOF >conftest.sed
1695 s/[\\$]/&&/g;s/;s,x,x,$//
1697 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1700 # expand $ac_aux_dir to an absolute path
1701 am_aux_dir=`cd $ac_aux_dir && pwd`
1703 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1704 # Use eval to expand $SHELL
1705 if eval "$MISSING --run true"; then
1706 am_missing_run="$MISSING --run "
1709 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1710 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1713 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1714 # We used to keeping the `.' as first argument, in order to
1715 # allow $(mkdir_p) to be used without argument. As in
1716 # $(mkdir_p) $(somedir)
1717 # where $(somedir) is conditionally defined. However this is wrong
1719 # 1. if the package is installed by a user who cannot write `.'
1720 # make install will fail,
1721 # 2. the above comment should most certainly read
1722 # $(mkdir_p) $(DESTDIR)$(somedir)
1723 # so it does not work when $(somedir) is undefined and
1724 # $(DESTDIR) is not.
1725 # To support the latter case, we have to write
1726 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1727 # so the `.' trick is pointless.
1728 mkdir_p='mkdir -p --'
1730 # On NextStep and OpenStep, the `mkdir' command does not
1731 # recognize any option. It will interpret all options as
1732 # directories to create, and then abort because `.' already
1734 for d in ./-p ./--version;
1736 test -d $d && rmdir $d
1738 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1739 if test -f "$ac_aux_dir/mkinstalldirs"; then
1740 mkdir_p='$(mkinstalldirs)'
1742 mkdir_p='$(install_sh) -d'
1746 for ac_prog in gawk mawk nawk awk
1748 # Extract the first word of "$ac_prog", so it can be a program name with args.
1749 set dummy $ac_prog; ac_word=$2
1750 echo "$as_me:$LINENO: checking for $ac_word" >&5
1751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1752 if test "${ac_cv_prog_AWK+set}" = set; then
1753 echo $ECHO_N "(cached) $ECHO_C" >&6
1755 if test -n "$AWK"; then
1756 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1762 test -z "$as_dir" && as_dir=.
1763 for ac_exec_ext in '' $ac_executable_extensions; do
1764 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1765 ac_cv_prog_AWK="$ac_prog"
1766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1775 if test -n "$AWK"; then
1776 echo "$as_me:$LINENO: result: $AWK" >&5
1777 echo "${ECHO_T}$AWK" >&6
1779 echo "$as_me:$LINENO: result: no" >&5
1780 echo "${ECHO_T}no" >&6
1783 test -n "$AWK" && break
1786 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1787 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1788 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1789 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1790 echo $ECHO_N "(cached) $ECHO_C" >&6
1792 cat >conftest.make <<\_ACEOF
1794 @echo 'ac_maketemp="$(MAKE)"'
1796 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1797 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1798 if test -n "$ac_maketemp"; then
1799 eval ac_cv_prog_make_${ac_make}_set=yes
1801 eval ac_cv_prog_make_${ac_make}_set=no
1805 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1806 echo "$as_me:$LINENO: result: yes" >&5
1807 echo "${ECHO_T}yes" >&6
1810 echo "$as_me:$LINENO: result: no" >&5
1811 echo "${ECHO_T}no" >&6
1812 SET_MAKE="MAKE=${MAKE-make}"
1815 rm -rf .tst 2>/dev/null
1816 mkdir .tst 2>/dev/null
1817 if test -d .tst; then
1822 rmdir .tst 2>/dev/null
1824 # test to see if srcdir already configured
1825 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1826 test -f $srcdir/config.status; then
1827 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1828 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1829 { (exit 1); exit 1; }; }
1832 # test whether we have cygpath
1833 if test -z "$CYGPATH_W"; then
1834 if (cygpath --version) >/dev/null 2>/dev/null; then
1835 CYGPATH_W='cygpath -w'
1842 # Define the identity of the package.
1847 cat >>confdefs.h <<_ACEOF
1848 #define PACKAGE "$PACKAGE"
1852 cat >>confdefs.h <<_ACEOF
1853 #define VERSION "$VERSION"
1856 # Some tools Automake needs.
1858 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1861 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1864 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1867 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1870 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1872 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1874 # Installed binaries are usually stripped using `strip' when the user
1875 # run `make install-strip'. However `strip' might not be the right
1876 # tool to use in cross-compilation environments, therefore Automake
1877 # will honor the `STRIP' environment variable to overrule this program.
1878 if test "$cross_compiling" != no; then
1879 if test -n "$ac_tool_prefix"; then
1880 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1881 set dummy ${ac_tool_prefix}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_STRIP+set}" = set; then
1885 echo $ECHO_N "(cached) $ECHO_C" >&6
1887 if test -n "$STRIP"; then
1888 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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_STRIP="${ac_tool_prefix}strip"
1898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1906 STRIP=$ac_cv_prog_STRIP
1907 if test -n "$STRIP"; then
1908 echo "$as_me:$LINENO: result: $STRIP" >&5
1909 echo "${ECHO_T}$STRIP" >&6
1911 echo "$as_me:$LINENO: result: no" >&5
1912 echo "${ECHO_T}no" >&6
1916 if test -z "$ac_cv_prog_STRIP"; then
1918 # Extract the first word of "strip", so it can be a program name with args.
1919 set dummy strip; ac_word=$2
1920 echo "$as_me:$LINENO: checking for $ac_word" >&5
1921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1922 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1923 echo $ECHO_N "(cached) $ECHO_C" >&6
1925 if test -n "$ac_ct_STRIP"; then
1926 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1932 test -z "$as_dir" && as_dir=.
1933 for ac_exec_ext in '' $ac_executable_extensions; do
1934 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1935 ac_cv_prog_ac_ct_STRIP="strip"
1936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1942 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1945 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1946 if test -n "$ac_ct_STRIP"; then
1947 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1948 echo "${ECHO_T}$ac_ct_STRIP" >&6
1950 echo "$as_me:$LINENO: result: no" >&5
1951 echo "${ECHO_T}no" >&6
1956 STRIP="$ac_cv_prog_STRIP"
1960 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1962 # We need awk for the "check" target. The system "awk" is bad on
1964 # Always define AMTAR for backward compatibility.
1966 AMTAR=${AMTAR-"${am_missing_run}tar"}
1968 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1974 # Default to --enable-multilib
1975 # Check whether --enable-multilib or --disable-multilib was given.
1976 if test "${enable_multilib+set}" = set; then
1977 enableval="$enable_multilib"
1978 case "$enableval" in
1979 yes) multilib=yes ;;
1981 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1982 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1983 { (exit 1); exit 1; }; } ;;
1989 # We may get other options which we leave undocumented:
1990 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1991 # See config-ml.in if you want the gory details.
1993 if test "$srcdir" = "."; then
1994 if test "$with_target_subdir" != "."; then
1995 multi_basedir="$srcdir/$with_multisrctop../.."
1997 multi_basedir="$srcdir/$with_multisrctop.."
2000 multi_basedir="$srcdir/.."
2004 # Even if the default multilib is not a cross compilation,
2005 # it may be that some of the other multilibs are.
2006 if test $cross_compiling = no && test $multilib = yes \
2007 && test "x${with_multisubdir}" != x ; then
2008 cross_compiling=maybe
2011 ac_config_commands="$ac_config_commands default-1"
2014 # Calculate toolexeclibdir
2015 # Also toolexecdir, though it's only used in toolexeclibdir
2016 case ${enable_version_specific_runtime_libs} in
2018 # Need the gcc compiler version to know where to install libraries
2019 # and header files if --enable-version-specific-runtime-libs option
2021 toolexecdir='$(libdir)/gcc/$(target_alias)'
2022 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
2025 if test -n "$with_cross_host" &&
2026 test x"$with_cross_host" != x"no"; then
2027 # Install a library built with a cross compiler in tooldir, not libdir.
2028 toolexecdir='$(exec_prefix)/$(target_alias)'
2029 toolexeclibdir='$(toolexecdir)/lib'
2031 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
2032 toolexeclibdir='$(libdir)'
2034 multi_os_directory=`$CC -print-multi-os-directory`
2035 case $multi_os_directory in
2036 .) ;; # Avoid trailing /.
2037 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
2044 # Check the compiler.
2045 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
2046 # We must force CC to /not/ be precious variables; otherwise
2047 # the wrong, non-multilib-adjusted value will be used in multilibs.
2048 # As a side effect, we have to subst CFLAGS ourselves.
2053 ac_cpp='$CPP $CPPFLAGS'
2054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2057 if test -n "$ac_tool_prefix"; then
2058 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2059 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2060 echo "$as_me:$LINENO: checking for $ac_word" >&5
2061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2062 if test "${ac_cv_prog_CC+set}" = set; then
2063 echo $ECHO_N "(cached) $ECHO_C" >&6
2065 if test -n "$CC"; then
2066 ac_cv_prog_CC="$CC" # Let the user override the test.
2068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2072 test -z "$as_dir" && as_dir=.
2073 for ac_exec_ext in '' $ac_executable_extensions; do
2074 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2075 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2085 if test -n "$CC"; then
2086 echo "$as_me:$LINENO: result: $CC" >&5
2087 echo "${ECHO_T}$CC" >&6
2089 echo "$as_me:$LINENO: result: no" >&5
2090 echo "${ECHO_T}no" >&6
2094 if test -z "$ac_cv_prog_CC"; then
2096 # Extract the first word of "gcc", so it can be a program name with args.
2097 set dummy gcc; ac_word=$2
2098 echo "$as_me:$LINENO: checking for $ac_word" >&5
2099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2100 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2101 echo $ECHO_N "(cached) $ECHO_C" >&6
2103 if test -n "$ac_ct_CC"; then
2104 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2110 test -z "$as_dir" && as_dir=.
2111 for ac_exec_ext in '' $ac_executable_extensions; do
2112 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2113 ac_cv_prog_ac_ct_CC="gcc"
2114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2122 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2123 if test -n "$ac_ct_CC"; then
2124 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2125 echo "${ECHO_T}$ac_ct_CC" >&6
2127 echo "$as_me:$LINENO: result: no" >&5
2128 echo "${ECHO_T}no" >&6
2136 if test -z "$CC"; then
2137 if test -n "$ac_tool_prefix"; then
2138 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2139 set dummy ${ac_tool_prefix}cc; ac_word=$2
2140 echo "$as_me:$LINENO: checking for $ac_word" >&5
2141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2142 if test "${ac_cv_prog_CC+set}" = set; then
2143 echo $ECHO_N "(cached) $ECHO_C" >&6
2145 if test -n "$CC"; then
2146 ac_cv_prog_CC="$CC" # Let the user override the test.
2148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2152 test -z "$as_dir" && as_dir=.
2153 for ac_exec_ext in '' $ac_executable_extensions; do
2154 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2155 ac_cv_prog_CC="${ac_tool_prefix}cc"
2156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2165 if test -n "$CC"; then
2166 echo "$as_me:$LINENO: result: $CC" >&5
2167 echo "${ECHO_T}$CC" >&6
2169 echo "$as_me:$LINENO: result: no" >&5
2170 echo "${ECHO_T}no" >&6
2174 if test -z "$ac_cv_prog_CC"; then
2176 # Extract the first word of "cc", so it can be a program name with args.
2177 set dummy cc; ac_word=$2
2178 echo "$as_me:$LINENO: checking for $ac_word" >&5
2179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2180 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2181 echo $ECHO_N "(cached) $ECHO_C" >&6
2183 if test -n "$ac_ct_CC"; then
2184 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2190 test -z "$as_dir" && as_dir=.
2191 for ac_exec_ext in '' $ac_executable_extensions; do
2192 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2193 ac_cv_prog_ac_ct_CC="cc"
2194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2202 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2203 if test -n "$ac_ct_CC"; then
2204 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2205 echo "${ECHO_T}$ac_ct_CC" >&6
2207 echo "$as_me:$LINENO: result: no" >&5
2208 echo "${ECHO_T}no" >&6
2217 if test -z "$CC"; then
2218 # Extract the first word of "cc", so it can be a program name with args.
2219 set dummy cc; ac_word=$2
2220 echo "$as_me:$LINENO: checking for $ac_word" >&5
2221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2222 if test "${ac_cv_prog_CC+set}" = set; then
2223 echo $ECHO_N "(cached) $ECHO_C" >&6
2225 if test -n "$CC"; then
2226 ac_cv_prog_CC="$CC" # Let the user override the test.
2229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2233 test -z "$as_dir" && as_dir=.
2234 for ac_exec_ext in '' $ac_executable_extensions; do
2235 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2236 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2237 ac_prog_rejected=yes
2241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2247 if test $ac_prog_rejected = yes; then
2248 # We found a bogon in the path, so make sure we never use it.
2249 set dummy $ac_cv_prog_CC
2251 if test $# != 0; then
2252 # We chose a different compiler from the bogus one.
2253 # However, it has the same basename, so the bogon will be chosen
2254 # first if we set CC to just the basename; use the full file name.
2256 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2262 if test -n "$CC"; then
2263 echo "$as_me:$LINENO: result: $CC" >&5
2264 echo "${ECHO_T}$CC" >&6
2266 echo "$as_me:$LINENO: result: no" >&5
2267 echo "${ECHO_T}no" >&6
2271 if test -z "$CC"; then
2272 if test -n "$ac_tool_prefix"; then
2275 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2276 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2277 echo "$as_me:$LINENO: checking for $ac_word" >&5
2278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2279 if test "${ac_cv_prog_CC+set}" = set; then
2280 echo $ECHO_N "(cached) $ECHO_C" >&6
2282 if test -n "$CC"; then
2283 ac_cv_prog_CC="$CC" # Let the user override the test.
2285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2289 test -z "$as_dir" && as_dir=.
2290 for ac_exec_ext in '' $ac_executable_extensions; do
2291 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2292 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2302 if test -n "$CC"; then
2303 echo "$as_me:$LINENO: result: $CC" >&5
2304 echo "${ECHO_T}$CC" >&6
2306 echo "$as_me:$LINENO: result: no" >&5
2307 echo "${ECHO_T}no" >&6
2310 test -n "$CC" && break
2313 if test -z "$CC"; then
2317 # Extract the first word of "$ac_prog", so it can be a program name with args.
2318 set dummy $ac_prog; ac_word=$2
2319 echo "$as_me:$LINENO: checking for $ac_word" >&5
2320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2321 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2322 echo $ECHO_N "(cached) $ECHO_C" >&6
2324 if test -n "$ac_ct_CC"; then
2325 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2331 test -z "$as_dir" && as_dir=.
2332 for ac_exec_ext in '' $ac_executable_extensions; do
2333 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2334 ac_cv_prog_ac_ct_CC="$ac_prog"
2335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2343 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2344 if test -n "$ac_ct_CC"; then
2345 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2346 echo "${ECHO_T}$ac_ct_CC" >&6
2348 echo "$as_me:$LINENO: result: no" >&5
2349 echo "${ECHO_T}no" >&6
2352 test -n "$ac_ct_CC" && break
2361 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2362 See \`config.log' for more details." >&5
2363 echo "$as_me: error: no acceptable C compiler found in \$PATH
2364 See \`config.log' for more details." >&2;}
2365 { (exit 1); exit 1; }; }
2367 # Provide some information about the compiler.
2368 echo "$as_me:$LINENO:" \
2369 "checking for C compiler version" >&5
2370 ac_compiler=`set X $ac_compile; echo $2`
2371 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2372 (eval $ac_compiler --version </dev/null >&5) 2>&5
2374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375 (exit $ac_status); }
2376 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2377 (eval $ac_compiler -v </dev/null >&5) 2>&5
2379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2380 (exit $ac_status); }
2381 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2382 (eval $ac_compiler -V </dev/null >&5) 2>&5
2384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385 (exit $ac_status); }
2387 cat >conftest.$ac_ext <<_ACEOF
2390 cat confdefs.h >>conftest.$ac_ext
2391 cat >>conftest.$ac_ext <<_ACEOF
2392 /* end confdefs.h. */
2402 ac_clean_files_save=$ac_clean_files
2403 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2404 # Try to create an executable without -o first, disregard a.out.
2405 # It will help us diagnose broken compilers, and finding out an intuition
2407 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2408 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2409 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2410 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2411 (eval $ac_link_default) 2>&5
2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414 (exit $ac_status); }; then
2415 # Find the output, starting from the most likely. This scheme is
2416 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2419 # Be careful to initialize this variable, since it used to be cached.
2420 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2422 # b.out is created by i960 compilers.
2423 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2425 test -f "$ac_file" || continue
2427 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2430 # This is the source file.
2433 # We found the default executable, but exeext='' is most
2437 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2438 # FIXME: I believe we export ac_cv_exeext for Libtool,
2439 # but it would be cool to find out if it's true. Does anybody
2440 # maintain Libtool? --akim.
2448 echo "$as_me: failed program was:" >&5
2449 sed 's/^/| /' conftest.$ac_ext >&5
2451 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2452 See \`config.log' for more details." >&5
2453 echo "$as_me: error: C compiler cannot create executables
2454 See \`config.log' for more details." >&2;}
2455 { (exit 77); exit 77; }; }
2458 ac_exeext=$ac_cv_exeext
2459 echo "$as_me:$LINENO: result: $ac_file" >&5
2460 echo "${ECHO_T}$ac_file" >&6
2462 # Check the compiler produces executables we can run. If not, either
2463 # the compiler is broken, or we cross compile.
2464 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2465 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2466 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2467 # If not cross compiling, check that we can run a simple program.
2468 if test "$cross_compiling" != yes; then
2469 if { ac_try='./$ac_file'
2470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474 (exit $ac_status); }; }; then
2477 if test "$cross_compiling" = maybe; then
2480 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2481 If you meant to cross compile, use \`--host'.
2482 See \`config.log' for more details." >&5
2483 echo "$as_me: error: cannot run C compiled programs.
2484 If you meant to cross compile, use \`--host'.
2485 See \`config.log' for more details." >&2;}
2486 { (exit 1); exit 1; }; }
2490 echo "$as_me:$LINENO: result: yes" >&5
2491 echo "${ECHO_T}yes" >&6
2493 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2494 ac_clean_files=$ac_clean_files_save
2495 # Check the compiler produces executables we can run. If not, either
2496 # the compiler is broken, or we cross compile.
2497 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2498 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2499 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2500 echo "${ECHO_T}$cross_compiling" >&6
2502 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2503 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2505 (eval $ac_link) 2>&5
2507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508 (exit $ac_status); }; then
2509 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2510 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2511 # work properly (i.e., refer to `conftest.exe'), while it won't with
2513 for ac_file in conftest.exe conftest conftest.*; do
2514 test -f "$ac_file" || continue
2516 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2517 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2524 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2525 See \`config.log' for more details." >&5
2526 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2527 See \`config.log' for more details." >&2;}
2528 { (exit 1); exit 1; }; }
2531 rm -f conftest$ac_cv_exeext
2532 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2533 echo "${ECHO_T}$ac_cv_exeext" >&6
2535 rm -f conftest.$ac_ext
2536 EXEEXT=$ac_cv_exeext
2538 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2539 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2540 if test "${ac_cv_objext+set}" = set; then
2541 echo $ECHO_N "(cached) $ECHO_C" >&6
2543 cat >conftest.$ac_ext <<_ACEOF
2546 cat confdefs.h >>conftest.$ac_ext
2547 cat >>conftest.$ac_ext <<_ACEOF
2548 /* end confdefs.h. */
2558 rm -f conftest.o conftest.obj
2559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2560 (eval $ac_compile) 2>&5
2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563 (exit $ac_status); }; then
2564 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2566 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2567 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2572 echo "$as_me: failed program was:" >&5
2573 sed 's/^/| /' conftest.$ac_ext >&5
2575 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2576 See \`config.log' for more details." >&5
2577 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2578 See \`config.log' for more details." >&2;}
2579 { (exit 1); exit 1; }; }
2582 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2584 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2585 echo "${ECHO_T}$ac_cv_objext" >&6
2586 OBJEXT=$ac_cv_objext
2588 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2589 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2590 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2591 echo $ECHO_N "(cached) $ECHO_C" >&6
2593 cat >conftest.$ac_ext <<_ACEOF
2596 cat confdefs.h >>conftest.$ac_ext
2597 cat >>conftest.$ac_ext <<_ACEOF
2598 /* end confdefs.h. */
2611 rm -f conftest.$ac_objext
2612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2613 (eval $ac_compile) 2>conftest.er1
2615 grep -v '^ *+' conftest.er1 >conftest.err
2617 cat conftest.err >&5
2618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619 (exit $ac_status); } &&
2620 { ac_try='test -z "$ac_c_werror_flag"
2621 || test ! -s conftest.err'
2622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); }; } &&
2627 { ac_try='test -s conftest.$ac_objext'
2628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632 (exit $ac_status); }; }; then
2635 echo "$as_me: failed program was:" >&5
2636 sed 's/^/| /' conftest.$ac_ext >&5
2640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2641 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2644 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2645 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2646 GCC=`test $ac_compiler_gnu = yes && echo yes`
2647 ac_test_CFLAGS=${CFLAGS+set}
2648 ac_save_CFLAGS=$CFLAGS
2650 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2651 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2652 if test "${ac_cv_prog_cc_g+set}" = set; then
2653 echo $ECHO_N "(cached) $ECHO_C" >&6
2655 cat >conftest.$ac_ext <<_ACEOF
2658 cat confdefs.h >>conftest.$ac_ext
2659 cat >>conftest.$ac_ext <<_ACEOF
2660 /* end confdefs.h. */
2670 rm -f conftest.$ac_objext
2671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2672 (eval $ac_compile) 2>conftest.er1
2674 grep -v '^ *+' conftest.er1 >conftest.err
2676 cat conftest.err >&5
2677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678 (exit $ac_status); } &&
2679 { ac_try='test -z "$ac_c_werror_flag"
2680 || test ! -s conftest.err'
2681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685 (exit $ac_status); }; } &&
2686 { ac_try='test -s conftest.$ac_objext'
2687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691 (exit $ac_status); }; }; then
2694 echo "$as_me: failed program was:" >&5
2695 sed 's/^/| /' conftest.$ac_ext >&5
2699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2701 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2702 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2703 if test "$ac_test_CFLAGS" = set; then
2704 CFLAGS=$ac_save_CFLAGS
2705 elif test $ac_cv_prog_cc_g = yes; then
2706 if test "$GCC" = yes; then
2712 if test "$GCC" = yes; then
2718 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2719 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2720 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2721 echo $ECHO_N "(cached) $ECHO_C" >&6
2723 ac_cv_prog_cc_stdc=no
2725 cat >conftest.$ac_ext <<_ACEOF
2728 cat confdefs.h >>conftest.$ac_ext
2729 cat >>conftest.$ac_ext <<_ACEOF
2730 /* end confdefs.h. */
2733 #include <sys/types.h>
2734 #include <sys/stat.h>
2735 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2736 struct buf { int x; };
2737 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2738 static char *e (p, i)
2744 static char *f (char * (*g) (char **, int), char **p, ...)
2749 s = g (p, va_arg (v,int));
2754 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2755 function prototypes and stuff, but not '\xHH' hex character constants.
2756 These don't provoke an error unfortunately, instead are silently treated
2757 as 'x'. The following induces an error, until -std1 is added to get
2758 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2759 array size at least. It's necessary to write '\x00'==0 to get something
2760 that's true only with -std1. */
2761 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2763 int test (int i, double x);
2764 struct s1 {int (*f) (int a);};
2765 struct s2 {int (*f) (double a);};
2766 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2772 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2777 # Don't try gcc -ansi; that turns off useful extensions and
2778 # breaks some systems' header files.
2779 # AIX -qlanglvl=ansi
2780 # Ultrix and OSF/1 -std1
2781 # HP-UX 10.20 and later -Ae
2782 # HP-UX older versions -Aa -D_HPUX_SOURCE
2783 # SVR4 -Xc -D__EXTENSIONS__
2784 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2786 CC="$ac_save_CC $ac_arg"
2787 rm -f conftest.$ac_objext
2788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2789 (eval $ac_compile) 2>conftest.er1
2791 grep -v '^ *+' conftest.er1 >conftest.err
2793 cat conftest.err >&5
2794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795 (exit $ac_status); } &&
2796 { ac_try='test -z "$ac_c_werror_flag"
2797 || test ! -s conftest.err'
2798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802 (exit $ac_status); }; } &&
2803 { ac_try='test -s conftest.$ac_objext'
2804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808 (exit $ac_status); }; }; then
2809 ac_cv_prog_cc_stdc=$ac_arg
2812 echo "$as_me: failed program was:" >&5
2813 sed 's/^/| /' conftest.$ac_ext >&5
2816 rm -f conftest.err conftest.$ac_objext
2818 rm -f conftest.$ac_ext conftest.$ac_objext
2823 case "x$ac_cv_prog_cc_stdc" in
2825 echo "$as_me:$LINENO: result: none needed" >&5
2826 echo "${ECHO_T}none needed" >&6 ;;
2828 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2829 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2830 CC="$CC $ac_cv_prog_cc_stdc" ;;
2833 # Some people use a C++ compiler to compile C. Since we use `exit',
2834 # in C++ we need to declare it. In case someone uses the same compiler
2835 # for both compiling C and C++ we need to have the C++ compiler decide
2836 # the declaration of exit, since it's the most demanding environment.
2837 cat >conftest.$ac_ext <<_ACEOF
2842 rm -f conftest.$ac_objext
2843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2844 (eval $ac_compile) 2>conftest.er1
2846 grep -v '^ *+' conftest.er1 >conftest.err
2848 cat conftest.err >&5
2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); } &&
2851 { ac_try='test -z "$ac_c_werror_flag"
2852 || test ! -s conftest.err'
2853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857 (exit $ac_status); }; } &&
2858 { ac_try='test -s conftest.$ac_objext'
2859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863 (exit $ac_status); }; }; then
2864 for ac_declaration in \
2866 'extern "C" void std::exit (int) throw (); using std::exit;' \
2867 'extern "C" void std::exit (int); using std::exit;' \
2868 'extern "C" void exit (int) throw ();' \
2869 'extern "C" void exit (int);' \
2872 cat >conftest.$ac_ext <<_ACEOF
2875 cat confdefs.h >>conftest.$ac_ext
2876 cat >>conftest.$ac_ext <<_ACEOF
2877 /* end confdefs.h. */
2888 rm -f conftest.$ac_objext
2889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2890 (eval $ac_compile) 2>conftest.er1
2892 grep -v '^ *+' conftest.er1 >conftest.err
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
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
2908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909 (exit $ac_status); }; }; then
2912 echo "$as_me: failed program was:" >&5
2913 sed 's/^/| /' conftest.$ac_ext >&5
2917 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2918 cat >conftest.$ac_ext <<_ACEOF
2921 cat confdefs.h >>conftest.$ac_ext
2922 cat >>conftest.$ac_ext <<_ACEOF
2923 /* end confdefs.h. */
2933 rm -f conftest.$ac_objext
2934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2935 (eval $ac_compile) 2>conftest.er1
2937 grep -v '^ *+' conftest.er1 >conftest.err
2939 cat conftest.err >&5
2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); } &&
2942 { ac_try='test -z "$ac_c_werror_flag"
2943 || test ! -s conftest.err'
2944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948 (exit $ac_status); }; } &&
2949 { ac_try='test -s conftest.$ac_objext'
2950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954 (exit $ac_status); }; }; then
2957 echo "$as_me: failed program was:" >&5
2958 sed 's/^/| /' conftest.$ac_ext >&5
2961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2964 if test -n "$ac_declaration"; then
2965 echo '#ifdef __cplusplus' >>confdefs.h
2966 echo $ac_declaration >>confdefs.h
2967 echo '#endif' >>confdefs.h
2971 echo "$as_me: failed program was:" >&5
2972 sed 's/^/| /' conftest.$ac_ext >&5
2975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2977 ac_cpp='$CPP $CPPFLAGS'
2978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2981 DEPDIR="${am__leading_dot}deps"
2983 ac_config_commands="$ac_config_commands depfiles"
2986 am_make=${MAKE-make}
2987 cat > confinc << 'END'
2992 # If we don't find an include directive, just comment out the code.
2993 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2994 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2998 # First try GNU make style include.
2999 echo "include confinc" > confmf
3000 # We grep out `Entering directory' and `Leaving directory'
3001 # messages which can occur if `w' ends up in MAKEFLAGS.
3002 # In particular we don't look at `^make:' because GNU make might
3003 # be invoked under some other name (usually "gmake"), in which
3004 # case it prints its new name instead of `make'.
3005 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3010 # Now try BSD make style include.
3011 if test "$am__include" = "#"; then
3012 echo '.include "confinc"' > confmf
3013 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3014 am__include=.include
3021 echo "$as_me:$LINENO: result: $_am_result" >&5
3022 echo "${ECHO_T}$_am_result" >&6
3023 rm -f confinc confmf
3025 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3026 if test "${enable_dependency_tracking+set}" = set; then
3027 enableval="$enable_dependency_tracking"
3030 if test "x$enable_dependency_tracking" != xno; then
3031 am_depcomp="$ac_aux_dir/depcomp"
3036 if test "x$enable_dependency_tracking" != xno; then
3047 depcc="$CC" am_compiler_list=
3049 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3050 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3051 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3052 echo $ECHO_N "(cached) $ECHO_C" >&6
3054 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3055 # We make a subdir and do the tests there. Otherwise we can end up
3056 # making bogus files that we don't know about and never remove. For
3057 # instance it was reported that on HP-UX the gcc test will end up
3058 # making a dummy file named `D' -- because `-MD' means `put the output
3061 # Copy depcomp to subdir because otherwise we won't find it if we're
3062 # using a relative directory.
3063 cp "$am_depcomp" conftest.dir
3065 # We will build objects and dependencies in a subdirectory because
3066 # it helps to detect inapplicable dependency modes. For instance
3067 # both Tru64's cc and ICC support -MD to output dependencies as a
3068 # side effect of compilation, but ICC will put the dependencies in
3069 # the current directory while Tru64 will put them in the object
3073 am_cv_CC_dependencies_compiler_type=none
3074 if test "$am_compiler_list" = ""; then
3075 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3077 for depmode in $am_compiler_list; do
3078 # Setup a source with many dependencies, because some compilers
3079 # like to wrap large dependency lists on column 80 (with \), and
3080 # we should not choose a depcomp mode which is confused by this.
3082 # We need to recreate these files for each test, as the compiler may
3083 # overwrite some of them when testing with obscure command lines.
3084 # This happens at least with the AIX C compiler.
3086 for i in 1 2 3 4 5 6; do
3087 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3088 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3089 # Solaris 8's {/usr,}/bin/sh.
3090 touch sub/conftst$i.h
3092 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3096 # after this tag, mechanisms are not by side-effect, so they'll
3097 # only be used when explicitly requested
3098 if test "x$enable_dependency_tracking" = xyes; then
3106 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3107 # mode. It turns out that the SunPro C++ compiler does not properly
3108 # handle `-M -o', and we need to detect this.
3109 if depmode=$depmode \
3110 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3111 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3112 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3113 >/dev/null 2>conftest.err &&
3114 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3115 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3116 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3117 # icc doesn't choke on unknown options, it will just issue warnings
3118 # or remarks (even with -Werror). So we grep stderr for any message
3119 # that says an option was ignored or not supported.
3120 # When given -MP, icc 7.0 and 7.1 complain thusly:
3121 # icc: Command line warning: ignoring option '-M'; no argument required
3122 # The diagnosis changed in icc 8.0:
3123 # icc: Command line remark: option '-MP' not supported
3124 if (grep 'ignoring option' conftest.err ||
3125 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3126 am_cv_CC_dependencies_compiler_type=$depmode
3135 am_cv_CC_dependencies_compiler_type=none
3139 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3140 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3141 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3146 test "x$enable_dependency_tracking" != xno \
3147 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3149 am__fastdepCC_FALSE='#'
3151 am__fastdepCC_TRUE='#'
3152 am__fastdepCC_FALSE=
3160 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
3161 # in XCFLAGS. But we need them in CFLAGS during configury. So put them
3162 # in both places for now and restore CFLAGS at the end of config.
3163 save_CFLAGS="$CFLAGS"
3165 # Add -Wall -Werror if we are using GCC.
3166 if test "x$GCC" = "xyes"; then
3167 XCFLAGS="$XCFLAGS -Wall -Werror"
3170 # Find other programs we need.
3171 if test -n "$ac_tool_prefix"; then
3172 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3173 set dummy ${ac_tool_prefix}ar; ac_word=$2
3174 echo "$as_me:$LINENO: checking for $ac_word" >&5
3175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3176 if test "${ac_cv_prog_AR+set}" = set; then
3177 echo $ECHO_N "(cached) $ECHO_C" >&6
3179 if test -n "$AR"; then
3180 ac_cv_prog_AR="$AR" # Let the user override the test.
3182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3186 test -z "$as_dir" && as_dir=.
3187 for ac_exec_ext in '' $ac_executable_extensions; do
3188 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3189 ac_cv_prog_AR="${ac_tool_prefix}ar"
3190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3199 if test -n "$AR"; then
3200 echo "$as_me:$LINENO: result: $AR" >&5
3201 echo "${ECHO_T}$AR" >&6
3203 echo "$as_me:$LINENO: result: no" >&5
3204 echo "${ECHO_T}no" >&6
3208 if test -z "$ac_cv_prog_AR"; then
3210 # Extract the first word of "ar", so it can be a program name with args.
3211 set dummy ar; ac_word=$2
3212 echo "$as_me:$LINENO: checking for $ac_word" >&5
3213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3214 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3215 echo $ECHO_N "(cached) $ECHO_C" >&6
3217 if test -n "$ac_ct_AR"; then
3218 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3224 test -z "$as_dir" && as_dir=.
3225 for ac_exec_ext in '' $ac_executable_extensions; do
3226 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3227 ac_cv_prog_ac_ct_AR="ar"
3228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3236 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3237 if test -n "$ac_ct_AR"; then
3238 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3239 echo "${ECHO_T}$ac_ct_AR" >&6
3241 echo "$as_me:$LINENO: result: no" >&5
3242 echo "${ECHO_T}no" >&6
3250 if test -n "$ac_tool_prefix"; then
3251 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3252 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3253 echo "$as_me:$LINENO: checking for $ac_word" >&5
3254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3255 if test "${ac_cv_prog_RANLIB+set}" = set; then
3256 echo $ECHO_N "(cached) $ECHO_C" >&6
3258 if test -n "$RANLIB"; then
3259 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3265 test -z "$as_dir" && as_dir=.
3266 for ac_exec_ext in '' $ac_executable_extensions; do
3267 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3268 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3277 RANLIB=$ac_cv_prog_RANLIB
3278 if test -n "$RANLIB"; then
3279 echo "$as_me:$LINENO: result: $RANLIB" >&5
3280 echo "${ECHO_T}$RANLIB" >&6
3282 echo "$as_me:$LINENO: result: no" >&5
3283 echo "${ECHO_T}no" >&6
3287 if test -z "$ac_cv_prog_RANLIB"; then
3288 ac_ct_RANLIB=$RANLIB
3289 # Extract the first word of "ranlib", so it can be a program name with args.
3290 set dummy ranlib; ac_word=$2
3291 echo "$as_me:$LINENO: checking for $ac_word" >&5
3292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3293 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3294 echo $ECHO_N "(cached) $ECHO_C" >&6
3296 if test -n "$ac_ct_RANLIB"; then
3297 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3303 test -z "$as_dir" && as_dir=.
3304 for ac_exec_ext in '' $ac_executable_extensions; do
3305 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3306 ac_cv_prog_ac_ct_RANLIB="ranlib"
3307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3313 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error"
3316 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3317 if test -n "$ac_ct_RANLIB"; then
3318 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3319 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3321 echo "$as_me:$LINENO: result: no" >&5
3322 echo "${ECHO_T}no" >&6
3325 RANLIB=$ac_ct_RANLIB
3327 RANLIB="$ac_cv_prog_RANLIB"
3330 # Extract the first word of "perl", so it can be a program name with args.
3331 set dummy perl; ac_word=$2
3332 echo "$as_me:$LINENO: checking for $ac_word" >&5
3333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3334 if test "${ac_cv_path_PERL+set}" = set; then
3335 echo $ECHO_N "(cached) $ECHO_C" >&6
3339 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3346 test -z "$as_dir" && as_dir=.
3347 for ac_exec_ext in '' $ac_executable_extensions; do
3348 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3349 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
3350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3356 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
3360 PERL=$ac_cv_path_PERL
3362 if test -n "$PERL"; then
3363 echo "$as_me:$LINENO: result: $PERL" >&5
3364 echo "${ECHO_T}$PERL" >&6
3366 echo "$as_me:$LINENO: result: no" >&5
3367 echo "${ECHO_T}no" >&6
3370 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3371 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3372 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3373 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3374 echo $ECHO_N "(cached) $ECHO_C" >&6
3376 cat >conftest.make <<\_ACEOF
3378 @echo 'ac_maketemp="$(MAKE)"'
3380 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3381 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3382 if test -n "$ac_maketemp"; then
3383 eval ac_cv_prog_make_${ac_make}_set=yes
3385 eval ac_cv_prog_make_${ac_make}_set=no
3389 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3390 echo "$as_me:$LINENO: result: yes" >&5
3391 echo "${ECHO_T}yes" >&6
3394 echo "$as_me:$LINENO: result: no" >&5
3395 echo "${ECHO_T}no" >&6
3396 SET_MAKE="MAKE=${MAKE-make}"
3399 # Find a good install program. We prefer a C program (faster),
3400 # so one script is as good as another. But avoid the broken or
3401 # incompatible versions:
3402 # SysV /etc/install, /usr/sbin/install
3403 # SunOS /usr/etc/install
3404 # IRIX /sbin/install
3406 # AmigaOS /C/install, which installs bootblocks on floppy discs
3407 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3408 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3409 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3410 # OS/2's system install, which has a completely different semantic
3411 # ./install, which can be erroneously created by make from ./install.sh.
3412 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3413 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3414 if test -z "$INSTALL"; then
3415 if test "${ac_cv_path_install+set}" = set; then
3416 echo $ECHO_N "(cached) $ECHO_C" >&6
3418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3422 test -z "$as_dir" && as_dir=.
3423 # Account for people who put trailing slashes in PATH elements.
3425 ./ | .// | /cC/* | \
3426 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3427 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3430 # OSF1 and SCO ODT 3.0 have their own names for install.
3431 # Don't use installbsd from OSF since it installs stuff as root
3433 for ac_prog in ginstall scoinst install; do
3434 for ac_exec_ext in '' $ac_executable_extensions; do
3435 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3436 if test $ac_prog = install &&
3437 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3438 # AIX install. It has an incompatible calling convention.
3440 elif test $ac_prog = install &&
3441 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3442 # program-specific install script used by HP pwplus--don't use.
3445 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3457 if test "${ac_cv_path_install+set}" = set; then
3458 INSTALL=$ac_cv_path_install
3460 # As a last resort, use the slow shell script. We don't cache a
3461 # path for INSTALL within a source directory, because that will
3462 # break other packages using the cache if that directory is
3463 # removed, or if the path is relative.
3464 INSTALL=$ac_install_sh
3467 echo "$as_me:$LINENO: result: $INSTALL" >&5
3468 echo "${ECHO_T}$INSTALL" >&6
3470 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3471 # It thinks the first close brace ends the variable substitution.
3472 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3474 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3476 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3480 # Check whether --enable-shared or --disable-shared was given.
3481 if test "${enable_shared+set}" = set; then
3482 enableval="$enable_shared"
3483 p=${PACKAGE-default}
3485 yes) enable_shared=yes ;;
3486 no) enable_shared=no ;;
3489 # Look at the argument we got. We use all the common list separators.
3490 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3491 for pkg in $enableval; do
3492 if test "X$pkg" = "X$p"; then
3502 # Check whether --enable-static or --disable-static was given.
3503 if test "${enable_static+set}" = set; then
3504 enableval="$enable_static"
3505 p=${PACKAGE-default}
3507 yes) enable_static=yes ;;
3508 no) enable_static=no ;;
3511 # Look at the argument we got. We use all the common list separators.
3512 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3513 for pkg in $enableval; do
3514 if test "X$pkg" = "X$p"; then
3524 # Check whether --enable-fast-install or --disable-fast-install was given.
3525 if test "${enable_fast_install+set}" = set; then
3526 enableval="$enable_fast_install"
3527 p=${PACKAGE-default}
3529 yes) enable_fast_install=yes ;;
3530 no) enable_fast_install=no ;;
3532 enable_fast_install=no
3533 # Look at the argument we got. We use all the common list separators.
3534 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3535 for pkg in $enableval; do
3536 if test "X$pkg" = "X$p"; then
3537 enable_fast_install=yes
3544 enable_fast_install=yes
3547 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3548 if test "${with_gnu_ld+set}" = set; then
3549 withval="$with_gnu_ld"
3550 test "$withval" = no || with_gnu_ld=yes
3555 if test "$GCC" = yes; then
3556 # Check if gcc -print-prog-name=ld gives a path.
3557 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3558 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3561 # gcc leaves a trailing carriage return which upsets mingw
3562 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3564 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3567 # Accept absolute paths.
3568 [\\/]* | [A-Za-z]:[\\/]*)
3569 re_direlt='/[^/][^/]*/\.\./'
3570 # Canonicalize the path of ld
3571 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3572 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3573 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3575 test -z "$LD" && LD="$ac_prog"
3578 # If it fails, then pretend we aren't using GCC.
3582 # If it is relative, then search for the first ld in PATH.
3586 elif test "$with_gnu_ld" = yes; then
3587 echo "$as_me:$LINENO: checking for GNU ld" >&5
3588 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3590 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3591 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3593 if test "${lt_cv_path_LD+set}" = set; then
3594 echo $ECHO_N "(cached) $ECHO_C" >&6
3596 if test -z "$LD"; then
3597 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3598 for ac_dir in $PATH; do
3599 test -z "$ac_dir" && ac_dir=.
3600 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3601 lt_cv_path_LD="$ac_dir/$ac_prog"
3602 # Check to see if the program is GNU ld. I'd rather use --version,
3603 # but apparently some GNU ld's only accept -v.
3604 # Break only if it was the GNU/non-GNU ld that we prefer.
3605 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3606 test "$with_gnu_ld" != no && break
3608 test "$with_gnu_ld" != yes && break
3614 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3619 if test -n "$LD"; then
3620 echo "$as_me:$LINENO: result: $LD" >&5
3621 echo "${ECHO_T}$LD" >&6
3623 echo "$as_me:$LINENO: result: no" >&5
3624 echo "${ECHO_T}no" >&6
3626 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3627 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3628 { (exit 1); exit 1; }; }
3629 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3630 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3631 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3632 echo $ECHO_N "(cached) $ECHO_C" >&6
3634 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3635 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3636 lt_cv_prog_gnu_ld=yes
3638 lt_cv_prog_gnu_ld=no
3641 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3642 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3643 with_gnu_ld=$lt_cv_prog_gnu_ld
3646 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3647 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3648 if test "${lt_cv_ld_reload_flag+set}" = set; then
3649 echo $ECHO_N "(cached) $ECHO_C" >&6
3651 lt_cv_ld_reload_flag='-r'
3653 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3654 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3655 reload_flag=$lt_cv_ld_reload_flag
3656 test -n "$reload_flag" && reload_flag=" $reload_flag"
3658 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3659 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3660 if test "${lt_cv_path_NM+set}" = set; then
3661 echo $ECHO_N "(cached) $ECHO_C" >&6
3663 if test -n "$NM"; then
3664 # Let the user override the test.
3667 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3668 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3669 test -z "$ac_dir" && ac_dir=.
3670 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3671 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3672 # Check to see if the nm accepts a BSD-compat flag.
3673 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3674 # nm: unknown option "B" ignored
3675 # Tru64's nm complains that /dev/null is an invalid object file
3676 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3677 lt_cv_path_NM="$tmp_nm -B"
3679 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3680 lt_cv_path_NM="$tmp_nm -p"
3683 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3684 continue # so that we can try to find one that supports BSD flags
3689 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3694 echo "$as_me:$LINENO: result: $NM" >&5
3695 echo "${ECHO_T}$NM" >&6
3697 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3698 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3700 if test "$LN_S" = "ln -s"; then
3701 echo "$as_me:$LINENO: result: yes" >&5
3702 echo "${ECHO_T}yes" >&6
3704 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3705 echo "${ECHO_T}no, using $LN_S" >&6
3708 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3709 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3710 if test "${lt_cv_deplibs_check_method+set}" = set; then
3711 echo $ECHO_N "(cached) $ECHO_C" >&6
3713 lt_cv_file_magic_cmd='$MAGIC_CMD'
3714 lt_cv_file_magic_test_file=
3715 lt_cv_deplibs_check_method='unknown'
3716 # Need to set the preceding variable on all platforms that support
3717 # interlibrary dependencies.
3718 # 'none' -- dependencies not supported.
3719 # `unknown' -- same as none, but documents that we really don't know.
3720 # 'pass_all' -- all dependencies passed with no checks.
3721 # 'test_compile' -- check by making test program.
3722 # 'file_magic [regex]' -- check by looking for files in library path
3723 # which responds to the $file_magic_cmd with a given egrep regex.
3724 # If you have `file' or equivalent on your system and you're not sure
3725 # whether `pass_all' will *always* work, you probably want this one.
3729 lt_cv_deplibs_check_method=pass_all
3733 lt_cv_deplibs_check_method=pass_all
3737 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3738 lt_cv_file_magic_cmd='/usr/bin/file -L'
3739 lt_cv_file_magic_test_file=/shlib/libc.so
3742 cygwin* | mingw* |pw32*)
3743 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3744 lt_cv_file_magic_cmd='$OBJDUMP -f'
3747 darwin* | rhapsody*)
3748 # this will be overwritten by pass_all, but leave it in just in case
3749 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3750 lt_cv_file_magic_cmd='/usr/bin/file -L'
3752 rhapsody* | darwin1.012)
3753 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3756 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3759 lt_cv_deplibs_check_method=pass_all
3762 freebsd* | kfreebsd*-gnu)
3763 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3766 # Not sure whether the presence of OpenBSD here was a mistake.
3767 # Let's accept both of them until this is cleared up.
3768 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3769 lt_cv_file_magic_cmd=/usr/bin/file
3770 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3774 lt_cv_deplibs_check_method=pass_all
3779 lt_cv_deplibs_check_method=pass_all
3785 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3786 lt_cv_file_magic_cmd=/usr/bin/file
3787 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3790 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3791 lt_cv_file_magic_cmd=/usr/bin/file
3792 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3800 # this will be overridden with pass_all, but let us keep it just in case
3801 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3805 *-32|*"-32 ") libmagic=32-bit;;
3806 *-n32|*"-n32 ") libmagic=N32;;
3807 *-64|*"-64 ") libmagic=64-bit;;
3808 *) libmagic=never-match;;
3810 # this will be overridden with pass_all, but let us keep it just in case
3811 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3814 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3815 lt_cv_deplibs_check_method=pass_all
3818 # This must be Linux ELF.
3820 lt_cv_deplibs_check_method=pass_all
3823 netbsd* | knetbsd*-gnu)
3824 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3825 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3827 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3832 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3833 lt_cv_file_magic_cmd=/usr/bin/file
3834 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3837 osf3* | osf4* | osf5*)
3838 # this will be overridden with pass_all, but let us keep it just in case
3839 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3840 lt_cv_file_magic_test_file=/shlib/libc.so
3841 lt_cv_deplibs_check_method=pass_all
3845 lt_cv_deplibs_check_method=pass_all
3849 lt_cv_deplibs_check_method=pass_all
3850 lt_cv_file_magic_test_file=/lib/libc.so
3853 sysv5uw[78]* | sysv4*uw2*)
3854 lt_cv_deplibs_check_method=pass_all
3857 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3858 case $host_vendor in
3860 lt_cv_deplibs_check_method=pass_all
3863 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]'
3864 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3871 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3872 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3873 file_magic_cmd=$lt_cv_file_magic_cmd
3874 deplibs_check_method=$lt_cv_deplibs_check_method
3880 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3882 # find the maximum length of command line arguments
3883 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3884 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3885 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3886 echo $ECHO_N "(cached) $ECHO_C" >&6
3893 # On DJGPP, this test can blow up pretty badly due to problems in libc
3894 # (any single argument exceeding 2000 bytes causes a buffer overrun
3895 # during glob expansion). Even if it were fixed, the result of this
3896 # check would be larger than it should be.
3897 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3901 # On Win9x/ME, this test blows up -- it succeeds, but takes
3902 # about 5 minutes as the teststring grows exponentially.
3903 # Worse, since 9x/ME are not pre-emptively multitasking,
3904 # you end up with a "frozen" computer, even though with patience
3905 # the test eventually succeeds (with a max line length of 256k).
3906 # Instead, let's just punt: use the minimum linelength reported by
3907 # all of the supported platforms: 8192 (on NT/2K/XP).
3908 lt_cv_sys_max_cmd_len=8192;
3912 # On AmigaOS with pdksh, this test takes hours, literally.
3913 # So we just punt and use a minimum line length of 8192.
3914 lt_cv_sys_max_cmd_len=8192;
3917 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3918 # This has been around since 386BSD, at least. Likely further.
3919 if test -x /sbin/sysctl; then
3920 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3921 elif test -x /usr/sbin/sysctl; then
3922 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3924 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
3926 # And add a safety zone
3927 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3928 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3934 if test -n "$lt_cv_sys_max_cmd_len" ; then
3935 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3936 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3938 echo "$as_me:$LINENO: result: none" >&5
3939 echo "${ECHO_T}none" >&6
3943 # Only perform the check for file, if the check method requires it
3944 case $deplibs_check_method in
3946 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3947 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3948 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3949 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3950 echo $ECHO_N "(cached) $ECHO_C" >&6
3954 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3957 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3960 ac_save_MAGIC_CMD="$MAGIC_CMD"
3961 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3962 ac_dummy="/usr/bin:$PATH"
3963 for ac_dir in $ac_dummy; do
3964 test -z "$ac_dir" && ac_dir=.
3965 if test -f $ac_dir/${ac_tool_prefix}file; then
3966 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3967 if test -n "$file_magic_test_file"; then
3968 case $deplibs_check_method in
3970 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3971 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3972 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3973 egrep "$file_magic_regex" > /dev/null; then
3978 *** Warning: the command libtool uses to detect shared libraries,
3979 *** $file_magic_cmd, produces output that libtool cannot recognize.
3980 *** The result is that libtool may fail to recognize shared libraries
3981 *** as such. This will affect the creation of libtool libraries that
3982 *** depend on shared libraries, but programs linked with such libtool
3983 *** libraries will work regardless of this problem. Nevertheless, you
3984 *** may want to report the problem to your system manager and/or to
3985 *** bug-libtool@gnu.org
3995 MAGIC_CMD="$ac_save_MAGIC_CMD"
4000 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4001 if test -n "$MAGIC_CMD"; then
4002 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4003 echo "${ECHO_T}$MAGIC_CMD" >&6
4005 echo "$as_me:$LINENO: result: no" >&5
4006 echo "${ECHO_T}no" >&6
4009 if test -z "$lt_cv_path_MAGIC_CMD"; then
4010 if test -n "$ac_tool_prefix"; then
4011 echo "$as_me:$LINENO: checking for file" >&5
4012 echo $ECHO_N "checking for file... $ECHO_C" >&6
4013 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4014 echo $ECHO_N "(cached) $ECHO_C" >&6
4018 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4021 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4024 ac_save_MAGIC_CMD="$MAGIC_CMD"
4025 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4026 ac_dummy="/usr/bin:$PATH"
4027 for ac_dir in $ac_dummy; do
4028 test -z "$ac_dir" && ac_dir=.
4029 if test -f $ac_dir/file; then
4030 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4031 if test -n "$file_magic_test_file"; then
4032 case $deplibs_check_method in
4034 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4035 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4036 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4037 egrep "$file_magic_regex" > /dev/null; then
4042 *** Warning: the command libtool uses to detect shared libraries,
4043 *** $file_magic_cmd, produces output that libtool cannot recognize.
4044 *** The result is that libtool may fail to recognize shared libraries
4045 *** as such. This will affect the creation of libtool libraries that
4046 *** depend on shared libraries, but programs linked with such libtool
4047 *** libraries will work regardless of this problem. Nevertheless, you
4048 *** may want to report the problem to your system manager and/or to
4049 *** bug-libtool@gnu.org
4059 MAGIC_CMD="$ac_save_MAGIC_CMD"
4064 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4065 if test -n "$MAGIC_CMD"; then
4066 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4067 echo "${ECHO_T}$MAGIC_CMD" >&6
4069 echo "$as_me:$LINENO: result: no" >&5
4070 echo "${ECHO_T}no" >&6
4082 if test -n "$ac_tool_prefix"; then
4083 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4084 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4085 echo "$as_me:$LINENO: checking for $ac_word" >&5
4086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4087 if test "${ac_cv_prog_RANLIB+set}" = set; then
4088 echo $ECHO_N "(cached) $ECHO_C" >&6
4090 if test -n "$RANLIB"; then
4091 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4097 test -z "$as_dir" && as_dir=.
4098 for ac_exec_ext in '' $ac_executable_extensions; do
4099 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4100 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4109 RANLIB=$ac_cv_prog_RANLIB
4110 if test -n "$RANLIB"; then
4111 echo "$as_me:$LINENO: result: $RANLIB" >&5
4112 echo "${ECHO_T}$RANLIB" >&6
4114 echo "$as_me:$LINENO: result: no" >&5
4115 echo "${ECHO_T}no" >&6
4119 if test -z "$ac_cv_prog_RANLIB"; then
4120 ac_ct_RANLIB=$RANLIB
4121 # Extract the first word of "ranlib", so it can be a program name with args.
4122 set dummy ranlib; ac_word=$2
4123 echo "$as_me:$LINENO: checking for $ac_word" >&5
4124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4125 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4126 echo $ECHO_N "(cached) $ECHO_C" >&6
4128 if test -n "$ac_ct_RANLIB"; then
4129 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4135 test -z "$as_dir" && as_dir=.
4136 for ac_exec_ext in '' $ac_executable_extensions; do
4137 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4138 ac_cv_prog_ac_ct_RANLIB="ranlib"
4139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4145 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4148 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4149 if test -n "$ac_ct_RANLIB"; then
4150 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4151 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4153 echo "$as_me:$LINENO: result: no" >&5
4154 echo "${ECHO_T}no" >&6
4157 RANLIB=$ac_ct_RANLIB
4159 RANLIB="$ac_cv_prog_RANLIB"
4162 if test -n "$ac_tool_prefix"; then
4163 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4164 set dummy ${ac_tool_prefix}strip; ac_word=$2
4165 echo "$as_me:$LINENO: checking for $ac_word" >&5
4166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4167 if test "${ac_cv_prog_STRIP+set}" = set; then
4168 echo $ECHO_N "(cached) $ECHO_C" >&6
4170 if test -n "$STRIP"; then
4171 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4177 test -z "$as_dir" && as_dir=.
4178 for ac_exec_ext in '' $ac_executable_extensions; do
4179 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4180 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4189 STRIP=$ac_cv_prog_STRIP
4190 if test -n "$STRIP"; then
4191 echo "$as_me:$LINENO: result: $STRIP" >&5
4192 echo "${ECHO_T}$STRIP" >&6
4194 echo "$as_me:$LINENO: result: no" >&5
4195 echo "${ECHO_T}no" >&6
4199 if test -z "$ac_cv_prog_STRIP"; then
4201 # Extract the first word of "strip", so it can be a program name with args.
4202 set dummy strip; ac_word=$2
4203 echo "$as_me:$LINENO: checking for $ac_word" >&5
4204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4205 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4206 echo $ECHO_N "(cached) $ECHO_C" >&6
4208 if test -n "$ac_ct_STRIP"; then
4209 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4215 test -z "$as_dir" && as_dir=.
4216 for ac_exec_ext in '' $ac_executable_extensions; do
4217 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4218 ac_cv_prog_ac_ct_STRIP="strip"
4219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4225 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4228 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4229 if test -n "$ac_ct_STRIP"; then
4230 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4231 echo "${ECHO_T}$ac_ct_STRIP" >&6
4233 echo "$as_me:$LINENO: result: no" >&5
4234 echo "${ECHO_T}no" >&6
4239 STRIP="$ac_cv_prog_STRIP"
4243 # Check for any special flags to pass to ltconfig.
4244 libtool_flags="--cache-file=$cache_file"
4245 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4246 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4247 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4248 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4249 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4252 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4253 if test "${enable_libtool_lock+set}" = set; then
4254 enableval="$enable_libtool_lock"
4257 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4258 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4261 # Check whether --with-pic or --without-pic was given.
4262 if test "${with_pic+set}" = set; then
4268 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4269 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4271 # Some flags need to be propagated to the compiler or linker for good
4275 # Find out which ABI we are using.
4276 echo '#line 4276 "configure"' > conftest.$ac_ext
4277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4278 (eval $ac_compile) 2>&5
4280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281 (exit $ac_status); }; then
4282 if test "$lt_cv_prog_gnu_ld" = yes; then
4283 case `/usr/bin/file conftest.$ac_objext` in
4285 LD="${LD-ld} -melf32bsmip"
4288 LD="${LD-ld} -melf32bmipn32"
4291 LD="${LD-ld} -melf64bmip"
4295 case `/usr/bin/file conftest.$ac_objext` in
4312 # Find out which ABI we are using.
4313 echo 'int i;' > conftest.$ac_ext
4314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4315 (eval $ac_compile) 2>&5
4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318 (exit $ac_status); }; then
4319 case "`/usr/bin/file conftest.o`" in
4331 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4332 # Find out which ABI we are using.
4333 echo 'int i;' > conftest.$ac_ext
4334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4335 (eval $ac_compile) 2>&5
4337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338 (exit $ac_status); }; then
4339 case "`/usr/bin/file conftest.o`" in
4343 LD="${LD-ld} -m elf_i386"
4345 ppc64-*linux*|powerpc64-*linux*)
4346 LD="${LD-ld} -m elf32ppclinux"
4349 LD="${LD-ld} -m elf_s390"
4352 LD="${LD-ld} -m elf32_sparc"
4359 LD="${LD-ld} -m elf_x86_64"
4361 ppc*-*linux*|powerpc*-*linux*)
4362 LD="${LD-ld} -m elf64ppc"
4365 LD="${LD-ld} -m elf64_s390"
4368 LD="${LD-ld} -m elf64_sparc"
4378 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4379 SAVE_CFLAGS="$CFLAGS"
4380 CFLAGS="$CFLAGS -belf"
4381 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4382 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4383 if test "${lt_cv_cc_needs_belf+set}" = set; then
4384 echo $ECHO_N "(cached) $ECHO_C" >&6
4389 ac_cpp='$CPP $CPPFLAGS'
4390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4394 cat >conftest.$ac_ext <<_ACEOF
4397 cat confdefs.h >>conftest.$ac_ext
4398 cat >>conftest.$ac_ext <<_ACEOF
4399 /* end confdefs.h. */
4409 rm -f conftest.$ac_objext conftest$ac_exeext
4410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4411 (eval $ac_link) 2>conftest.er1
4413 grep -v '^ *+' conftest.er1 >conftest.err
4415 cat conftest.err >&5
4416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417 (exit $ac_status); } &&
4418 { ac_try='test -z "$ac_c_werror_flag"
4419 || test ! -s conftest.err'
4420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424 (exit $ac_status); }; } &&
4425 { ac_try='test -s conftest$ac_exeext'
4426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430 (exit $ac_status); }; }; then
4431 lt_cv_cc_needs_belf=yes
4433 echo "$as_me: failed program was:" >&5
4434 sed 's/^/| /' conftest.$ac_ext >&5
4436 lt_cv_cc_needs_belf=no
4438 rm -f conftest.err conftest.$ac_objext \
4439 conftest$ac_exeext conftest.$ac_ext
4441 ac_cpp='$CPP $CPPFLAGS'
4442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4447 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4448 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4449 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4450 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4451 CFLAGS="$SAVE_CFLAGS"
4459 # Save cache, so that ltconfig can load it
4460 cat >confcache <<\_ACEOF
4461 # This file is a shell script that caches the results of configure
4462 # tests run on this system so they can be shared between configure
4463 # scripts and configure runs, see configure's option --config-cache.
4464 # It is not useful on other systems. If it contains results you don't
4465 # want to keep, you may remove or edit it.
4467 # config.status only pays attention to the cache file if you give it
4468 # the --recheck option to rerun configure.
4470 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4471 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4476 # The following way of writing the cache mishandles newlines in values,
4477 # but we know of no workaround that is simple, portable, and efficient.
4478 # So, don't put newlines in cache variables' values.
4479 # Ultrix sh set writes to stderr and can't be redirected directly,
4480 # and sets the high bit in the cache file unless we assign to the vars.
4483 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4485 # `set' does not quote correctly, so add quotes (double-quote
4486 # substitution turns \\\\ into \\, and sed turns \\ into \).
4489 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4492 # `set' quotes correctly as required by POSIX, so do not add quotes.
4494 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4501 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4503 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4505 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4506 if test -w $cache_file; then
4507 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4508 cat confcache >$cache_file
4510 echo "not updating unwritable cache $cache_file"
4515 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4516 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4517 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4518 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4519 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4520 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4521 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4522 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4523 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4524 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4525 echo "$as_me: error: libtool configure failed" >&2;}
4526 { (exit 1); exit 1; }; }
4528 # Reload cache, that may have been modified by ltconfig
4529 if test -r "$cache_file"; then
4530 # Some versions of bash will fail to source /dev/null (special
4531 # files actually), so we avoid doing that.
4532 if test -f "$cache_file"; then
4533 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4534 echo "$as_me: loading cache $cache_file" >&6;}
4536 [\\/]* | ?:[\\/]* ) . $cache_file;;
4537 *) . ./$cache_file;;
4541 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4542 echo "$as_me: creating cache $cache_file" >&6;}
4547 # This can be used to rebuild libtool when needed
4548 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4550 # Always use our own libtool.
4551 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4553 # Redirect the config.log output again, so that the ltconfig log is not
4554 # clobbered by the next message.
4555 exec 5>>./config.log
4565 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4566 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4567 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4568 if test "${enable_maintainer_mode+set}" = set; then
4569 enableval="$enable_maintainer_mode"
4570 USE_MAINTAINER_MODE=$enableval
4572 USE_MAINTAINER_MODE=no
4574 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4575 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4578 if test $USE_MAINTAINER_MODE = yes; then
4579 MAINTAINER_MODE_TRUE=
4580 MAINTAINER_MODE_FALSE='#'
4582 MAINTAINER_MODE_TRUE='#'
4583 MAINTAINER_MODE_FALSE=
4586 MAINT=$MAINTAINER_MODE_TRUE
4590 # We need gfortran to compile parts of the library
4591 # We can't use AC_PROG_FC because it expects a fully working gfortran.
4592 #AC_PROG_FC(gfortran)
4594 ac_ext=${FC_SRCEXT-f}
4595 ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
4596 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
4597 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4598 if test -n "$ac_tool_prefix"; then
4599 for ac_prog in gfortran
4601 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4602 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4603 echo "$as_me:$LINENO: checking for $ac_word" >&5
4604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4605 if test "${ac_cv_prog_FC+set}" = set; then
4606 echo $ECHO_N "(cached) $ECHO_C" >&6
4608 if test -n "$FC"; then
4609 ac_cv_prog_FC="$FC" # Let the user override the test.
4611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4615 test -z "$as_dir" && as_dir=.
4616 for ac_exec_ext in '' $ac_executable_extensions; do
4617 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4618 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
4619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4628 if test -n "$FC"; then
4629 echo "$as_me:$LINENO: result: $FC" >&5
4630 echo "${ECHO_T}$FC" >&6
4632 echo "$as_me:$LINENO: result: no" >&5
4633 echo "${ECHO_T}no" >&6
4636 test -n "$FC" && break
4639 if test -z "$FC"; then
4641 for ac_prog in gfortran
4643 # Extract the first word of "$ac_prog", so it can be a program name with args.
4644 set dummy $ac_prog; ac_word=$2
4645 echo "$as_me:$LINENO: checking for $ac_word" >&5
4646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4647 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then
4648 echo $ECHO_N "(cached) $ECHO_C" >&6
4650 if test -n "$ac_ct_FC"; then
4651 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
4653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4657 test -z "$as_dir" && as_dir=.
4658 for ac_exec_ext in '' $ac_executable_extensions; do
4659 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4660 ac_cv_prog_ac_ct_FC="$ac_prog"
4661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4669 ac_ct_FC=$ac_cv_prog_ac_ct_FC
4670 if test -n "$ac_ct_FC"; then
4671 echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
4672 echo "${ECHO_T}$ac_ct_FC" >&6
4674 echo "$as_me:$LINENO: result: no" >&5
4675 echo "${ECHO_T}no" >&6
4678 test -n "$ac_ct_FC" && break
4685 # Provide some information about the compiler.
4686 echo "$as_me:4686:" \
4687 "checking for Fortran compiler version" >&5
4688 ac_compiler=`set X $ac_compile; echo $2`
4689 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4690 (eval $ac_compiler --version </dev/null >&5) 2>&5
4692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693 (exit $ac_status); }
4694 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4695 (eval $ac_compiler -v </dev/null >&5) 2>&5
4697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698 (exit $ac_status); }
4699 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4700 (eval $ac_compiler -V </dev/null >&5) 2>&5
4702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703 (exit $ac_status); }
4706 # If we don't use `.F' as extension, the preprocessor is not run on the
4707 # input file. (Note that this only needs to work for GNU compilers.)
4710 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
4711 echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6
4712 if test "${ac_cv_fc_compiler_gnu+set}" = set; then
4713 echo $ECHO_N "(cached) $ECHO_C" >&6
4715 cat >conftest.$ac_ext <<_ACEOF
4723 rm -f conftest.$ac_objext
4724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4725 (eval $ac_compile) 2>conftest.er1
4727 grep -v '^ *+' conftest.er1 >conftest.err
4729 cat conftest.err >&5
4730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731 (exit $ac_status); } &&
4732 { ac_try='test -z "$ac_fc_werror_flag"
4733 || test ! -s conftest.err'
4734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738 (exit $ac_status); }; } &&
4739 { ac_try='test -s conftest.$ac_objext'
4740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744 (exit $ac_status); }; }; then
4747 echo "$as_me: failed program was:" >&5
4748 sed 's/^/| /' conftest.$ac_ext >&5
4752 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4753 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
4756 echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
4757 echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6
4759 ac_test_FFLAGS=${FCFLAGS+set}
4760 ac_save_FFLAGS=$FCFLAGS
4762 echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
4763 echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6
4764 if test "${ac_cv_prog_fc_g+set}" = set; then
4765 echo $ECHO_N "(cached) $ECHO_C" >&6
4768 cat >conftest.$ac_ext <<_ACEOF
4773 rm -f conftest.$ac_objext
4774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4775 (eval $ac_compile) 2>conftest.er1
4777 grep -v '^ *+' conftest.er1 >conftest.err
4779 cat conftest.err >&5
4780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781 (exit $ac_status); } &&
4782 { ac_try='test -z "$ac_fc_werror_flag"
4783 || test ! -s conftest.err'
4784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788 (exit $ac_status); }; } &&
4789 { ac_try='test -s conftest.$ac_objext'
4790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794 (exit $ac_status); }; }; then
4797 echo "$as_me: failed program was:" >&5
4798 sed 's/^/| /' conftest.$ac_ext >&5
4802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4805 echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
4806 echo "${ECHO_T}$ac_cv_prog_fc_g" >&6
4807 if test "$ac_test_FFLAGS" = set; then
4808 FCFLAGS=$ac_save_FFLAGS
4809 elif test $ac_cv_prog_fc_g = yes; then
4810 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4816 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4824 ac_cpp='$CPP $CPPFLAGS'
4825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4829 FCFLAGS="$FCFLAGS -Wall"
4831 # For libtool versioning info, format is CURRENT:REVISION:AGE
4832 libtool_VERSION=1:0:0
4835 # Check header files.
4837 ac_cpp='$CPP $CPPFLAGS'
4838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4841 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4842 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4843 # On Suns, sometimes $CPP names a directory.
4844 if test -n "$CPP" && test -d "$CPP"; then
4847 if test -z "$CPP"; then
4848 if test "${ac_cv_prog_CPP+set}" = set; then
4849 echo $ECHO_N "(cached) $ECHO_C" >&6
4851 # Double quotes because CPP needs to be expanded
4852 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4855 for ac_c_preproc_warn_flag in '' yes
4857 # Use a header file that comes with gcc, so configuring glibc
4858 # with a fresh cross-compiler works.
4859 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4860 # <limits.h> exists even on freestanding compilers.
4861 # On the NeXT, cc -E runs the code through the compiler's parser,
4862 # not just through cpp. "Syntax error" is here to catch this case.
4863 cat >conftest.$ac_ext <<_ACEOF
4866 cat confdefs.h >>conftest.$ac_ext
4867 cat >>conftest.$ac_ext <<_ACEOF
4868 /* end confdefs.h. */
4870 # include <limits.h>
4872 # include <assert.h>
4876 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4877 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4879 grep -v '^ *+' conftest.er1 >conftest.err
4881 cat conftest.err >&5
4882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883 (exit $ac_status); } >/dev/null; then
4884 if test -s conftest.err; then
4885 ac_cpp_err=$ac_c_preproc_warn_flag
4886 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4893 if test -z "$ac_cpp_err"; then
4896 echo "$as_me: failed program was:" >&5
4897 sed 's/^/| /' conftest.$ac_ext >&5
4899 # Broken: fails on valid input.
4902 rm -f conftest.err conftest.$ac_ext
4904 # OK, works on sane cases. Now check whether non-existent headers
4905 # can be detected and how.
4906 cat >conftest.$ac_ext <<_ACEOF
4909 cat confdefs.h >>conftest.$ac_ext
4910 cat >>conftest.$ac_ext <<_ACEOF
4911 /* end confdefs.h. */
4912 #include <ac_nonexistent.h>
4914 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4915 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4917 grep -v '^ *+' conftest.er1 >conftest.err
4919 cat conftest.err >&5
4920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921 (exit $ac_status); } >/dev/null; then
4922 if test -s conftest.err; then
4923 ac_cpp_err=$ac_c_preproc_warn_flag
4924 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4931 if test -z "$ac_cpp_err"; then
4932 # Broken: success on invalid input.
4935 echo "$as_me: failed program was:" >&5
4936 sed 's/^/| /' conftest.$ac_ext >&5
4938 # Passes both tests.
4942 rm -f conftest.err conftest.$ac_ext
4945 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4946 rm -f conftest.err conftest.$ac_ext
4947 if $ac_preproc_ok; then
4959 echo "$as_me:$LINENO: result: $CPP" >&5
4960 echo "${ECHO_T}$CPP" >&6
4962 for ac_c_preproc_warn_flag in '' yes
4964 # Use a header file that comes with gcc, so configuring glibc
4965 # with a fresh cross-compiler works.
4966 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4967 # <limits.h> exists even on freestanding compilers.
4968 # On the NeXT, cc -E runs the code through the compiler's parser,
4969 # not just through cpp. "Syntax error" is here to catch this case.
4970 cat >conftest.$ac_ext <<_ACEOF
4973 cat confdefs.h >>conftest.$ac_ext
4974 cat >>conftest.$ac_ext <<_ACEOF
4975 /* end confdefs.h. */
4977 # include <limits.h>
4979 # include <assert.h>
4983 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4984 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4986 grep -v '^ *+' conftest.er1 >conftest.err
4988 cat conftest.err >&5
4989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990 (exit $ac_status); } >/dev/null; then
4991 if test -s conftest.err; then
4992 ac_cpp_err=$ac_c_preproc_warn_flag
4993 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5000 if test -z "$ac_cpp_err"; then
5003 echo "$as_me: failed program was:" >&5
5004 sed 's/^/| /' conftest.$ac_ext >&5
5006 # Broken: fails on valid input.
5009 rm -f conftest.err conftest.$ac_ext
5011 # OK, works on sane cases. Now check whether non-existent headers
5012 # can be detected and how.
5013 cat >conftest.$ac_ext <<_ACEOF
5016 cat confdefs.h >>conftest.$ac_ext
5017 cat >>conftest.$ac_ext <<_ACEOF
5018 /* end confdefs.h. */
5019 #include <ac_nonexistent.h>
5021 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5022 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5024 grep -v '^ *+' conftest.er1 >conftest.err
5026 cat conftest.err >&5
5027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028 (exit $ac_status); } >/dev/null; then
5029 if test -s conftest.err; then
5030 ac_cpp_err=$ac_c_preproc_warn_flag
5031 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5038 if test -z "$ac_cpp_err"; then
5039 # Broken: success on invalid input.
5042 echo "$as_me: failed program was:" >&5
5043 sed 's/^/| /' conftest.$ac_ext >&5
5045 # Passes both tests.
5049 rm -f conftest.err conftest.$ac_ext
5052 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5053 rm -f conftest.err conftest.$ac_ext
5054 if $ac_preproc_ok; then
5057 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5058 See \`config.log' for more details." >&5
5059 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5060 See \`config.log' for more details." >&2;}
5061 { (exit 1); exit 1; }; }
5065 ac_cpp='$CPP $CPPFLAGS'
5066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5071 echo "$as_me:$LINENO: checking for egrep" >&5
5072 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5073 if test "${ac_cv_prog_egrep+set}" = set; then
5074 echo $ECHO_N "(cached) $ECHO_C" >&6
5076 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5077 then ac_cv_prog_egrep='grep -E'
5078 else ac_cv_prog_egrep='egrep'
5081 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5082 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5083 EGREP=$ac_cv_prog_egrep
5086 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5087 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5088 if test "${ac_cv_header_stdc+set}" = set; then
5089 echo $ECHO_N "(cached) $ECHO_C" >&6
5091 cat >conftest.$ac_ext <<_ACEOF
5094 cat confdefs.h >>conftest.$ac_ext
5095 cat >>conftest.$ac_ext <<_ACEOF
5096 /* end confdefs.h. */
5110 rm -f conftest.$ac_objext
5111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5112 (eval $ac_compile) 2>conftest.er1
5114 grep -v '^ *+' conftest.er1 >conftest.err
5116 cat conftest.err >&5
5117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118 (exit $ac_status); } &&
5119 { ac_try='test -z "$ac_c_werror_flag"
5120 || test ! -s conftest.err'
5121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5125 (exit $ac_status); }; } &&
5126 { ac_try='test -s conftest.$ac_objext'
5127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5131 (exit $ac_status); }; }; then
5132 ac_cv_header_stdc=yes
5134 echo "$as_me: failed program was:" >&5
5135 sed 's/^/| /' conftest.$ac_ext >&5
5137 ac_cv_header_stdc=no
5139 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5141 if test $ac_cv_header_stdc = yes; then
5142 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5143 cat >conftest.$ac_ext <<_ACEOF
5146 cat confdefs.h >>conftest.$ac_ext
5147 cat >>conftest.$ac_ext <<_ACEOF
5148 /* end confdefs.h. */
5152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5153 $EGREP "memchr" >/dev/null 2>&1; then
5156 ac_cv_header_stdc=no
5162 if test $ac_cv_header_stdc = yes; then
5163 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5164 cat >conftest.$ac_ext <<_ACEOF
5167 cat confdefs.h >>conftest.$ac_ext
5168 cat >>conftest.$ac_ext <<_ACEOF
5169 /* end confdefs.h. */
5173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5174 $EGREP "free" >/dev/null 2>&1; then
5177 ac_cv_header_stdc=no
5183 if test $ac_cv_header_stdc = yes; then
5184 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5185 if test "$cross_compiling" = yes; then
5188 cat >conftest.$ac_ext <<_ACEOF
5191 cat confdefs.h >>conftest.$ac_ext
5192 cat >>conftest.$ac_ext <<_ACEOF
5193 /* end confdefs.h. */
5195 #if ((' ' & 0x0FF) == 0x020)
5196 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5197 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5199 # define ISLOWER(c) \
5200 (('a' <= (c) && (c) <= 'i') \
5201 || ('j' <= (c) && (c) <= 'r') \
5202 || ('s' <= (c) && (c) <= 'z'))
5203 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5206 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5211 for (i = 0; i < 256; i++)
5212 if (XOR (islower (i), ISLOWER (i))
5213 || toupper (i) != TOUPPER (i))
5218 rm -f conftest$ac_exeext
5219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5220 (eval $ac_link) 2>&5
5222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228 (exit $ac_status); }; }; then
5231 echo "$as_me: program exited with status $ac_status" >&5
5232 echo "$as_me: failed program was:" >&5
5233 sed 's/^/| /' conftest.$ac_ext >&5
5236 ac_cv_header_stdc=no
5238 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5242 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5243 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5244 if test $ac_cv_header_stdc = yes; then
5246 cat >>confdefs.h <<\_ACEOF
5247 #define STDC_HEADERS 1
5252 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5253 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5254 if test "${ac_cv_header_time+set}" = set; then
5255 echo $ECHO_N "(cached) $ECHO_C" >&6
5257 cat >conftest.$ac_ext <<_ACEOF
5260 cat confdefs.h >>conftest.$ac_ext
5261 cat >>conftest.$ac_ext <<_ACEOF
5262 /* end confdefs.h. */
5263 #include <sys/types.h>
5264 #include <sys/time.h>
5270 if ((struct tm *) 0)
5276 rm -f conftest.$ac_objext
5277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5278 (eval $ac_compile) 2>conftest.er1
5280 grep -v '^ *+' conftest.er1 >conftest.err
5282 cat conftest.err >&5
5283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5284 (exit $ac_status); } &&
5285 { ac_try='test -z "$ac_c_werror_flag"
5286 || test ! -s conftest.err'
5287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291 (exit $ac_status); }; } &&
5292 { ac_try='test -s conftest.$ac_objext'
5293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297 (exit $ac_status); }; }; then
5298 ac_cv_header_time=yes
5300 echo "$as_me: failed program was:" >&5
5301 sed 's/^/| /' conftest.$ac_ext >&5
5303 ac_cv_header_time=no
5305 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5307 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5308 echo "${ECHO_T}$ac_cv_header_time" >&6
5309 if test $ac_cv_header_time = yes; then
5311 cat >>confdefs.h <<\_ACEOF
5312 #define TIME_WITH_SYS_TIME 1
5317 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5327 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5328 inttypes.h stdint.h unistd.h
5330 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5331 echo "$as_me:$LINENO: checking for $ac_header" >&5
5332 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5333 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5334 echo $ECHO_N "(cached) $ECHO_C" >&6
5336 cat >conftest.$ac_ext <<_ACEOF
5339 cat confdefs.h >>conftest.$ac_ext
5340 cat >>conftest.$ac_ext <<_ACEOF
5341 /* end confdefs.h. */
5342 $ac_includes_default
5344 #include <$ac_header>
5346 rm -f conftest.$ac_objext
5347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5348 (eval $ac_compile) 2>conftest.er1
5350 grep -v '^ *+' conftest.er1 >conftest.err
5352 cat conftest.err >&5
5353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354 (exit $ac_status); } &&
5355 { ac_try='test -z "$ac_c_werror_flag"
5356 || test ! -s conftest.err'
5357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5361 (exit $ac_status); }; } &&
5362 { ac_try='test -s conftest.$ac_objext'
5363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5367 (exit $ac_status); }; }; then
5368 eval "$as_ac_Header=yes"
5370 echo "$as_me: failed program was:" >&5
5371 sed 's/^/| /' conftest.$ac_ext >&5
5373 eval "$as_ac_Header=no"
5375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5377 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5378 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5379 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5380 cat >>confdefs.h <<_ACEOF
5381 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5393 for ac_header in unistd.h semaphore.h sys/loadavg.h sys/time.h
5395 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5396 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5397 echo "$as_me:$LINENO: checking for $ac_header" >&5
5398 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5399 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5400 echo $ECHO_N "(cached) $ECHO_C" >&6
5402 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5403 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5405 # Is the header compilable?
5406 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5407 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5408 cat >conftest.$ac_ext <<_ACEOF
5411 cat confdefs.h >>conftest.$ac_ext
5412 cat >>conftest.$ac_ext <<_ACEOF
5413 /* end confdefs.h. */
5414 $ac_includes_default
5415 #include <$ac_header>
5417 rm -f conftest.$ac_objext
5418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5419 (eval $ac_compile) 2>conftest.er1
5421 grep -v '^ *+' conftest.er1 >conftest.err
5423 cat conftest.err >&5
5424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5425 (exit $ac_status); } &&
5426 { ac_try='test -z "$ac_c_werror_flag"
5427 || test ! -s conftest.err'
5428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5432 (exit $ac_status); }; } &&
5433 { ac_try='test -s conftest.$ac_objext'
5434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438 (exit $ac_status); }; }; then
5439 ac_header_compiler=yes
5441 echo "$as_me: failed program was:" >&5
5442 sed 's/^/| /' conftest.$ac_ext >&5
5444 ac_header_compiler=no
5446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5447 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5448 echo "${ECHO_T}$ac_header_compiler" >&6
5450 # Is the header present?
5451 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5452 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5453 cat >conftest.$ac_ext <<_ACEOF
5456 cat confdefs.h >>conftest.$ac_ext
5457 cat >>conftest.$ac_ext <<_ACEOF
5458 /* end confdefs.h. */
5459 #include <$ac_header>
5461 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5462 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5464 grep -v '^ *+' conftest.er1 >conftest.err
5466 cat conftest.err >&5
5467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468 (exit $ac_status); } >/dev/null; then
5469 if test -s conftest.err; then
5470 ac_cpp_err=$ac_c_preproc_warn_flag
5471 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5478 if test -z "$ac_cpp_err"; then
5479 ac_header_preproc=yes
5481 echo "$as_me: failed program was:" >&5
5482 sed 's/^/| /' conftest.$ac_ext >&5
5484 ac_header_preproc=no
5486 rm -f conftest.err conftest.$ac_ext
5487 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5488 echo "${ECHO_T}$ac_header_preproc" >&6
5490 # So? What about this header?
5491 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5493 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5494 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5495 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5496 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5497 ac_header_preproc=yes
5500 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5501 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5502 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5503 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5504 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5505 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5506 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5507 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5508 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5509 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5510 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5511 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5514 ## ----------------------------------------------------- ##
5515 ## Report this to the GNU OpenMP Runtime Library lists. ##
5516 ## ----------------------------------------------------- ##
5519 sed "s/^/$as_me: WARNING: /" >&2
5522 echo "$as_me:$LINENO: checking for $ac_header" >&5
5523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5524 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5525 echo $ECHO_N "(cached) $ECHO_C" >&6
5527 eval "$as_ac_Header=\$ac_header_preproc"
5529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5530 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5533 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5534 cat >>confdefs.h <<_ACEOF
5535 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5545 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
5547 acx_cv_header_stdint=stddef.h
5548 acx_cv_header_stdint_kind="(already complete)"
5549 for i in stdint.h $inttype_headers; do
5550 unset ac_cv_type_uintptr_t
5551 unset ac_cv_type_uintmax_t
5552 unset ac_cv_type_int_least32_t
5553 unset ac_cv_type_int_fast32_t
5554 unset ac_cv_type_uint64_t
5555 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
5556 echo "$as_me:$LINENO: checking for uintmax_t" >&5
5557 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
5558 if test "${ac_cv_type_uintmax_t+set}" = set; then
5559 echo $ECHO_N "(cached) $ECHO_C" >&6
5561 cat >conftest.$ac_ext <<_ACEOF
5564 cat confdefs.h >>conftest.$ac_ext
5565 cat >>conftest.$ac_ext <<_ACEOF
5566 /* end confdefs.h. */
5567 #include <sys/types.h>
5573 if ((uintmax_t *) 0)
5575 if (sizeof (uintmax_t))
5581 rm -f conftest.$ac_objext
5582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5583 (eval $ac_compile) 2>conftest.er1
5585 grep -v '^ *+' conftest.er1 >conftest.err
5587 cat conftest.err >&5
5588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589 (exit $ac_status); } &&
5590 { ac_try='test -z "$ac_c_werror_flag"
5591 || test ! -s conftest.err'
5592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596 (exit $ac_status); }; } &&
5597 { ac_try='test -s conftest.$ac_objext'
5598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602 (exit $ac_status); }; }; then
5603 ac_cv_type_uintmax_t=yes
5605 echo "$as_me: failed program was:" >&5
5606 sed 's/^/| /' conftest.$ac_ext >&5
5608 ac_cv_type_uintmax_t=no
5610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5612 echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
5613 echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
5614 if test $ac_cv_type_uintmax_t = yes; then
5615 acx_cv_header_stdint=$i
5620 echo "$as_me:$LINENO: checking for uintptr_t" >&5
5621 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
5622 if test "${ac_cv_type_uintptr_t+set}" = set; then
5623 echo $ECHO_N "(cached) $ECHO_C" >&6
5625 cat >conftest.$ac_ext <<_ACEOF
5628 cat confdefs.h >>conftest.$ac_ext
5629 cat >>conftest.$ac_ext <<_ACEOF
5630 /* end confdefs.h. */
5631 #include <sys/types.h>
5637 if ((uintptr_t *) 0)
5639 if (sizeof (uintptr_t))
5645 rm -f conftest.$ac_objext
5646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5647 (eval $ac_compile) 2>conftest.er1
5649 grep -v '^ *+' conftest.er1 >conftest.err
5651 cat conftest.err >&5
5652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5653 (exit $ac_status); } &&
5654 { ac_try='test -z "$ac_c_werror_flag"
5655 || test ! -s conftest.err'
5656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5660 (exit $ac_status); }; } &&
5661 { ac_try='test -s conftest.$ac_objext'
5662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666 (exit $ac_status); }; }; then
5667 ac_cv_type_uintptr_t=yes
5669 echo "$as_me: failed program was:" >&5
5670 sed 's/^/| /' conftest.$ac_ext >&5
5672 ac_cv_type_uintptr_t=no
5674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5676 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
5677 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
5678 if test $ac_cv_type_uintptr_t = yes; then
5681 acx_cv_header_stdint_kind="(mostly complete)"
5684 echo "$as_me:$LINENO: checking for int_least32_t" >&5
5685 echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
5686 if test "${ac_cv_type_int_least32_t+set}" = set; then
5687 echo $ECHO_N "(cached) $ECHO_C" >&6
5689 cat >conftest.$ac_ext <<_ACEOF
5692 cat confdefs.h >>conftest.$ac_ext
5693 cat >>conftest.$ac_ext <<_ACEOF
5694 /* end confdefs.h. */
5695 #include <sys/types.h>
5701 if ((int_least32_t *) 0)
5703 if (sizeof (int_least32_t))
5709 rm -f conftest.$ac_objext
5710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5711 (eval $ac_compile) 2>conftest.er1
5713 grep -v '^ *+' conftest.er1 >conftest.err
5715 cat conftest.err >&5
5716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717 (exit $ac_status); } &&
5718 { ac_try='test -z "$ac_c_werror_flag"
5719 || test ! -s conftest.err'
5720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5724 (exit $ac_status); }; } &&
5725 { ac_try='test -s conftest.$ac_objext'
5726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); }; }; then
5731 ac_cv_type_int_least32_t=yes
5733 echo "$as_me: failed program was:" >&5
5734 sed 's/^/| /' conftest.$ac_ext >&5
5736 ac_cv_type_int_least32_t=no
5738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5740 echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
5741 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
5742 if test $ac_cv_type_int_least32_t = yes; then
5745 acx_cv_header_stdint_kind="(mostly complete)"
5748 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
5749 echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
5750 if test "${ac_cv_type_int_fast32_t+set}" = set; then
5751 echo $ECHO_N "(cached) $ECHO_C" >&6
5753 cat >conftest.$ac_ext <<_ACEOF
5756 cat confdefs.h >>conftest.$ac_ext
5757 cat >>conftest.$ac_ext <<_ACEOF
5758 /* end confdefs.h. */
5759 #include <sys/types.h>
5765 if ((int_fast32_t *) 0)
5767 if (sizeof (int_fast32_t))
5773 rm -f conftest.$ac_objext
5774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5775 (eval $ac_compile) 2>conftest.er1
5777 grep -v '^ *+' conftest.er1 >conftest.err
5779 cat conftest.err >&5
5780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781 (exit $ac_status); } &&
5782 { ac_try='test -z "$ac_c_werror_flag"
5783 || test ! -s conftest.err'
5784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788 (exit $ac_status); }; } &&
5789 { ac_try='test -s conftest.$ac_objext'
5790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794 (exit $ac_status); }; }; then
5795 ac_cv_type_int_fast32_t=yes
5797 echo "$as_me: failed program was:" >&5
5798 sed 's/^/| /' conftest.$ac_ext >&5
5800 ac_cv_type_int_fast32_t=no
5802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5804 echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
5805 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
5806 if test $ac_cv_type_int_fast32_t = yes; then
5809 acx_cv_header_stdint_kind="(mostly complete)"
5812 echo "$as_me:$LINENO: checking for uint64_t" >&5
5813 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
5814 if test "${ac_cv_type_uint64_t+set}" = set; then
5815 echo $ECHO_N "(cached) $ECHO_C" >&6
5817 cat >conftest.$ac_ext <<_ACEOF
5820 cat confdefs.h >>conftest.$ac_ext
5821 cat >>conftest.$ac_ext <<_ACEOF
5822 /* end confdefs.h. */
5823 #include <sys/types.h>
5831 if (sizeof (uint64_t))
5837 rm -f conftest.$ac_objext
5838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5839 (eval $ac_compile) 2>conftest.er1
5841 grep -v '^ *+' conftest.er1 >conftest.err
5843 cat conftest.err >&5
5844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5845 (exit $ac_status); } &&
5846 { ac_try='test -z "$ac_c_werror_flag"
5847 || test ! -s conftest.err'
5848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5852 (exit $ac_status); }; } &&
5853 { ac_try='test -s conftest.$ac_objext'
5854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858 (exit $ac_status); }; }; then
5859 ac_cv_type_uint64_t=yes
5861 echo "$as_me: failed program was:" >&5
5862 sed 's/^/| /' conftest.$ac_ext >&5
5864 ac_cv_type_uint64_t=no
5866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5868 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
5869 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
5870 if test $ac_cv_type_uint64_t = yes; then
5873 acx_cv_header_stdint_kind="(lacks uint64_t)"
5878 if test "$acx_cv_header_stdint" = stddef.h; then
5879 acx_cv_header_stdint_kind="(lacks uintmax_t)"
5880 for i in stdint.h $inttype_headers; do
5881 unset ac_cv_type_uintptr_t
5882 unset ac_cv_type_uint32_t
5883 unset ac_cv_type_uint64_t
5884 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
5885 echo "$as_me:$LINENO: checking for uint32_t" >&5
5886 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
5887 if test "${ac_cv_type_uint32_t+set}" = set; then
5888 echo $ECHO_N "(cached) $ECHO_C" >&6
5890 cat >conftest.$ac_ext <<_ACEOF
5893 cat confdefs.h >>conftest.$ac_ext
5894 cat >>conftest.$ac_ext <<_ACEOF
5895 /* end confdefs.h. */
5896 #include <sys/types.h>
5904 if (sizeof (uint32_t))
5910 rm -f conftest.$ac_objext
5911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5912 (eval $ac_compile) 2>conftest.er1
5914 grep -v '^ *+' conftest.er1 >conftest.err
5916 cat conftest.err >&5
5917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918 (exit $ac_status); } &&
5919 { ac_try='test -z "$ac_c_werror_flag"
5920 || test ! -s conftest.err'
5921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5925 (exit $ac_status); }; } &&
5926 { ac_try='test -s conftest.$ac_objext'
5927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931 (exit $ac_status); }; }; then
5932 ac_cv_type_uint32_t=yes
5934 echo "$as_me: failed program was:" >&5
5935 sed 's/^/| /' conftest.$ac_ext >&5
5937 ac_cv_type_uint32_t=no
5939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5941 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
5942 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
5943 if test $ac_cv_type_uint32_t = yes; then
5944 acx_cv_header_stdint=$i
5949 echo "$as_me:$LINENO: checking for uint64_t" >&5
5950 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
5951 if test "${ac_cv_type_uint64_t+set}" = set; then
5952 echo $ECHO_N "(cached) $ECHO_C" >&6
5954 cat >conftest.$ac_ext <<_ACEOF
5957 cat confdefs.h >>conftest.$ac_ext
5958 cat >>conftest.$ac_ext <<_ACEOF
5959 /* end confdefs.h. */
5960 #include <sys/types.h>
5968 if (sizeof (uint64_t))
5974 rm -f conftest.$ac_objext
5975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5976 (eval $ac_compile) 2>conftest.er1
5978 grep -v '^ *+' conftest.er1 >conftest.err
5980 cat conftest.err >&5
5981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982 (exit $ac_status); } &&
5983 { ac_try='test -z "$ac_c_werror_flag"
5984 || test ! -s conftest.err'
5985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5989 (exit $ac_status); }; } &&
5990 { ac_try='test -s conftest.$ac_objext'
5991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995 (exit $ac_status); }; }; then
5996 ac_cv_type_uint64_t=yes
5998 echo "$as_me: failed program was:" >&5
5999 sed 's/^/| /' conftest.$ac_ext >&5
6001 ac_cv_type_uint64_t=no
6003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6005 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
6006 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
6008 echo "$as_me:$LINENO: checking for uintptr_t" >&5
6009 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
6010 if test "${ac_cv_type_uintptr_t+set}" = set; then
6011 echo $ECHO_N "(cached) $ECHO_C" >&6
6013 cat >conftest.$ac_ext <<_ACEOF
6016 cat confdefs.h >>conftest.$ac_ext
6017 cat >>conftest.$ac_ext <<_ACEOF
6018 /* end confdefs.h. */
6019 #include <sys/types.h>
6025 if ((uintptr_t *) 0)
6027 if (sizeof (uintptr_t))
6033 rm -f conftest.$ac_objext
6034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6035 (eval $ac_compile) 2>conftest.er1
6037 grep -v '^ *+' conftest.er1 >conftest.err
6039 cat conftest.err >&5
6040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041 (exit $ac_status); } &&
6042 { ac_try='test -z "$ac_c_werror_flag"
6043 || test ! -s conftest.err'
6044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048 (exit $ac_status); }; } &&
6049 { ac_try='test -s conftest.$ac_objext'
6050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054 (exit $ac_status); }; }; then
6055 ac_cv_type_uintptr_t=yes
6057 echo "$as_me: failed program was:" >&5
6058 sed 's/^/| /' conftest.$ac_ext >&5
6060 ac_cv_type_uintptr_t=no
6062 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6064 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
6065 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
6070 if test "$acx_cv_header_stdint" = stddef.h; then
6071 acx_cv_header_stdint_kind="(u_intXX_t style)"
6072 for i in sys/types.h $inttype_headers; do
6073 unset ac_cv_type_u_int32_t
6074 unset ac_cv_type_u_int64_t
6075 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
6076 echo "$as_me:$LINENO: checking for u_int32_t" >&5
6077 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
6078 if test "${ac_cv_type_u_int32_t+set}" = set; then
6079 echo $ECHO_N "(cached) $ECHO_C" >&6
6081 cat >conftest.$ac_ext <<_ACEOF
6084 cat confdefs.h >>conftest.$ac_ext
6085 cat >>conftest.$ac_ext <<_ACEOF
6086 /* end confdefs.h. */
6087 #include <sys/types.h>
6093 if ((u_int32_t *) 0)
6095 if (sizeof (u_int32_t))
6101 rm -f conftest.$ac_objext
6102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6103 (eval $ac_compile) 2>conftest.er1
6105 grep -v '^ *+' conftest.er1 >conftest.err
6107 cat conftest.err >&5
6108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109 (exit $ac_status); } &&
6110 { ac_try='test -z "$ac_c_werror_flag"
6111 || test ! -s conftest.err'
6112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116 (exit $ac_status); }; } &&
6117 { ac_try='test -s conftest.$ac_objext'
6118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122 (exit $ac_status); }; }; then
6123 ac_cv_type_u_int32_t=yes
6125 echo "$as_me: failed program was:" >&5
6126 sed 's/^/| /' conftest.$ac_ext >&5
6128 ac_cv_type_u_int32_t=no
6130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6132 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
6133 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
6134 if test $ac_cv_type_u_int32_t = yes; then
6135 acx_cv_header_stdint=$i
6140 echo "$as_me:$LINENO: checking for u_int64_t" >&5
6141 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
6142 if test "${ac_cv_type_u_int64_t+set}" = set; then
6143 echo $ECHO_N "(cached) $ECHO_C" >&6
6145 cat >conftest.$ac_ext <<_ACEOF
6148 cat confdefs.h >>conftest.$ac_ext
6149 cat >>conftest.$ac_ext <<_ACEOF
6150 /* end confdefs.h. */
6151 #include <sys/types.h>
6157 if ((u_int64_t *) 0)
6159 if (sizeof (u_int64_t))
6165 rm -f conftest.$ac_objext
6166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6167 (eval $ac_compile) 2>conftest.er1
6169 grep -v '^ *+' conftest.er1 >conftest.err
6171 cat conftest.err >&5
6172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6173 (exit $ac_status); } &&
6174 { ac_try='test -z "$ac_c_werror_flag"
6175 || test ! -s conftest.err'
6176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180 (exit $ac_status); }; } &&
6181 { ac_try='test -s conftest.$ac_objext'
6182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186 (exit $ac_status); }; }; then
6187 ac_cv_type_u_int64_t=yes
6189 echo "$as_me: failed program was:" >&5
6190 sed 's/^/| /' conftest.$ac_ext >&5
6192 ac_cv_type_u_int64_t=no
6194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6196 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
6197 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
6202 if test "$acx_cv_header_stdint" = stddef.h; then
6203 acx_cv_header_stdint_kind="(using manual detection)"
6206 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
6207 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
6208 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
6209 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
6210 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
6212 # ----------------- Summarize what we found so far
6214 echo "$as_me:$LINENO: checking what to include in gstdint.h" >&5
6215 echo $ECHO_N "checking what to include in gstdint.h... $ECHO_C" >&6
6217 case `$as_basename gstdint.h ||
6218 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
6219 Xgstdint.h : 'X\(//\)$' \| \
6220 Xgstdint.h : 'X\(/\)$' \| \
6221 . : '\(.\)' 2>/dev/null ||
6223 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6224 /^X\/\(\/\/\)$/{ s//\1/; q; }
6225 /^X\/\(\/\).*/{ s//\1/; q; }
6227 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
6228 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
6229 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
6230 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
6234 echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
6235 echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
6237 # ----------------- done included file, check C basic types --------
6239 # Lacking an uintptr_t? Test size of void *
6240 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
6241 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
6242 echo $ECHO_N "checking for void *... $ECHO_C" >&6
6243 if test "${ac_cv_type_void_p+set}" = set; then
6244 echo $ECHO_N "(cached) $ECHO_C" >&6
6246 cat >conftest.$ac_ext <<_ACEOF
6249 cat confdefs.h >>conftest.$ac_ext
6250 cat >>conftest.$ac_ext <<_ACEOF
6251 /* end confdefs.h. */
6252 $ac_includes_default
6258 if (sizeof (void *))
6264 rm -f conftest.$ac_objext
6265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6266 (eval $ac_compile) 2>conftest.er1
6268 grep -v '^ *+' conftest.er1 >conftest.err
6270 cat conftest.err >&5
6271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6272 (exit $ac_status); } &&
6273 { ac_try='test -z "$ac_c_werror_flag"
6274 || test ! -s conftest.err'
6275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279 (exit $ac_status); }; } &&
6280 { ac_try='test -s conftest.$ac_objext'
6281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285 (exit $ac_status); }; }; then
6286 ac_cv_type_void_p=yes
6288 echo "$as_me: failed program was:" >&5
6289 sed 's/^/| /' conftest.$ac_ext >&5
6291 ac_cv_type_void_p=no
6293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6295 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
6296 echo "${ECHO_T}$ac_cv_type_void_p" >&6
6298 echo "$as_me:$LINENO: checking size of void *" >&5
6299 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
6300 if test "${ac_cv_sizeof_void_p+set}" = set; then
6301 echo $ECHO_N "(cached) $ECHO_C" >&6
6303 if test "$ac_cv_type_void_p" = yes; then
6304 # The cast to unsigned long works around a bug in the HP C Compiler
6305 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6306 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6307 # This bug is HP SR number 8606223364.
6308 if test "$cross_compiling" = yes; then
6309 # Depending upon the size, compute the lo and hi bounds.
6310 cat >conftest.$ac_ext <<_ACEOF
6313 cat confdefs.h >>conftest.$ac_ext
6314 cat >>conftest.$ac_ext <<_ACEOF
6315 /* end confdefs.h. */
6316 $ac_includes_default
6320 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
6327 rm -f conftest.$ac_objext
6328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6329 (eval $ac_compile) 2>conftest.er1
6331 grep -v '^ *+' conftest.er1 >conftest.err
6333 cat conftest.err >&5
6334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335 (exit $ac_status); } &&
6336 { ac_try='test -z "$ac_c_werror_flag"
6337 || test ! -s conftest.err'
6338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342 (exit $ac_status); }; } &&
6343 { ac_try='test -s conftest.$ac_objext'
6344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348 (exit $ac_status); }; }; then
6351 cat >conftest.$ac_ext <<_ACEOF
6354 cat confdefs.h >>conftest.$ac_ext
6355 cat >>conftest.$ac_ext <<_ACEOF
6356 /* end confdefs.h. */
6357 $ac_includes_default
6361 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
6368 rm -f conftest.$ac_objext
6369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6370 (eval $ac_compile) 2>conftest.er1
6372 grep -v '^ *+' conftest.er1 >conftest.err
6374 cat conftest.err >&5
6375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6376 (exit $ac_status); } &&
6377 { ac_try='test -z "$ac_c_werror_flag"
6378 || test ! -s conftest.err'
6379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6383 (exit $ac_status); }; } &&
6384 { ac_try='test -s conftest.$ac_objext'
6385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6389 (exit $ac_status); }; }; then
6390 ac_hi=$ac_mid; break
6392 echo "$as_me: failed program was:" >&5
6393 sed 's/^/| /' conftest.$ac_ext >&5
6395 ac_lo=`expr $ac_mid + 1`
6396 if test $ac_lo -le $ac_mid; then
6400 ac_mid=`expr 2 '*' $ac_mid + 1`
6402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6405 echo "$as_me: failed program was:" >&5
6406 sed 's/^/| /' conftest.$ac_ext >&5
6408 cat >conftest.$ac_ext <<_ACEOF
6411 cat confdefs.h >>conftest.$ac_ext
6412 cat >>conftest.$ac_ext <<_ACEOF
6413 /* end confdefs.h. */
6414 $ac_includes_default
6418 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
6425 rm -f conftest.$ac_objext
6426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6427 (eval $ac_compile) 2>conftest.er1
6429 grep -v '^ *+' conftest.er1 >conftest.err
6431 cat conftest.err >&5
6432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433 (exit $ac_status); } &&
6434 { ac_try='test -z "$ac_c_werror_flag"
6435 || test ! -s conftest.err'
6436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440 (exit $ac_status); }; } &&
6441 { ac_try='test -s conftest.$ac_objext'
6442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446 (exit $ac_status); }; }; then
6449 cat >conftest.$ac_ext <<_ACEOF
6452 cat confdefs.h >>conftest.$ac_ext
6453 cat >>conftest.$ac_ext <<_ACEOF
6454 /* end confdefs.h. */
6455 $ac_includes_default
6459 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
6466 rm -f conftest.$ac_objext
6467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6468 (eval $ac_compile) 2>conftest.er1
6470 grep -v '^ *+' conftest.er1 >conftest.err
6472 cat conftest.err >&5
6473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6474 (exit $ac_status); } &&
6475 { ac_try='test -z "$ac_c_werror_flag"
6476 || test ! -s conftest.err'
6477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481 (exit $ac_status); }; } &&
6482 { ac_try='test -s conftest.$ac_objext'
6483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487 (exit $ac_status); }; }; then
6488 ac_lo=$ac_mid; break
6490 echo "$as_me: failed program was:" >&5
6491 sed 's/^/| /' conftest.$ac_ext >&5
6493 ac_hi=`expr '(' $ac_mid ')' - 1`
6494 if test $ac_mid -le $ac_hi; then
6498 ac_mid=`expr 2 '*' $ac_mid`
6500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6503 echo "$as_me: failed program was:" >&5
6504 sed 's/^/| /' conftest.$ac_ext >&5
6508 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6511 # Binary search between lo and hi bounds.
6512 while test "x$ac_lo" != "x$ac_hi"; do
6513 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6514 cat >conftest.$ac_ext <<_ACEOF
6517 cat confdefs.h >>conftest.$ac_ext
6518 cat >>conftest.$ac_ext <<_ACEOF
6519 /* end confdefs.h. */
6520 $ac_includes_default
6524 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
6531 rm -f conftest.$ac_objext
6532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6533 (eval $ac_compile) 2>conftest.er1
6535 grep -v '^ *+' conftest.er1 >conftest.err
6537 cat conftest.err >&5
6538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539 (exit $ac_status); } &&
6540 { ac_try='test -z "$ac_c_werror_flag"
6541 || test ! -s conftest.err'
6542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546 (exit $ac_status); }; } &&
6547 { ac_try='test -s conftest.$ac_objext'
6548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552 (exit $ac_status); }; }; then
6555 echo "$as_me: failed program was:" >&5
6556 sed 's/^/| /' conftest.$ac_ext >&5
6558 ac_lo=`expr '(' $ac_mid ')' + 1`
6560 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6563 ?*) ac_cv_sizeof_void_p=$ac_lo;;
6564 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
6565 See \`config.log' for more details." >&5
6566 echo "$as_me: error: cannot compute sizeof (void *), 77
6567 See \`config.log' for more details." >&2;}
6568 { (exit 1); exit 1; }; } ;;
6571 if test "$cross_compiling" = yes; then
6572 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6573 See \`config.log' for more details." >&5
6574 echo "$as_me: error: cannot run test program while cross compiling
6575 See \`config.log' for more details." >&2;}
6576 { (exit 1); exit 1; }; }
6578 cat >conftest.$ac_ext <<_ACEOF
6581 cat confdefs.h >>conftest.$ac_ext
6582 cat >>conftest.$ac_ext <<_ACEOF
6583 /* end confdefs.h. */
6584 $ac_includes_default
6585 long longval () { return (long) (sizeof (void *)); }
6586 unsigned long ulongval () { return (long) (sizeof (void *)); }
6593 FILE *f = fopen ("conftest.val", "w");
6596 if (((long) (sizeof (void *))) < 0)
6598 long i = longval ();
6599 if (i != ((long) (sizeof (void *))))
6601 fprintf (f, "%ld\n", i);
6605 unsigned long i = ulongval ();
6606 if (i != ((long) (sizeof (void *))))
6608 fprintf (f, "%lu\n", i);
6610 exit (ferror (f) || fclose (f) != 0);
6616 rm -f conftest$ac_exeext
6617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6618 (eval $ac_link) 2>&5
6620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6626 (exit $ac_status); }; }; then
6627 ac_cv_sizeof_void_p=`cat conftest.val`
6629 echo "$as_me: program exited with status $ac_status" >&5
6630 echo "$as_me: failed program was:" >&5
6631 sed 's/^/| /' conftest.$ac_ext >&5
6634 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
6635 See \`config.log' for more details." >&5
6636 echo "$as_me: error: cannot compute sizeof (void *), 77
6637 See \`config.log' for more details." >&2;}
6638 { (exit 1); exit 1; }; }
6640 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6645 ac_cv_sizeof_void_p=0
6648 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
6649 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
6650 cat >>confdefs.h <<_ACEOF
6651 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6657 # Lacking an uint64_t? Test size of long
6658 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
6659 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
6660 echo $ECHO_N "checking for long... $ECHO_C" >&6
6661 if test "${ac_cv_type_long+set}" = set; then
6662 echo $ECHO_N "(cached) $ECHO_C" >&6
6664 cat >conftest.$ac_ext <<_ACEOF
6667 cat confdefs.h >>conftest.$ac_ext
6668 cat >>conftest.$ac_ext <<_ACEOF
6669 /* end confdefs.h. */
6670 $ac_includes_default
6682 rm -f conftest.$ac_objext
6683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6684 (eval $ac_compile) 2>conftest.er1
6686 grep -v '^ *+' conftest.er1 >conftest.err
6688 cat conftest.err >&5
6689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6690 (exit $ac_status); } &&
6691 { ac_try='test -z "$ac_c_werror_flag"
6692 || test ! -s conftest.err'
6693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6697 (exit $ac_status); }; } &&
6698 { ac_try='test -s conftest.$ac_objext'
6699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6703 (exit $ac_status); }; }; then
6706 echo "$as_me: failed program was:" >&5
6707 sed 's/^/| /' conftest.$ac_ext >&5
6711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6713 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6714 echo "${ECHO_T}$ac_cv_type_long" >&6
6716 echo "$as_me:$LINENO: checking size of long" >&5
6717 echo $ECHO_N "checking size of long... $ECHO_C" >&6
6718 if test "${ac_cv_sizeof_long+set}" = set; then
6719 echo $ECHO_N "(cached) $ECHO_C" >&6
6721 if test "$ac_cv_type_long" = yes; then
6722 # The cast to unsigned long works around a bug in the HP C Compiler
6723 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6724 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6725 # This bug is HP SR number 8606223364.
6726 if test "$cross_compiling" = yes; then
6727 # Depending upon the size, compute the lo and hi bounds.
6728 cat >conftest.$ac_ext <<_ACEOF
6731 cat confdefs.h >>conftest.$ac_ext
6732 cat >>conftest.$ac_ext <<_ACEOF
6733 /* end confdefs.h. */
6734 $ac_includes_default
6738 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6745 rm -f conftest.$ac_objext
6746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6747 (eval $ac_compile) 2>conftest.er1
6749 grep -v '^ *+' conftest.er1 >conftest.err
6751 cat conftest.err >&5
6752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6753 (exit $ac_status); } &&
6754 { ac_try='test -z "$ac_c_werror_flag"
6755 || test ! -s conftest.err'
6756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6760 (exit $ac_status); }; } &&
6761 { ac_try='test -s conftest.$ac_objext'
6762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6766 (exit $ac_status); }; }; then
6769 cat >conftest.$ac_ext <<_ACEOF
6772 cat confdefs.h >>conftest.$ac_ext
6773 cat >>conftest.$ac_ext <<_ACEOF
6774 /* end confdefs.h. */
6775 $ac_includes_default
6779 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6786 rm -f conftest.$ac_objext
6787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6788 (eval $ac_compile) 2>conftest.er1
6790 grep -v '^ *+' conftest.er1 >conftest.err
6792 cat conftest.err >&5
6793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6794 (exit $ac_status); } &&
6795 { ac_try='test -z "$ac_c_werror_flag"
6796 || test ! -s conftest.err'
6797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6801 (exit $ac_status); }; } &&
6802 { ac_try='test -s conftest.$ac_objext'
6803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6807 (exit $ac_status); }; }; then
6808 ac_hi=$ac_mid; break
6810 echo "$as_me: failed program was:" >&5
6811 sed 's/^/| /' conftest.$ac_ext >&5
6813 ac_lo=`expr $ac_mid + 1`
6814 if test $ac_lo -le $ac_mid; then
6818 ac_mid=`expr 2 '*' $ac_mid + 1`
6820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6823 echo "$as_me: failed program was:" >&5
6824 sed 's/^/| /' conftest.$ac_ext >&5
6826 cat >conftest.$ac_ext <<_ACEOF
6829 cat confdefs.h >>conftest.$ac_ext
6830 cat >>conftest.$ac_ext <<_ACEOF
6831 /* end confdefs.h. */
6832 $ac_includes_default
6836 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6843 rm -f conftest.$ac_objext
6844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6845 (eval $ac_compile) 2>conftest.er1
6847 grep -v '^ *+' conftest.er1 >conftest.err
6849 cat conftest.err >&5
6850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6851 (exit $ac_status); } &&
6852 { ac_try='test -z "$ac_c_werror_flag"
6853 || test ! -s conftest.err'
6854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6858 (exit $ac_status); }; } &&
6859 { ac_try='test -s conftest.$ac_objext'
6860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6864 (exit $ac_status); }; }; then
6867 cat >conftest.$ac_ext <<_ACEOF
6870 cat confdefs.h >>conftest.$ac_ext
6871 cat >>conftest.$ac_ext <<_ACEOF
6872 /* end confdefs.h. */
6873 $ac_includes_default
6877 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6884 rm -f conftest.$ac_objext
6885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6886 (eval $ac_compile) 2>conftest.er1
6888 grep -v '^ *+' conftest.er1 >conftest.err
6890 cat conftest.err >&5
6891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6892 (exit $ac_status); } &&
6893 { ac_try='test -z "$ac_c_werror_flag"
6894 || test ! -s conftest.err'
6895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6899 (exit $ac_status); }; } &&
6900 { ac_try='test -s conftest.$ac_objext'
6901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6905 (exit $ac_status); }; }; then
6906 ac_lo=$ac_mid; break
6908 echo "$as_me: failed program was:" >&5
6909 sed 's/^/| /' conftest.$ac_ext >&5
6911 ac_hi=`expr '(' $ac_mid ')' - 1`
6912 if test $ac_mid -le $ac_hi; then
6916 ac_mid=`expr 2 '*' $ac_mid`
6918 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6921 echo "$as_me: failed program was:" >&5
6922 sed 's/^/| /' conftest.$ac_ext >&5
6926 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6928 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6929 # Binary search between lo and hi bounds.
6930 while test "x$ac_lo" != "x$ac_hi"; do
6931 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6932 cat >conftest.$ac_ext <<_ACEOF
6935 cat confdefs.h >>conftest.$ac_ext
6936 cat >>conftest.$ac_ext <<_ACEOF
6937 /* end confdefs.h. */
6938 $ac_includes_default
6942 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6949 rm -f conftest.$ac_objext
6950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6951 (eval $ac_compile) 2>conftest.er1
6953 grep -v '^ *+' conftest.er1 >conftest.err
6955 cat conftest.err >&5
6956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6957 (exit $ac_status); } &&
6958 { ac_try='test -z "$ac_c_werror_flag"
6959 || test ! -s conftest.err'
6960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6964 (exit $ac_status); }; } &&
6965 { ac_try='test -s conftest.$ac_objext'
6966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970 (exit $ac_status); }; }; then
6973 echo "$as_me: failed program was:" >&5
6974 sed 's/^/| /' conftest.$ac_ext >&5
6976 ac_lo=`expr '(' $ac_mid ')' + 1`
6978 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6981 ?*) ac_cv_sizeof_long=$ac_lo;;
6982 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6983 See \`config.log' for more details." >&5
6984 echo "$as_me: error: cannot compute sizeof (long), 77
6985 See \`config.log' for more details." >&2;}
6986 { (exit 1); exit 1; }; } ;;
6989 if test "$cross_compiling" = yes; then
6990 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6991 See \`config.log' for more details." >&5
6992 echo "$as_me: error: cannot run test program while cross compiling
6993 See \`config.log' for more details." >&2;}
6994 { (exit 1); exit 1; }; }
6996 cat >conftest.$ac_ext <<_ACEOF
6999 cat confdefs.h >>conftest.$ac_ext
7000 cat >>conftest.$ac_ext <<_ACEOF
7001 /* end confdefs.h. */
7002 $ac_includes_default
7003 long longval () { return (long) (sizeof (long)); }
7004 unsigned long ulongval () { return (long) (sizeof (long)); }
7011 FILE *f = fopen ("conftest.val", "w");
7014 if (((long) (sizeof (long))) < 0)
7016 long i = longval ();
7017 if (i != ((long) (sizeof (long))))
7019 fprintf (f, "%ld\n", i);
7023 unsigned long i = ulongval ();
7024 if (i != ((long) (sizeof (long))))
7026 fprintf (f, "%lu\n", i);
7028 exit (ferror (f) || fclose (f) != 0);
7034 rm -f conftest$ac_exeext
7035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7036 (eval $ac_link) 2>&5
7038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7039 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7044 (exit $ac_status); }; }; then
7045 ac_cv_sizeof_long=`cat conftest.val`
7047 echo "$as_me: program exited with status $ac_status" >&5
7048 echo "$as_me: failed program was:" >&5
7049 sed 's/^/| /' conftest.$ac_ext >&5
7052 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7053 See \`config.log' for more details." >&5
7054 echo "$as_me: error: cannot compute sizeof (long), 77
7055 See \`config.log' for more details." >&2;}
7056 { (exit 1); exit 1; }; }
7058 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7066 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7067 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7068 cat >>confdefs.h <<_ACEOF
7069 #define SIZEOF_LONG $ac_cv_sizeof_long
7075 if test $acx_cv_header_stdint = stddef.h; then
7076 # Lacking a good header? Test size of everything and deduce all types.
7077 echo "$as_me:$LINENO: checking for int" >&5
7078 echo $ECHO_N "checking for int... $ECHO_C" >&6
7079 if test "${ac_cv_type_int+set}" = set; then
7080 echo $ECHO_N "(cached) $ECHO_C" >&6
7082 cat >conftest.$ac_ext <<_ACEOF
7085 cat confdefs.h >>conftest.$ac_ext
7086 cat >>conftest.$ac_ext <<_ACEOF
7087 /* end confdefs.h. */
7088 $ac_includes_default
7100 rm -f conftest.$ac_objext
7101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7102 (eval $ac_compile) 2>conftest.er1
7104 grep -v '^ *+' conftest.er1 >conftest.err
7106 cat conftest.err >&5
7107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7108 (exit $ac_status); } &&
7109 { ac_try='test -z "$ac_c_werror_flag"
7110 || test ! -s conftest.err'
7111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7115 (exit $ac_status); }; } &&
7116 { ac_try='test -s conftest.$ac_objext'
7117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7121 (exit $ac_status); }; }; then
7124 echo "$as_me: failed program was:" >&5
7125 sed 's/^/| /' conftest.$ac_ext >&5
7129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7131 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
7132 echo "${ECHO_T}$ac_cv_type_int" >&6
7134 echo "$as_me:$LINENO: checking size of int" >&5
7135 echo $ECHO_N "checking size of int... $ECHO_C" >&6
7136 if test "${ac_cv_sizeof_int+set}" = set; then
7137 echo $ECHO_N "(cached) $ECHO_C" >&6
7139 if test "$ac_cv_type_int" = yes; then
7140 # The cast to unsigned long works around a bug in the HP C Compiler
7141 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7142 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7143 # This bug is HP SR number 8606223364.
7144 if test "$cross_compiling" = yes; then
7145 # Depending upon the size, compute the lo and hi bounds.
7146 cat >conftest.$ac_ext <<_ACEOF
7149 cat confdefs.h >>conftest.$ac_ext
7150 cat >>conftest.$ac_ext <<_ACEOF
7151 /* end confdefs.h. */
7152 $ac_includes_default
7156 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
7163 rm -f conftest.$ac_objext
7164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7165 (eval $ac_compile) 2>conftest.er1
7167 grep -v '^ *+' conftest.er1 >conftest.err
7169 cat conftest.err >&5
7170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171 (exit $ac_status); } &&
7172 { ac_try='test -z "$ac_c_werror_flag"
7173 || test ! -s conftest.err'
7174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178 (exit $ac_status); }; } &&
7179 { ac_try='test -s conftest.$ac_objext'
7180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7184 (exit $ac_status); }; }; then
7187 cat >conftest.$ac_ext <<_ACEOF
7190 cat confdefs.h >>conftest.$ac_ext
7191 cat >>conftest.$ac_ext <<_ACEOF
7192 /* end confdefs.h. */
7193 $ac_includes_default
7197 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
7204 rm -f conftest.$ac_objext
7205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7206 (eval $ac_compile) 2>conftest.er1
7208 grep -v '^ *+' conftest.er1 >conftest.err
7210 cat conftest.err >&5
7211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7212 (exit $ac_status); } &&
7213 { ac_try='test -z "$ac_c_werror_flag"
7214 || test ! -s conftest.err'
7215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7219 (exit $ac_status); }; } &&
7220 { ac_try='test -s conftest.$ac_objext'
7221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225 (exit $ac_status); }; }; then
7226 ac_hi=$ac_mid; break
7228 echo "$as_me: failed program was:" >&5
7229 sed 's/^/| /' conftest.$ac_ext >&5
7231 ac_lo=`expr $ac_mid + 1`
7232 if test $ac_lo -le $ac_mid; then
7236 ac_mid=`expr 2 '*' $ac_mid + 1`
7238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7241 echo "$as_me: failed program was:" >&5
7242 sed 's/^/| /' conftest.$ac_ext >&5
7244 cat >conftest.$ac_ext <<_ACEOF
7247 cat confdefs.h >>conftest.$ac_ext
7248 cat >>conftest.$ac_ext <<_ACEOF
7249 /* end confdefs.h. */
7250 $ac_includes_default
7254 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
7261 rm -f conftest.$ac_objext
7262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7263 (eval $ac_compile) 2>conftest.er1
7265 grep -v '^ *+' conftest.er1 >conftest.err
7267 cat conftest.err >&5
7268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7269 (exit $ac_status); } &&
7270 { ac_try='test -z "$ac_c_werror_flag"
7271 || test ! -s conftest.err'
7272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276 (exit $ac_status); }; } &&
7277 { ac_try='test -s conftest.$ac_objext'
7278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7282 (exit $ac_status); }; }; then
7285 cat >conftest.$ac_ext <<_ACEOF
7288 cat confdefs.h >>conftest.$ac_ext
7289 cat >>conftest.$ac_ext <<_ACEOF
7290 /* end confdefs.h. */
7291 $ac_includes_default
7295 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
7302 rm -f conftest.$ac_objext
7303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7304 (eval $ac_compile) 2>conftest.er1
7306 grep -v '^ *+' conftest.er1 >conftest.err
7308 cat conftest.err >&5
7309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310 (exit $ac_status); } &&
7311 { ac_try='test -z "$ac_c_werror_flag"
7312 || test ! -s conftest.err'
7313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7317 (exit $ac_status); }; } &&
7318 { ac_try='test -s conftest.$ac_objext'
7319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7323 (exit $ac_status); }; }; then
7324 ac_lo=$ac_mid; break
7326 echo "$as_me: failed program was:" >&5
7327 sed 's/^/| /' conftest.$ac_ext >&5
7329 ac_hi=`expr '(' $ac_mid ')' - 1`
7330 if test $ac_mid -le $ac_hi; then
7334 ac_mid=`expr 2 '*' $ac_mid`
7336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7339 echo "$as_me: failed program was:" >&5
7340 sed 's/^/| /' conftest.$ac_ext >&5
7344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7347 # Binary search between lo and hi bounds.
7348 while test "x$ac_lo" != "x$ac_hi"; do
7349 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7350 cat >conftest.$ac_ext <<_ACEOF
7353 cat confdefs.h >>conftest.$ac_ext
7354 cat >>conftest.$ac_ext <<_ACEOF
7355 /* end confdefs.h. */
7356 $ac_includes_default
7360 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
7367 rm -f conftest.$ac_objext
7368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7369 (eval $ac_compile) 2>conftest.er1
7371 grep -v '^ *+' conftest.er1 >conftest.err
7373 cat conftest.err >&5
7374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7375 (exit $ac_status); } &&
7376 { ac_try='test -z "$ac_c_werror_flag"
7377 || test ! -s conftest.err'
7378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7382 (exit $ac_status); }; } &&
7383 { ac_try='test -s conftest.$ac_objext'
7384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7388 (exit $ac_status); }; }; then
7391 echo "$as_me: failed program was:" >&5
7392 sed 's/^/| /' conftest.$ac_ext >&5
7394 ac_lo=`expr '(' $ac_mid ')' + 1`
7396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7399 ?*) ac_cv_sizeof_int=$ac_lo;;
7400 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
7401 See \`config.log' for more details." >&5
7402 echo "$as_me: error: cannot compute sizeof (int), 77
7403 See \`config.log' for more details." >&2;}
7404 { (exit 1); exit 1; }; } ;;
7407 if test "$cross_compiling" = yes; then
7408 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7409 See \`config.log' for more details." >&5
7410 echo "$as_me: error: cannot run test program while cross compiling
7411 See \`config.log' for more details." >&2;}
7412 { (exit 1); exit 1; }; }
7414 cat >conftest.$ac_ext <<_ACEOF
7417 cat confdefs.h >>conftest.$ac_ext
7418 cat >>conftest.$ac_ext <<_ACEOF
7419 /* end confdefs.h. */
7420 $ac_includes_default
7421 long longval () { return (long) (sizeof (int)); }
7422 unsigned long ulongval () { return (long) (sizeof (int)); }
7429 FILE *f = fopen ("conftest.val", "w");
7432 if (((long) (sizeof (int))) < 0)
7434 long i = longval ();
7435 if (i != ((long) (sizeof (int))))
7437 fprintf (f, "%ld\n", i);
7441 unsigned long i = ulongval ();
7442 if (i != ((long) (sizeof (int))))
7444 fprintf (f, "%lu\n", i);
7446 exit (ferror (f) || fclose (f) != 0);
7452 rm -f conftest$ac_exeext
7453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7454 (eval $ac_link) 2>&5
7456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7457 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7462 (exit $ac_status); }; }; then
7463 ac_cv_sizeof_int=`cat conftest.val`
7465 echo "$as_me: program exited with status $ac_status" >&5
7466 echo "$as_me: failed program was:" >&5
7467 sed 's/^/| /' conftest.$ac_ext >&5
7470 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
7471 See \`config.log' for more details." >&5
7472 echo "$as_me: error: cannot compute sizeof (int), 77
7473 See \`config.log' for more details." >&2;}
7474 { (exit 1); exit 1; }; }
7476 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7484 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
7485 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
7486 cat >>confdefs.h <<_ACEOF
7487 #define SIZEOF_INT $ac_cv_sizeof_int
7491 echo "$as_me:$LINENO: checking for short" >&5
7492 echo $ECHO_N "checking for short... $ECHO_C" >&6
7493 if test "${ac_cv_type_short+set}" = set; then
7494 echo $ECHO_N "(cached) $ECHO_C" >&6
7496 cat >conftest.$ac_ext <<_ACEOF
7499 cat confdefs.h >>conftest.$ac_ext
7500 cat >>conftest.$ac_ext <<_ACEOF
7501 /* end confdefs.h. */
7502 $ac_includes_default
7514 rm -f conftest.$ac_objext
7515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7516 (eval $ac_compile) 2>conftest.er1
7518 grep -v '^ *+' conftest.er1 >conftest.err
7520 cat conftest.err >&5
7521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522 (exit $ac_status); } &&
7523 { ac_try='test -z "$ac_c_werror_flag"
7524 || test ! -s conftest.err'
7525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7529 (exit $ac_status); }; } &&
7530 { ac_try='test -s conftest.$ac_objext'
7531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7535 (exit $ac_status); }; }; then
7536 ac_cv_type_short=yes
7538 echo "$as_me: failed program was:" >&5
7539 sed 's/^/| /' conftest.$ac_ext >&5
7543 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7545 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
7546 echo "${ECHO_T}$ac_cv_type_short" >&6
7548 echo "$as_me:$LINENO: checking size of short" >&5
7549 echo $ECHO_N "checking size of short... $ECHO_C" >&6
7550 if test "${ac_cv_sizeof_short+set}" = set; then
7551 echo $ECHO_N "(cached) $ECHO_C" >&6
7553 if test "$ac_cv_type_short" = yes; then
7554 # The cast to unsigned long works around a bug in the HP C Compiler
7555 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7556 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7557 # This bug is HP SR number 8606223364.
7558 if test "$cross_compiling" = yes; then
7559 # Depending upon the size, compute the lo and hi bounds.
7560 cat >conftest.$ac_ext <<_ACEOF
7563 cat confdefs.h >>conftest.$ac_ext
7564 cat >>conftest.$ac_ext <<_ACEOF
7565 /* end confdefs.h. */
7566 $ac_includes_default
7570 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
7577 rm -f conftest.$ac_objext
7578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7579 (eval $ac_compile) 2>conftest.er1
7581 grep -v '^ *+' conftest.er1 >conftest.err
7583 cat conftest.err >&5
7584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7585 (exit $ac_status); } &&
7586 { ac_try='test -z "$ac_c_werror_flag"
7587 || test ! -s conftest.err'
7588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7592 (exit $ac_status); }; } &&
7593 { ac_try='test -s conftest.$ac_objext'
7594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7598 (exit $ac_status); }; }; then
7601 cat >conftest.$ac_ext <<_ACEOF
7604 cat confdefs.h >>conftest.$ac_ext
7605 cat >>conftest.$ac_ext <<_ACEOF
7606 /* end confdefs.h. */
7607 $ac_includes_default
7611 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7618 rm -f conftest.$ac_objext
7619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7620 (eval $ac_compile) 2>conftest.er1
7622 grep -v '^ *+' conftest.er1 >conftest.err
7624 cat conftest.err >&5
7625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7626 (exit $ac_status); } &&
7627 { ac_try='test -z "$ac_c_werror_flag"
7628 || test ! -s conftest.err'
7629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633 (exit $ac_status); }; } &&
7634 { ac_try='test -s conftest.$ac_objext'
7635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7639 (exit $ac_status); }; }; then
7640 ac_hi=$ac_mid; break
7642 echo "$as_me: failed program was:" >&5
7643 sed 's/^/| /' conftest.$ac_ext >&5
7645 ac_lo=`expr $ac_mid + 1`
7646 if test $ac_lo -le $ac_mid; then
7650 ac_mid=`expr 2 '*' $ac_mid + 1`
7652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7655 echo "$as_me: failed program was:" >&5
7656 sed 's/^/| /' conftest.$ac_ext >&5
7658 cat >conftest.$ac_ext <<_ACEOF
7661 cat confdefs.h >>conftest.$ac_ext
7662 cat >>conftest.$ac_ext <<_ACEOF
7663 /* end confdefs.h. */
7664 $ac_includes_default
7668 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
7675 rm -f conftest.$ac_objext
7676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7677 (eval $ac_compile) 2>conftest.er1
7679 grep -v '^ *+' conftest.er1 >conftest.err
7681 cat conftest.err >&5
7682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7683 (exit $ac_status); } &&
7684 { ac_try='test -z "$ac_c_werror_flag"
7685 || test ! -s conftest.err'
7686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7690 (exit $ac_status); }; } &&
7691 { ac_try='test -s conftest.$ac_objext'
7692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7696 (exit $ac_status); }; }; then
7699 cat >conftest.$ac_ext <<_ACEOF
7702 cat confdefs.h >>conftest.$ac_ext
7703 cat >>conftest.$ac_ext <<_ACEOF
7704 /* end confdefs.h. */
7705 $ac_includes_default
7709 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
7716 rm -f conftest.$ac_objext
7717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7718 (eval $ac_compile) 2>conftest.er1
7720 grep -v '^ *+' conftest.er1 >conftest.err
7722 cat conftest.err >&5
7723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7724 (exit $ac_status); } &&
7725 { ac_try='test -z "$ac_c_werror_flag"
7726 || test ! -s conftest.err'
7727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7731 (exit $ac_status); }; } &&
7732 { ac_try='test -s conftest.$ac_objext'
7733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7737 (exit $ac_status); }; }; then
7738 ac_lo=$ac_mid; break
7740 echo "$as_me: failed program was:" >&5
7741 sed 's/^/| /' conftest.$ac_ext >&5
7743 ac_hi=`expr '(' $ac_mid ')' - 1`
7744 if test $ac_mid -le $ac_hi; then
7748 ac_mid=`expr 2 '*' $ac_mid`
7750 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7753 echo "$as_me: failed program was:" >&5
7754 sed 's/^/| /' conftest.$ac_ext >&5
7758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7761 # Binary search between lo and hi bounds.
7762 while test "x$ac_lo" != "x$ac_hi"; do
7763 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7764 cat >conftest.$ac_ext <<_ACEOF
7767 cat confdefs.h >>conftest.$ac_ext
7768 cat >>conftest.$ac_ext <<_ACEOF
7769 /* end confdefs.h. */
7770 $ac_includes_default
7774 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7781 rm -f conftest.$ac_objext
7782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7783 (eval $ac_compile) 2>conftest.er1
7785 grep -v '^ *+' conftest.er1 >conftest.err
7787 cat conftest.err >&5
7788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7789 (exit $ac_status); } &&
7790 { ac_try='test -z "$ac_c_werror_flag"
7791 || test ! -s conftest.err'
7792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7796 (exit $ac_status); }; } &&
7797 { ac_try='test -s conftest.$ac_objext'
7798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7802 (exit $ac_status); }; }; then
7805 echo "$as_me: failed program was:" >&5
7806 sed 's/^/| /' conftest.$ac_ext >&5
7808 ac_lo=`expr '(' $ac_mid ')' + 1`
7810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7813 ?*) ac_cv_sizeof_short=$ac_lo;;
7814 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7815 See \`config.log' for more details." >&5
7816 echo "$as_me: error: cannot compute sizeof (short), 77
7817 See \`config.log' for more details." >&2;}
7818 { (exit 1); exit 1; }; } ;;
7821 if test "$cross_compiling" = yes; then
7822 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7823 See \`config.log' for more details." >&5
7824 echo "$as_me: error: cannot run test program while cross compiling
7825 See \`config.log' for more details." >&2;}
7826 { (exit 1); exit 1; }; }
7828 cat >conftest.$ac_ext <<_ACEOF
7831 cat confdefs.h >>conftest.$ac_ext
7832 cat >>conftest.$ac_ext <<_ACEOF
7833 /* end confdefs.h. */
7834 $ac_includes_default
7835 long longval () { return (long) (sizeof (short)); }
7836 unsigned long ulongval () { return (long) (sizeof (short)); }
7843 FILE *f = fopen ("conftest.val", "w");
7846 if (((long) (sizeof (short))) < 0)
7848 long i = longval ();
7849 if (i != ((long) (sizeof (short))))
7851 fprintf (f, "%ld\n", i);
7855 unsigned long i = ulongval ();
7856 if (i != ((long) (sizeof (short))))
7858 fprintf (f, "%lu\n", i);
7860 exit (ferror (f) || fclose (f) != 0);
7866 rm -f conftest$ac_exeext
7867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7868 (eval $ac_link) 2>&5
7870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7871 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876 (exit $ac_status); }; }; then
7877 ac_cv_sizeof_short=`cat conftest.val`
7879 echo "$as_me: program exited with status $ac_status" >&5
7880 echo "$as_me: failed program was:" >&5
7881 sed 's/^/| /' conftest.$ac_ext >&5
7884 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7885 See \`config.log' for more details." >&5
7886 echo "$as_me: error: cannot compute sizeof (short), 77
7887 See \`config.log' for more details." >&2;}
7888 { (exit 1); exit 1; }; }
7890 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7895 ac_cv_sizeof_short=0
7898 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
7899 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
7900 cat >>confdefs.h <<_ACEOF
7901 #define SIZEOF_SHORT $ac_cv_sizeof_short
7905 echo "$as_me:$LINENO: checking for char" >&5
7906 echo $ECHO_N "checking for char... $ECHO_C" >&6
7907 if test "${ac_cv_type_char+set}" = set; then
7908 echo $ECHO_N "(cached) $ECHO_C" >&6
7910 cat >conftest.$ac_ext <<_ACEOF
7913 cat confdefs.h >>conftest.$ac_ext
7914 cat >>conftest.$ac_ext <<_ACEOF
7915 /* end confdefs.h. */
7916 $ac_includes_default
7928 rm -f conftest.$ac_objext
7929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7930 (eval $ac_compile) 2>conftest.er1
7932 grep -v '^ *+' conftest.er1 >conftest.err
7934 cat conftest.err >&5
7935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7936 (exit $ac_status); } &&
7937 { ac_try='test -z "$ac_c_werror_flag"
7938 || test ! -s conftest.err'
7939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7943 (exit $ac_status); }; } &&
7944 { ac_try='test -s conftest.$ac_objext'
7945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949 (exit $ac_status); }; }; then
7952 echo "$as_me: failed program was:" >&5
7953 sed 's/^/| /' conftest.$ac_ext >&5
7957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7959 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
7960 echo "${ECHO_T}$ac_cv_type_char" >&6
7962 echo "$as_me:$LINENO: checking size of char" >&5
7963 echo $ECHO_N "checking size of char... $ECHO_C" >&6
7964 if test "${ac_cv_sizeof_char+set}" = set; then
7965 echo $ECHO_N "(cached) $ECHO_C" >&6
7967 if test "$ac_cv_type_char" = yes; then
7968 # The cast to unsigned long works around a bug in the HP C Compiler
7969 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7970 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7971 # This bug is HP SR number 8606223364.
7972 if test "$cross_compiling" = yes; then
7973 # Depending upon the size, compute the lo and hi bounds.
7974 cat >conftest.$ac_ext <<_ACEOF
7977 cat confdefs.h >>conftest.$ac_ext
7978 cat >>conftest.$ac_ext <<_ACEOF
7979 /* end confdefs.h. */
7980 $ac_includes_default
7984 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
7991 rm -f conftest.$ac_objext
7992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7993 (eval $ac_compile) 2>conftest.er1
7995 grep -v '^ *+' conftest.er1 >conftest.err
7997 cat conftest.err >&5
7998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7999 (exit $ac_status); } &&
8000 { ac_try='test -z "$ac_c_werror_flag"
8001 || test ! -s conftest.err'
8002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006 (exit $ac_status); }; } &&
8007 { ac_try='test -s conftest.$ac_objext'
8008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012 (exit $ac_status); }; }; then
8015 cat >conftest.$ac_ext <<_ACEOF
8018 cat confdefs.h >>conftest.$ac_ext
8019 cat >>conftest.$ac_ext <<_ACEOF
8020 /* end confdefs.h. */
8021 $ac_includes_default
8025 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
8032 rm -f conftest.$ac_objext
8033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8034 (eval $ac_compile) 2>conftest.er1
8036 grep -v '^ *+' conftest.er1 >conftest.err
8038 cat conftest.err >&5
8039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040 (exit $ac_status); } &&
8041 { ac_try='test -z "$ac_c_werror_flag"
8042 || test ! -s conftest.err'
8043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047 (exit $ac_status); }; } &&
8048 { ac_try='test -s conftest.$ac_objext'
8049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8053 (exit $ac_status); }; }; then
8054 ac_hi=$ac_mid; break
8056 echo "$as_me: failed program was:" >&5
8057 sed 's/^/| /' conftest.$ac_ext >&5
8059 ac_lo=`expr $ac_mid + 1`
8060 if test $ac_lo -le $ac_mid; then
8064 ac_mid=`expr 2 '*' $ac_mid + 1`
8066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8069 echo "$as_me: failed program was:" >&5
8070 sed 's/^/| /' conftest.$ac_ext >&5
8072 cat >conftest.$ac_ext <<_ACEOF
8075 cat confdefs.h >>conftest.$ac_ext
8076 cat >>conftest.$ac_ext <<_ACEOF
8077 /* end confdefs.h. */
8078 $ac_includes_default
8082 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
8089 rm -f conftest.$ac_objext
8090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8091 (eval $ac_compile) 2>conftest.er1
8093 grep -v '^ *+' conftest.er1 >conftest.err
8095 cat conftest.err >&5
8096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8097 (exit $ac_status); } &&
8098 { ac_try='test -z "$ac_c_werror_flag"
8099 || test ! -s conftest.err'
8100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8104 (exit $ac_status); }; } &&
8105 { ac_try='test -s conftest.$ac_objext'
8106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110 (exit $ac_status); }; }; then
8113 cat >conftest.$ac_ext <<_ACEOF
8116 cat confdefs.h >>conftest.$ac_ext
8117 cat >>conftest.$ac_ext <<_ACEOF
8118 /* end confdefs.h. */
8119 $ac_includes_default
8123 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
8130 rm -f conftest.$ac_objext
8131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8132 (eval $ac_compile) 2>conftest.er1
8134 grep -v '^ *+' conftest.er1 >conftest.err
8136 cat conftest.err >&5
8137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138 (exit $ac_status); } &&
8139 { ac_try='test -z "$ac_c_werror_flag"
8140 || test ! -s conftest.err'
8141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145 (exit $ac_status); }; } &&
8146 { ac_try='test -s conftest.$ac_objext'
8147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151 (exit $ac_status); }; }; then
8152 ac_lo=$ac_mid; break
8154 echo "$as_me: failed program was:" >&5
8155 sed 's/^/| /' conftest.$ac_ext >&5
8157 ac_hi=`expr '(' $ac_mid ')' - 1`
8158 if test $ac_mid -le $ac_hi; then
8162 ac_mid=`expr 2 '*' $ac_mid`
8164 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8167 echo "$as_me: failed program was:" >&5
8168 sed 's/^/| /' conftest.$ac_ext >&5
8172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8175 # Binary search between lo and hi bounds.
8176 while test "x$ac_lo" != "x$ac_hi"; do
8177 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8178 cat >conftest.$ac_ext <<_ACEOF
8181 cat confdefs.h >>conftest.$ac_ext
8182 cat >>conftest.$ac_ext <<_ACEOF
8183 /* end confdefs.h. */
8184 $ac_includes_default
8188 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
8195 rm -f conftest.$ac_objext
8196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8197 (eval $ac_compile) 2>conftest.er1
8199 grep -v '^ *+' conftest.er1 >conftest.err
8201 cat conftest.err >&5
8202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203 (exit $ac_status); } &&
8204 { ac_try='test -z "$ac_c_werror_flag"
8205 || test ! -s conftest.err'
8206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210 (exit $ac_status); }; } &&
8211 { ac_try='test -s conftest.$ac_objext'
8212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216 (exit $ac_status); }; }; then
8219 echo "$as_me: failed program was:" >&5
8220 sed 's/^/| /' conftest.$ac_ext >&5
8222 ac_lo=`expr '(' $ac_mid ')' + 1`
8224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8227 ?*) ac_cv_sizeof_char=$ac_lo;;
8228 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
8229 See \`config.log' for more details." >&5
8230 echo "$as_me: error: cannot compute sizeof (char), 77
8231 See \`config.log' for more details." >&2;}
8232 { (exit 1); exit 1; }; } ;;
8235 if test "$cross_compiling" = yes; then
8236 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8237 See \`config.log' for more details." >&5
8238 echo "$as_me: error: cannot run test program while cross compiling
8239 See \`config.log' for more details." >&2;}
8240 { (exit 1); exit 1; }; }
8242 cat >conftest.$ac_ext <<_ACEOF
8245 cat confdefs.h >>conftest.$ac_ext
8246 cat >>conftest.$ac_ext <<_ACEOF
8247 /* end confdefs.h. */
8248 $ac_includes_default
8249 long longval () { return (long) (sizeof (char)); }
8250 unsigned long ulongval () { return (long) (sizeof (char)); }
8257 FILE *f = fopen ("conftest.val", "w");
8260 if (((long) (sizeof (char))) < 0)
8262 long i = longval ();
8263 if (i != ((long) (sizeof (char))))
8265 fprintf (f, "%ld\n", i);
8269 unsigned long i = ulongval ();
8270 if (i != ((long) (sizeof (char))))
8272 fprintf (f, "%lu\n", i);
8274 exit (ferror (f) || fclose (f) != 0);
8280 rm -f conftest$ac_exeext
8281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8282 (eval $ac_link) 2>&5
8284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8285 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8290 (exit $ac_status); }; }; then
8291 ac_cv_sizeof_char=`cat conftest.val`
8293 echo "$as_me: program exited with status $ac_status" >&5
8294 echo "$as_me: failed program was:" >&5
8295 sed 's/^/| /' conftest.$ac_ext >&5
8298 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
8299 See \`config.log' for more details." >&5
8300 echo "$as_me: error: cannot compute sizeof (char), 77
8301 See \`config.log' for more details." >&2;}
8302 { (exit 1); exit 1; }; }
8304 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8312 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
8313 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
8314 cat >>confdefs.h <<_ACEOF
8315 #define SIZEOF_CHAR $ac_cv_sizeof_char
8320 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
8321 echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
8322 case "$ac_cv_sizeof_char" in
8323 1) acx_cv_type_int8_t=char ;;
8324 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
8325 echo "$as_me: error: no 8-bit type" >&2;}
8326 { (exit please report a bug); exit please report a bug; }; }
8328 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
8329 echo "${ECHO_T}$acx_cv_type_int8_t" >&6
8331 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
8332 echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
8333 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
8334 2:*) acx_cv_type_int16_t=int ;;
8335 *:2) acx_cv_type_int16_t=short ;;
8336 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
8337 echo "$as_me: error: no 16-bit type" >&2;}
8338 { (exit please report a bug); exit please report a bug; }; }
8340 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
8341 echo "${ECHO_T}$acx_cv_type_int16_t" >&6
8343 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
8344 echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
8345 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
8346 4:*) acx_cv_type_int32_t=int ;;
8347 *:4) acx_cv_type_int32_t=long ;;
8348 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
8349 echo "$as_me: error: no 32-bit type" >&2;}
8350 { (exit please report a bug); exit please report a bug; }; }
8352 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
8353 echo "${ECHO_T}$acx_cv_type_int32_t" >&6
8356 # These tests are here to make the output prettier
8358 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
8359 case "$ac_cv_sizeof_long" in
8360 8) acx_cv_type_int64_t=long ;;
8362 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
8363 echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
8364 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
8365 echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
8368 # Now we can use the above types
8370 if test "$ac_cv_type_uintptr_t" != yes; then
8371 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
8372 echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
8373 case $ac_cv_sizeof_void_p in
8374 2) acx_cv_type_intptr_t=int16_t ;;
8375 4) acx_cv_type_intptr_t=int32_t ;;
8376 8) acx_cv_type_intptr_t=int64_t ;;
8377 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
8378 echo "$as_me: error: no equivalent for intptr_t" >&2;}
8379 { (exit please report a bug); exit please report a bug; }; }
8381 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
8382 echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
8385 # ----------------- done all checks, emit header -------------
8386 ac_config_commands="$ac_config_commands gstdint.h"
8391 # Check to see if -pthread or -lpthread is needed. Prefer the former.
8392 # In case the pthread.h system header is not found, this test will fail.
8395 # Darwin doesn't need the -pthread option since threads are in libSystem
8396 cat >conftest.$ac_ext <<_ACEOF
8399 cat confdefs.h >>conftest.$ac_ext
8400 cat >>conftest.$ac_ext <<_ACEOF
8401 /* end confdefs.h. */
8402 #include <pthread.h>
8403 void *g(void *d) { return NULL; }
8407 pthread_t t; pthread_create(&t,NULL,g,NULL);
8412 rm -f conftest.$ac_objext conftest$ac_exeext
8413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8414 (eval $ac_link) 2>conftest.er1
8416 grep -v '^ *+' conftest.er1 >conftest.err
8418 cat conftest.err >&5
8419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420 (exit $ac_status); } &&
8421 { ac_try='test -z "$ac_c_werror_flag"
8422 || test ! -s conftest.err'
8423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427 (exit $ac_status); }; } &&
8428 { ac_try='test -s conftest$ac_exeext'
8429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8433 (exit $ac_status); }; }; then
8438 XPCFLAGS=" -Wc,-pthread"
8442 echo "$as_me: failed program was:" >&5
8443 sed 's/^/| /' conftest.$ac_ext >&5
8445 CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
8446 cat >conftest.$ac_ext <<_ACEOF
8449 cat confdefs.h >>conftest.$ac_ext
8450 cat >>conftest.$ac_ext <<_ACEOF
8451 /* end confdefs.h. */
8452 #include <pthread.h>
8453 void *g(void *d) { return NULL; }
8457 pthread_t t; pthread_create(&t,NULL,g,NULL);
8462 rm -f conftest.$ac_objext conftest$ac_exeext
8463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8464 (eval $ac_link) 2>conftest.er1
8466 grep -v '^ *+' conftest.er1 >conftest.err
8468 cat conftest.err >&5
8469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470 (exit $ac_status); } &&
8471 { ac_try='test -z "$ac_c_werror_flag"
8472 || test ! -s conftest.err'
8473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8477 (exit $ac_status); }; } &&
8478 { ac_try='test -s conftest$ac_exeext'
8479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483 (exit $ac_status); }; }; then
8486 echo "$as_me: failed program was:" >&5
8487 sed 's/^/| /' conftest.$ac_ext >&5
8489 { { echo "$as_me:$LINENO: error: Pthreads are required to build libgomp" >&5
8490 echo "$as_me: error: Pthreads are required to build libgomp" >&2;}
8491 { (exit 1); exit 1; }; }
8493 rm -f conftest.err conftest.$ac_objext \
8494 conftest$ac_exeext conftest.$ac_ext
8496 rm -f conftest.err conftest.$ac_objext \
8497 conftest$ac_exeext conftest.$ac_ext
8499 # Check for functions needed.
8502 for ac_func in getloadavg clock_gettime
8504 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8505 echo "$as_me:$LINENO: checking for $ac_func" >&5
8506 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8507 if eval "test \"\${$as_ac_var+set}\" = set"; then
8508 echo $ECHO_N "(cached) $ECHO_C" >&6
8510 cat >conftest.$ac_ext <<_ACEOF
8513 cat confdefs.h >>conftest.$ac_ext
8514 cat >>conftest.$ac_ext <<_ACEOF
8515 /* end confdefs.h. */
8516 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8517 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8518 #define $ac_func innocuous_$ac_func
8520 /* System header to define __stub macros and hopefully few prototypes,
8521 which can conflict with char $ac_func (); below.
8522 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8523 <limits.h> exists even on freestanding compilers. */
8526 # include <limits.h>
8528 # include <assert.h>
8533 /* Override any gcc2 internal prototype to avoid an error. */
8538 /* We use char because int might match the return type of a gcc2
8539 builtin and then its argument prototype would still apply. */
8541 /* The GNU C library defines this for functions which it implements
8542 to always fail with ENOSYS. Some functions are actually named
8543 something starting with __ and the normal name is an alias. */
8544 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8547 char (*f) () = $ac_func;
8556 return f != $ac_func;
8561 rm -f conftest.$ac_objext conftest$ac_exeext
8562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8563 (eval $ac_link) 2>conftest.er1
8565 grep -v '^ *+' conftest.er1 >conftest.err
8567 cat conftest.err >&5
8568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8569 (exit $ac_status); } &&
8570 { ac_try='test -z "$ac_c_werror_flag"
8571 || test ! -s conftest.err'
8572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8576 (exit $ac_status); }; } &&
8577 { ac_try='test -s conftest$ac_exeext'
8578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8582 (exit $ac_status); }; }; then
8583 eval "$as_ac_var=yes"
8585 echo "$as_me: failed program was:" >&5
8586 sed 's/^/| /' conftest.$ac_ext >&5
8588 eval "$as_ac_var=no"
8590 rm -f conftest.err conftest.$ac_objext \
8591 conftest$ac_exeext conftest.$ac_ext
8593 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8594 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8595 if test `eval echo '${'$as_ac_var'}'` = yes; then
8596 cat >>confdefs.h <<_ACEOF
8597 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8604 # Check for broken semaphore implementation on darwin.
8605 # sem_init returns: sem_init error: Function not implemented.
8609 cat >>confdefs.h <<\_ACEOF
8610 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
8615 case "$enable_linux_futex" in
8617 # If headers don't have gettid/futex syscalls definition, then
8618 # default to no, otherwise there will be compile time failures.
8619 # Otherwise, default to yes. If we don't detect we are
8620 # compiled/linked against NPTL and not cross-compiling, check
8621 # if programs are run by default against NPTL and if not, issue
8623 enable_linux_futex=no
8624 cat >conftest.$ac_ext <<_ACEOF
8627 cat confdefs.h >>conftest.$ac_ext
8628 cat >>conftest.$ac_ext <<_ACEOF
8629 /* end confdefs.h. */
8630 #include <sys/syscall.h>
8635 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
8640 rm -f conftest.$ac_objext conftest$ac_exeext
8641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8642 (eval $ac_link) 2>conftest.er1
8644 grep -v '^ *+' conftest.er1 >conftest.err
8646 cat conftest.err >&5
8647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8648 (exit $ac_status); } &&
8649 { ac_try='test -z "$ac_c_werror_flag"
8650 || test ! -s conftest.err'
8651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655 (exit $ac_status); }; } &&
8656 { ac_try='test -s conftest$ac_exeext'
8657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8661 (exit $ac_status); }; }; then
8662 cat >conftest.$ac_ext <<_ACEOF
8665 cat confdefs.h >>conftest.$ac_ext
8666 cat >>conftest.$ac_ext <<_ACEOF
8667 /* end confdefs.h. */
8669 #define _GNU_SOURCE 1
8671 #include <pthread.h>
8672 pthread_t th; void *status;
8676 pthread_tryjoin_np (th, &status);
8681 rm -f conftest.$ac_objext conftest$ac_exeext
8682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8683 (eval $ac_link) 2>conftest.er1
8685 grep -v '^ *+' conftest.er1 >conftest.err
8687 cat conftest.err >&5
8688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8689 (exit $ac_status); } &&
8690 { ac_try='test -z "$ac_c_werror_flag"
8691 || test ! -s conftest.err'
8692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696 (exit $ac_status); }; } &&
8697 { ac_try='test -s conftest$ac_exeext'
8698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8702 (exit $ac_status); }; }; then
8703 enable_linux_futex=yes
8705 echo "$as_me: failed program was:" >&5
8706 sed 's/^/| /' conftest.$ac_ext >&5
8708 if test x$cross_compiling = xno; then
8709 if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
8710 | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then
8711 { echo "$as_me:$LINENO: WARNING: The kernel might not support futex or gettid syscalls.
8712 If so, please configure with --disable-linux-futex" >&5
8713 echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
8714 If so, please configure with --disable-linux-futex" >&2;}
8717 enable_linux_futex=yes
8719 rm -f conftest.err conftest.$ac_objext \
8720 conftest$ac_exeext conftest.$ac_ext
8722 echo "$as_me: failed program was:" >&5
8723 sed 's/^/| /' conftest.$ac_ext >&5
8726 rm -f conftest.err conftest.$ac_objext \
8727 conftest$ac_exeext conftest.$ac_ext
8730 cat >conftest.$ac_ext <<_ACEOF
8733 cat confdefs.h >>conftest.$ac_ext
8734 cat >>conftest.$ac_ext <<_ACEOF
8735 /* end confdefs.h. */
8736 #include <sys/syscall.h>
8741 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
8746 rm -f conftest.$ac_objext conftest$ac_exeext
8747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8748 (eval $ac_link) 2>conftest.er1
8750 grep -v '^ *+' conftest.er1 >conftest.err
8752 cat conftest.err >&5
8753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8754 (exit $ac_status); } &&
8755 { ac_try='test -z "$ac_c_werror_flag"
8756 || test ! -s conftest.err'
8757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8761 (exit $ac_status); }; } &&
8762 { ac_try='test -s conftest$ac_exeext'
8763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767 (exit $ac_status); }; }; then
8770 echo "$as_me: failed program was:" >&5
8771 sed 's/^/| /' conftest.$ac_ext >&5
8773 { { echo "$as_me:$LINENO: error: SYS_gettid and SYS_futex required for --enable-linux-futex" >&5
8774 echo "$as_me: error: SYS_gettid and SYS_futex required for --enable-linux-futex" >&2;}
8775 { (exit 1); exit 1; }; }
8777 rm -f conftest.err conftest.$ac_objext \
8778 conftest$ac_exeext conftest.$ac_ext
8784 # At least for glibc, clock_gettime is in librt. But don't pull that
8785 # in if it still doesn't give us the function we want.
8786 if test $ac_cv_func_clock_gettime = no; then
8787 echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
8788 echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
8789 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
8790 echo $ECHO_N "(cached) $ECHO_C" >&6
8792 ac_check_lib_save_LIBS=$LIBS
8794 cat >conftest.$ac_ext <<_ACEOF
8797 cat confdefs.h >>conftest.$ac_ext
8798 cat >>conftest.$ac_ext <<_ACEOF
8799 /* end confdefs.h. */
8801 /* Override any gcc2 internal prototype to avoid an error. */
8805 /* We use char because int might match the return type of a gcc2
8806 builtin and then its argument prototype would still apply. */
8807 char clock_gettime ();
8816 rm -f conftest.$ac_objext conftest$ac_exeext
8817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8818 (eval $ac_link) 2>conftest.er1
8820 grep -v '^ *+' conftest.er1 >conftest.err
8822 cat conftest.err >&5
8823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8824 (exit $ac_status); } &&
8825 { ac_try='test -z "$ac_c_werror_flag"
8826 || test ! -s conftest.err'
8827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831 (exit $ac_status); }; } &&
8832 { ac_try='test -s conftest$ac_exeext'
8833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837 (exit $ac_status); }; }; then
8838 ac_cv_lib_rt_clock_gettime=yes
8840 echo "$as_me: failed program was:" >&5
8841 sed 's/^/| /' conftest.$ac_ext >&5
8843 ac_cv_lib_rt_clock_gettime=no
8845 rm -f conftest.err conftest.$ac_objext \
8846 conftest$ac_exeext conftest.$ac_ext
8847 LIBS=$ac_check_lib_save_LIBS
8849 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
8850 echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
8851 if test $ac_cv_lib_rt_clock_gettime = yes; then
8854 cat >>confdefs.h <<\_ACEOF
8855 #define HAVE_CLOCK_GETTIME 1
8862 # See if we support thread-local storage.
8864 # Check whether --enable-tls or --disable-tls was given.
8865 if test "${enable_tls+set}" = set; then
8866 enableval="$enable_tls"
8868 case "$enableval" in
8870 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
8871 echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
8872 { (exit 1); exit 1; }; } ;;
8879 echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
8880 echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
8881 if test "${have_tls+set}" = set; then
8882 echo $ECHO_N "(cached) $ECHO_C" >&6
8885 if test "$cross_compiling" = yes; then
8886 cat >conftest.$ac_ext <<_ACEOF
8887 __thread int a; int b; int main() { return a = b; }
8889 rm -f conftest.$ac_objext conftest$ac_exeext
8890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8891 (eval $ac_link) 2>conftest.er1
8893 grep -v '^ *+' conftest.er1 >conftest.err
8895 cat conftest.err >&5
8896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897 (exit $ac_status); } &&
8898 { ac_try='test -z "$ac_c_werror_flag"
8899 || test ! -s conftest.err'
8900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8904 (exit $ac_status); }; } &&
8905 { ac_try='test -s conftest$ac_exeext'
8906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910 (exit $ac_status); }; }; then
8913 echo "$as_me: failed program was:" >&5
8914 sed 's/^/| /' conftest.$ac_ext >&5
8918 rm -f conftest.err conftest.$ac_objext \
8919 conftest$ac_exeext conftest.$ac_ext
8922 cat >conftest.$ac_ext <<_ACEOF
8923 __thread int a; int b; int main() { return a = b; }
8925 rm -f conftest$ac_exeext
8926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8927 (eval $ac_link) 2>&5
8929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8930 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935 (exit $ac_status); }; }; then
8936 save_LDFLAGS="$LDFLAGS"
8937 LDFLAGS="-static $LDFLAGS"
8938 cat >conftest.$ac_ext <<_ACEOF
8939 int main() { return 0; }
8941 rm -f conftest.$ac_objext conftest$ac_exeext
8942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8943 (eval $ac_link) 2>conftest.er1
8945 grep -v '^ *+' conftest.er1 >conftest.err
8947 cat conftest.err >&5
8948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949 (exit $ac_status); } &&
8950 { ac_try='test -z "$ac_c_werror_flag"
8951 || test ! -s conftest.err'
8952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8956 (exit $ac_status); }; } &&
8957 { ac_try='test -s conftest$ac_exeext'
8958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8962 (exit $ac_status); }; }; then
8963 if test "$cross_compiling" = yes; then
8964 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8965 See \`config.log' for more details." >&5
8966 echo "$as_me: error: cannot run test program while cross compiling
8967 See \`config.log' for more details." >&2;}
8968 { (exit 1); exit 1; }; }
8970 cat >conftest.$ac_ext <<_ACEOF
8971 __thread int a; int b; int main() { return a = b; }
8973 rm -f conftest$ac_exeext
8974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8975 (eval $ac_link) 2>&5
8977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8978 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8983 (exit $ac_status); }; }; then
8986 echo "$as_me: program exited with status $ac_status" >&5
8987 echo "$as_me: failed program was:" >&5
8988 sed 's/^/| /' conftest.$ac_ext >&5
8993 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8996 echo "$as_me: failed program was:" >&5
8997 sed 's/^/| /' conftest.$ac_ext >&5
9001 rm -f conftest.err conftest.$ac_objext \
9002 conftest$ac_exeext conftest.$ac_ext
9003 LDFLAGS="$save_LDFLAGS"
9005 echo "$as_me: program exited with status $ac_status" >&5
9006 echo "$as_me: failed program was:" >&5
9007 sed 's/^/| /' conftest.$ac_ext >&5
9012 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9015 echo "$as_me:$LINENO: result: $have_tls" >&5
9016 echo "${ECHO_T}$have_tls" >&6
9017 if test "$enable_tls $have_tls" = "yes yes"; then
9019 cat >>confdefs.h <<\_ACEOF
9025 # See what sort of export controls are availible.
9027 echo "$as_me:$LINENO: checking whether the target supports hidden visibility" >&5
9028 echo $ECHO_N "checking whether the target supports hidden visibility... $ECHO_C" >&6
9029 if test "${have_attribute_visibility+set}" = set; then
9030 echo $ECHO_N "(cached) $ECHO_C" >&6
9033 save_CFLAGS="$CFLAGS"
9034 CFLAGS="$CFLAGS -Werror"
9035 cat >conftest.$ac_ext <<_ACEOF
9038 cat confdefs.h >>conftest.$ac_ext
9039 cat >>conftest.$ac_ext <<_ACEOF
9040 /* end confdefs.h. */
9041 void __attribute__((visibility("hidden"))) foo(void) { }
9050 rm -f conftest.$ac_objext
9051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9052 (eval $ac_compile) 2>conftest.er1
9054 grep -v '^ *+' conftest.er1 >conftest.err
9056 cat conftest.err >&5
9057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9058 (exit $ac_status); } &&
9059 { ac_try='test -z "$ac_c_werror_flag"
9060 || test ! -s conftest.err'
9061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065 (exit $ac_status); }; } &&
9066 { ac_try='test -s conftest.$ac_objext'
9067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071 (exit $ac_status); }; }; then
9072 have_attribute_visibility=yes
9074 echo "$as_me: failed program was:" >&5
9075 sed 's/^/| /' conftest.$ac_ext >&5
9077 have_attribute_visibility=no
9079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9080 CFLAGS="$save_CFLAGS"
9082 echo "$as_me:$LINENO: result: $have_attribute_visibility" >&5
9083 echo "${ECHO_T}$have_attribute_visibility" >&6
9084 if test $have_attribute_visibility = yes; then
9086 cat >>confdefs.h <<\_ACEOF
9087 #define HAVE_ATTRIBUTE_VISIBILITY 1
9092 echo "$as_me:$LINENO: checking whether the target supports dllexport" >&5
9093 echo $ECHO_N "checking whether the target supports dllexport... $ECHO_C" >&6
9094 if test "${have_attribute_dllexport+set}" = set; then
9095 echo $ECHO_N "(cached) $ECHO_C" >&6
9098 save_CFLAGS="$CFLAGS"
9099 CFLAGS="$CFLAGS -Werror"
9100 cat >conftest.$ac_ext <<_ACEOF
9103 cat confdefs.h >>conftest.$ac_ext
9104 cat >>conftest.$ac_ext <<_ACEOF
9105 /* end confdefs.h. */
9106 void __attribute__((dllexport)) foo(void) { }
9115 rm -f conftest.$ac_objext
9116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9117 (eval $ac_compile) 2>conftest.er1
9119 grep -v '^ *+' conftest.er1 >conftest.err
9121 cat conftest.err >&5
9122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123 (exit $ac_status); } &&
9124 { ac_try='test -z "$ac_c_werror_flag"
9125 || test ! -s conftest.err'
9126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130 (exit $ac_status); }; } &&
9131 { ac_try='test -s conftest.$ac_objext'
9132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136 (exit $ac_status); }; }; then
9137 have_attribute_dllexport=yes
9139 echo "$as_me: failed program was:" >&5
9140 sed 's/^/| /' conftest.$ac_ext >&5
9142 have_attribute_dllexport=no
9144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9145 CFLAGS="$save_CFLAGS"
9147 echo "$as_me:$LINENO: result: $have_attribute_dllexport" >&5
9148 echo "${ECHO_T}$have_attribute_dllexport" >&6
9149 if test $have_attribute_dllexport = yes; then
9151 cat >>confdefs.h <<\_ACEOF
9152 #define HAVE_ATTRIBUTE_DLLEXPORT 1
9157 echo "$as_me:$LINENO: checking whether the target supports symbol aliases" >&5
9158 echo $ECHO_N "checking whether the target supports symbol aliases... $ECHO_C" >&6
9159 if test "${have_attribute_alias+set}" = set; then
9160 echo $ECHO_N "(cached) $ECHO_C" >&6
9163 cat >conftest.$ac_ext <<_ACEOF
9166 cat confdefs.h >>conftest.$ac_ext
9167 cat >>conftest.$ac_ext <<_ACEOF
9168 /* end confdefs.h. */
9171 extern void bar(void) __attribute__((alias("foo")));
9180 rm -f conftest.$ac_objext conftest$ac_exeext
9181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9182 (eval $ac_link) 2>conftest.er1
9184 grep -v '^ *+' conftest.er1 >conftest.err
9186 cat conftest.err >&5
9187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9188 (exit $ac_status); } &&
9189 { ac_try='test -z "$ac_c_werror_flag"
9190 || test ! -s conftest.err'
9191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9195 (exit $ac_status); }; } &&
9196 { ac_try='test -s conftest$ac_exeext'
9197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9201 (exit $ac_status); }; }; then
9202 have_attribute_alias=yes
9204 echo "$as_me: failed program was:" >&5
9205 sed 's/^/| /' conftest.$ac_ext >&5
9207 have_attribute_alias=no
9209 rm -f conftest.err conftest.$ac_objext \
9210 conftest$ac_exeext conftest.$ac_ext
9212 echo "$as_me:$LINENO: result: $have_attribute_alias" >&5
9213 echo "${ECHO_T}$have_attribute_alias" >&6
9214 if test $have_attribute_alias = yes; then
9216 cat >>confdefs.h <<\_ACEOF
9217 #define HAVE_ATTRIBUTE_ALIAS 1
9222 # If we're not using GNU ld, then there's no point in even trying these
9223 # tests. Check for that first. We should have already tested for gld
9224 # by now (in libtool), but require it now just to be safe...
9225 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
9226 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
9230 # The name set by libtool depends on the version of libtool. Shame on us
9231 # for depending on an impl detail, but c'est la vie. Older versions used
9232 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
9233 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
9234 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
9235 # set (hence we're using an older libtool), then set it.
9236 if test x${with_gnu_ld+set} != xset; then
9237 if test x${ac_cv_prog_gnu_ld+set} != xset; then
9238 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
9241 with_gnu_ld=$ac_cv_prog_gnu_ld
9245 # Start by getting the version number. I think the libtool test already
9246 # does some of this, but throws away the result.
9248 ldver=`$LD --version 2>/dev/null | head -1 | \
9249 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
9251 libgomp_gnu_ld_version=`echo $ldver | \
9252 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
9254 # Set --gc-sections.
9255 if test "$with_gnu_ld" = "notbroken"; then
9256 # GNU ld it is! Joy and bunny rabbits!
9258 # All these tests are for C++; save the language and the compiler flags.
9259 # Need to do this so that g++ won't try to link in libstdc++
9260 ac_test_CFLAGS="${CFLAGS+set}"
9261 ac_save_CFLAGS="$CFLAGS"
9262 CFLAGS='-x c++ -Wl,--gc-sections'
9264 # Check for -Wl,--gc-sections
9265 # XXX This test is broken at the moment, as symbols required for linking
9266 # are now in libsupc++ (not built yet). In addition, this test has
9267 # cored on solaris in the past. In addition, --gc-sections doesn't
9268 # really work at the moment (keeps on discarding used sections, first
9269 # .eh_frame and now some of the glibc sections for iconv).
9270 # Bzzzzt. Thanks for playing, maybe next time.
9271 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
9272 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
9273 if test "$cross_compiling" = yes; then
9274 ac_sectionLDflags=yes
9276 cat >conftest.$ac_ext <<_ACEOF
9279 cat confdefs.h >>conftest.$ac_ext
9280 cat >>conftest.$ac_ext <<_ACEOF
9281 /* end confdefs.h. */
9291 rm -f conftest$ac_exeext
9292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9293 (eval $ac_link) 2>&5
9295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9296 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9301 (exit $ac_status); }; }; then
9302 ac_sectionLDflags=yes
9304 echo "$as_me: program exited with status $ac_status" >&5
9305 echo "$as_me: failed program was:" >&5
9306 sed 's/^/| /' conftest.$ac_ext >&5
9309 ac_sectionLDflags=no
9311 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9313 if test "$ac_test_CFLAGS" = set; then
9314 CFLAGS="$ac_save_CFLAGS"
9316 # this is the suspicious part
9319 if test "$ac_sectionLDflags" = "yes"; then
9320 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
9322 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
9323 echo "${ECHO_T}$ac_sectionLDflags" >&6
9326 # Set linker optimization flags.
9327 if test x"$with_gnu_ld" = x"yes"; then
9328 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
9336 # Check whether --enable-symvers or --disable-symvers was given.
9337 if test "${enable_symvers+set}" = set; then
9338 enableval="$enable_symvers"
9340 case "$enableval" in
9342 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable symvers" >&5
9343 echo "$as_me: error: Unknown argument to enable/disable symvers" >&2;}
9344 { (exit 1); exit 1; }; } ;;
9352 # If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
9353 # don't know enough about $LD to do tricks...
9355 # FIXME The following test is too strict, in theory.
9356 if test $enable_shared = no ||
9358 test x$libgomp_gnu_ld_version = x; then
9362 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
9363 if test $enable_symvers != no; then
9364 echo "$as_me:$LINENO: checking for shared libgcc" >&5
9365 echo $ECHO_N "checking for shared libgcc... $ECHO_C" >&6
9366 ac_save_CFLAGS="$CFLAGS"
9368 cat >conftest.$ac_ext <<_ACEOF
9371 cat confdefs.h >>conftest.$ac_ext
9372 cat >>conftest.$ac_ext <<_ACEOF
9373 /* end confdefs.h. */
9383 rm -f conftest.$ac_objext conftest$ac_exeext
9384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9385 (eval $ac_link) 2>conftest.er1
9387 grep -v '^ *+' conftest.er1 >conftest.err
9389 cat conftest.err >&5
9390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9391 (exit $ac_status); } &&
9392 { ac_try='test -z "$ac_c_werror_flag"
9393 || test ! -s conftest.err'
9394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9398 (exit $ac_status); }; } &&
9399 { ac_try='test -s conftest$ac_exeext'
9400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404 (exit $ac_status); }; }; then
9405 libgomp_shared_libgcc=yes
9407 echo "$as_me: failed program was:" >&5
9408 sed 's/^/| /' conftest.$ac_ext >&5
9410 libgomp_shared_libgcc=no
9412 rm -f conftest.err conftest.$ac_objext \
9413 conftest$ac_exeext conftest.$ac_ext
9414 CFLAGS="$ac_save_CFLAGS"
9415 if test $libgomp_shared_libgcc = no; then
9416 cat > conftest.c <<EOF
9417 int main (void) { return 0; }
9419 libgomp_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
9420 -shared -shared-libgcc -o conftest.so \
9421 conftest.c -v 2>&1 >/dev/null \
9422 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
9423 rm -f conftest.c conftest.so
9424 if test x${libgomp_libgcc_s_suffix+set} = xset; then
9425 CFLAGS=" -lgcc_s$libgomp_libgcc_s_suffix"
9426 cat >conftest.$ac_ext <<_ACEOF
9429 cat confdefs.h >>conftest.$ac_ext
9430 cat >>conftest.$ac_ext <<_ACEOF
9431 /* end confdefs.h. */
9441 rm -f conftest.$ac_objext conftest$ac_exeext
9442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9443 (eval $ac_link) 2>conftest.er1
9445 grep -v '^ *+' conftest.er1 >conftest.err
9447 cat conftest.err >&5
9448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9449 (exit $ac_status); } &&
9450 { ac_try='test -z "$ac_c_werror_flag"
9451 || test ! -s conftest.err'
9452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9456 (exit $ac_status); }; } &&
9457 { ac_try='test -s conftest$ac_exeext'
9458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9462 (exit $ac_status); }; }; then
9463 libgomp_shared_libgcc=yes
9465 echo "$as_me: failed program was:" >&5
9466 sed 's/^/| /' conftest.$ac_ext >&5
9469 rm -f conftest.err conftest.$ac_objext \
9470 conftest$ac_exeext conftest.$ac_ext
9471 CFLAGS="$ac_save_CFLAGS"
9474 echo "$as_me:$LINENO: result: $libgomp_shared_libgcc" >&5
9475 echo "${ECHO_T}$libgomp_shared_libgcc" >&6
9478 # For GNU ld, we need at least this version. The format is described in
9479 # LIBGOMP_CHECK_LINKER_FEATURES above.
9480 libgomp_min_gnu_ld_version=21400
9481 # XXXXXXXXXXX libgomp_gnu_ld_version=21390
9483 # Check to see if unspecified "yes" value can win, given results above.
9484 # Change "yes" into either "no" or a style name.
9485 if test $enable_symvers = yes; then
9486 if test $with_gnu_ld = yes &&
9487 test $libgomp_shared_libgcc = yes;
9489 if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
9492 # The right tools, the right setup, but too old. Fallbacks?
9493 { echo "$as_me:$LINENO: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
9494 echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
9495 { echo "$as_me:$LINENO: WARNING: === full symbol versioning support in this release of GCC." >&5
9496 echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
9497 { echo "$as_me:$LINENO: WARNING: === You would need to upgrade your binutils to version" >&5
9498 echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
9499 { echo "$as_me:$LINENO: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
9500 echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
9501 if test $libgomp_gnu_ld_version -ge 21200 ; then
9502 # Globbing fix is present, proper block support is not.
9503 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
9504 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
9508 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
9509 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
9515 { echo "$as_me:$LINENO: WARNING: === You have requested some kind of symbol versioning, but" >&5
9516 echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
9517 { echo "$as_me:$LINENO: WARNING: === either you are not using a supported linker, or you are" >&5
9518 echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
9519 { echo "$as_me:$LINENO: WARNING: === not building a shared libgcc_s (which is required)." >&5
9520 echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
9521 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
9522 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
9529 if test $enable_symvers != no; then
9530 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE=
9531 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE='#'
9533 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='#'
9534 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE=
9537 { echo "$as_me:$LINENO: versioning on shared library symbols is $enable_symvers" >&5
9538 echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
9541 # Get target configury.
9542 . ${srcdir}/configure.tgt
9543 CFLAGS="$save_CFLAGS $XCFLAGS"
9545 # Check for __sync_val_compare_and_swap, but only after the target has
9546 # had a chance to set XCFLAGS.
9548 echo "$as_me:$LINENO: checking whether the target supports __sync_*_compare_and_swap" >&5
9549 echo $ECHO_N "checking whether the target supports __sync_*_compare_and_swap... $ECHO_C" >&6
9550 if test "${have_sync_builtins+set}" = set; then
9551 echo $ECHO_N "(cached) $ECHO_C" >&6
9554 cat >conftest.$ac_ext <<_ACEOF
9557 cat confdefs.h >>conftest.$ac_ext
9558 cat >>conftest.$ac_ext <<_ACEOF
9559 /* end confdefs.h. */
9564 int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
9569 rm -f conftest.$ac_objext conftest$ac_exeext
9570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9571 (eval $ac_link) 2>conftest.er1
9573 grep -v '^ *+' conftest.er1 >conftest.err
9575 cat conftest.err >&5
9576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577 (exit $ac_status); } &&
9578 { ac_try='test -z "$ac_c_werror_flag"
9579 || test ! -s conftest.err'
9580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9584 (exit $ac_status); }; } &&
9585 { ac_try='test -s conftest$ac_exeext'
9586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9590 (exit $ac_status); }; }; then
9591 have_sync_builtins=yes
9593 echo "$as_me: failed program was:" >&5
9594 sed 's/^/| /' conftest.$ac_ext >&5
9596 have_sync_builtins=no
9598 rm -f conftest.err conftest.$ac_objext \
9599 conftest$ac_exeext conftest.$ac_ext
9601 echo "$as_me:$LINENO: result: $have_sync_builtins" >&5
9602 echo "${ECHO_T}$have_sync_builtins" >&6
9603 if test $have_sync_builtins = yes; then
9605 cat >>confdefs.h <<\_ACEOF
9606 #define HAVE_SYNC_BUILTINS 1
9611 XCFLAGS="$XCFLAGS$XPCFLAGS"
9618 CFLAGS="$save_CFLAGS"
9619 cat >confcache <<\_ACEOF
9620 # This file is a shell script that caches the results of configure
9621 # tests run on this system so they can be shared between configure
9622 # scripts and configure runs, see configure's option --config-cache.
9623 # It is not useful on other systems. If it contains results you don't
9624 # want to keep, you may remove or edit it.
9626 # config.status only pays attention to the cache file if you give it
9627 # the --recheck option to rerun configure.
9629 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9630 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9635 # The following way of writing the cache mishandles newlines in values,
9636 # but we know of no workaround that is simple, portable, and efficient.
9637 # So, don't put newlines in cache variables' values.
9638 # Ultrix sh set writes to stderr and can't be redirected directly,
9639 # and sets the high bit in the cache file unless we assign to the vars.
9642 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9644 # `set' does not quote correctly, so add quotes (double-quote
9645 # substitution turns \\\\ into \\, and sed turns \\ into \).
9648 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9651 # `set' quotes correctly as required by POSIX, so do not add quotes.
9653 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9660 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9662 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9664 if diff $cache_file confcache >/dev/null 2>&1; then :; else
9665 if test -w $cache_file; then
9666 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9667 cat confcache >$cache_file
9669 echo "not updating unwritable cache $cache_file"
9674 if test ${multilib} = yes; then
9675 multilib_arg="--enable-multilib"
9680 # Set up the set of libraries that we need to link against for libgomp.
9681 # Note that the GOMP_SELF_SPEC in gcc.c will force -pthread for -fopenmp,
9682 # which will force linkage against -lpthread (or equivalent for the system).
9683 # That's not 100% ideal, but about the best we can do easily.
9684 if test $enable_shared = yes; then
9685 link_gomp="-lgomp %{static: $LIBS}"
9687 link_gomp="-lgomp $LIBS"
9693 if test "$ac_cv_fc_compiler_gnu" = yes; then
9695 USE_FORTRAN_FALSE='#'
9697 USE_FORTRAN_TRUE='#'
9702 # ??? 2006-01-24: Paulo committed to asking autoconf folk to document
9703 # and export AC_COMPUTE_INT. If that happens, then we'll need to remove
9704 # the underscore here and update the PREREQ. If it doesn't, then we'll
9705 # need to copy this macro to our acinclude.m4.
9706 save_CFLAGS="$CFLAGS"
9707 for i in $config_path; do
9708 if test -f $srcdir/config/$i/omp-lock.h; then
9709 CFLAGS="$CFLAGS -include $srcdir/config/$i/omp-lock.h"
9714 if test "$cross_compiling" = yes; then
9715 # Depending upon the size, compute the lo and hi bounds.
9716 cat >conftest.$ac_ext <<_ACEOF
9719 cat confdefs.h >>conftest.$ac_ext
9720 cat >>conftest.$ac_ext <<_ACEOF
9721 /* end confdefs.h. */
9726 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) >= 0)];
9733 rm -f conftest.$ac_objext
9734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9735 (eval $ac_compile) 2>conftest.er1
9737 grep -v '^ *+' conftest.er1 >conftest.err
9739 cat conftest.err >&5
9740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741 (exit $ac_status); } &&
9742 { ac_try='test -z "$ac_c_werror_flag"
9743 || test ! -s conftest.err'
9744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748 (exit $ac_status); }; } &&
9749 { ac_try='test -s conftest.$ac_objext'
9750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9754 (exit $ac_status); }; }; then
9757 cat >conftest.$ac_ext <<_ACEOF
9760 cat confdefs.h >>conftest.$ac_ext
9761 cat >>conftest.$ac_ext <<_ACEOF
9762 /* end confdefs.h. */
9767 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) <= $ac_mid)];
9774 rm -f conftest.$ac_objext
9775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9776 (eval $ac_compile) 2>conftest.er1
9778 grep -v '^ *+' conftest.er1 >conftest.err
9780 cat conftest.err >&5
9781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782 (exit $ac_status); } &&
9783 { ac_try='test -z "$ac_c_werror_flag"
9784 || test ! -s conftest.err'
9785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9789 (exit $ac_status); }; } &&
9790 { ac_try='test -s conftest.$ac_objext'
9791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795 (exit $ac_status); }; }; then
9796 ac_hi=$ac_mid; break
9798 echo "$as_me: failed program was:" >&5
9799 sed 's/^/| /' conftest.$ac_ext >&5
9801 ac_lo=`expr $ac_mid + 1`
9802 if test $ac_lo -le $ac_mid; then
9806 ac_mid=`expr 2 '*' $ac_mid + 1`
9808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9811 echo "$as_me: failed program was:" >&5
9812 sed 's/^/| /' conftest.$ac_ext >&5
9814 cat >conftest.$ac_ext <<_ACEOF
9817 cat confdefs.h >>conftest.$ac_ext
9818 cat >>conftest.$ac_ext <<_ACEOF
9819 /* end confdefs.h. */
9824 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) < 0)];
9831 rm -f conftest.$ac_objext
9832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9833 (eval $ac_compile) 2>conftest.er1
9835 grep -v '^ *+' conftest.er1 >conftest.err
9837 cat conftest.err >&5
9838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839 (exit $ac_status); } &&
9840 { ac_try='test -z "$ac_c_werror_flag"
9841 || test ! -s conftest.err'
9842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846 (exit $ac_status); }; } &&
9847 { ac_try='test -s conftest.$ac_objext'
9848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852 (exit $ac_status); }; }; then
9855 cat >conftest.$ac_ext <<_ACEOF
9858 cat confdefs.h >>conftest.$ac_ext
9859 cat >>conftest.$ac_ext <<_ACEOF
9860 /* end confdefs.h. */
9865 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) >= $ac_mid)];
9872 rm -f conftest.$ac_objext
9873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9874 (eval $ac_compile) 2>conftest.er1
9876 grep -v '^ *+' conftest.er1 >conftest.err
9878 cat conftest.err >&5
9879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880 (exit $ac_status); } &&
9881 { ac_try='test -z "$ac_c_werror_flag"
9882 || test ! -s conftest.err'
9883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887 (exit $ac_status); }; } &&
9888 { ac_try='test -s conftest.$ac_objext'
9889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9893 (exit $ac_status); }; }; then
9894 ac_lo=$ac_mid; break
9896 echo "$as_me: failed program was:" >&5
9897 sed 's/^/| /' conftest.$ac_ext >&5
9899 ac_hi=`expr '(' $ac_mid ')' - 1`
9900 if test $ac_mid -le $ac_hi; then
9904 ac_mid=`expr 2 '*' $ac_mid`
9906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9909 echo "$as_me: failed program was:" >&5
9910 sed 's/^/| /' conftest.$ac_ext >&5
9914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9917 # Binary search between lo and hi bounds.
9918 while test "x$ac_lo" != "x$ac_hi"; do
9919 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9920 cat >conftest.$ac_ext <<_ACEOF
9923 cat confdefs.h >>conftest.$ac_ext
9924 cat >>conftest.$ac_ext <<_ACEOF
9925 /* end confdefs.h. */
9930 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) <= $ac_mid)];
9937 rm -f conftest.$ac_objext
9938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9939 (eval $ac_compile) 2>conftest.er1
9941 grep -v '^ *+' conftest.er1 >conftest.err
9943 cat conftest.err >&5
9944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945 (exit $ac_status); } &&
9946 { ac_try='test -z "$ac_c_werror_flag"
9947 || test ! -s conftest.err'
9948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9952 (exit $ac_status); }; } &&
9953 { ac_try='test -s conftest.$ac_objext'
9954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9958 (exit $ac_status); }; }; then
9961 echo "$as_me: failed program was:" >&5
9962 sed 's/^/| /' conftest.$ac_ext >&5
9964 ac_lo=`expr '(' $ac_mid ')' + 1`
9966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9969 ?*) OMP_LOCK_SIZE=$ac_lo;;
9970 '') { { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_t)" >&5
9971 echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_t)" >&2;}
9972 { (exit 1); exit 1; }; } ;;
9975 if test "$cross_compiling" = yes; then
9976 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9977 See \`config.log' for more details." >&5
9978 echo "$as_me: error: cannot run test program while cross compiling
9979 See \`config.log' for more details." >&2;}
9980 { (exit 1); exit 1; }; }
9982 cat >conftest.$ac_ext <<_ACEOF
9985 cat confdefs.h >>conftest.$ac_ext
9986 cat >>conftest.$ac_ext <<_ACEOF
9987 /* end confdefs.h. */
9989 long longval () { return sizeof (omp_lock_t); }
9990 unsigned long ulongval () { return sizeof (omp_lock_t); }
9997 FILE *f = fopen ("conftest.val", "w");
10000 if ((sizeof (omp_lock_t)) < 0)
10002 long i = longval ();
10003 if (i != (sizeof (omp_lock_t)))
10005 fprintf (f, "%ld\n", i);
10009 unsigned long i = ulongval ();
10010 if (i != (sizeof (omp_lock_t)))
10012 fprintf (f, "%lu\n", i);
10014 exit (ferror (f) || fclose (f) != 0);
10020 rm -f conftest$ac_exeext
10021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10022 (eval $ac_link) 2>&5
10024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10027 (eval $ac_try) 2>&5
10029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030 (exit $ac_status); }; }; then
10031 OMP_LOCK_SIZE=`cat conftest.val`
10033 echo "$as_me: program exited with status $ac_status" >&5
10034 echo "$as_me: failed program was:" >&5
10035 sed 's/^/| /' conftest.$ac_ext >&5
10037 ( exit $ac_status )
10038 { { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_t)" >&5
10039 echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_t)" >&2;}
10040 { (exit 1); exit 1; }; }
10042 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10046 if test "$cross_compiling" = yes; then
10047 # Depending upon the size, compute the lo and hi bounds.
10048 cat >conftest.$ac_ext <<_ACEOF
10051 cat confdefs.h >>conftest.$ac_ext
10052 cat >>conftest.$ac_ext <<_ACEOF
10053 /* end confdefs.h. */
10058 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) >= 0)];
10065 rm -f conftest.$ac_objext
10066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10067 (eval $ac_compile) 2>conftest.er1
10069 grep -v '^ *+' conftest.er1 >conftest.err
10071 cat conftest.err >&5
10072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10073 (exit $ac_status); } &&
10074 { ac_try='test -z "$ac_c_werror_flag"
10075 || test ! -s conftest.err'
10076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10077 (eval $ac_try) 2>&5
10079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080 (exit $ac_status); }; } &&
10081 { ac_try='test -s conftest.$ac_objext'
10082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10083 (eval $ac_try) 2>&5
10085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10086 (exit $ac_status); }; }; then
10089 cat >conftest.$ac_ext <<_ACEOF
10092 cat confdefs.h >>conftest.$ac_ext
10093 cat >>conftest.$ac_ext <<_ACEOF
10094 /* end confdefs.h. */
10099 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) <= $ac_mid)];
10106 rm -f conftest.$ac_objext
10107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10108 (eval $ac_compile) 2>conftest.er1
10110 grep -v '^ *+' conftest.er1 >conftest.err
10112 cat conftest.err >&5
10113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10114 (exit $ac_status); } &&
10115 { ac_try='test -z "$ac_c_werror_flag"
10116 || test ! -s conftest.err'
10117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10118 (eval $ac_try) 2>&5
10120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121 (exit $ac_status); }; } &&
10122 { ac_try='test -s conftest.$ac_objext'
10123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10124 (eval $ac_try) 2>&5
10126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127 (exit $ac_status); }; }; then
10128 ac_hi=$ac_mid; break
10130 echo "$as_me: failed program was:" >&5
10131 sed 's/^/| /' conftest.$ac_ext >&5
10133 ac_lo=`expr $ac_mid + 1`
10134 if test $ac_lo -le $ac_mid; then
10138 ac_mid=`expr 2 '*' $ac_mid + 1`
10140 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10143 echo "$as_me: failed program was:" >&5
10144 sed 's/^/| /' conftest.$ac_ext >&5
10146 cat >conftest.$ac_ext <<_ACEOF
10149 cat confdefs.h >>conftest.$ac_ext
10150 cat >>conftest.$ac_ext <<_ACEOF
10151 /* end confdefs.h. */
10156 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) < 0)];
10163 rm -f conftest.$ac_objext
10164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10165 (eval $ac_compile) 2>conftest.er1
10167 grep -v '^ *+' conftest.er1 >conftest.err
10169 cat conftest.err >&5
10170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171 (exit $ac_status); } &&
10172 { ac_try='test -z "$ac_c_werror_flag"
10173 || test ! -s conftest.err'
10174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10175 (eval $ac_try) 2>&5
10177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178 (exit $ac_status); }; } &&
10179 { ac_try='test -s conftest.$ac_objext'
10180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10181 (eval $ac_try) 2>&5
10183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10184 (exit $ac_status); }; }; then
10187 cat >conftest.$ac_ext <<_ACEOF
10190 cat confdefs.h >>conftest.$ac_ext
10191 cat >>conftest.$ac_ext <<_ACEOF
10192 /* end confdefs.h. */
10197 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) >= $ac_mid)];
10204 rm -f conftest.$ac_objext
10205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10206 (eval $ac_compile) 2>conftest.er1
10208 grep -v '^ *+' conftest.er1 >conftest.err
10210 cat conftest.err >&5
10211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212 (exit $ac_status); } &&
10213 { ac_try='test -z "$ac_c_werror_flag"
10214 || test ! -s conftest.err'
10215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10216 (eval $ac_try) 2>&5
10218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10219 (exit $ac_status); }; } &&
10220 { ac_try='test -s conftest.$ac_objext'
10221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10222 (eval $ac_try) 2>&5
10224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10225 (exit $ac_status); }; }; then
10226 ac_lo=$ac_mid; break
10228 echo "$as_me: failed program was:" >&5
10229 sed 's/^/| /' conftest.$ac_ext >&5
10231 ac_hi=`expr '(' $ac_mid ')' - 1`
10232 if test $ac_mid -le $ac_hi; then
10236 ac_mid=`expr 2 '*' $ac_mid`
10238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10241 echo "$as_me: failed program was:" >&5
10242 sed 's/^/| /' conftest.$ac_ext >&5
10246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10249 # Binary search between lo and hi bounds.
10250 while test "x$ac_lo" != "x$ac_hi"; do
10251 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10252 cat >conftest.$ac_ext <<_ACEOF
10255 cat confdefs.h >>conftest.$ac_ext
10256 cat >>conftest.$ac_ext <<_ACEOF
10257 /* end confdefs.h. */
10262 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) <= $ac_mid)];
10269 rm -f conftest.$ac_objext
10270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10271 (eval $ac_compile) 2>conftest.er1
10273 grep -v '^ *+' conftest.er1 >conftest.err
10275 cat conftest.err >&5
10276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10277 (exit $ac_status); } &&
10278 { ac_try='test -z "$ac_c_werror_flag"
10279 || test ! -s conftest.err'
10280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10281 (eval $ac_try) 2>&5
10283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10284 (exit $ac_status); }; } &&
10285 { ac_try='test -s conftest.$ac_objext'
10286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10287 (eval $ac_try) 2>&5
10289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10290 (exit $ac_status); }; }; then
10293 echo "$as_me: failed program was:" >&5
10294 sed 's/^/| /' conftest.$ac_ext >&5
10296 ac_lo=`expr '(' $ac_mid ')' + 1`
10298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10301 ?*) OMP_LOCK_ALIGN=$ac_lo;;
10305 if test "$cross_compiling" = yes; then
10306 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10307 See \`config.log' for more details." >&5
10308 echo "$as_me: error: cannot run test program while cross compiling
10309 See \`config.log' for more details." >&2;}
10310 { (exit 1); exit 1; }; }
10312 cat >conftest.$ac_ext <<_ACEOF
10315 cat confdefs.h >>conftest.$ac_ext
10316 cat >>conftest.$ac_ext <<_ACEOF
10317 /* end confdefs.h. */
10319 long longval () { return __alignof (omp_lock_t); }
10320 unsigned long ulongval () { return __alignof (omp_lock_t); }
10322 #include <stdlib.h>
10327 FILE *f = fopen ("conftest.val", "w");
10330 if ((__alignof (omp_lock_t)) < 0)
10332 long i = longval ();
10333 if (i != (__alignof (omp_lock_t)))
10335 fprintf (f, "%ld\n", i);
10339 unsigned long i = ulongval ();
10340 if (i != (__alignof (omp_lock_t)))
10342 fprintf (f, "%lu\n", i);
10344 exit (ferror (f) || fclose (f) != 0);
10350 rm -f conftest$ac_exeext
10351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10352 (eval $ac_link) 2>&5
10354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10355 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10357 (eval $ac_try) 2>&5
10359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360 (exit $ac_status); }; }; then
10361 OMP_LOCK_ALIGN=`cat conftest.val`
10363 echo "$as_me: program exited with status $ac_status" >&5
10364 echo "$as_me: failed program was:" >&5
10365 sed 's/^/| /' conftest.$ac_ext >&5
10368 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10372 if test "$cross_compiling" = yes; then
10373 # Depending upon the size, compute the lo and hi bounds.
10374 cat >conftest.$ac_ext <<_ACEOF
10377 cat confdefs.h >>conftest.$ac_ext
10378 cat >>conftest.$ac_ext <<_ACEOF
10379 /* end confdefs.h. */
10384 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) >= 0)];
10391 rm -f conftest.$ac_objext
10392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10393 (eval $ac_compile) 2>conftest.er1
10395 grep -v '^ *+' conftest.er1 >conftest.err
10397 cat conftest.err >&5
10398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399 (exit $ac_status); } &&
10400 { ac_try='test -z "$ac_c_werror_flag"
10401 || test ! -s conftest.err'
10402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10403 (eval $ac_try) 2>&5
10405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10406 (exit $ac_status); }; } &&
10407 { ac_try='test -s conftest.$ac_objext'
10408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10409 (eval $ac_try) 2>&5
10411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10412 (exit $ac_status); }; }; then
10415 cat >conftest.$ac_ext <<_ACEOF
10418 cat confdefs.h >>conftest.$ac_ext
10419 cat >>conftest.$ac_ext <<_ACEOF
10420 /* end confdefs.h. */
10425 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) <= $ac_mid)];
10432 rm -f conftest.$ac_objext
10433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10434 (eval $ac_compile) 2>conftest.er1
10436 grep -v '^ *+' conftest.er1 >conftest.err
10438 cat conftest.err >&5
10439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10440 (exit $ac_status); } &&
10441 { ac_try='test -z "$ac_c_werror_flag"
10442 || test ! -s conftest.err'
10443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10444 (eval $ac_try) 2>&5
10446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10447 (exit $ac_status); }; } &&
10448 { ac_try='test -s conftest.$ac_objext'
10449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10450 (eval $ac_try) 2>&5
10452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10453 (exit $ac_status); }; }; then
10454 ac_hi=$ac_mid; break
10456 echo "$as_me: failed program was:" >&5
10457 sed 's/^/| /' conftest.$ac_ext >&5
10459 ac_lo=`expr $ac_mid + 1`
10460 if test $ac_lo -le $ac_mid; then
10464 ac_mid=`expr 2 '*' $ac_mid + 1`
10466 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10469 echo "$as_me: failed program was:" >&5
10470 sed 's/^/| /' conftest.$ac_ext >&5
10472 cat >conftest.$ac_ext <<_ACEOF
10475 cat confdefs.h >>conftest.$ac_ext
10476 cat >>conftest.$ac_ext <<_ACEOF
10477 /* end confdefs.h. */
10482 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) < 0)];
10489 rm -f conftest.$ac_objext
10490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10491 (eval $ac_compile) 2>conftest.er1
10493 grep -v '^ *+' conftest.er1 >conftest.err
10495 cat conftest.err >&5
10496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10497 (exit $ac_status); } &&
10498 { ac_try='test -z "$ac_c_werror_flag"
10499 || test ! -s conftest.err'
10500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10501 (eval $ac_try) 2>&5
10503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504 (exit $ac_status); }; } &&
10505 { ac_try='test -s conftest.$ac_objext'
10506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10507 (eval $ac_try) 2>&5
10509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10510 (exit $ac_status); }; }; then
10513 cat >conftest.$ac_ext <<_ACEOF
10516 cat confdefs.h >>conftest.$ac_ext
10517 cat >>conftest.$ac_ext <<_ACEOF
10518 /* end confdefs.h. */
10523 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) >= $ac_mid)];
10530 rm -f conftest.$ac_objext
10531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10532 (eval $ac_compile) 2>conftest.er1
10534 grep -v '^ *+' conftest.er1 >conftest.err
10536 cat conftest.err >&5
10537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10538 (exit $ac_status); } &&
10539 { ac_try='test -z "$ac_c_werror_flag"
10540 || test ! -s conftest.err'
10541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10542 (eval $ac_try) 2>&5
10544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10545 (exit $ac_status); }; } &&
10546 { ac_try='test -s conftest.$ac_objext'
10547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10548 (eval $ac_try) 2>&5
10550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10551 (exit $ac_status); }; }; then
10552 ac_lo=$ac_mid; break
10554 echo "$as_me: failed program was:" >&5
10555 sed 's/^/| /' conftest.$ac_ext >&5
10557 ac_hi=`expr '(' $ac_mid ')' - 1`
10558 if test $ac_mid -le $ac_hi; then
10562 ac_mid=`expr 2 '*' $ac_mid`
10564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10567 echo "$as_me: failed program was:" >&5
10568 sed 's/^/| /' conftest.$ac_ext >&5
10572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10575 # Binary search between lo and hi bounds.
10576 while test "x$ac_lo" != "x$ac_hi"; do
10577 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10578 cat >conftest.$ac_ext <<_ACEOF
10581 cat confdefs.h >>conftest.$ac_ext
10582 cat >>conftest.$ac_ext <<_ACEOF
10583 /* end confdefs.h. */
10588 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) <= $ac_mid)];
10595 rm -f conftest.$ac_objext
10596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10597 (eval $ac_compile) 2>conftest.er1
10599 grep -v '^ *+' conftest.er1 >conftest.err
10601 cat conftest.err >&5
10602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10603 (exit $ac_status); } &&
10604 { ac_try='test -z "$ac_c_werror_flag"
10605 || test ! -s conftest.err'
10606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10607 (eval $ac_try) 2>&5
10609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10610 (exit $ac_status); }; } &&
10611 { ac_try='test -s conftest.$ac_objext'
10612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10613 (eval $ac_try) 2>&5
10615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616 (exit $ac_status); }; }; then
10619 echo "$as_me: failed program was:" >&5
10620 sed 's/^/| /' conftest.$ac_ext >&5
10622 ac_lo=`expr '(' $ac_mid ')' + 1`
10624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10627 ?*) OMP_NEST_LOCK_SIZE=$ac_lo;;
10631 if test "$cross_compiling" = yes; then
10632 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10633 See \`config.log' for more details." >&5
10634 echo "$as_me: error: cannot run test program while cross compiling
10635 See \`config.log' for more details." >&2;}
10636 { (exit 1); exit 1; }; }
10638 cat >conftest.$ac_ext <<_ACEOF
10641 cat confdefs.h >>conftest.$ac_ext
10642 cat >>conftest.$ac_ext <<_ACEOF
10643 /* end confdefs.h. */
10645 long longval () { return sizeof (omp_nest_lock_t); }
10646 unsigned long ulongval () { return sizeof (omp_nest_lock_t); }
10648 #include <stdlib.h>
10653 FILE *f = fopen ("conftest.val", "w");
10656 if ((sizeof (omp_nest_lock_t)) < 0)
10658 long i = longval ();
10659 if (i != (sizeof (omp_nest_lock_t)))
10661 fprintf (f, "%ld\n", i);
10665 unsigned long i = ulongval ();
10666 if (i != (sizeof (omp_nest_lock_t)))
10668 fprintf (f, "%lu\n", i);
10670 exit (ferror (f) || fclose (f) != 0);
10676 rm -f conftest$ac_exeext
10677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10678 (eval $ac_link) 2>&5
10680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10681 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10683 (eval $ac_try) 2>&5
10685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10686 (exit $ac_status); }; }; then
10687 OMP_NEST_LOCK_SIZE=`cat conftest.val`
10689 echo "$as_me: program exited with status $ac_status" >&5
10690 echo "$as_me: failed program was:" >&5
10691 sed 's/^/| /' conftest.$ac_ext >&5
10694 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10698 if test "$cross_compiling" = yes; then
10699 # Depending upon the size, compute the lo and hi bounds.
10700 cat >conftest.$ac_ext <<_ACEOF
10703 cat confdefs.h >>conftest.$ac_ext
10704 cat >>conftest.$ac_ext <<_ACEOF
10705 /* end confdefs.h. */
10710 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) >= 0)];
10717 rm -f conftest.$ac_objext
10718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10719 (eval $ac_compile) 2>conftest.er1
10721 grep -v '^ *+' conftest.er1 >conftest.err
10723 cat conftest.err >&5
10724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725 (exit $ac_status); } &&
10726 { ac_try='test -z "$ac_c_werror_flag"
10727 || test ! -s conftest.err'
10728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10729 (eval $ac_try) 2>&5
10731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10732 (exit $ac_status); }; } &&
10733 { ac_try='test -s conftest.$ac_objext'
10734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10735 (eval $ac_try) 2>&5
10737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10738 (exit $ac_status); }; }; then
10741 cat >conftest.$ac_ext <<_ACEOF
10744 cat confdefs.h >>conftest.$ac_ext
10745 cat >>conftest.$ac_ext <<_ACEOF
10746 /* end confdefs.h. */
10751 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) <= $ac_mid)];
10758 rm -f conftest.$ac_objext
10759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10760 (eval $ac_compile) 2>conftest.er1
10762 grep -v '^ *+' conftest.er1 >conftest.err
10764 cat conftest.err >&5
10765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10766 (exit $ac_status); } &&
10767 { ac_try='test -z "$ac_c_werror_flag"
10768 || test ! -s conftest.err'
10769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10770 (eval $ac_try) 2>&5
10772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773 (exit $ac_status); }; } &&
10774 { ac_try='test -s conftest.$ac_objext'
10775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10776 (eval $ac_try) 2>&5
10778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10779 (exit $ac_status); }; }; then
10780 ac_hi=$ac_mid; break
10782 echo "$as_me: failed program was:" >&5
10783 sed 's/^/| /' conftest.$ac_ext >&5
10785 ac_lo=`expr $ac_mid + 1`
10786 if test $ac_lo -le $ac_mid; then
10790 ac_mid=`expr 2 '*' $ac_mid + 1`
10792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10795 echo "$as_me: failed program was:" >&5
10796 sed 's/^/| /' conftest.$ac_ext >&5
10798 cat >conftest.$ac_ext <<_ACEOF
10801 cat confdefs.h >>conftest.$ac_ext
10802 cat >>conftest.$ac_ext <<_ACEOF
10803 /* end confdefs.h. */
10808 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) < 0)];
10815 rm -f conftest.$ac_objext
10816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10817 (eval $ac_compile) 2>conftest.er1
10819 grep -v '^ *+' conftest.er1 >conftest.err
10821 cat conftest.err >&5
10822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10823 (exit $ac_status); } &&
10824 { ac_try='test -z "$ac_c_werror_flag"
10825 || test ! -s conftest.err'
10826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10827 (eval $ac_try) 2>&5
10829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10830 (exit $ac_status); }; } &&
10831 { ac_try='test -s conftest.$ac_objext'
10832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10833 (eval $ac_try) 2>&5
10835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10836 (exit $ac_status); }; }; then
10839 cat >conftest.$ac_ext <<_ACEOF
10842 cat confdefs.h >>conftest.$ac_ext
10843 cat >>conftest.$ac_ext <<_ACEOF
10844 /* end confdefs.h. */
10849 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) >= $ac_mid)];
10856 rm -f conftest.$ac_objext
10857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10858 (eval $ac_compile) 2>conftest.er1
10860 grep -v '^ *+' conftest.er1 >conftest.err
10862 cat conftest.err >&5
10863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10864 (exit $ac_status); } &&
10865 { ac_try='test -z "$ac_c_werror_flag"
10866 || test ! -s conftest.err'
10867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10868 (eval $ac_try) 2>&5
10870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10871 (exit $ac_status); }; } &&
10872 { ac_try='test -s conftest.$ac_objext'
10873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10874 (eval $ac_try) 2>&5
10876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877 (exit $ac_status); }; }; then
10878 ac_lo=$ac_mid; break
10880 echo "$as_me: failed program was:" >&5
10881 sed 's/^/| /' conftest.$ac_ext >&5
10883 ac_hi=`expr '(' $ac_mid ')' - 1`
10884 if test $ac_mid -le $ac_hi; then
10888 ac_mid=`expr 2 '*' $ac_mid`
10890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10893 echo "$as_me: failed program was:" >&5
10894 sed 's/^/| /' conftest.$ac_ext >&5
10898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10901 # Binary search between lo and hi bounds.
10902 while test "x$ac_lo" != "x$ac_hi"; do
10903 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10904 cat >conftest.$ac_ext <<_ACEOF
10907 cat confdefs.h >>conftest.$ac_ext
10908 cat >>conftest.$ac_ext <<_ACEOF
10909 /* end confdefs.h. */
10914 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) <= $ac_mid)];
10921 rm -f conftest.$ac_objext
10922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10923 (eval $ac_compile) 2>conftest.er1
10925 grep -v '^ *+' conftest.er1 >conftest.err
10927 cat conftest.err >&5
10928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10929 (exit $ac_status); } &&
10930 { ac_try='test -z "$ac_c_werror_flag"
10931 || test ! -s conftest.err'
10932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10933 (eval $ac_try) 2>&5
10935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10936 (exit $ac_status); }; } &&
10937 { ac_try='test -s conftest.$ac_objext'
10938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10939 (eval $ac_try) 2>&5
10941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10942 (exit $ac_status); }; }; then
10945 echo "$as_me: failed program was:" >&5
10946 sed 's/^/| /' conftest.$ac_ext >&5
10948 ac_lo=`expr '(' $ac_mid ')' + 1`
10950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10953 ?*) OMP_NEST_LOCK_ALIGN=$ac_lo;;
10957 if test "$cross_compiling" = yes; then
10958 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10959 See \`config.log' for more details." >&5
10960 echo "$as_me: error: cannot run test program while cross compiling
10961 See \`config.log' for more details." >&2;}
10962 { (exit 1); exit 1; }; }
10964 cat >conftest.$ac_ext <<_ACEOF
10967 cat confdefs.h >>conftest.$ac_ext
10968 cat >>conftest.$ac_ext <<_ACEOF
10969 /* end confdefs.h. */
10971 long longval () { return __alignof (omp_nest_lock_t); }
10972 unsigned long ulongval () { return __alignof (omp_nest_lock_t); }
10974 #include <stdlib.h>
10979 FILE *f = fopen ("conftest.val", "w");
10982 if ((__alignof (omp_nest_lock_t)) < 0)
10984 long i = longval ();
10985 if (i != (__alignof (omp_nest_lock_t)))
10987 fprintf (f, "%ld\n", i);
10991 unsigned long i = ulongval ();
10992 if (i != (__alignof (omp_nest_lock_t)))
10994 fprintf (f, "%lu\n", i);
10996 exit (ferror (f) || fclose (f) != 0);
11002 rm -f conftest$ac_exeext
11003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11004 (eval $ac_link) 2>&5
11006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11009 (eval $ac_try) 2>&5
11011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11012 (exit $ac_status); }; }; then
11013 OMP_NEST_LOCK_ALIGN=`cat conftest.val`
11015 echo "$as_me: program exited with status $ac_status" >&5
11016 echo "$as_me: failed program was:" >&5
11017 sed 's/^/| /' conftest.$ac_ext >&5
11020 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11025 # If the lock fits in an integer, then arrange for Fortran to use that
11026 # integer. If it doesn't, then arrange for Fortran to use a pointer.
11027 # Except that we don't have a way at present to multi-lib the installed
11028 # Fortran modules, so we assume 8 bytes for pointers, regardless of the
11030 OMP_LOCK_KIND=$OMP_LOCK_SIZE
11031 OMP_NEST_LOCK_KIND=$OMP_NEST_LOCK_SIZE
11032 if test $OMP_LOCK_SIZE -gt 8 || test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then
11035 if test $OMP_NEST_LOCK_SIZE -gt 8 || test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then
11036 OMP_NEST_LOCK_KIND=8
11045 CFLAGS="$save_CFLAGS"
11047 ac_config_files="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h"
11049 ac_config_files="$ac_config_files Makefile testsuite/Makefile libgomp.spec"
11051 cat >confcache <<\_ACEOF
11052 # This file is a shell script that caches the results of configure
11053 # tests run on this system so they can be shared between configure
11054 # scripts and configure runs, see configure's option --config-cache.
11055 # It is not useful on other systems. If it contains results you don't
11056 # want to keep, you may remove or edit it.
11058 # config.status only pays attention to the cache file if you give it
11059 # the --recheck option to rerun configure.
11061 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11062 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11063 # following values.
11067 # The following way of writing the cache mishandles newlines in values,
11068 # but we know of no workaround that is simple, portable, and efficient.
11069 # So, don't put newlines in cache variables' values.
11070 # Ultrix sh set writes to stderr and can't be redirected directly,
11071 # and sets the high bit in the cache file unless we assign to the vars.
11074 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11076 # `set' does not quote correctly, so add quotes (double-quote
11077 # substitution turns \\\\ into \\, and sed turns \\ into \).
11080 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11083 # `set' quotes correctly as required by POSIX, so do not add quotes.
11085 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11092 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11094 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11096 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11097 if test -w $cache_file; then
11098 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11099 cat confcache >$cache_file
11101 echo "not updating unwritable cache $cache_file"
11106 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11107 # Let make expand exec_prefix.
11108 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11110 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11111 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11112 # trailing colons and then remove the whole line if VPATH becomes empty
11113 # (actually we leave an empty line to preserve line numbers).
11114 if test "x$srcdir" = x.; then
11115 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11116 s/:*\$(srcdir):*/:/;
11117 s/:*\${srcdir}:*/:/;
11119 s/^\([^=]*=[ ]*\):*/\1/;
11125 DEFS=-DHAVE_CONFIG_H
11129 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11130 # 1. Remove the extension, and $U if already installed.
11131 ac_i=`echo "$ac_i" |
11132 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11134 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11135 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11137 LIBOBJS=$ac_libobjs
11139 LTLIBOBJS=$ac_ltlibobjs
11142 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
11143 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC\" was never defined.
11144 Usually this means the macro was only invoked conditionally." >&5
11145 echo "$as_me: error: conditional \"GENINSRC\" was never defined.
11146 Usually this means the macro was only invoked conditionally." >&2;}
11147 { (exit 1); exit 1; }; }
11149 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11150 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11151 Usually this means the macro was only invoked conditionally." >&5
11152 echo "$as_me: error: conditional \"AMDEP\" was never defined.
11153 Usually this means the macro was only invoked conditionally." >&2;}
11154 { (exit 1); exit 1; }; }
11156 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11157 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11158 Usually this means the macro was only invoked conditionally." >&5
11159 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11160 Usually this means the macro was only invoked conditionally." >&2;}
11161 { (exit 1); exit 1; }; }
11163 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11164 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
11165 Usually this means the macro was only invoked conditionally." >&5
11166 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
11167 Usually this means the macro was only invoked conditionally." >&2;}
11168 { (exit 1); exit 1; }; }
11170 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
11171 { { echo "$as_me:$LINENO: error: conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
11172 Usually this means the macro was only invoked conditionally." >&5
11173 echo "$as_me: error: conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
11174 Usually this means the macro was only invoked conditionally." >&2;}
11175 { (exit 1); exit 1; }; }
11177 if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
11178 { { echo "$as_me:$LINENO: error: conditional \"USE_FORTRAN\" was never defined.
11179 Usually this means the macro was only invoked conditionally." >&5
11180 echo "$as_me: error: conditional \"USE_FORTRAN\" was never defined.
11181 Usually this means the macro was only invoked conditionally." >&2;}
11182 { (exit 1); exit 1; }; }
11185 : ${CONFIG_STATUS=./config.status}
11186 ac_clean_files_save=$ac_clean_files
11187 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11188 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11189 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11190 cat >$CONFIG_STATUS <<_ACEOF
11192 # Generated by $as_me.
11193 # Run this file to recreate the current configuration.
11194 # Compiler output produced by configure, useful for debugging
11195 # configure, is in config.log if it exists.
11198 ac_cs_recheck=false
11200 SHELL=\${CONFIG_SHELL-$SHELL}
11203 cat >>$CONFIG_STATUS <<\_ACEOF
11204 ## --------------------- ##
11205 ## M4sh Initialization. ##
11206 ## --------------------- ##
11208 # Be Bourne compatible
11209 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11212 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11213 # is contrary to our usage. Disable this feature.
11214 alias -g '${1+"$@"}'='"$@"'
11215 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11218 DUALCASE=1; export DUALCASE # for MKS sh
11220 # Support unset when possible.
11221 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11228 # Work around bugs in pre-3.0 UWIN ksh.
11229 $as_unset ENV MAIL MAILPATH
11236 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11237 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11238 LC_TELEPHONE LC_TIME
11240 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11241 eval $as_var=C; export $as_var
11247 # Required to use basename.
11248 if expr a : '\(a\)' >/dev/null 2>&1; then
11254 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11255 as_basename=basename
11261 # Name of the executable.
11262 as_me=`$as_basename "$0" ||
11263 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11264 X"$0" : 'X\(//\)$' \| \
11265 X"$0" : 'X\(/\)$' \| \
11266 . : '\(.\)' 2>/dev/null ||
11268 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11269 /^X\/\(\/\/\)$/{ s//\1/; q; }
11270 /^X\/\(\/\).*/{ s//\1/; q; }
11274 # PATH needs CR, and LINENO needs CR and PATH.
11275 # Avoid depending upon Character Ranges.
11276 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11277 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11278 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11279 as_cr_digits='0123456789'
11280 as_cr_alnum=$as_cr_Letters$as_cr_digits
11282 # The user is always right.
11283 if test "${PATH_SEPARATOR+set}" != set; then
11284 echo "#! /bin/sh" >conf$$.sh
11285 echo "exit 0" >>conf$$.sh
11287 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11296 as_lineno_1=$LINENO
11297 as_lineno_2=$LINENO
11298 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11299 test "x$as_lineno_1" != "x$as_lineno_2" &&
11300 test "x$as_lineno_3" = "x$as_lineno_2" || {
11301 # Find who we are. Look in the path if we contain no path at all
11304 *[\\/]* ) as_myself=$0 ;;
11305 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11306 for as_dir in $PATH
11309 test -z "$as_dir" && as_dir=.
11310 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11315 # We did not find ourselves, most probably we were run as `sh COMMAND'
11316 # in which case we are not to be found in the path.
11317 if test "x$as_myself" = x; then
11320 if test ! -f "$as_myself"; then
11321 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11322 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11323 { (exit 1); exit 1; }; }
11325 case $CONFIG_SHELL in
11327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11328 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11331 test -z "$as_dir" && as_dir=.
11332 for as_base in sh bash ksh sh5; do
11335 if ("$as_dir/$as_base" -c '
11336 as_lineno_1=$LINENO
11337 as_lineno_2=$LINENO
11338 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11339 test "x$as_lineno_1" != "x$as_lineno_2" &&
11340 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11341 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11342 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11343 CONFIG_SHELL=$as_dir/$as_base
11344 export CONFIG_SHELL
11345 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11353 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11354 # uniformly replaced by the line number. The first 'sed' inserts a
11355 # line-number line before each line; the second 'sed' does the real
11356 # work. The second script uses 'N' to pair each line-number line
11357 # with the numbered line, and appends trailing '-' during
11358 # substitution so that $LINENO is not a special case at line end.
11359 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11360 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11361 sed '=' <$as_myself |
11366 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11369 s,^['$as_cr_digits']*\n,,
11370 ' >$as_me.lineno &&
11371 chmod +x $as_me.lineno ||
11372 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11373 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11374 { (exit 1); exit 1; }; }
11376 # Don't try to exec as it changes $[0], causing all sort of problems
11377 # (the dirname of $[0] is not the place where we might find the
11378 # original and so on. Autoconf is especially sensible to this).
11380 # Exit status is that of the last command.
11385 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11386 *c*,-n*) ECHO_N= ECHO_C='
11388 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11389 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11392 if expr a : '\(a\)' >/dev/null 2>&1; then
11398 rm -f conf$$ conf$$.exe conf$$.file
11400 if ln -s conf$$.file conf$$ 2>/dev/null; then
11401 # We could just check for DJGPP; but this test a) works b) is more generic
11402 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11403 if test -f conf$$.exe; then
11404 # Don't use ln at all; we don't have any links
11409 elif ln conf$$.file conf$$ 2>/dev/null; then
11414 rm -f conf$$ conf$$.exe conf$$.file
11416 if mkdir -p . 2>/dev/null; then
11419 test -d ./-p && rmdir ./-p
11423 as_executable_p="test -f"
11425 # Sed expression to map a string onto a valid CPP name.
11426 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11428 # Sed expression to map a string onto a valid variable name.
11429 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11433 # We need space, tab and new line, in precisely that order.
11443 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11444 # report actual input values of CONFIG_FILES etc. instead of their
11445 # values after options handling. Logging --version etc. is OK.
11449 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11450 ## Running $as_me. ##
11455 This file was extended by GNU OpenMP Runtime Library $as_me 1.0, which was
11456 generated by GNU Autoconf 2.59. Invocation command line was
11458 CONFIG_FILES = $CONFIG_FILES
11459 CONFIG_HEADERS = $CONFIG_HEADERS
11460 CONFIG_LINKS = $CONFIG_LINKS
11461 CONFIG_COMMANDS = $CONFIG_COMMANDS
11465 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11469 # Files that config.status was made for.
11470 if test -n "$ac_config_files"; then
11471 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11474 if test -n "$ac_config_headers"; then
11475 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11478 if test -n "$ac_config_links"; then
11479 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11482 if test -n "$ac_config_commands"; then
11483 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11486 cat >>$CONFIG_STATUS <<\_ACEOF
11489 \`$as_me' instantiates files from templates according to the
11490 current configuration.
11492 Usage: $0 [OPTIONS] [FILE]...
11494 -h, --help print this help, then exit
11495 -V, --version print version number, then exit
11496 -q, --quiet do not print progress messages
11497 -d, --debug don't remove temporary files
11498 --recheck update $as_me by reconfiguring in the same conditions
11499 --file=FILE[:TEMPLATE]
11500 instantiate the configuration file FILE
11501 --header=FILE[:TEMPLATE]
11502 instantiate the configuration header FILE
11504 Configuration files:
11507 Configuration headers:
11510 Configuration commands:
11513 Report bugs to <bug-autoconf@gnu.org>."
11516 cat >>$CONFIG_STATUS <<_ACEOF
11518 GNU OpenMP Runtime Library config.status 1.0
11519 configured by $0, generated by GNU Autoconf 2.59,
11520 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11522 Copyright (C) 2003 Free Software Foundation, Inc.
11523 This config.status script is free software; the Free Software Foundation
11524 gives unlimited permission to copy, distribute and modify it."
11529 cat >>$CONFIG_STATUS <<\_ACEOF
11530 # If no file are specified by the user, then we need to provide default
11531 # value. By we need to know if files were specified by the user.
11537 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11538 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11546 *) # This is not an option, so the user has probably given explicit
11549 ac_need_defaults=false;;
11553 # Handling of the options.
11555 cat >>$CONFIG_STATUS <<\_ACEOF
11556 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11558 --version | --vers* | -V )
11559 echo "$ac_cs_version"; exit 0 ;;
11561 # Conflict between --help and --header
11562 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11563 Try \`$0 --help' for more information." >&5
11564 echo "$as_me: error: ambiguous option: $1
11565 Try \`$0 --help' for more information." >&2;}
11566 { (exit 1); exit 1; }; };;
11567 --help | --hel | -h )
11568 echo "$ac_cs_usage"; exit 0 ;;
11569 --debug | --d* | -d )
11571 --file | --fil | --fi | --f )
11573 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11574 ac_need_defaults=false;;
11575 --header | --heade | --head | --hea )
11577 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11578 ac_need_defaults=false;;
11579 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11580 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11583 # This is an error.
11584 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11585 Try \`$0 --help' for more information." >&5
11586 echo "$as_me: error: unrecognized option: $1
11587 Try \`$0 --help' for more information." >&2;}
11588 { (exit 1); exit 1; }; } ;;
11590 *) ac_config_targets="$ac_config_targets $1" ;;
11596 ac_configure_extra_args=
11598 if $ac_cs_silent; then
11600 ac_configure_extra_args="$ac_configure_extra_args --silent"
11604 cat >>$CONFIG_STATUS <<_ACEOF
11605 if \$ac_cs_recheck; then
11606 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11607 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11612 cat >>$CONFIG_STATUS <<_ACEOF
11614 # INIT-COMMANDS section.
11621 with_multisubdir="$with_multisubdir"
11622 with_multisrctop="$with_multisrctop"
11623 with_target_subdir="$with_target_subdir"
11624 ac_configure_args="${multilib_arg} ${ac_configure_args}"
11625 multi_basedir="$multi_basedir"
11626 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
11628 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11632 acx_cv_header_stdint="$acx_cv_header_stdint"
11633 acx_cv_type_int8_t="$acx_cv_type_int8_t"
11634 acx_cv_type_int16_t="$acx_cv_type_int16_t"
11635 acx_cv_type_int32_t="$acx_cv_type_int32_t"
11636 acx_cv_type_int64_t="$acx_cv_type_int64_t"
11637 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
11638 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
11639 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
11640 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
11641 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
11642 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
11643 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
11644 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
11645 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
11652 cat >>$CONFIG_STATUS <<\_ACEOF
11653 for ac_config_target in $ac_config_targets
11655 case "$ac_config_target" in
11656 # Handling of arguments.
11657 "omp.h" ) CONFIG_FILES="$CONFIG_FILES omp.h" ;;
11658 "omp_lib.h" ) CONFIG_FILES="$CONFIG_FILES omp_lib.h" ;;
11659 "omp_lib.f90" ) CONFIG_FILES="$CONFIG_FILES omp_lib.f90" ;;
11660 "libgomp_f.h" ) CONFIG_FILES="$CONFIG_FILES libgomp_f.h" ;;
11661 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11662 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
11663 "libgomp.spec" ) CONFIG_FILES="$CONFIG_FILES libgomp.spec" ;;
11664 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
11665 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11666 "gstdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
11667 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11668 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11669 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11670 { (exit 1); exit 1; }; };;
11674 # If the user did not use the arguments to specify the items to instantiate,
11675 # then the envvar interface is used. Set only those that are not.
11676 # We use the long form for the default assignment because of an extremely
11677 # bizarre bug on SunOS 4.1.3.
11678 if $ac_need_defaults; then
11679 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11680 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11681 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11684 # Have a temporary directory for convenience. Make it in the build tree
11685 # simply because there is no reason to put it here, and in addition,
11686 # creating and moving files from /tmp can sometimes cause problems.
11687 # Create a temporary directory, and hook for its removal unless debugging.
11690 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11691 trap '{ (exit 1); exit 1; }' 1 2 13 15
11694 # Create a (secure) tmp directory for tmp files.
11697 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11698 test -n "$tmp" && test -d "$tmp"
11701 tmp=./confstat$$-$RANDOM
11702 (umask 077 && mkdir $tmp)
11705 echo "$me: cannot create a temporary directory in ." >&2
11706 { (exit 1); exit 1; }
11711 cat >>$CONFIG_STATUS <<_ACEOF
11714 # CONFIG_FILES section.
11717 # No need to generate the scripts if there are no CONFIG_FILES.
11718 # This happens for instance when ./config.status config.h
11719 if test -n "\$CONFIG_FILES"; then
11720 # Protect against being on the right side of a sed subst in config.status.
11721 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11722 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11723 s,@SHELL@,$SHELL,;t t
11724 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11725 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11726 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11727 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11728 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11729 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11730 s,@exec_prefix@,$exec_prefix,;t t
11731 s,@prefix@,$prefix,;t t
11732 s,@program_transform_name@,$program_transform_name,;t t
11733 s,@bindir@,$bindir,;t t
11734 s,@sbindir@,$sbindir,;t t
11735 s,@libexecdir@,$libexecdir,;t t
11736 s,@datadir@,$datadir,;t t
11737 s,@sysconfdir@,$sysconfdir,;t t
11738 s,@sharedstatedir@,$sharedstatedir,;t t
11739 s,@localstatedir@,$localstatedir,;t t
11740 s,@libdir@,$libdir,;t t
11741 s,@includedir@,$includedir,;t t
11742 s,@oldincludedir@,$oldincludedir,;t t
11743 s,@infodir@,$infodir,;t t
11744 s,@mandir@,$mandir,;t t
11745 s,@build_alias@,$build_alias,;t t
11746 s,@host_alias@,$host_alias,;t t
11747 s,@target_alias@,$target_alias,;t t
11748 s,@DEFS@,$DEFS,;t t
11749 s,@ECHO_C@,$ECHO_C,;t t
11750 s,@ECHO_N@,$ECHO_N,;t t
11751 s,@ECHO_T@,$ECHO_T,;t t
11752 s,@LIBS@,$LIBS,;t t
11753 s,@GENINSRC_TRUE@,$GENINSRC_TRUE,;t t
11754 s,@GENINSRC_FALSE@,$GENINSRC_FALSE,;t t
11755 s,@build@,$build,;t t
11756 s,@build_cpu@,$build_cpu,;t t
11757 s,@build_vendor@,$build_vendor,;t t
11758 s,@build_os@,$build_os,;t t
11759 s,@host@,$host,;t t
11760 s,@host_cpu@,$host_cpu,;t t
11761 s,@host_vendor@,$host_vendor,;t t
11762 s,@host_os@,$host_os,;t t
11763 s,@target@,$target,;t t
11764 s,@target_cpu@,$target_cpu,;t t
11765 s,@target_vendor@,$target_vendor,;t t
11766 s,@target_os@,$target_os,;t t
11767 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11768 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11769 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11770 s,@CYGPATH_W@,$CYGPATH_W,;t t
11771 s,@PACKAGE@,$PACKAGE,;t t
11772 s,@VERSION@,$VERSION,;t t
11773 s,@ACLOCAL@,$ACLOCAL,;t t
11774 s,@AUTOCONF@,$AUTOCONF,;t t
11775 s,@AUTOMAKE@,$AUTOMAKE,;t t
11776 s,@AUTOHEADER@,$AUTOHEADER,;t t
11777 s,@MAKEINFO@,$MAKEINFO,;t t
11778 s,@install_sh@,$install_sh,;t t
11779 s,@STRIP@,$STRIP,;t t
11780 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11781 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
11782 s,@mkdir_p@,$mkdir_p,;t t
11784 s,@SET_MAKE@,$SET_MAKE,;t t
11785 s,@am__leading_dot@,$am__leading_dot,;t t
11786 s,@AMTAR@,$AMTAR,;t t
11787 s,@am__tar@,$am__tar,;t t
11788 s,@am__untar@,$am__untar,;t t
11789 s,@multi_basedir@,$multi_basedir,;t t
11790 s,@toolexecdir@,$toolexecdir,;t t
11791 s,@toolexeclibdir@,$toolexeclibdir,;t t
11793 s,@ac_ct_CC@,$ac_ct_CC,;t t
11794 s,@EXEEXT@,$EXEEXT,;t t
11795 s,@OBJEXT@,$OBJEXT,;t t
11796 s,@DEPDIR@,$DEPDIR,;t t
11797 s,@am__include@,$am__include,;t t
11798 s,@am__quote@,$am__quote,;t t
11799 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
11800 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
11801 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
11802 s,@CCDEPMODE@,$CCDEPMODE,;t t
11803 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
11804 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
11805 s,@CFLAGS@,$CFLAGS,;t t
11807 s,@ac_ct_AR@,$ac_ct_AR,;t t
11808 s,@RANLIB@,$RANLIB,;t t
11809 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11810 s,@PERL@,$PERL,;t t
11811 s,@LN_S@,$LN_S,;t t
11812 s,@LIBTOOL@,$LIBTOOL,;t t
11813 s,@enable_shared@,$enable_shared,;t t
11814 s,@enable_static@,$enable_static,;t t
11815 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
11816 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
11817 s,@MAINT@,$MAINT,;t t
11819 s,@FCFLAGS@,$FCFLAGS,;t t
11820 s,@LDFLAGS@,$LDFLAGS,;t t
11821 s,@ac_ct_FC@,$ac_ct_FC,;t t
11822 s,@libtool_VERSION@,$libtool_VERSION,;t t
11824 s,@CPPFLAGS@,$CPPFLAGS,;t t
11825 s,@EGREP@,$EGREP,;t t
11826 s,@SECTION_LDFLAGS@,$SECTION_LDFLAGS,;t t
11827 s,@OPT_LDFLAGS@,$OPT_LDFLAGS,;t t
11828 s,@LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE@,$LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE,;t t
11829 s,@LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE@,$LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE,;t t
11830 s,@config_path@,$config_path,;t t
11831 s,@XCFLAGS@,$XCFLAGS,;t t
11832 s,@XLDFLAGS@,$XLDFLAGS,;t t
11833 s,@link_gomp@,$link_gomp,;t t
11834 s,@USE_FORTRAN_TRUE@,$USE_FORTRAN_TRUE,;t t
11835 s,@USE_FORTRAN_FALSE@,$USE_FORTRAN_FALSE,;t t
11836 s,@OMP_LOCK_SIZE@,$OMP_LOCK_SIZE,;t t
11837 s,@OMP_LOCK_ALIGN@,$OMP_LOCK_ALIGN,;t t
11838 s,@OMP_NEST_LOCK_SIZE@,$OMP_NEST_LOCK_SIZE,;t t
11839 s,@OMP_NEST_LOCK_ALIGN@,$OMP_NEST_LOCK_ALIGN,;t t
11840 s,@OMP_LOCK_KIND@,$OMP_LOCK_KIND,;t t
11841 s,@OMP_NEST_LOCK_KIND@,$OMP_NEST_LOCK_KIND,;t t
11842 s,@LIBOBJS@,$LIBOBJS,;t t
11843 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11848 cat >>$CONFIG_STATUS <<\_ACEOF
11849 # Split the substitutions into bite-sized pieces for seds with
11850 # small command number limits, like on Digital OSF/1 and HP-UX.
11851 ac_max_sed_lines=48
11852 ac_sed_frag=1 # Number of current file.
11853 ac_beg=1 # First line for current file.
11854 ac_end=$ac_max_sed_lines # Line after last line for current file.
11857 while $ac_more_lines; do
11858 if test $ac_beg -gt 1; then
11859 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11861 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11863 if test ! -s $tmp/subs.frag; then
11864 ac_more_lines=false
11866 # The purpose of the label and of the branching condition is to
11867 # speed up the sed processing (if there are no `@' at all, there
11868 # is no need to browse any of the substitutions).
11869 # These are the two extra sed commands mentioned above.
11871 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11872 if test -z "$ac_sed_cmds"; then
11873 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11875 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11877 ac_sed_frag=`expr $ac_sed_frag + 1`
11879 ac_end=`expr $ac_end + $ac_max_sed_lines`
11882 if test -z "$ac_sed_cmds"; then
11885 fi # test -n "$CONFIG_FILES"
11888 cat >>$CONFIG_STATUS <<\_ACEOF
11889 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11890 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11892 - | *:- | *:-:* ) # input from stdin
11894 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11895 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11896 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11897 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11898 * ) ac_file_in=$ac_file.in ;;
11901 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11902 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11903 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11904 X"$ac_file" : 'X\(//\)[^/]' \| \
11905 X"$ac_file" : 'X\(//\)$' \| \
11906 X"$ac_file" : 'X\(/\)' \| \
11907 . : '\(.\)' 2>/dev/null ||
11909 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11910 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11911 /^X\(\/\/\)$/{ s//\1/; q; }
11912 /^X\(\/\).*/{ s//\1/; q; }
11914 { if $as_mkdir_p; then
11919 while test ! -d "$as_dir"; do
11920 as_dirs="$as_dir $as_dirs"
11921 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11922 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11923 X"$as_dir" : 'X\(//\)[^/]' \| \
11924 X"$as_dir" : 'X\(//\)$' \| \
11925 X"$as_dir" : 'X\(/\)' \| \
11926 . : '\(.\)' 2>/dev/null ||
11928 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11929 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11930 /^X\(\/\/\)$/{ s//\1/; q; }
11931 /^X\(\/\).*/{ s//\1/; q; }
11934 test ! -n "$as_dirs" || mkdir $as_dirs
11935 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11936 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11937 { (exit 1); exit 1; }; }; }
11941 if test "$ac_dir" != .; then
11942 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11943 # A "../" for each directory in $ac_dir_suffix.
11944 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11946 ac_dir_suffix= ac_top_builddir=
11950 .) # No --srcdir option. We are building in place.
11952 if test -z "$ac_top_builddir"; then
11955 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11957 [\\/]* | ?:[\\/]* ) # Absolute path.
11958 ac_srcdir=$srcdir$ac_dir_suffix;
11959 ac_top_srcdir=$srcdir ;;
11960 *) # Relative path.
11961 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11962 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11965 # Do not use `cd foo && pwd` to compute absolute paths, because
11966 # the directories may not exist.
11968 .) ac_abs_builddir="$ac_dir";;
11971 .) ac_abs_builddir=`pwd`;;
11972 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11973 *) ac_abs_builddir=`pwd`/"$ac_dir";;
11976 case $ac_abs_builddir in
11977 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11979 case ${ac_top_builddir}. in
11980 .) ac_abs_top_builddir=$ac_abs_builddir;;
11981 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11982 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11985 case $ac_abs_builddir in
11986 .) ac_abs_srcdir=$ac_srcdir;;
11989 .) ac_abs_srcdir=$ac_abs_builddir;;
11990 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11991 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11994 case $ac_abs_builddir in
11995 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11997 case $ac_top_srcdir in
11998 .) ac_abs_top_srcdir=$ac_abs_builddir;;
11999 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12000 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12006 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12007 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12010 if test x"$ac_file" != x-; then
12011 { echo "$as_me:$LINENO: creating $ac_file" >&5
12012 echo "$as_me: creating $ac_file" >&6;}
12015 # Let's still pretend it is `configure' which instantiates (i.e., don't
12016 # use $as_me), people would be surprised to read:
12017 # /* config.h. Generated by config.status. */
12018 if test x"$ac_file" = x-; then
12021 configure_input="$ac_file. "
12023 configure_input=$configure_input"Generated from `echo $ac_file_in |
12024 sed 's,.*/,,'` by configure."
12026 # First look for the input files in the build tree, otherwise in the
12028 ac_file_inputs=`IFS=:
12029 for f in $ac_file_in; do
12031 -) echo $tmp/stdin ;;
12033 # Absolute (can't be DOS-style, as IFS=:)
12034 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12035 echo "$as_me: error: cannot find input file: $f" >&2;}
12036 { (exit 1); exit 1; }; }
12039 if test -f "$f"; then
12042 elif test -f "$srcdir/$f"; then
12047 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12048 echo "$as_me: error: cannot find input file: $f" >&2;}
12049 { (exit 1); exit 1; }; }
12052 done` || { (exit 1); exit 1; }
12054 cat >>$CONFIG_STATUS <<_ACEOF
12058 cat >>$CONFIG_STATUS <<\_ACEOF
12060 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12061 s,@configure_input@,$configure_input,;t t
12062 s,@srcdir@,$ac_srcdir,;t t
12063 s,@abs_srcdir@,$ac_abs_srcdir,;t t
12064 s,@top_srcdir@,$ac_top_srcdir,;t t
12065 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12066 s,@builddir@,$ac_builddir,;t t
12067 s,@abs_builddir@,$ac_abs_builddir,;t t
12068 s,@top_builddir@,$ac_top_builddir,;t t
12069 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12070 s,@INSTALL@,$ac_INSTALL,;t t
12071 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12073 if test x"$ac_file" != x-; then
12074 mv $tmp/out $ac_file
12082 cat >>$CONFIG_STATUS <<\_ACEOF
12085 # CONFIG_HEADER section.
12088 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12089 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12091 # ac_d sets the value in "#define NAME VALUE" lines.
12092 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12093 ac_dB='[ ].*$,\1#\2'
12096 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12097 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12098 ac_uB='$,\1#\2define\3'
12102 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12103 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12105 - | *:- | *:-:* ) # input from stdin
12107 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12108 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12109 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12110 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12111 * ) ac_file_in=$ac_file.in ;;
12114 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12115 echo "$as_me: creating $ac_file" >&6;}
12117 # First look for the input files in the build tree, otherwise in the
12119 ac_file_inputs=`IFS=:
12120 for f in $ac_file_in; do
12122 -) echo $tmp/stdin ;;
12124 # Absolute (can't be DOS-style, as IFS=:)
12125 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12126 echo "$as_me: error: cannot find input file: $f" >&2;}
12127 { (exit 1); exit 1; }; }
12128 # Do quote $f, to prevent DOS paths from being IFS'd.
12131 if test -f "$f"; then
12134 elif test -f "$srcdir/$f"; then
12139 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12140 echo "$as_me: error: cannot find input file: $f" >&2;}
12141 { (exit 1); exit 1; }; }
12144 done` || { (exit 1); exit 1; }
12145 # Remove the trailing spaces.
12146 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
12150 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12151 # `conftest.undefs', that substitutes the proper values into
12152 # config.h.in to produce config.h. The first handles `#define'
12153 # templates, and the second `#undef' templates.
12154 # And first: Protect against being on the right side of a sed subst in
12155 # config.status. Protect against being in an unquoted here document
12156 # in config.status.
12157 rm -f conftest.defines conftest.undefs
12158 # Using a here document instead of a string reduces the quoting nightmare.
12159 # Putting comments in sed scripts is not portable.
12161 # `end' is used to avoid that the second main sed command (meant for
12162 # 0-ary CPP macros) applies to n-ary macro definitions.
12163 # See the Autoconf documentation for `clear'.
12164 cat >confdef2sed.sed <<\_ACEOF
12169 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12171 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12174 # If some macros were called several times there might be several times
12175 # the same #defines, which is useless. Nevertheless, we may not want to
12176 # sort them, since we want the *last* AC-DEFINE to be honored.
12177 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12178 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12179 rm -f confdef2sed.sed
12181 # This sed command replaces #undef with comments. This is necessary, for
12182 # example, in the case of _POSIX_SOURCE, which is predefined and required
12183 # on some systems where configure will not decide to define it.
12184 cat >>conftest.undefs <<\_ACEOF
12185 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12188 # Break up conftest.defines because some shells have a limit on the size
12189 # of here documents, and old seds have small limits too (100 cmds).
12190 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12191 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12192 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12193 echo ' :' >>$CONFIG_STATUS
12194 rm -f conftest.tail
12195 while grep . conftest.defines >/dev/null
12197 # Write a limited-size here document to $tmp/defines.sed.
12198 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12199 # Speed up: don't consider the non `#define' lines.
12200 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
12201 # Work around the forget-to-reset-the-flag bug.
12202 echo 't clr' >>$CONFIG_STATUS
12203 echo ': clr' >>$CONFIG_STATUS
12204 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12206 sed -f $tmp/defines.sed $tmp/in >$tmp/out
12208 mv $tmp/out $tmp/in
12210 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12211 rm -f conftest.defines
12212 mv conftest.tail conftest.defines
12214 rm -f conftest.defines
12215 echo ' fi # grep' >>$CONFIG_STATUS
12216 echo >>$CONFIG_STATUS
12218 # Break up conftest.undefs because some shells have a limit on the size
12219 # of here documents, and old seds have small limits too (100 cmds).
12220 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
12221 rm -f conftest.tail
12222 while grep . conftest.undefs >/dev/null
12224 # Write a limited-size here document to $tmp/undefs.sed.
12225 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12226 # Speed up: don't consider the non `#undef'
12227 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
12228 # Work around the forget-to-reset-the-flag bug.
12229 echo 't clr' >>$CONFIG_STATUS
12230 echo ': clr' >>$CONFIG_STATUS
12231 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12233 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12235 mv $tmp/out $tmp/in
12237 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12238 rm -f conftest.undefs
12239 mv conftest.tail conftest.undefs
12241 rm -f conftest.undefs
12243 cat >>$CONFIG_STATUS <<\_ACEOF
12244 # Let's still pretend it is `configure' which instantiates (i.e., don't
12245 # use $as_me), people would be surprised to read:
12246 # /* config.h. Generated by config.status. */
12247 if test x"$ac_file" = x-; then
12248 echo "/* Generated by configure. */" >$tmp/config.h
12250 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
12252 cat $tmp/in >>$tmp/config.h
12254 if test x"$ac_file" != x-; then
12255 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12256 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12257 echo "$as_me: $ac_file is unchanged" >&6;}
12259 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12260 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12261 X"$ac_file" : 'X\(//\)[^/]' \| \
12262 X"$ac_file" : 'X\(//\)$' \| \
12263 X"$ac_file" : 'X\(/\)' \| \
12264 . : '\(.\)' 2>/dev/null ||
12266 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12267 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12268 /^X\(\/\/\)$/{ s//\1/; q; }
12269 /^X\(\/\).*/{ s//\1/; q; }
12271 { if $as_mkdir_p; then
12276 while test ! -d "$as_dir"; do
12277 as_dirs="$as_dir $as_dirs"
12278 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12279 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12280 X"$as_dir" : 'X\(//\)[^/]' \| \
12281 X"$as_dir" : 'X\(//\)$' \| \
12282 X"$as_dir" : 'X\(/\)' \| \
12283 . : '\(.\)' 2>/dev/null ||
12285 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12286 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12287 /^X\(\/\/\)$/{ s//\1/; q; }
12288 /^X\(\/\).*/{ s//\1/; q; }
12291 test ! -n "$as_dirs" || mkdir $as_dirs
12292 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12293 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12294 { (exit 1); exit 1; }; }; }
12297 mv $tmp/config.h $ac_file
12301 rm -f $tmp/config.h
12303 # Compute $ac_file's index in $config_headers.
12305 for _am_header in $config_headers :; do
12306 case $_am_header in
12307 $ac_file | $ac_file:* )
12310 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12313 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
12314 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12315 X$ac_file : 'X\(//\)[^/]' \| \
12316 X$ac_file : 'X\(//\)$' \| \
12317 X$ac_file : 'X\(/\)' \| \
12318 . : '\(.\)' 2>/dev/null ||
12320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12321 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12322 /^X\(\/\/\)$/{ s//\1/; q; }
12323 /^X\(\/\).*/{ s//\1/; q; }
12324 s/.*/./; q'`/stamp-h$_am_stamp_count
12327 cat >>$CONFIG_STATUS <<\_ACEOF
12330 # CONFIG_COMMANDS section.
12332 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12333 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12334 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12335 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12336 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12337 X"$ac_dest" : 'X\(//\)[^/]' \| \
12338 X"$ac_dest" : 'X\(//\)$' \| \
12339 X"$ac_dest" : 'X\(/\)' \| \
12340 . : '\(.\)' 2>/dev/null ||
12342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12343 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12344 /^X\(\/\/\)$/{ s//\1/; q; }
12345 /^X\(\/\).*/{ s//\1/; q; }
12347 { if $as_mkdir_p; then
12352 while test ! -d "$as_dir"; do
12353 as_dirs="$as_dir $as_dirs"
12354 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12355 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12356 X"$as_dir" : 'X\(//\)[^/]' \| \
12357 X"$as_dir" : 'X\(//\)$' \| \
12358 X"$as_dir" : 'X\(/\)' \| \
12359 . : '\(.\)' 2>/dev/null ||
12361 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12362 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12363 /^X\(\/\/\)$/{ s//\1/; q; }
12364 /^X\(\/\).*/{ s//\1/; q; }
12367 test ! -n "$as_dirs" || mkdir $as_dirs
12368 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12369 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12370 { (exit 1); exit 1; }; }; }
12374 if test "$ac_dir" != .; then
12375 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12376 # A "../" for each directory in $ac_dir_suffix.
12377 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12379 ac_dir_suffix= ac_top_builddir=
12383 .) # No --srcdir option. We are building in place.
12385 if test -z "$ac_top_builddir"; then
12388 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12390 [\\/]* | ?:[\\/]* ) # Absolute path.
12391 ac_srcdir=$srcdir$ac_dir_suffix;
12392 ac_top_srcdir=$srcdir ;;
12393 *) # Relative path.
12394 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12395 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12398 # Do not use `cd foo && pwd` to compute absolute paths, because
12399 # the directories may not exist.
12401 .) ac_abs_builddir="$ac_dir";;
12404 .) ac_abs_builddir=`pwd`;;
12405 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12406 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12409 case $ac_abs_builddir in
12410 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12412 case ${ac_top_builddir}. in
12413 .) ac_abs_top_builddir=$ac_abs_builddir;;
12414 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12415 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12418 case $ac_abs_builddir in
12419 .) ac_abs_srcdir=$ac_srcdir;;
12422 .) ac_abs_srcdir=$ac_abs_builddir;;
12423 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12424 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12427 case $ac_abs_builddir in
12428 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12430 case $ac_top_srcdir in
12431 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12432 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12433 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12438 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12439 echo "$as_me: executing $ac_dest commands" >&6;}
12442 # Only add multilib support code if we just rebuilt the top-level
12444 case " $CONFIG_FILES " in
12446 ac_file=Makefile . ${multi_basedir}/config-ml.in
12449 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12450 # Strip MF so we end up with the name of the file.
12451 mf=`echo "$mf" | sed -e 's/:.*$//'`
12452 # Check whether this is an Automake generated Makefile or not.
12453 # We used to match only the files named `Makefile.in', but
12454 # some people rename them; so instead we look at the file content.
12455 # Grep'ing the first line is not enough: some people post-process
12456 # each Makefile.in and add a new line on top of each file to say so.
12457 # So let's grep whole file.
12458 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12459 dirpart=`(dirname "$mf") 2>/dev/null ||
12460 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12461 X"$mf" : 'X\(//\)[^/]' \| \
12462 X"$mf" : 'X\(//\)$' \| \
12463 X"$mf" : 'X\(/\)' \| \
12464 . : '\(.\)' 2>/dev/null ||
12466 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12467 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12468 /^X\(\/\/\)$/{ s//\1/; q; }
12469 /^X\(\/\).*/{ s//\1/; q; }
12474 # Extract the definition of DEPDIR, am__include, and am__quote
12475 # from the Makefile without running `make'.
12476 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12477 test -z "$DEPDIR" && continue
12478 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12479 test -z "am__include" && continue
12480 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12481 # When using ansi2knr, U may be empty or an underscore; expand it
12482 U=`sed -n 's/^U = //p' < "$mf"`
12483 # Find all dependency output files, they are included files with
12484 # $(DEPDIR) in their names. We invoke sed twice because it is the
12485 # simplest approach to changing $(DEPDIR) to its actual value in the
12487 for file in `sed -n "
12488 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12489 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12490 # Make sure the directory exists.
12491 test -f "$dirpart/$file" && continue
12492 fdir=`(dirname "$file") 2>/dev/null ||
12493 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12494 X"$file" : 'X\(//\)[^/]' \| \
12495 X"$file" : 'X\(//\)$' \| \
12496 X"$file" : 'X\(/\)' \| \
12497 . : '\(.\)' 2>/dev/null ||
12499 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12500 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12501 /^X\(\/\/\)$/{ s//\1/; q; }
12502 /^X\(\/\).*/{ s//\1/; q; }
12504 { if $as_mkdir_p; then
12505 mkdir -p $dirpart/$fdir
12507 as_dir=$dirpart/$fdir
12509 while test ! -d "$as_dir"; do
12510 as_dirs="$as_dir $as_dirs"
12511 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12512 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12513 X"$as_dir" : 'X\(//\)[^/]' \| \
12514 X"$as_dir" : 'X\(//\)$' \| \
12515 X"$as_dir" : 'X\(/\)' \| \
12516 . : '\(.\)' 2>/dev/null ||
12518 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12519 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12520 /^X\(\/\/\)$/{ s//\1/; q; }
12521 /^X\(\/\).*/{ s//\1/; q; }
12524 test ! -n "$as_dirs" || mkdir $as_dirs
12525 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
12526 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
12527 { (exit 1); exit 1; }; }; }
12529 # echo "creating $dirpart/$file"
12530 echo '# dummy' > "$dirpart/$file"
12535 if test "$GCC" = yes; then
12536 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
12538 echo "/* generated for $CC */" > tmp-stdint.h
12541 sed 's/^ *//' >> tmp-stdint.h <<EOF
12543 #ifndef GCC_GENERATED_STDINT_H
12544 #define GCC_GENERATED_STDINT_H 1
12546 #include <sys/types.h>
12549 if test "$acx_cv_header_stdint" != stdint.h; then
12550 echo "#include <stddef.h>" >> tmp-stdint.h
12552 if test "$acx_cv_header_stdint" != stddef.h; then
12553 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
12556 sed 's/^ *//' >> tmp-stdint.h <<EOF
12557 /* glibc uses these symbols as guards to prevent redefinitions. */
12558 #ifdef __int8_t_defined
12563 #ifdef __uint32_t_defined
12569 # ----------------- done header, emit basic int types -------------
12570 if test "$acx_cv_header_stdint" = stddef.h; then
12571 sed 's/^ *//' >> tmp-stdint.h <<EOF
12575 typedef unsigned $acx_cv_type_int8_t uint8_t;
12580 typedef unsigned $acx_cv_type_int16_t uint16_t;
12585 typedef unsigned $acx_cv_type_int32_t uint32_t;
12590 typedef $acx_cv_type_int8_t int8_t;
12595 typedef $acx_cv_type_int16_t int16_t;
12600 typedef $acx_cv_type_int32_t int32_t;
12603 elif test "$ac_cv_type_u_int32_t" = yes; then
12604 sed 's/^ *//' >> tmp-stdint.h <<EOF
12606 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
12619 typedef u_int8_t uint8_t;
12624 typedef u_int16_t uint16_t;
12629 typedef u_int32_t uint32_t;
12633 sed 's/^ *//' >> tmp-stdint.h <<EOF
12635 /* Some systems have guard macros to prevent redefinitions, define them. */
12657 # ------------- done basic int types, emit int64_t types ------------
12658 if test "$ac_cv_type_uint64_t" = yes; then
12659 sed 's/^ *//' >> tmp-stdint.h <<EOF
12661 /* system headers have good uint64_t and int64_t */
12669 elif test "$ac_cv_type_u_int64_t" = yes; then
12670 sed 's/^ *//' >> tmp-stdint.h <<EOF
12672 /* system headers have an u_int64_t (and int64_t) */
12678 typedef u_int64_t uint64_t;
12681 elif test -n "$acx_cv_type_int64_t"; then
12682 sed 's/^ *//' >> tmp-stdint.h <<EOF
12684 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
12687 typedef $acx_cv_type_int64_t int64_t;
12691 typedef unsigned $acx_cv_type_int64_t uint64_t;
12695 sed 's/^ *//' >> tmp-stdint.h <<EOF
12697 /* some common heuristics for int64_t, using compiler-specific tests */
12698 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
12701 typedef long long int64_t;
12705 typedef unsigned long long uint64_t;
12708 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
12709 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
12710 does not implement __extension__. But that compiler doesn't define
12712 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
12713 # define __extension__
12718 __extension__ typedef long long int64_t;
12722 __extension__ typedef unsigned long long uint64_t;
12725 #elif !defined __STRICT_ANSI__
12726 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
12730 typedef __int64 int64_t;
12734 typedef unsigned __int64 uint64_t;
12736 # endif /* compiler */
12738 #endif /* ANSI version */
12742 # ------------- done int64_t types, emit intptr types ------------
12743 if test "$ac_cv_type_uintptr_t" != yes; then
12744 sed 's/^ *//' >> tmp-stdint.h <<EOF
12746 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
12747 typedef u$acx_cv_type_intptr_t uintptr_t;
12748 typedef $acx_cv_type_intptr_t intptr_t;
12752 # ------------- done intptr types, emit int_least types ------------
12753 if test "$ac_cv_type_int_least32_t" != yes; then
12754 sed 's/^ *//' >> tmp-stdint.h <<EOF
12756 /* Define int_least types */
12757 typedef int8_t int_least8_t;
12758 typedef int16_t int_least16_t;
12759 typedef int32_t int_least32_t;
12761 typedef int64_t int_least64_t;
12764 typedef uint8_t uint_least8_t;
12765 typedef uint16_t uint_least16_t;
12766 typedef uint32_t uint_least32_t;
12768 typedef uint64_t uint_least64_t;
12773 # ------------- done intptr types, emit int_fast types ------------
12774 if test "$ac_cv_type_int_fast32_t" != yes; then
12775 sed 's/^ *//' >> tmp-stdint.h <<EOF
12777 /* Define int_fast types. short is often slow */
12778 typedef int8_t int_fast8_t;
12779 typedef int int_fast16_t;
12780 typedef int32_t int_fast32_t;
12782 typedef int64_t int_fast64_t;
12785 typedef uint8_t uint_fast8_t;
12786 typedef unsigned int uint_fast16_t;
12787 typedef uint32_t uint_fast32_t;
12789 typedef uint64_t uint_fast64_t;
12794 if test "$ac_cv_type_uintmax_t" != yes; then
12795 sed 's/^ *//' >> tmp-stdint.h <<EOF
12797 /* Define intmax based on what we found */
12799 typedef int64_t intmax_t;
12801 typedef long intmax_t;
12804 typedef uint64_t uintmax_t;
12806 typedef unsigned long uintmax_t;
12811 sed 's/^ *//' >> tmp-stdint.h <<EOF
12813 #endif /* GCC_GENERATED_STDINT_H */
12816 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
12819 mv -f tmp-stdint.h gstdint.h
12827 cat >>$CONFIG_STATUS <<\_ACEOF
12829 { (exit 0); exit 0; }
12831 chmod +x $CONFIG_STATUS
12832 ac_clean_files=$ac_clean_files_save
12835 # configure is writing to config.log, and then calls config.status.
12836 # config.status does its own redirection, appending to config.log.
12837 # Unfortunately, on DOS this fails, as config.log is still kept open
12838 # by configure, so config.status won't be able to write to it; its
12839 # output is simply discarded. So we exec the FD to /dev/null,
12840 # effectively closing config.log, so it can be properly (re)opened and
12841 # appended to by config.status. When coming back to configure, we
12842 # need to make the FD available again.
12843 if test "$no_create" != yes; then
12845 ac_config_status_args=
12846 test "$silent" = yes &&
12847 ac_config_status_args="$ac_config_status_args --quiet"
12849 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12851 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12852 # would make configure fail if this is the last instruction.
12853 $ac_cs_success || { (exit 1); exit 1; }