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 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 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 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 _g_switchUse the Linux futex system call
858 permit yes|no [default=yes]
859 --enable-multilib build many library versions (default)
860 --disable-dependency-tracking speeds up one-time build
861 --enable-dependency-tracking do not reject slow dependency extractors
862 --enable-shared=PKGS build shared libraries default=yes
863 --enable-static=PKGS build static libraries default=yes
864 --enable-fast-install=PKGS optimize for fast installation default=yes
865 --disable-libtool-lock avoid locking (might break parallel builds)
866 _g_switchUse thread-local storage
868 --enable-symvers=STYLE enables symbol versioning of the shared library
872 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
873 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
874 --with-gnu-ld assume the C compiler uses GNU ld default=no
875 --with-pic try to use only PIC/non-PIC objects default=use both
877 Some influential environment variables:
878 CC C compiler command
879 CFLAGS C compiler flags
880 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
881 nonstandard directory <lib dir>
882 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
883 headers in a nonstandard directory <include dir>
884 FC Fortran compiler command
885 FCFLAGS Fortran compiler flags
888 Use these variables to override the choices made by `configure' or to help
889 it to find libraries and programs with nonstandard names/locations.
894 if test "$ac_init_help" = "recursive"; then
895 # If there are subdirs, report their specific --help.
897 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
898 test -d $ac_dir || continue
901 if test "$ac_dir" != .; then
902 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
903 # A "../" for each directory in $ac_dir_suffix.
904 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
906 ac_dir_suffix= ac_top_builddir=
910 .) # No --srcdir option. We are building in place.
912 if test -z "$ac_top_builddir"; then
915 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
917 [\\/]* | ?:[\\/]* ) # Absolute path.
918 ac_srcdir=$srcdir$ac_dir_suffix;
919 ac_top_srcdir=$srcdir ;;
921 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
922 ac_top_srcdir=$ac_top_builddir$srcdir ;;
925 # Do not use `cd foo && pwd` to compute absolute paths, because
926 # the directories may not exist.
928 .) ac_abs_builddir="$ac_dir";;
931 .) ac_abs_builddir=`pwd`;;
932 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
933 *) ac_abs_builddir=`pwd`/"$ac_dir";;
936 case $ac_abs_builddir in
937 .) ac_abs_top_builddir=${ac_top_builddir}.;;
939 case ${ac_top_builddir}. in
940 .) ac_abs_top_builddir=$ac_abs_builddir;;
941 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
942 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
945 case $ac_abs_builddir in
946 .) ac_abs_srcdir=$ac_srcdir;;
949 .) ac_abs_srcdir=$ac_abs_builddir;;
950 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
951 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
954 case $ac_abs_builddir in
955 .) ac_abs_top_srcdir=$ac_top_srcdir;;
957 case $ac_top_srcdir in
958 .) ac_abs_top_srcdir=$ac_abs_builddir;;
959 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
960 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
965 # Check for guested configure; otherwise get Cygnus style configure.
966 if test -f $ac_srcdir/configure.gnu; then
968 $SHELL $ac_srcdir/configure.gnu --help=recursive
969 elif test -f $ac_srcdir/configure; then
971 $SHELL $ac_srcdir/configure --help=recursive
972 elif test -f $ac_srcdir/configure.ac ||
973 test -f $ac_srcdir/configure.in; then
977 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
983 test -n "$ac_init_help" && exit 0
984 if $ac_init_version; then
986 GNU OpenMP Runtime Library configure 1.0
987 generated by GNU Autoconf 2.59
989 Copyright (C) 2003 Free Software Foundation, Inc.
990 This configure script is free software; the Free Software Foundation
991 gives unlimited permission to copy, distribute and modify it.
997 This file contains any messages produced by compilers while
998 running configure, to aid debugging if configure makes a mistake.
1000 It was created by GNU OpenMP Runtime Library $as_me 1.0, which was
1001 generated by GNU Autoconf 2.59. Invocation command line was
1012 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1013 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1014 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1015 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1016 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1018 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1019 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1021 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1022 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1023 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1024 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1025 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1026 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1027 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1035 test -z "$as_dir" && as_dir=.
1036 echo "PATH: $as_dir"
1051 # Keep a trace of the command line.
1052 # Strip out --no-create and --no-recursion so they do not pile up.
1053 # Strip out --silent because we don't want to record it for future runs.
1054 # Also quote any args containing shell meta-characters.
1055 # Make two passes to allow for proper duplicate-argument suppression.
1060 ac_must_keep_next=false
1066 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1067 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1068 | -silent | --silent | --silen | --sile | --sil)
1070 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1071 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1074 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1076 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1077 if test $ac_must_keep_next = true; then
1078 ac_must_keep_next=false # Got value, back to normal.
1081 *=* | --config-cache | -C | -disable-* | --disable-* \
1082 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1083 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1084 | -with-* | --with-* | -without-* | --without-* | --x)
1085 case "$ac_configure_args0 " in
1086 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1089 -* ) ac_must_keep_next=true ;;
1092 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1093 # Get rid of the leading space.
1099 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1100 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1102 # When interrupted or exit'd, cleanup temporary files, and complete
1103 # config.log. We remove comments because anyway the quotes in there
1104 # would cause problems or look ugly.
1105 # WARNING: Be sure not to use single quotes in there, as some shells,
1106 # such as our DU 5.0 friend, will then `close' the trap.
1107 trap 'exit_status=$?
1108 # Save into config.log some information that might help in debugging.
1113 ## ---------------- ##
1114 ## Cache variables. ##
1115 ## ---------------- ##
1118 # The following way of writing the cache mishandles newlines in values,
1121 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1124 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1125 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1129 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1136 ## ----------------- ##
1137 ## Output variables. ##
1138 ## ----------------- ##
1141 for ac_var in $ac_subst_vars
1143 eval ac_val=$`echo $ac_var`
1144 echo "$ac_var='"'"'$ac_val'"'"'"
1148 if test -n "$ac_subst_files"; then
1155 for ac_var in $ac_subst_files
1157 eval ac_val=$`echo $ac_var`
1158 echo "$ac_var='"'"'$ac_val'"'"'"
1163 if test -s confdefs.h; then
1170 sed "/^$/d" confdefs.h | sort
1173 test "$ac_signal" != 0 &&
1174 echo "$as_me: caught signal $ac_signal"
1175 echo "$as_me: exit $exit_status"
1177 rm -f core *.core &&
1178 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1181 for ac_signal in 1 2 13 15; do
1182 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1186 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1187 rm -rf conftest* confdefs.h
1188 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1191 # Predefined preprocessor variables.
1193 cat >>confdefs.h <<_ACEOF
1194 #define PACKAGE_NAME "$PACKAGE_NAME"
1198 cat >>confdefs.h <<_ACEOF
1199 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1203 cat >>confdefs.h <<_ACEOF
1204 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1208 cat >>confdefs.h <<_ACEOF
1209 #define PACKAGE_STRING "$PACKAGE_STRING"
1213 cat >>confdefs.h <<_ACEOF
1214 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1218 # Let the site file select an alternate cache file if it wants to.
1219 # Prefer explicitly selected file to automatically selected ones.
1220 if test -z "$CONFIG_SITE"; then
1221 if test "x$prefix" != xNONE; then
1222 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1224 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1227 for ac_site_file in $CONFIG_SITE; do
1228 if test -r "$ac_site_file"; then
1229 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1230 echo "$as_me: loading site script $ac_site_file" >&6;}
1231 sed 's/^/| /' "$ac_site_file" >&5
1236 if test -r "$cache_file"; then
1237 # Some versions of bash will fail to source /dev/null (special
1238 # files actually), so we avoid doing that.
1239 if test -f "$cache_file"; then
1240 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1241 echo "$as_me: loading cache $cache_file" >&6;}
1243 [\\/]* | ?:[\\/]* ) . $cache_file;;
1244 *) . ./$cache_file;;
1248 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1249 echo "$as_me: creating cache $cache_file" >&6;}
1253 # Check that the precious variables saved in the cache have kept the same
1255 ac_cache_corrupted=false
1256 for ac_var in `(set) 2>&1 |
1257 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1258 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1259 eval ac_new_set=\$ac_env_${ac_var}_set
1260 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1261 eval ac_new_val="\$ac_env_${ac_var}_value"
1262 case $ac_old_set,$ac_new_set in
1264 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1265 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1266 ac_cache_corrupted=: ;;
1268 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1269 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1270 ac_cache_corrupted=: ;;
1273 if test "x$ac_old_val" != "x$ac_new_val"; then
1274 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1275 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1276 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1277 echo "$as_me: former value: $ac_old_val" >&2;}
1278 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1279 echo "$as_me: current value: $ac_new_val" >&2;}
1280 ac_cache_corrupted=:
1283 # Pass precious variables to config.status.
1284 if test "$ac_new_set" = set; then
1286 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1287 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1288 *) ac_arg=$ac_var=$ac_new_val ;;
1290 case " $ac_configure_args " in
1291 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1292 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1296 if $ac_cache_corrupted; then
1297 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1298 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1299 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1300 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1301 { (exit 1); exit 1; }; }
1305 ac_cpp='$CPP $CPPFLAGS'
1306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1336 ac_config_headers="$ac_config_headers config.h"
1343 echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
1344 echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6
1345 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1346 if test "${enable_version_specific_runtime_libs+set}" = set; then
1347 enableval="$enable_version_specific_runtime_libs"
1349 case "$enableval" in
1351 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific-runtime-libs" >&5
1352 echo "$as_me: error: Unknown argument to enable/disable version-specific-runtime-libs" >&2;}
1353 { (exit 1); exit 1; }; } ;;
1357 enable_version_specific_runtime_libs=no
1360 echo "$as_me:$LINENO: result: $enable_version_specific_runtime_libs" >&5
1361 echo "${ECHO_T}$enable_version_specific_runtime_libs" >&6
1363 echo "$as_me:$LINENO: checking for --enable-linux-futex" >&5
1364 echo $ECHO_N "checking for --enable-linux-futex... $ECHO_C" >&6
1365 # Check whether --enable-linux-futex or --disable-linux-futex was given.
1366 if test "${enable_linux_futex+set}" = set; then
1367 enableval="$enable_linux_futex"
1369 case "$enableval" in
1371 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable linux-futex must be yes or no" >&5
1372 echo "$as_me: error: Argument to enable/disable linux-futex must be yes or no" >&2;}
1373 { (exit 1); exit 1; }; } ;;
1377 enable_linux_futex=yes
1380 echo "$as_me:$LINENO: result: $enable_linux_futex" >&5
1381 echo "${ECHO_T}$enable_linux_futex" >&6
1386 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
1388 # You will slowly go insane if you do not grok the following fact: when
1389 # building this library, the top-level /target/ becomes the library's /host/.
1391 # configure then causes --target to default to --host, exactly like any
1392 # other package using autoconf. Therefore, 'target' and 'host' will
1393 # always be the same. This makes sense both for native and cross compilers
1394 # just think about it for a little while. :-)
1396 # Also, if this library is being configured as part of a cross compiler, the
1397 # top-level configure script will pass the "real" host as $with_cross_host.
1399 # Do not delete or change the following two lines. For why, see
1400 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
1402 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1403 if test -f $ac_dir/install-sh; then
1405 ac_install_sh="$ac_aux_dir/install-sh -c"
1407 elif test -f $ac_dir/install.sh; then
1409 ac_install_sh="$ac_aux_dir/install.sh -c"
1411 elif test -f $ac_dir/shtool; then
1413 ac_install_sh="$ac_aux_dir/shtool install -c"
1417 if test -z "$ac_aux_dir"; then
1418 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1419 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1420 { (exit 1); exit 1; }; }
1422 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1423 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1424 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1426 # Make sure we can run config.sub.
1427 $ac_config_sub sun4 >/dev/null 2>&1 ||
1428 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1429 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1430 { (exit 1); exit 1; }; }
1432 echo "$as_me:$LINENO: checking build system type" >&5
1433 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1434 if test "${ac_cv_build+set}" = set; then
1435 echo $ECHO_N "(cached) $ECHO_C" >&6
1437 ac_cv_build_alias=$build_alias
1438 test -z "$ac_cv_build_alias" &&
1439 ac_cv_build_alias=`$ac_config_guess`
1440 test -z "$ac_cv_build_alias" &&
1441 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1442 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1443 { (exit 1); exit 1; }; }
1444 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1445 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1446 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1447 { (exit 1); exit 1; }; }
1450 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1451 echo "${ECHO_T}$ac_cv_build" >&6
1453 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1454 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1455 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1458 echo "$as_me:$LINENO: checking host system type" >&5
1459 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1460 if test "${ac_cv_host+set}" = set; then
1461 echo $ECHO_N "(cached) $ECHO_C" >&6
1463 ac_cv_host_alias=$host_alias
1464 test -z "$ac_cv_host_alias" &&
1465 ac_cv_host_alias=$ac_cv_build_alias
1466 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1467 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1468 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1469 { (exit 1); exit 1; }; }
1472 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1473 echo "${ECHO_T}$ac_cv_host" >&6
1475 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1476 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1477 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1480 echo "$as_me:$LINENO: checking target system type" >&5
1481 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1482 if test "${ac_cv_target+set}" = set; then
1483 echo $ECHO_N "(cached) $ECHO_C" >&6
1485 ac_cv_target_alias=$target_alias
1486 test "x$ac_cv_target_alias" = "x" &&
1487 ac_cv_target_alias=$ac_cv_host_alias
1488 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1489 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1490 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1491 { (exit 1); exit 1; }; }
1494 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1495 echo "${ECHO_T}$ac_cv_target" >&6
1496 target=$ac_cv_target
1497 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1498 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1499 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1502 # The aliases save the names the user supplied, while $host etc.
1503 # will get canonicalized.
1504 test -n "$target_alias" &&
1505 test "$program_prefix$program_suffix$program_transform_name" = \
1507 program_prefix=${target_alias}-
1508 target_alias=${target_alias-$host_alias}
1510 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
1511 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
1512 # 1.9.0: minimum required version
1513 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
1514 # of other PACKAGE_* variables will, however, and there's nothing
1515 # we can do about that; they come from AC_INIT).
1516 # foreign: we don't follow the normal rules for GNU packages (no COPYING
1517 # file in the top srcdir, etc, etc), so stop complaining.
1518 # no-dependencies: turns off auto dependency generation (just for now)
1519 # -Wall: turns on all automake warnings...
1520 # -Wno-portability: ...except this one, since GNU make is required.
1521 # -Wno-override: ... and this one, since we do want this in testsuite.
1522 am__api_version="1.9"
1523 # Find a good install program. We prefer a C program (faster),
1524 # so one script is as good as another. But avoid the broken or
1525 # incompatible versions:
1526 # SysV /etc/install, /usr/sbin/install
1527 # SunOS /usr/etc/install
1528 # IRIX /sbin/install
1530 # AmigaOS /C/install, which installs bootblocks on floppy discs
1531 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1532 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1533 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1534 # OS/2's system install, which has a completely different semantic
1535 # ./install, which can be erroneously created by make from ./install.sh.
1536 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1537 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1538 if test -z "$INSTALL"; then
1539 if test "${ac_cv_path_install+set}" = set; then
1540 echo $ECHO_N "(cached) $ECHO_C" >&6
1542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1546 test -z "$as_dir" && as_dir=.
1547 # Account for people who put trailing slashes in PATH elements.
1549 ./ | .// | /cC/* | \
1550 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1551 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1554 # OSF1 and SCO ODT 3.0 have their own names for install.
1555 # Don't use installbsd from OSF since it installs stuff as root
1557 for ac_prog in ginstall scoinst install; do
1558 for ac_exec_ext in '' $ac_executable_extensions; do
1559 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1560 if test $ac_prog = install &&
1561 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1562 # AIX install. It has an incompatible calling convention.
1564 elif test $ac_prog = install &&
1565 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1566 # program-specific install script used by HP pwplus--don't use.
1569 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1581 if test "${ac_cv_path_install+set}" = set; then
1582 INSTALL=$ac_cv_path_install
1584 # As a last resort, use the slow shell script. We don't cache a
1585 # path for INSTALL within a source directory, because that will
1586 # break other packages using the cache if that directory is
1587 # removed, or if the path is relative.
1588 INSTALL=$ac_install_sh
1591 echo "$as_me:$LINENO: result: $INSTALL" >&5
1592 echo "${ECHO_T}$INSTALL" >&6
1594 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1595 # It thinks the first close brace ends the variable substitution.
1596 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1598 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1600 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1602 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1603 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1606 echo timestamp > conftest.file
1607 # Do `set' in a subshell so we don't clobber the current shell's
1608 # arguments. Must try -L first in case configure is actually a
1609 # symlink; some systems play weird games with the mod time of symlinks
1610 # (eg FreeBSD returns the mod time of the symlink's containing
1613 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1614 if test "$*" = "X"; then
1616 set X `ls -t $srcdir/configure conftest.file`
1619 if test "$*" != "X $srcdir/configure conftest.file" \
1620 && test "$*" != "X conftest.file $srcdir/configure"; then
1622 # If neither matched, then we have a broken ls. This can happen
1623 # if, for instance, CONFIG_SHELL is bash and it inherits a
1624 # broken ls alias from the environment. This has actually
1625 # happened. Such a system could not be considered "sane".
1626 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1627 alias in your environment" >&5
1628 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1629 alias in your environment" >&2;}
1630 { (exit 1); exit 1; }; }
1633 test "$2" = conftest.file
1639 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1640 Check your system clock" >&5
1641 echo "$as_me: error: newly created file is older than distributed files!
1642 Check your system clock" >&2;}
1643 { (exit 1); exit 1; }; }
1645 echo "$as_me:$LINENO: result: yes" >&5
1646 echo "${ECHO_T}yes" >&6
1647 test "$program_prefix" != NONE &&
1648 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1649 # Use a double $ so make ignores it.
1650 test "$program_suffix" != NONE &&
1651 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1652 # Double any \ or $. echo might interpret backslashes.
1653 # By default was `s,x,x', remove it if useless.
1654 cat <<\_ACEOF >conftest.sed
1655 s/[\\$]/&&/g;s/;s,x,x,$//
1657 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1660 # expand $ac_aux_dir to an absolute path
1661 am_aux_dir=`cd $ac_aux_dir && pwd`
1663 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1664 # Use eval to expand $SHELL
1665 if eval "$MISSING --run true"; then
1666 am_missing_run="$MISSING --run "
1669 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1670 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1673 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1674 # We used to keeping the `.' as first argument, in order to
1675 # allow $(mkdir_p) to be used without argument. As in
1676 # $(mkdir_p) $(somedir)
1677 # where $(somedir) is conditionally defined. However this is wrong
1679 # 1. if the package is installed by a user who cannot write `.'
1680 # make install will fail,
1681 # 2. the above comment should most certainly read
1682 # $(mkdir_p) $(DESTDIR)$(somedir)
1683 # so it does not work when $(somedir) is undefined and
1684 # $(DESTDIR) is not.
1685 # To support the latter case, we have to write
1686 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1687 # so the `.' trick is pointless.
1688 mkdir_p='mkdir -p --'
1690 # On NextStep and OpenStep, the `mkdir' command does not
1691 # recognize any option. It will interpret all options as
1692 # directories to create, and then abort because `.' already
1694 for d in ./-p ./--version;
1696 test -d $d && rmdir $d
1698 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1699 if test -f "$ac_aux_dir/mkinstalldirs"; then
1700 mkdir_p='$(mkinstalldirs)'
1702 mkdir_p='$(install_sh) -d'
1706 for ac_prog in gawk mawk nawk awk
1708 # Extract the first word of "$ac_prog", so it can be a program name with args.
1709 set dummy $ac_prog; ac_word=$2
1710 echo "$as_me:$LINENO: checking for $ac_word" >&5
1711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1712 if test "${ac_cv_prog_AWK+set}" = set; then
1713 echo $ECHO_N "(cached) $ECHO_C" >&6
1715 if test -n "$AWK"; then
1716 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1722 test -z "$as_dir" && as_dir=.
1723 for ac_exec_ext in '' $ac_executable_extensions; do
1724 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1725 ac_cv_prog_AWK="$ac_prog"
1726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1735 if test -n "$AWK"; then
1736 echo "$as_me:$LINENO: result: $AWK" >&5
1737 echo "${ECHO_T}$AWK" >&6
1739 echo "$as_me:$LINENO: result: no" >&5
1740 echo "${ECHO_T}no" >&6
1743 test -n "$AWK" && break
1746 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1747 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1748 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1749 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1750 echo $ECHO_N "(cached) $ECHO_C" >&6
1752 cat >conftest.make <<\_ACEOF
1754 @echo 'ac_maketemp="$(MAKE)"'
1756 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1757 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1758 if test -n "$ac_maketemp"; then
1759 eval ac_cv_prog_make_${ac_make}_set=yes
1761 eval ac_cv_prog_make_${ac_make}_set=no
1765 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1766 echo "$as_me:$LINENO: result: yes" >&5
1767 echo "${ECHO_T}yes" >&6
1770 echo "$as_me:$LINENO: result: no" >&5
1771 echo "${ECHO_T}no" >&6
1772 SET_MAKE="MAKE=${MAKE-make}"
1775 rm -rf .tst 2>/dev/null
1776 mkdir .tst 2>/dev/null
1777 if test -d .tst; then
1782 rmdir .tst 2>/dev/null
1784 # test to see if srcdir already configured
1785 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1786 test -f $srcdir/config.status; then
1787 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1788 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1789 { (exit 1); exit 1; }; }
1792 # test whether we have cygpath
1793 if test -z "$CYGPATH_W"; then
1794 if (cygpath --version) >/dev/null 2>/dev/null; then
1795 CYGPATH_W='cygpath -w'
1802 # Define the identity of the package.
1807 cat >>confdefs.h <<_ACEOF
1808 #define PACKAGE "$PACKAGE"
1812 cat >>confdefs.h <<_ACEOF
1813 #define VERSION "$VERSION"
1816 # Some tools Automake needs.
1818 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1821 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1824 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1827 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1830 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1832 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1834 # Installed binaries are usually stripped using `strip' when the user
1835 # run `make install-strip'. However `strip' might not be the right
1836 # tool to use in cross-compilation environments, therefore Automake
1837 # will honor the `STRIP' environment variable to overrule this program.
1838 if test "$cross_compiling" != no; then
1839 if test -n "$ac_tool_prefix"; then
1840 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1841 set dummy ${ac_tool_prefix}strip; ac_word=$2
1842 echo "$as_me:$LINENO: checking for $ac_word" >&5
1843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1844 if test "${ac_cv_prog_STRIP+set}" = set; then
1845 echo $ECHO_N "(cached) $ECHO_C" >&6
1847 if test -n "$STRIP"; then
1848 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1854 test -z "$as_dir" && as_dir=.
1855 for ac_exec_ext in '' $ac_executable_extensions; do
1856 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1857 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1866 STRIP=$ac_cv_prog_STRIP
1867 if test -n "$STRIP"; then
1868 echo "$as_me:$LINENO: result: $STRIP" >&5
1869 echo "${ECHO_T}$STRIP" >&6
1871 echo "$as_me:$LINENO: result: no" >&5
1872 echo "${ECHO_T}no" >&6
1876 if test -z "$ac_cv_prog_STRIP"; then
1878 # Extract the first word of "strip", so it can be a program name with args.
1879 set dummy strip; ac_word=$2
1880 echo "$as_me:$LINENO: checking for $ac_word" >&5
1881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1882 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1883 echo $ECHO_N "(cached) $ECHO_C" >&6
1885 if test -n "$ac_ct_STRIP"; then
1886 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1892 test -z "$as_dir" && as_dir=.
1893 for ac_exec_ext in '' $ac_executable_extensions; do
1894 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1895 ac_cv_prog_ac_ct_STRIP="strip"
1896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1902 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1905 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1906 if test -n "$ac_ct_STRIP"; then
1907 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1908 echo "${ECHO_T}$ac_ct_STRIP" >&6
1910 echo "$as_me:$LINENO: result: no" >&5
1911 echo "${ECHO_T}no" >&6
1916 STRIP="$ac_cv_prog_STRIP"
1920 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1922 # We need awk for the "check" target. The system "awk" is bad on
1924 # Always define AMTAR for backward compatibility.
1926 AMTAR=${AMTAR-"${am_missing_run}tar"}
1928 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1934 # Default to --enable-multilib
1935 # Check whether --enable-multilib or --disable-multilib was given.
1936 if test "${enable_multilib+set}" = set; then
1937 enableval="$enable_multilib"
1938 case "$enableval" in
1939 yes) multilib=yes ;;
1941 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1942 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1943 { (exit 1); exit 1; }; } ;;
1949 # We may get other options which we leave undocumented:
1950 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1951 # See config-ml.in if you want the gory details.
1953 if test "$srcdir" = "."; then
1954 if test "$with_target_subdir" != "."; then
1955 multi_basedir="$srcdir/$with_multisrctop../.."
1957 multi_basedir="$srcdir/$with_multisrctop.."
1960 multi_basedir="$srcdir/.."
1964 ac_config_commands="$ac_config_commands default-1"
1967 # Calculate toolexeclibdir
1968 # Also toolexecdir, though it's only used in toolexeclibdir
1969 case ${enable_version_specific_runtime_libs} in
1971 # Need the gcc compiler version to know where to install libraries
1972 # and header files if --enable-version-specific-runtime-libs option
1974 toolexecdir='$(libdir)/gcc/$(target_alias)'
1975 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
1978 if test -n "$with_cross_host" &&
1979 test x"$with_cross_host" != x"no"; then
1980 # Install a library built with a cross compiler in tooldir, not libdir.
1981 toolexecdir='$(exec_prefix)/$(target_alias)'
1982 toolexeclibdir='$(toolexecdir)/lib'
1984 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
1985 toolexeclibdir='$(libdir)'
1987 multi_os_directory=`$CC -print-multi-os-directory`
1988 case $multi_os_directory in
1989 .) ;; # Avoid trailing /.
1990 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
1997 # Check the compiler.
1998 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
1999 # We must force CC to /not/ be precious variables; otherwise
2000 # the wrong, non-multilib-adjusted value will be used in multilibs.
2001 # As a side effect, we have to subst CFLAGS ourselves.
2006 ac_cpp='$CPP $CPPFLAGS'
2007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2010 if test -n "$ac_tool_prefix"; then
2011 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2012 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2013 echo "$as_me:$LINENO: checking for $ac_word" >&5
2014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2015 if test "${ac_cv_prog_CC+set}" = set; then
2016 echo $ECHO_N "(cached) $ECHO_C" >&6
2018 if test -n "$CC"; then
2019 ac_cv_prog_CC="$CC" # Let the user override the test.
2021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2025 test -z "$as_dir" && as_dir=.
2026 for ac_exec_ext in '' $ac_executable_extensions; do
2027 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2028 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2038 if test -n "$CC"; then
2039 echo "$as_me:$LINENO: result: $CC" >&5
2040 echo "${ECHO_T}$CC" >&6
2042 echo "$as_me:$LINENO: result: no" >&5
2043 echo "${ECHO_T}no" >&6
2047 if test -z "$ac_cv_prog_CC"; then
2049 # Extract the first word of "gcc", so it can be a program name with args.
2050 set dummy gcc; ac_word=$2
2051 echo "$as_me:$LINENO: checking for $ac_word" >&5
2052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2053 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2054 echo $ECHO_N "(cached) $ECHO_C" >&6
2056 if test -n "$ac_ct_CC"; then
2057 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2063 test -z "$as_dir" && as_dir=.
2064 for ac_exec_ext in '' $ac_executable_extensions; do
2065 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2066 ac_cv_prog_ac_ct_CC="gcc"
2067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2075 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2076 if test -n "$ac_ct_CC"; then
2077 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2078 echo "${ECHO_T}$ac_ct_CC" >&6
2080 echo "$as_me:$LINENO: result: no" >&5
2081 echo "${ECHO_T}no" >&6
2089 if test -z "$CC"; then
2090 if test -n "$ac_tool_prefix"; then
2091 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2092 set dummy ${ac_tool_prefix}cc; ac_word=$2
2093 echo "$as_me:$LINENO: checking for $ac_word" >&5
2094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2095 if test "${ac_cv_prog_CC+set}" = set; then
2096 echo $ECHO_N "(cached) $ECHO_C" >&6
2098 if test -n "$CC"; then
2099 ac_cv_prog_CC="$CC" # Let the user override the test.
2101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2105 test -z "$as_dir" && as_dir=.
2106 for ac_exec_ext in '' $ac_executable_extensions; do
2107 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2108 ac_cv_prog_CC="${ac_tool_prefix}cc"
2109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2118 if test -n "$CC"; then
2119 echo "$as_me:$LINENO: result: $CC" >&5
2120 echo "${ECHO_T}$CC" >&6
2122 echo "$as_me:$LINENO: result: no" >&5
2123 echo "${ECHO_T}no" >&6
2127 if test -z "$ac_cv_prog_CC"; then
2129 # Extract the first word of "cc", so it can be a program name with args.
2130 set dummy cc; ac_word=$2
2131 echo "$as_me:$LINENO: checking for $ac_word" >&5
2132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2133 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2134 echo $ECHO_N "(cached) $ECHO_C" >&6
2136 if test -n "$ac_ct_CC"; then
2137 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2143 test -z "$as_dir" && as_dir=.
2144 for ac_exec_ext in '' $ac_executable_extensions; do
2145 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2146 ac_cv_prog_ac_ct_CC="cc"
2147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2155 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2156 if test -n "$ac_ct_CC"; then
2157 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2158 echo "${ECHO_T}$ac_ct_CC" >&6
2160 echo "$as_me:$LINENO: result: no" >&5
2161 echo "${ECHO_T}no" >&6
2170 if test -z "$CC"; then
2171 # Extract the first word of "cc", so it can be a program name with args.
2172 set dummy cc; ac_word=$2
2173 echo "$as_me:$LINENO: checking for $ac_word" >&5
2174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2175 if test "${ac_cv_prog_CC+set}" = set; then
2176 echo $ECHO_N "(cached) $ECHO_C" >&6
2178 if test -n "$CC"; then
2179 ac_cv_prog_CC="$CC" # Let the user override the test.
2182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2186 test -z "$as_dir" && as_dir=.
2187 for ac_exec_ext in '' $ac_executable_extensions; do
2188 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2189 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2190 ac_prog_rejected=yes
2194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2200 if test $ac_prog_rejected = yes; then
2201 # We found a bogon in the path, so make sure we never use it.
2202 set dummy $ac_cv_prog_CC
2204 if test $# != 0; then
2205 # We chose a different compiler from the bogus one.
2206 # However, it has the same basename, so the bogon will be chosen
2207 # first if we set CC to just the basename; use the full file name.
2209 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2215 if test -n "$CC"; then
2216 echo "$as_me:$LINENO: result: $CC" >&5
2217 echo "${ECHO_T}$CC" >&6
2219 echo "$as_me:$LINENO: result: no" >&5
2220 echo "${ECHO_T}no" >&6
2224 if test -z "$CC"; then
2225 if test -n "$ac_tool_prefix"; then
2228 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2229 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2230 echo "$as_me:$LINENO: checking for $ac_word" >&5
2231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2232 if test "${ac_cv_prog_CC+set}" = set; then
2233 echo $ECHO_N "(cached) $ECHO_C" >&6
2235 if test -n "$CC"; then
2236 ac_cv_prog_CC="$CC" # Let the user override the test.
2238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2242 test -z "$as_dir" && as_dir=.
2243 for ac_exec_ext in '' $ac_executable_extensions; do
2244 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2245 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2255 if test -n "$CC"; then
2256 echo "$as_me:$LINENO: result: $CC" >&5
2257 echo "${ECHO_T}$CC" >&6
2259 echo "$as_me:$LINENO: result: no" >&5
2260 echo "${ECHO_T}no" >&6
2263 test -n "$CC" && break
2266 if test -z "$CC"; then
2270 # Extract the first word of "$ac_prog", so it can be a program name with args.
2271 set dummy $ac_prog; ac_word=$2
2272 echo "$as_me:$LINENO: checking for $ac_word" >&5
2273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2274 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2275 echo $ECHO_N "(cached) $ECHO_C" >&6
2277 if test -n "$ac_ct_CC"; then
2278 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2284 test -z "$as_dir" && as_dir=.
2285 for ac_exec_ext in '' $ac_executable_extensions; do
2286 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2287 ac_cv_prog_ac_ct_CC="$ac_prog"
2288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2296 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2297 if test -n "$ac_ct_CC"; then
2298 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2299 echo "${ECHO_T}$ac_ct_CC" >&6
2301 echo "$as_me:$LINENO: result: no" >&5
2302 echo "${ECHO_T}no" >&6
2305 test -n "$ac_ct_CC" && break
2314 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2315 See \`config.log' for more details." >&5
2316 echo "$as_me: error: no acceptable C compiler found in \$PATH
2317 See \`config.log' for more details." >&2;}
2318 { (exit 1); exit 1; }; }
2320 # Provide some information about the compiler.
2321 echo "$as_me:$LINENO:" \
2322 "checking for C compiler version" >&5
2323 ac_compiler=`set X $ac_compile; echo $2`
2324 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2325 (eval $ac_compiler --version </dev/null >&5) 2>&5
2327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328 (exit $ac_status); }
2329 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2330 (eval $ac_compiler -v </dev/null >&5) 2>&5
2332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333 (exit $ac_status); }
2334 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2335 (eval $ac_compiler -V </dev/null >&5) 2>&5
2337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338 (exit $ac_status); }
2340 cat >conftest.$ac_ext <<_ACEOF
2343 cat confdefs.h >>conftest.$ac_ext
2344 cat >>conftest.$ac_ext <<_ACEOF
2345 /* end confdefs.h. */
2355 ac_clean_files_save=$ac_clean_files
2356 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2357 # Try to create an executable without -o first, disregard a.out.
2358 # It will help us diagnose broken compilers, and finding out an intuition
2360 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2361 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2362 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2363 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2364 (eval $ac_link_default) 2>&5
2366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2367 (exit $ac_status); }; then
2368 # Find the output, starting from the most likely. This scheme is
2369 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2372 # Be careful to initialize this variable, since it used to be cached.
2373 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2375 # b.out is created by i960 compilers.
2376 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2378 test -f "$ac_file" || continue
2380 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2383 # This is the source file.
2386 # We found the default executable, but exeext='' is most
2390 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2391 # FIXME: I believe we export ac_cv_exeext for Libtool,
2392 # but it would be cool to find out if it's true. Does anybody
2393 # maintain Libtool? --akim.
2401 echo "$as_me: failed program was:" >&5
2402 sed 's/^/| /' conftest.$ac_ext >&5
2404 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2405 See \`config.log' for more details." >&5
2406 echo "$as_me: error: C compiler cannot create executables
2407 See \`config.log' for more details." >&2;}
2408 { (exit 77); exit 77; }; }
2411 ac_exeext=$ac_cv_exeext
2412 echo "$as_me:$LINENO: result: $ac_file" >&5
2413 echo "${ECHO_T}$ac_file" >&6
2415 # Check the compiler produces executables we can run. If not, either
2416 # the compiler is broken, or we cross compile.
2417 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2418 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2419 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2420 # If not cross compiling, check that we can run a simple program.
2421 if test "$cross_compiling" != yes; then
2422 if { ac_try='./$ac_file'
2423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427 (exit $ac_status); }; }; then
2430 if test "$cross_compiling" = maybe; then
2433 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2434 If you meant to cross compile, use \`--host'.
2435 See \`config.log' for more details." >&5
2436 echo "$as_me: error: cannot run C compiled programs.
2437 If you meant to cross compile, use \`--host'.
2438 See \`config.log' for more details." >&2;}
2439 { (exit 1); exit 1; }; }
2443 echo "$as_me:$LINENO: result: yes" >&5
2444 echo "${ECHO_T}yes" >&6
2446 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2447 ac_clean_files=$ac_clean_files_save
2448 # Check the compiler produces executables we can run. If not, either
2449 # the compiler is broken, or we cross compile.
2450 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2451 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2452 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2453 echo "${ECHO_T}$cross_compiling" >&6
2455 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2456 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2458 (eval $ac_link) 2>&5
2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461 (exit $ac_status); }; then
2462 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2463 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2464 # work properly (i.e., refer to `conftest.exe'), while it won't with
2466 for ac_file in conftest.exe conftest conftest.*; do
2467 test -f "$ac_file" || continue
2469 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2470 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2477 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2478 See \`config.log' for more details." >&5
2479 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2480 See \`config.log' for more details." >&2;}
2481 { (exit 1); exit 1; }; }
2484 rm -f conftest$ac_cv_exeext
2485 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2486 echo "${ECHO_T}$ac_cv_exeext" >&6
2488 rm -f conftest.$ac_ext
2489 EXEEXT=$ac_cv_exeext
2491 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2492 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2493 if test "${ac_cv_objext+set}" = set; then
2494 echo $ECHO_N "(cached) $ECHO_C" >&6
2496 cat >conftest.$ac_ext <<_ACEOF
2499 cat confdefs.h >>conftest.$ac_ext
2500 cat >>conftest.$ac_ext <<_ACEOF
2501 /* end confdefs.h. */
2511 rm -f conftest.o conftest.obj
2512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2513 (eval $ac_compile) 2>&5
2515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516 (exit $ac_status); }; then
2517 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2519 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2520 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2525 echo "$as_me: failed program was:" >&5
2526 sed 's/^/| /' conftest.$ac_ext >&5
2528 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2529 See \`config.log' for more details." >&5
2530 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2531 See \`config.log' for more details." >&2;}
2532 { (exit 1); exit 1; }; }
2535 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2537 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2538 echo "${ECHO_T}$ac_cv_objext" >&6
2539 OBJEXT=$ac_cv_objext
2541 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2542 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2543 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2544 echo $ECHO_N "(cached) $ECHO_C" >&6
2546 cat >conftest.$ac_ext <<_ACEOF
2549 cat confdefs.h >>conftest.$ac_ext
2550 cat >>conftest.$ac_ext <<_ACEOF
2551 /* end confdefs.h. */
2564 rm -f conftest.$ac_objext
2565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2566 (eval $ac_compile) 2>conftest.er1
2568 grep -v '^ *+' conftest.er1 >conftest.err
2570 cat conftest.err >&5
2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572 (exit $ac_status); } &&
2573 { ac_try='test -z "$ac_c_werror_flag"
2574 || test ! -s conftest.err'
2575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579 (exit $ac_status); }; } &&
2580 { ac_try='test -s conftest.$ac_objext'
2581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585 (exit $ac_status); }; }; then
2588 echo "$as_me: failed program was:" >&5
2589 sed 's/^/| /' conftest.$ac_ext >&5
2593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2594 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2597 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2598 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2599 GCC=`test $ac_compiler_gnu = yes && echo yes`
2600 ac_test_CFLAGS=${CFLAGS+set}
2601 ac_save_CFLAGS=$CFLAGS
2603 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2604 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2605 if test "${ac_cv_prog_cc_g+set}" = set; then
2606 echo $ECHO_N "(cached) $ECHO_C" >&6
2608 cat >conftest.$ac_ext <<_ACEOF
2611 cat confdefs.h >>conftest.$ac_ext
2612 cat >>conftest.$ac_ext <<_ACEOF
2613 /* end confdefs.h. */
2623 rm -f conftest.$ac_objext
2624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2625 (eval $ac_compile) 2>conftest.er1
2627 grep -v '^ *+' conftest.er1 >conftest.err
2629 cat conftest.err >&5
2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 (exit $ac_status); } &&
2632 { ac_try='test -z "$ac_c_werror_flag"
2633 || test ! -s conftest.err'
2634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638 (exit $ac_status); }; } &&
2639 { ac_try='test -s conftest.$ac_objext'
2640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644 (exit $ac_status); }; }; then
2647 echo "$as_me: failed program was:" >&5
2648 sed 's/^/| /' conftest.$ac_ext >&5
2652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2654 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2655 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2656 if test "$ac_test_CFLAGS" = set; then
2657 CFLAGS=$ac_save_CFLAGS
2658 elif test $ac_cv_prog_cc_g = yes; then
2659 if test "$GCC" = yes; then
2665 if test "$GCC" = yes; then
2671 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2672 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2673 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2674 echo $ECHO_N "(cached) $ECHO_C" >&6
2676 ac_cv_prog_cc_stdc=no
2678 cat >conftest.$ac_ext <<_ACEOF
2681 cat confdefs.h >>conftest.$ac_ext
2682 cat >>conftest.$ac_ext <<_ACEOF
2683 /* end confdefs.h. */
2686 #include <sys/types.h>
2687 #include <sys/stat.h>
2688 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2689 struct buf { int x; };
2690 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2691 static char *e (p, i)
2697 static char *f (char * (*g) (char **, int), char **p, ...)
2702 s = g (p, va_arg (v,int));
2707 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2708 function prototypes and stuff, but not '\xHH' hex character constants.
2709 These don't provoke an error unfortunately, instead are silently treated
2710 as 'x'. The following induces an error, until -std1 is added to get
2711 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2712 array size at least. It's necessary to write '\x00'==0 to get something
2713 that's true only with -std1. */
2714 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2716 int test (int i, double x);
2717 struct s1 {int (*f) (int a);};
2718 struct s2 {int (*f) (double a);};
2719 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2725 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2730 # Don't try gcc -ansi; that turns off useful extensions and
2731 # breaks some systems' header files.
2732 # AIX -qlanglvl=ansi
2733 # Ultrix and OSF/1 -std1
2734 # HP-UX 10.20 and later -Ae
2735 # HP-UX older versions -Aa -D_HPUX_SOURCE
2736 # SVR4 -Xc -D__EXTENSIONS__
2737 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2739 CC="$ac_save_CC $ac_arg"
2740 rm -f conftest.$ac_objext
2741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2742 (eval $ac_compile) 2>conftest.er1
2744 grep -v '^ *+' conftest.er1 >conftest.err
2746 cat conftest.err >&5
2747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748 (exit $ac_status); } &&
2749 { ac_try='test -z "$ac_c_werror_flag"
2750 || test ! -s conftest.err'
2751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755 (exit $ac_status); }; } &&
2756 { ac_try='test -s conftest.$ac_objext'
2757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761 (exit $ac_status); }; }; then
2762 ac_cv_prog_cc_stdc=$ac_arg
2765 echo "$as_me: failed program was:" >&5
2766 sed 's/^/| /' conftest.$ac_ext >&5
2769 rm -f conftest.err conftest.$ac_objext
2771 rm -f conftest.$ac_ext conftest.$ac_objext
2776 case "x$ac_cv_prog_cc_stdc" in
2778 echo "$as_me:$LINENO: result: none needed" >&5
2779 echo "${ECHO_T}none needed" >&6 ;;
2781 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2782 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2783 CC="$CC $ac_cv_prog_cc_stdc" ;;
2786 # Some people use a C++ compiler to compile C. Since we use `exit',
2787 # in C++ we need to declare it. In case someone uses the same compiler
2788 # for both compiling C and C++ we need to have the C++ compiler decide
2789 # the declaration of exit, since it's the most demanding environment.
2790 cat >conftest.$ac_ext <<_ACEOF
2795 rm -f conftest.$ac_objext
2796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2797 (eval $ac_compile) 2>conftest.er1
2799 grep -v '^ *+' conftest.er1 >conftest.err
2801 cat conftest.err >&5
2802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803 (exit $ac_status); } &&
2804 { ac_try='test -z "$ac_c_werror_flag"
2805 || test ! -s conftest.err'
2806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810 (exit $ac_status); }; } &&
2811 { ac_try='test -s conftest.$ac_objext'
2812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816 (exit $ac_status); }; }; then
2817 for ac_declaration in \
2819 'extern "C" void std::exit (int) throw (); using std::exit;' \
2820 'extern "C" void std::exit (int); using std::exit;' \
2821 'extern "C" void exit (int) throw ();' \
2822 'extern "C" void exit (int);' \
2825 cat >conftest.$ac_ext <<_ACEOF
2828 cat confdefs.h >>conftest.$ac_ext
2829 cat >>conftest.$ac_ext <<_ACEOF
2830 /* end confdefs.h. */
2841 rm -f conftest.$ac_objext
2842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2843 (eval $ac_compile) 2>conftest.er1
2845 grep -v '^ *+' conftest.er1 >conftest.err
2847 cat conftest.err >&5
2848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849 (exit $ac_status); } &&
2850 { ac_try='test -z "$ac_c_werror_flag"
2851 || test ! -s conftest.err'
2852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856 (exit $ac_status); }; } &&
2857 { ac_try='test -s conftest.$ac_objext'
2858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862 (exit $ac_status); }; }; then
2865 echo "$as_me: failed program was:" >&5
2866 sed 's/^/| /' conftest.$ac_ext >&5
2870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2871 cat >conftest.$ac_ext <<_ACEOF
2874 cat confdefs.h >>conftest.$ac_ext
2875 cat >>conftest.$ac_ext <<_ACEOF
2876 /* end confdefs.h. */
2886 rm -f conftest.$ac_objext
2887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2888 (eval $ac_compile) 2>conftest.er1
2890 grep -v '^ *+' conftest.er1 >conftest.err
2892 cat conftest.err >&5
2893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894 (exit $ac_status); } &&
2895 { ac_try='test -z "$ac_c_werror_flag"
2896 || test ! -s conftest.err'
2897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901 (exit $ac_status); }; } &&
2902 { ac_try='test -s conftest.$ac_objext'
2903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907 (exit $ac_status); }; }; then
2910 echo "$as_me: failed program was:" >&5
2911 sed 's/^/| /' conftest.$ac_ext >&5
2914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2917 if test -n "$ac_declaration"; then
2918 echo '#ifdef __cplusplus' >>confdefs.h
2919 echo $ac_declaration >>confdefs.h
2920 echo '#endif' >>confdefs.h
2924 echo "$as_me: failed program was:" >&5
2925 sed 's/^/| /' conftest.$ac_ext >&5
2928 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2930 ac_cpp='$CPP $CPPFLAGS'
2931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2934 DEPDIR="${am__leading_dot}deps"
2936 ac_config_commands="$ac_config_commands depfiles"
2939 am_make=${MAKE-make}
2940 cat > confinc << 'END'
2945 # If we don't find an include directive, just comment out the code.
2946 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2947 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2951 # First try GNU make style include.
2952 echo "include confinc" > confmf
2953 # We grep out `Entering directory' and `Leaving directory'
2954 # messages which can occur if `w' ends up in MAKEFLAGS.
2955 # In particular we don't look at `^make:' because GNU make might
2956 # be invoked under some other name (usually "gmake"), in which
2957 # case it prints its new name instead of `make'.
2958 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2963 # Now try BSD make style include.
2964 if test "$am__include" = "#"; then
2965 echo '.include "confinc"' > confmf
2966 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2967 am__include=.include
2974 echo "$as_me:$LINENO: result: $_am_result" >&5
2975 echo "${ECHO_T}$_am_result" >&6
2976 rm -f confinc confmf
2978 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2979 if test "${enable_dependency_tracking+set}" = set; then
2980 enableval="$enable_dependency_tracking"
2983 if test "x$enable_dependency_tracking" != xno; then
2984 am_depcomp="$ac_aux_dir/depcomp"
2989 if test "x$enable_dependency_tracking" != xno; then
3000 depcc="$CC" am_compiler_list=
3002 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3003 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3004 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3005 echo $ECHO_N "(cached) $ECHO_C" >&6
3007 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3008 # We make a subdir and do the tests there. Otherwise we can end up
3009 # making bogus files that we don't know about and never remove. For
3010 # instance it was reported that on HP-UX the gcc test will end up
3011 # making a dummy file named `D' -- because `-MD' means `put the output
3014 # Copy depcomp to subdir because otherwise we won't find it if we're
3015 # using a relative directory.
3016 cp "$am_depcomp" conftest.dir
3018 # We will build objects and dependencies in a subdirectory because
3019 # it helps to detect inapplicable dependency modes. For instance
3020 # both Tru64's cc and ICC support -MD to output dependencies as a
3021 # side effect of compilation, but ICC will put the dependencies in
3022 # the current directory while Tru64 will put them in the object
3026 am_cv_CC_dependencies_compiler_type=none
3027 if test "$am_compiler_list" = ""; then
3028 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3030 for depmode in $am_compiler_list; do
3031 # Setup a source with many dependencies, because some compilers
3032 # like to wrap large dependency lists on column 80 (with \), and
3033 # we should not choose a depcomp mode which is confused by this.
3035 # We need to recreate these files for each test, as the compiler may
3036 # overwrite some of them when testing with obscure command lines.
3037 # This happens at least with the AIX C compiler.
3039 for i in 1 2 3 4 5 6; do
3040 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3041 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3042 # Solaris 8's {/usr,}/bin/sh.
3043 touch sub/conftst$i.h
3045 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3049 # after this tag, mechanisms are not by side-effect, so they'll
3050 # only be used when explicitly requested
3051 if test "x$enable_dependency_tracking" = xyes; then
3059 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3060 # mode. It turns out that the SunPro C++ compiler does not properly
3061 # handle `-M -o', and we need to detect this.
3062 if depmode=$depmode \
3063 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3064 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3065 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3066 >/dev/null 2>conftest.err &&
3067 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3068 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3069 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3070 # icc doesn't choke on unknown options, it will just issue warnings
3071 # or remarks (even with -Werror). So we grep stderr for any message
3072 # that says an option was ignored or not supported.
3073 # When given -MP, icc 7.0 and 7.1 complain thusly:
3074 # icc: Command line warning: ignoring option '-M'; no argument required
3075 # The diagnosis changed in icc 8.0:
3076 # icc: Command line remark: option '-MP' not supported
3077 if (grep 'ignoring option' conftest.err ||
3078 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3079 am_cv_CC_dependencies_compiler_type=$depmode
3088 am_cv_CC_dependencies_compiler_type=none
3092 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3093 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3094 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3099 test "x$enable_dependency_tracking" != xno \
3100 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3102 am__fastdepCC_FALSE='#'
3104 am__fastdepCC_TRUE='#'
3105 am__fastdepCC_FALSE=
3113 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
3114 # in XCFLAGS. But we need them in CFLAGS during configury. So put them
3115 # in both places for now and restore CFLAGS at the end of config.
3116 save_CFLAGS="$CFLAGS"
3118 # Add -Wall -Werror if we are using GCC.
3119 if test "x$GCC" = "xyes"; then
3120 XCFLAGS="$XCFLAGS -Wall -Werror"
3123 # Find other programs we need.
3124 if test -n "$ac_tool_prefix"; then
3125 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3126 set dummy ${ac_tool_prefix}ar; ac_word=$2
3127 echo "$as_me:$LINENO: checking for $ac_word" >&5
3128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3129 if test "${ac_cv_prog_AR+set}" = set; then
3130 echo $ECHO_N "(cached) $ECHO_C" >&6
3132 if test -n "$AR"; then
3133 ac_cv_prog_AR="$AR" # Let the user override the test.
3135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3139 test -z "$as_dir" && as_dir=.
3140 for ac_exec_ext in '' $ac_executable_extensions; do
3141 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3142 ac_cv_prog_AR="${ac_tool_prefix}ar"
3143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3152 if test -n "$AR"; then
3153 echo "$as_me:$LINENO: result: $AR" >&5
3154 echo "${ECHO_T}$AR" >&6
3156 echo "$as_me:$LINENO: result: no" >&5
3157 echo "${ECHO_T}no" >&6
3161 if test -z "$ac_cv_prog_AR"; then
3163 # Extract the first word of "ar", so it can be a program name with args.
3164 set dummy ar; ac_word=$2
3165 echo "$as_me:$LINENO: checking for $ac_word" >&5
3166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3167 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3168 echo $ECHO_N "(cached) $ECHO_C" >&6
3170 if test -n "$ac_ct_AR"; then
3171 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3177 test -z "$as_dir" && as_dir=.
3178 for ac_exec_ext in '' $ac_executable_extensions; do
3179 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3180 ac_cv_prog_ac_ct_AR="ar"
3181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3189 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3190 if test -n "$ac_ct_AR"; then
3191 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3192 echo "${ECHO_T}$ac_ct_AR" >&6
3194 echo "$as_me:$LINENO: result: no" >&5
3195 echo "${ECHO_T}no" >&6
3203 if test -n "$ac_tool_prefix"; then
3204 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3205 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3206 echo "$as_me:$LINENO: checking for $ac_word" >&5
3207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3208 if test "${ac_cv_prog_RANLIB+set}" = set; then
3209 echo $ECHO_N "(cached) $ECHO_C" >&6
3211 if test -n "$RANLIB"; then
3212 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3218 test -z "$as_dir" && as_dir=.
3219 for ac_exec_ext in '' $ac_executable_extensions; do
3220 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3221 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3230 RANLIB=$ac_cv_prog_RANLIB
3231 if test -n "$RANLIB"; then
3232 echo "$as_me:$LINENO: result: $RANLIB" >&5
3233 echo "${ECHO_T}$RANLIB" >&6
3235 echo "$as_me:$LINENO: result: no" >&5
3236 echo "${ECHO_T}no" >&6
3240 if test -z "$ac_cv_prog_RANLIB"; then
3241 ac_ct_RANLIB=$RANLIB
3242 # Extract the first word of "ranlib", so it can be a program name with args.
3243 set dummy ranlib; ac_word=$2
3244 echo "$as_me:$LINENO: checking for $ac_word" >&5
3245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3246 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3247 echo $ECHO_N "(cached) $ECHO_C" >&6
3249 if test -n "$ac_ct_RANLIB"; then
3250 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3256 test -z "$as_dir" && as_dir=.
3257 for ac_exec_ext in '' $ac_executable_extensions; do
3258 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3259 ac_cv_prog_ac_ct_RANLIB="ranlib"
3260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3266 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error"
3269 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3270 if test -n "$ac_ct_RANLIB"; then
3271 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3272 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3274 echo "$as_me:$LINENO: result: no" >&5
3275 echo "${ECHO_T}no" >&6
3278 RANLIB=$ac_ct_RANLIB
3280 RANLIB="$ac_cv_prog_RANLIB"
3283 # Extract the first word of "perl", so it can be a program name with args.
3284 set dummy perl; ac_word=$2
3285 echo "$as_me:$LINENO: checking for $ac_word" >&5
3286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3287 if test "${ac_cv_path_PERL+set}" = set; then
3288 echo $ECHO_N "(cached) $ECHO_C" >&6
3292 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3299 test -z "$as_dir" && as_dir=.
3300 for ac_exec_ext in '' $ac_executable_extensions; do
3301 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3302 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
3303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3309 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
3313 PERL=$ac_cv_path_PERL
3315 if test -n "$PERL"; then
3316 echo "$as_me:$LINENO: result: $PERL" >&5
3317 echo "${ECHO_T}$PERL" >&6
3319 echo "$as_me:$LINENO: result: no" >&5
3320 echo "${ECHO_T}no" >&6
3323 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3324 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3325 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3326 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3327 echo $ECHO_N "(cached) $ECHO_C" >&6
3329 cat >conftest.make <<\_ACEOF
3331 @echo 'ac_maketemp="$(MAKE)"'
3333 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3334 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3335 if test -n "$ac_maketemp"; then
3336 eval ac_cv_prog_make_${ac_make}_set=yes
3338 eval ac_cv_prog_make_${ac_make}_set=no
3342 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3343 echo "$as_me:$LINENO: result: yes" >&5
3344 echo "${ECHO_T}yes" >&6
3347 echo "$as_me:$LINENO: result: no" >&5
3348 echo "${ECHO_T}no" >&6
3349 SET_MAKE="MAKE=${MAKE-make}"
3352 # Find a good install program. We prefer a C program (faster),
3353 # so one script is as good as another. But avoid the broken or
3354 # incompatible versions:
3355 # SysV /etc/install, /usr/sbin/install
3356 # SunOS /usr/etc/install
3357 # IRIX /sbin/install
3359 # AmigaOS /C/install, which installs bootblocks on floppy discs
3360 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3361 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3362 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3363 # OS/2's system install, which has a completely different semantic
3364 # ./install, which can be erroneously created by make from ./install.sh.
3365 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3366 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3367 if test -z "$INSTALL"; then
3368 if test "${ac_cv_path_install+set}" = set; then
3369 echo $ECHO_N "(cached) $ECHO_C" >&6
3371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3375 test -z "$as_dir" && as_dir=.
3376 # Account for people who put trailing slashes in PATH elements.
3378 ./ | .// | /cC/* | \
3379 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3380 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3383 # OSF1 and SCO ODT 3.0 have their own names for install.
3384 # Don't use installbsd from OSF since it installs stuff as root
3386 for ac_prog in ginstall scoinst install; do
3387 for ac_exec_ext in '' $ac_executable_extensions; do
3388 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3389 if test $ac_prog = install &&
3390 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3391 # AIX install. It has an incompatible calling convention.
3393 elif test $ac_prog = install &&
3394 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3395 # program-specific install script used by HP pwplus--don't use.
3398 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3410 if test "${ac_cv_path_install+set}" = set; then
3411 INSTALL=$ac_cv_path_install
3413 # As a last resort, use the slow shell script. We don't cache a
3414 # path for INSTALL within a source directory, because that will
3415 # break other packages using the cache if that directory is
3416 # removed, or if the path is relative.
3417 INSTALL=$ac_install_sh
3420 echo "$as_me:$LINENO: result: $INSTALL" >&5
3421 echo "${ECHO_T}$INSTALL" >&6
3423 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3424 # It thinks the first close brace ends the variable substitution.
3425 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3427 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3429 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3433 # Check whether --enable-shared or --disable-shared was given.
3434 if test "${enable_shared+set}" = set; then
3435 enableval="$enable_shared"
3436 p=${PACKAGE-default}
3438 yes) enable_shared=yes ;;
3439 no) enable_shared=no ;;
3442 # Look at the argument we got. We use all the common list separators.
3443 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3444 for pkg in $enableval; do
3445 if test "X$pkg" = "X$p"; then
3455 # Check whether --enable-static or --disable-static was given.
3456 if test "${enable_static+set}" = set; then
3457 enableval="$enable_static"
3458 p=${PACKAGE-default}
3460 yes) enable_static=yes ;;
3461 no) enable_static=no ;;
3464 # Look at the argument we got. We use all the common list separators.
3465 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3466 for pkg in $enableval; do
3467 if test "X$pkg" = "X$p"; then
3477 # Check whether --enable-fast-install or --disable-fast-install was given.
3478 if test "${enable_fast_install+set}" = set; then
3479 enableval="$enable_fast_install"
3480 p=${PACKAGE-default}
3482 yes) enable_fast_install=yes ;;
3483 no) enable_fast_install=no ;;
3485 enable_fast_install=no
3486 # Look at the argument we got. We use all the common list separators.
3487 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3488 for pkg in $enableval; do
3489 if test "X$pkg" = "X$p"; then
3490 enable_fast_install=yes
3497 enable_fast_install=yes
3500 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3501 if test "${with_gnu_ld+set}" = set; then
3502 withval="$with_gnu_ld"
3503 test "$withval" = no || with_gnu_ld=yes
3508 if test "$GCC" = yes; then
3509 # Check if gcc -print-prog-name=ld gives a path.
3510 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3511 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3514 # gcc leaves a trailing carriage return which upsets mingw
3515 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3517 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3520 # Accept absolute paths.
3521 [\\/]* | [A-Za-z]:[\\/]*)
3522 re_direlt='/[^/][^/]*/\.\./'
3523 # Canonicalize the path of ld
3524 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3525 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3526 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3528 test -z "$LD" && LD="$ac_prog"
3531 # If it fails, then pretend we aren't using GCC.
3535 # If it is relative, then search for the first ld in PATH.
3539 elif test "$with_gnu_ld" = yes; then
3540 echo "$as_me:$LINENO: checking for GNU ld" >&5
3541 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3543 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3544 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3546 if test "${lt_cv_path_LD+set}" = set; then
3547 echo $ECHO_N "(cached) $ECHO_C" >&6
3549 if test -z "$LD"; then
3550 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3551 for ac_dir in $PATH; do
3552 test -z "$ac_dir" && ac_dir=.
3553 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3554 lt_cv_path_LD="$ac_dir/$ac_prog"
3555 # Check to see if the program is GNU ld. I'd rather use --version,
3556 # but apparently some GNU ld's only accept -v.
3557 # Break only if it was the GNU/non-GNU ld that we prefer.
3558 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3559 test "$with_gnu_ld" != no && break
3561 test "$with_gnu_ld" != yes && break
3567 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3572 if test -n "$LD"; then
3573 echo "$as_me:$LINENO: result: $LD" >&5
3574 echo "${ECHO_T}$LD" >&6
3576 echo "$as_me:$LINENO: result: no" >&5
3577 echo "${ECHO_T}no" >&6
3579 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3580 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3581 { (exit 1); exit 1; }; }
3582 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3583 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3584 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3585 echo $ECHO_N "(cached) $ECHO_C" >&6
3587 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3588 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3589 lt_cv_prog_gnu_ld=yes
3591 lt_cv_prog_gnu_ld=no
3594 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3595 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3596 with_gnu_ld=$lt_cv_prog_gnu_ld
3599 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3600 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3601 if test "${lt_cv_ld_reload_flag+set}" = set; then
3602 echo $ECHO_N "(cached) $ECHO_C" >&6
3604 lt_cv_ld_reload_flag='-r'
3606 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3607 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3608 reload_flag=$lt_cv_ld_reload_flag
3609 test -n "$reload_flag" && reload_flag=" $reload_flag"
3611 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3612 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3613 if test "${lt_cv_path_NM+set}" = set; then
3614 echo $ECHO_N "(cached) $ECHO_C" >&6
3616 if test -n "$NM"; then
3617 # Let the user override the test.
3620 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3621 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3622 test -z "$ac_dir" && ac_dir=.
3623 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3624 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3625 # Check to see if the nm accepts a BSD-compat flag.
3626 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3627 # nm: unknown option "B" ignored
3628 # Tru64's nm complains that /dev/null is an invalid object file
3629 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3630 lt_cv_path_NM="$tmp_nm -B"
3632 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3633 lt_cv_path_NM="$tmp_nm -p"
3636 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3637 continue # so that we can try to find one that supports BSD flags
3642 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3647 echo "$as_me:$LINENO: result: $NM" >&5
3648 echo "${ECHO_T}$NM" >&6
3650 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3651 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3653 if test "$LN_S" = "ln -s"; then
3654 echo "$as_me:$LINENO: result: yes" >&5
3655 echo "${ECHO_T}yes" >&6
3657 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3658 echo "${ECHO_T}no, using $LN_S" >&6
3661 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3662 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3663 if test "${lt_cv_deplibs_check_method+set}" = set; then
3664 echo $ECHO_N "(cached) $ECHO_C" >&6
3666 lt_cv_file_magic_cmd='$MAGIC_CMD'
3667 lt_cv_file_magic_test_file=
3668 lt_cv_deplibs_check_method='unknown'
3669 # Need to set the preceding variable on all platforms that support
3670 # interlibrary dependencies.
3671 # 'none' -- dependencies not supported.
3672 # `unknown' -- same as none, but documents that we really don't know.
3673 # 'pass_all' -- all dependencies passed with no checks.
3674 # 'test_compile' -- check by making test program.
3675 # 'file_magic [regex]' -- check by looking for files in library path
3676 # which responds to the $file_magic_cmd with a given egrep regex.
3677 # If you have `file' or equivalent on your system and you're not sure
3678 # whether `pass_all' will *always* work, you probably want this one.
3682 lt_cv_deplibs_check_method=pass_all
3686 lt_cv_deplibs_check_method=pass_all
3690 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3691 lt_cv_file_magic_cmd='/usr/bin/file -L'
3692 lt_cv_file_magic_test_file=/shlib/libc.so
3695 cygwin* | mingw* |pw32*)
3696 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3697 lt_cv_file_magic_cmd='$OBJDUMP -f'
3700 darwin* | rhapsody*)
3701 # this will be overwritten by pass_all, but leave it in just in case
3702 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3703 lt_cv_file_magic_cmd='/usr/bin/file -L'
3705 rhapsody* | darwin1.012)
3706 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3709 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3712 lt_cv_deplibs_check_method=pass_all
3715 freebsd* | kfreebsd*-gnu)
3716 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3719 # Not sure whether the presence of OpenBSD here was a mistake.
3720 # Let's accept both of them until this is cleared up.
3721 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3722 lt_cv_file_magic_cmd=/usr/bin/file
3723 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3727 lt_cv_deplibs_check_method=pass_all
3732 lt_cv_deplibs_check_method=pass_all
3738 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3739 lt_cv_file_magic_cmd=/usr/bin/file
3740 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3743 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3744 lt_cv_file_magic_cmd=/usr/bin/file
3745 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3753 # this will be overridden with pass_all, but let us keep it just in case
3754 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3758 *-32|*"-32 ") libmagic=32-bit;;
3759 *-n32|*"-n32 ") libmagic=N32;;
3760 *-64|*"-64 ") libmagic=64-bit;;
3761 *) libmagic=never-match;;
3763 # this will be overridden with pass_all, but let us keep it just in case
3764 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3767 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3768 lt_cv_deplibs_check_method=pass_all
3771 # This must be Linux ELF.
3773 lt_cv_deplibs_check_method=pass_all
3776 netbsd* | knetbsd*-gnu)
3777 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3778 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3780 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3785 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3786 lt_cv_file_magic_cmd=/usr/bin/file
3787 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3790 osf3* | osf4* | osf5*)
3791 # this will be overridden with pass_all, but let us keep it just in case
3792 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3793 lt_cv_file_magic_test_file=/shlib/libc.so
3794 lt_cv_deplibs_check_method=pass_all
3798 lt_cv_deplibs_check_method=pass_all
3802 lt_cv_deplibs_check_method=pass_all
3803 lt_cv_file_magic_test_file=/lib/libc.so
3806 sysv5uw[78]* | sysv4*uw2*)
3807 lt_cv_deplibs_check_method=pass_all
3810 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3811 case $host_vendor in
3813 lt_cv_deplibs_check_method=pass_all
3816 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]'
3817 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3824 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3825 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3826 file_magic_cmd=$lt_cv_file_magic_cmd
3827 deplibs_check_method=$lt_cv_deplibs_check_method
3833 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3835 # find the maximum length of command line arguments
3836 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3837 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3838 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3839 echo $ECHO_N "(cached) $ECHO_C" >&6
3846 # On DJGPP, this test can blow up pretty badly due to problems in libc
3847 # (any single argument exceeding 2000 bytes causes a buffer overrun
3848 # during glob expansion). Even if it were fixed, the result of this
3849 # check would be larger than it should be.
3850 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3854 # On Win9x/ME, this test blows up -- it succeeds, but takes
3855 # about 5 minutes as the teststring grows exponentially.
3856 # Worse, since 9x/ME are not pre-emptively multitasking,
3857 # you end up with a "frozen" computer, even though with patience
3858 # the test eventually succeeds (with a max line length of 256k).
3859 # Instead, let's just punt: use the minimum linelength reported by
3860 # all of the supported platforms: 8192 (on NT/2K/XP).
3861 lt_cv_sys_max_cmd_len=8192;
3865 # On AmigaOS with pdksh, this test takes hours, literally.
3866 # So we just punt and use a minimum line length of 8192.
3867 lt_cv_sys_max_cmd_len=8192;
3870 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3871 # This has been around since 386BSD, at least. Likely further.
3872 if test -x /sbin/sysctl; then
3873 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3874 elif test -x /usr/sbin/sysctl; then
3875 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3877 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
3879 # And add a safety zone
3880 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3881 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3887 if test -n "$lt_cv_sys_max_cmd_len" ; then
3888 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3889 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3891 echo "$as_me:$LINENO: result: none" >&5
3892 echo "${ECHO_T}none" >&6
3896 # Only perform the check for file, if the check method requires it
3897 case $deplibs_check_method in
3899 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3900 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3901 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3902 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3903 echo $ECHO_N "(cached) $ECHO_C" >&6
3907 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3910 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3913 ac_save_MAGIC_CMD="$MAGIC_CMD"
3914 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3915 ac_dummy="/usr/bin:$PATH"
3916 for ac_dir in $ac_dummy; do
3917 test -z "$ac_dir" && ac_dir=.
3918 if test -f $ac_dir/${ac_tool_prefix}file; then
3919 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3920 if test -n "$file_magic_test_file"; then
3921 case $deplibs_check_method in
3923 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3924 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3925 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3926 egrep "$file_magic_regex" > /dev/null; then
3931 *** Warning: the command libtool uses to detect shared libraries,
3932 *** $file_magic_cmd, produces output that libtool cannot recognize.
3933 *** The result is that libtool may fail to recognize shared libraries
3934 *** as such. This will affect the creation of libtool libraries that
3935 *** depend on shared libraries, but programs linked with such libtool
3936 *** libraries will work regardless of this problem. Nevertheless, you
3937 *** may want to report the problem to your system manager and/or to
3938 *** bug-libtool@gnu.org
3948 MAGIC_CMD="$ac_save_MAGIC_CMD"
3953 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3954 if test -n "$MAGIC_CMD"; then
3955 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3956 echo "${ECHO_T}$MAGIC_CMD" >&6
3958 echo "$as_me:$LINENO: result: no" >&5
3959 echo "${ECHO_T}no" >&6
3962 if test -z "$lt_cv_path_MAGIC_CMD"; then
3963 if test -n "$ac_tool_prefix"; then
3964 echo "$as_me:$LINENO: checking for file" >&5
3965 echo $ECHO_N "checking for file... $ECHO_C" >&6
3966 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3967 echo $ECHO_N "(cached) $ECHO_C" >&6
3971 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3974 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3977 ac_save_MAGIC_CMD="$MAGIC_CMD"
3978 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3979 ac_dummy="/usr/bin:$PATH"
3980 for ac_dir in $ac_dummy; do
3981 test -z "$ac_dir" && ac_dir=.
3982 if test -f $ac_dir/file; then
3983 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3984 if test -n "$file_magic_test_file"; then
3985 case $deplibs_check_method in
3987 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3988 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3989 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3990 egrep "$file_magic_regex" > /dev/null; then
3995 *** Warning: the command libtool uses to detect shared libraries,
3996 *** $file_magic_cmd, produces output that libtool cannot recognize.
3997 *** The result is that libtool may fail to recognize shared libraries
3998 *** as such. This will affect the creation of libtool libraries that
3999 *** depend on shared libraries, but programs linked with such libtool
4000 *** libraries will work regardless of this problem. Nevertheless, you
4001 *** may want to report the problem to your system manager and/or to
4002 *** bug-libtool@gnu.org
4012 MAGIC_CMD="$ac_save_MAGIC_CMD"
4017 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4018 if test -n "$MAGIC_CMD"; then
4019 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4020 echo "${ECHO_T}$MAGIC_CMD" >&6
4022 echo "$as_me:$LINENO: result: no" >&5
4023 echo "${ECHO_T}no" >&6
4035 if test -n "$ac_tool_prefix"; then
4036 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4037 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4038 echo "$as_me:$LINENO: checking for $ac_word" >&5
4039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4040 if test "${ac_cv_prog_RANLIB+set}" = set; then
4041 echo $ECHO_N "(cached) $ECHO_C" >&6
4043 if test -n "$RANLIB"; then
4044 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4050 test -z "$as_dir" && as_dir=.
4051 for ac_exec_ext in '' $ac_executable_extensions; do
4052 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4053 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4062 RANLIB=$ac_cv_prog_RANLIB
4063 if test -n "$RANLIB"; then
4064 echo "$as_me:$LINENO: result: $RANLIB" >&5
4065 echo "${ECHO_T}$RANLIB" >&6
4067 echo "$as_me:$LINENO: result: no" >&5
4068 echo "${ECHO_T}no" >&6
4072 if test -z "$ac_cv_prog_RANLIB"; then
4073 ac_ct_RANLIB=$RANLIB
4074 # Extract the first word of "ranlib", so it can be a program name with args.
4075 set dummy ranlib; ac_word=$2
4076 echo "$as_me:$LINENO: checking for $ac_word" >&5
4077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4078 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4079 echo $ECHO_N "(cached) $ECHO_C" >&6
4081 if test -n "$ac_ct_RANLIB"; then
4082 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4088 test -z "$as_dir" && as_dir=.
4089 for ac_exec_ext in '' $ac_executable_extensions; do
4090 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4091 ac_cv_prog_ac_ct_RANLIB="ranlib"
4092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4098 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4101 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4102 if test -n "$ac_ct_RANLIB"; then
4103 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4104 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4106 echo "$as_me:$LINENO: result: no" >&5
4107 echo "${ECHO_T}no" >&6
4110 RANLIB=$ac_ct_RANLIB
4112 RANLIB="$ac_cv_prog_RANLIB"
4115 if test -n "$ac_tool_prefix"; then
4116 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4117 set dummy ${ac_tool_prefix}strip; ac_word=$2
4118 echo "$as_me:$LINENO: checking for $ac_word" >&5
4119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4120 if test "${ac_cv_prog_STRIP+set}" = set; then
4121 echo $ECHO_N "(cached) $ECHO_C" >&6
4123 if test -n "$STRIP"; then
4124 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4130 test -z "$as_dir" && as_dir=.
4131 for ac_exec_ext in '' $ac_executable_extensions; do
4132 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4133 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4142 STRIP=$ac_cv_prog_STRIP
4143 if test -n "$STRIP"; then
4144 echo "$as_me:$LINENO: result: $STRIP" >&5
4145 echo "${ECHO_T}$STRIP" >&6
4147 echo "$as_me:$LINENO: result: no" >&5
4148 echo "${ECHO_T}no" >&6
4152 if test -z "$ac_cv_prog_STRIP"; then
4154 # Extract the first word of "strip", so it can be a program name with args.
4155 set dummy strip; ac_word=$2
4156 echo "$as_me:$LINENO: checking for $ac_word" >&5
4157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4158 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4159 echo $ECHO_N "(cached) $ECHO_C" >&6
4161 if test -n "$ac_ct_STRIP"; then
4162 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4168 test -z "$as_dir" && as_dir=.
4169 for ac_exec_ext in '' $ac_executable_extensions; do
4170 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4171 ac_cv_prog_ac_ct_STRIP="strip"
4172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4178 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4181 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4182 if test -n "$ac_ct_STRIP"; then
4183 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4184 echo "${ECHO_T}$ac_ct_STRIP" >&6
4186 echo "$as_me:$LINENO: result: no" >&5
4187 echo "${ECHO_T}no" >&6
4192 STRIP="$ac_cv_prog_STRIP"
4196 # Check for any special flags to pass to ltconfig.
4197 libtool_flags="--cache-file=$cache_file"
4198 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4199 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4200 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4201 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4202 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4205 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4206 if test "${enable_libtool_lock+set}" = set; then
4207 enableval="$enable_libtool_lock"
4210 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4211 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4214 # Check whether --with-pic or --without-pic was given.
4215 if test "${with_pic+set}" = set; then
4221 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4222 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4224 # Some flags need to be propagated to the compiler or linker for good
4228 # Find out which ABI we are using.
4229 echo '#line 4229 "configure"' > conftest.$ac_ext
4230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4231 (eval $ac_compile) 2>&5
4233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234 (exit $ac_status); }; then
4235 if test "$lt_cv_prog_gnu_ld" = yes; then
4236 case `/usr/bin/file conftest.$ac_objext` in
4238 LD="${LD-ld} -melf32bsmip"
4241 LD="${LD-ld} -melf32bmipn32"
4244 LD="${LD-ld} -melf64bmip"
4248 case `/usr/bin/file conftest.$ac_objext` in
4265 # Find out which ABI we are using.
4266 echo 'int i;' > conftest.$ac_ext
4267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4268 (eval $ac_compile) 2>&5
4270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271 (exit $ac_status); }; then
4272 case "`/usr/bin/file conftest.o`" in
4284 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4285 # Find out which ABI we are using.
4286 echo 'int i;' > conftest.$ac_ext
4287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4288 (eval $ac_compile) 2>&5
4290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291 (exit $ac_status); }; then
4292 case "`/usr/bin/file conftest.o`" in
4296 LD="${LD-ld} -m elf_i386"
4298 ppc64-*linux*|powerpc64-*linux*)
4299 LD="${LD-ld} -m elf32ppclinux"
4302 LD="${LD-ld} -m elf_s390"
4305 LD="${LD-ld} -m elf32_sparc"
4312 LD="${LD-ld} -m elf_x86_64"
4314 ppc*-*linux*|powerpc*-*linux*)
4315 LD="${LD-ld} -m elf64ppc"
4318 LD="${LD-ld} -m elf64_s390"
4321 LD="${LD-ld} -m elf64_sparc"
4331 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4332 SAVE_CFLAGS="$CFLAGS"
4333 CFLAGS="$CFLAGS -belf"
4334 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4335 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4336 if test "${lt_cv_cc_needs_belf+set}" = set; then
4337 echo $ECHO_N "(cached) $ECHO_C" >&6
4342 ac_cpp='$CPP $CPPFLAGS'
4343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4347 cat >conftest.$ac_ext <<_ACEOF
4350 cat confdefs.h >>conftest.$ac_ext
4351 cat >>conftest.$ac_ext <<_ACEOF
4352 /* end confdefs.h. */
4362 rm -f conftest.$ac_objext conftest$ac_exeext
4363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4364 (eval $ac_link) 2>conftest.er1
4366 grep -v '^ *+' conftest.er1 >conftest.err
4368 cat conftest.err >&5
4369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370 (exit $ac_status); } &&
4371 { ac_try='test -z "$ac_c_werror_flag"
4372 || test ! -s conftest.err'
4373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377 (exit $ac_status); }; } &&
4378 { ac_try='test -s conftest$ac_exeext'
4379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4383 (exit $ac_status); }; }; then
4384 lt_cv_cc_needs_belf=yes
4386 echo "$as_me: failed program was:" >&5
4387 sed 's/^/| /' conftest.$ac_ext >&5
4389 lt_cv_cc_needs_belf=no
4391 rm -f conftest.err conftest.$ac_objext \
4392 conftest$ac_exeext conftest.$ac_ext
4394 ac_cpp='$CPP $CPPFLAGS'
4395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4400 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4401 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4402 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4403 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4404 CFLAGS="$SAVE_CFLAGS"
4412 # Save cache, so that ltconfig can load it
4413 cat >confcache <<\_ACEOF
4414 # This file is a shell script that caches the results of configure
4415 # tests run on this system so they can be shared between configure
4416 # scripts and configure runs, see configure's option --config-cache.
4417 # It is not useful on other systems. If it contains results you don't
4418 # want to keep, you may remove or edit it.
4420 # config.status only pays attention to the cache file if you give it
4421 # the --recheck option to rerun configure.
4423 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4424 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4429 # The following way of writing the cache mishandles newlines in values,
4430 # but we know of no workaround that is simple, portable, and efficient.
4431 # So, don't put newlines in cache variables' values.
4432 # Ultrix sh set writes to stderr and can't be redirected directly,
4433 # and sets the high bit in the cache file unless we assign to the vars.
4436 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4438 # `set' does not quote correctly, so add quotes (double-quote
4439 # substitution turns \\\\ into \\, and sed turns \\ into \).
4442 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4445 # `set' quotes correctly as required by POSIX, so do not add quotes.
4447 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4454 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4456 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4458 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4459 if test -w $cache_file; then
4460 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4461 cat confcache >$cache_file
4463 echo "not updating unwritable cache $cache_file"
4468 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4469 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4470 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4471 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4472 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4473 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4474 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4475 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4476 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4477 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4478 echo "$as_me: error: libtool configure failed" >&2;}
4479 { (exit 1); exit 1; }; }
4481 # Reload cache, that may have been modified by ltconfig
4482 if test -r "$cache_file"; then
4483 # Some versions of bash will fail to source /dev/null (special
4484 # files actually), so we avoid doing that.
4485 if test -f "$cache_file"; then
4486 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4487 echo "$as_me: loading cache $cache_file" >&6;}
4489 [\\/]* | ?:[\\/]* ) . $cache_file;;
4490 *) . ./$cache_file;;
4494 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4495 echo "$as_me: creating cache $cache_file" >&6;}
4500 # This can be used to rebuild libtool when needed
4501 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4503 # Always use our own libtool.
4504 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4506 # Redirect the config.log output again, so that the ltconfig log is not
4507 # clobbered by the next message.
4508 exec 5>>./config.log
4518 # We need gfortran to compile parts of the library
4519 # We can't use AC_PROG_FC because it expects a fully working gfortran.
4520 #AC_PROG_FC(gfortran)
4522 ac_ext=${FC_SRCEXT-f}
4523 ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
4524 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
4525 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4526 if test -n "$ac_tool_prefix"; then
4527 for ac_prog in gfortran
4529 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4530 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4531 echo "$as_me:$LINENO: checking for $ac_word" >&5
4532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4533 if test "${ac_cv_prog_FC+set}" = set; then
4534 echo $ECHO_N "(cached) $ECHO_C" >&6
4536 if test -n "$FC"; then
4537 ac_cv_prog_FC="$FC" # Let the user override the test.
4539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4543 test -z "$as_dir" && as_dir=.
4544 for ac_exec_ext in '' $ac_executable_extensions; do
4545 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4546 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
4547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4556 if test -n "$FC"; then
4557 echo "$as_me:$LINENO: result: $FC" >&5
4558 echo "${ECHO_T}$FC" >&6
4560 echo "$as_me:$LINENO: result: no" >&5
4561 echo "${ECHO_T}no" >&6
4564 test -n "$FC" && break
4567 if test -z "$FC"; then
4569 for ac_prog in gfortran
4571 # Extract the first word of "$ac_prog", so it can be a program name with args.
4572 set dummy $ac_prog; ac_word=$2
4573 echo "$as_me:$LINENO: checking for $ac_word" >&5
4574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4575 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then
4576 echo $ECHO_N "(cached) $ECHO_C" >&6
4578 if test -n "$ac_ct_FC"; then
4579 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
4581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4585 test -z "$as_dir" && as_dir=.
4586 for ac_exec_ext in '' $ac_executable_extensions; do
4587 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4588 ac_cv_prog_ac_ct_FC="$ac_prog"
4589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4597 ac_ct_FC=$ac_cv_prog_ac_ct_FC
4598 if test -n "$ac_ct_FC"; then
4599 echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
4600 echo "${ECHO_T}$ac_ct_FC" >&6
4602 echo "$as_me:$LINENO: result: no" >&5
4603 echo "${ECHO_T}no" >&6
4606 test -n "$ac_ct_FC" && break
4613 # Provide some information about the compiler.
4614 echo "$as_me:4614:" \
4615 "checking for Fortran compiler version" >&5
4616 ac_compiler=`set X $ac_compile; echo $2`
4617 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4618 (eval $ac_compiler --version </dev/null >&5) 2>&5
4620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621 (exit $ac_status); }
4622 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4623 (eval $ac_compiler -v </dev/null >&5) 2>&5
4625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626 (exit $ac_status); }
4627 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4628 (eval $ac_compiler -V </dev/null >&5) 2>&5
4630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631 (exit $ac_status); }
4634 # If we don't use `.F' as extension, the preprocessor is not run on the
4635 # input file. (Note that this only needs to work for GNU compilers.)
4638 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
4639 echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6
4640 if test "${ac_cv_fc_compiler_gnu+set}" = set; then
4641 echo $ECHO_N "(cached) $ECHO_C" >&6
4643 cat >conftest.$ac_ext <<_ACEOF
4651 rm -f conftest.$ac_objext
4652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4653 (eval $ac_compile) 2>conftest.er1
4655 grep -v '^ *+' conftest.er1 >conftest.err
4657 cat conftest.err >&5
4658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659 (exit $ac_status); } &&
4660 { ac_try='test -z "$ac_fc_werror_flag"
4661 || test ! -s conftest.err'
4662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666 (exit $ac_status); }; } &&
4667 { ac_try='test -s conftest.$ac_objext'
4668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672 (exit $ac_status); }; }; then
4675 echo "$as_me: failed program was:" >&5
4676 sed 's/^/| /' conftest.$ac_ext >&5
4680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4681 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
4684 echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
4685 echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6
4687 ac_test_FFLAGS=${FCFLAGS+set}
4688 ac_save_FFLAGS=$FCFLAGS
4690 echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
4691 echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6
4692 if test "${ac_cv_prog_fc_g+set}" = set; then
4693 echo $ECHO_N "(cached) $ECHO_C" >&6
4696 cat >conftest.$ac_ext <<_ACEOF
4701 rm -f conftest.$ac_objext
4702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4703 (eval $ac_compile) 2>conftest.er1
4705 grep -v '^ *+' conftest.er1 >conftest.err
4707 cat conftest.err >&5
4708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4709 (exit $ac_status); } &&
4710 { ac_try='test -z "$ac_fc_werror_flag"
4711 || test ! -s conftest.err'
4712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716 (exit $ac_status); }; } &&
4717 { ac_try='test -s conftest.$ac_objext'
4718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722 (exit $ac_status); }; }; then
4725 echo "$as_me: failed program was:" >&5
4726 sed 's/^/| /' conftest.$ac_ext >&5
4730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4733 echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
4734 echo "${ECHO_T}$ac_cv_prog_fc_g" >&6
4735 if test "$ac_test_FFLAGS" = set; then
4736 FCFLAGS=$ac_save_FFLAGS
4737 elif test $ac_cv_prog_fc_g = yes; then
4738 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4744 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4752 ac_cpp='$CPP $CPPFLAGS'
4753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4757 FCFLAGS="$FCFLAGS -Wall"
4759 # For libtool versioning info, format is CURRENT:REVISION:AGE
4760 libtool_VERSION=1:0:0
4763 # Check header files.
4765 ac_cpp='$CPP $CPPFLAGS'
4766 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4767 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4768 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4769 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4770 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4771 # On Suns, sometimes $CPP names a directory.
4772 if test -n "$CPP" && test -d "$CPP"; then
4775 if test -z "$CPP"; then
4776 if test "${ac_cv_prog_CPP+set}" = set; then
4777 echo $ECHO_N "(cached) $ECHO_C" >&6
4779 # Double quotes because CPP needs to be expanded
4780 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4783 for ac_c_preproc_warn_flag in '' yes
4785 # Use a header file that comes with gcc, so configuring glibc
4786 # with a fresh cross-compiler works.
4787 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4788 # <limits.h> exists even on freestanding compilers.
4789 # On the NeXT, cc -E runs the code through the compiler's parser,
4790 # not just through cpp. "Syntax error" is here to catch this case.
4791 cat >conftest.$ac_ext <<_ACEOF
4794 cat confdefs.h >>conftest.$ac_ext
4795 cat >>conftest.$ac_ext <<_ACEOF
4796 /* end confdefs.h. */
4798 # include <limits.h>
4800 # include <assert.h>
4804 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4805 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4807 grep -v '^ *+' conftest.er1 >conftest.err
4809 cat conftest.err >&5
4810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4811 (exit $ac_status); } >/dev/null; then
4812 if test -s conftest.err; then
4813 ac_cpp_err=$ac_c_preproc_warn_flag
4814 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4821 if test -z "$ac_cpp_err"; then
4824 echo "$as_me: failed program was:" >&5
4825 sed 's/^/| /' conftest.$ac_ext >&5
4827 # Broken: fails on valid input.
4830 rm -f conftest.err conftest.$ac_ext
4832 # OK, works on sane cases. Now check whether non-existent headers
4833 # can be detected and how.
4834 cat >conftest.$ac_ext <<_ACEOF
4837 cat confdefs.h >>conftest.$ac_ext
4838 cat >>conftest.$ac_ext <<_ACEOF
4839 /* end confdefs.h. */
4840 #include <ac_nonexistent.h>
4842 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4843 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4845 grep -v '^ *+' conftest.er1 >conftest.err
4847 cat conftest.err >&5
4848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849 (exit $ac_status); } >/dev/null; then
4850 if test -s conftest.err; then
4851 ac_cpp_err=$ac_c_preproc_warn_flag
4852 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4859 if test -z "$ac_cpp_err"; then
4860 # Broken: success on invalid input.
4863 echo "$as_me: failed program was:" >&5
4864 sed 's/^/| /' conftest.$ac_ext >&5
4866 # Passes both tests.
4870 rm -f conftest.err conftest.$ac_ext
4873 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4874 rm -f conftest.err conftest.$ac_ext
4875 if $ac_preproc_ok; then
4887 echo "$as_me:$LINENO: result: $CPP" >&5
4888 echo "${ECHO_T}$CPP" >&6
4890 for ac_c_preproc_warn_flag in '' yes
4892 # Use a header file that comes with gcc, so configuring glibc
4893 # with a fresh cross-compiler works.
4894 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4895 # <limits.h> exists even on freestanding compilers.
4896 # On the NeXT, cc -E runs the code through the compiler's parser,
4897 # not just through cpp. "Syntax error" is here to catch this case.
4898 cat >conftest.$ac_ext <<_ACEOF
4901 cat confdefs.h >>conftest.$ac_ext
4902 cat >>conftest.$ac_ext <<_ACEOF
4903 /* end confdefs.h. */
4905 # include <limits.h>
4907 # include <assert.h>
4911 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4912 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4914 grep -v '^ *+' conftest.er1 >conftest.err
4916 cat conftest.err >&5
4917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918 (exit $ac_status); } >/dev/null; then
4919 if test -s conftest.err; then
4920 ac_cpp_err=$ac_c_preproc_warn_flag
4921 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4928 if test -z "$ac_cpp_err"; then
4931 echo "$as_me: failed program was:" >&5
4932 sed 's/^/| /' conftest.$ac_ext >&5
4934 # Broken: fails on valid input.
4937 rm -f conftest.err conftest.$ac_ext
4939 # OK, works on sane cases. Now check whether non-existent headers
4940 # can be detected and how.
4941 cat >conftest.$ac_ext <<_ACEOF
4944 cat confdefs.h >>conftest.$ac_ext
4945 cat >>conftest.$ac_ext <<_ACEOF
4946 /* end confdefs.h. */
4947 #include <ac_nonexistent.h>
4949 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4950 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4952 grep -v '^ *+' conftest.er1 >conftest.err
4954 cat conftest.err >&5
4955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956 (exit $ac_status); } >/dev/null; then
4957 if test -s conftest.err; then
4958 ac_cpp_err=$ac_c_preproc_warn_flag
4959 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4966 if test -z "$ac_cpp_err"; then
4967 # Broken: success on invalid input.
4970 echo "$as_me: failed program was:" >&5
4971 sed 's/^/| /' conftest.$ac_ext >&5
4973 # Passes both tests.
4977 rm -f conftest.err conftest.$ac_ext
4980 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4981 rm -f conftest.err conftest.$ac_ext
4982 if $ac_preproc_ok; then
4985 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4986 See \`config.log' for more details." >&5
4987 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4988 See \`config.log' for more details." >&2;}
4989 { (exit 1); exit 1; }; }
4993 ac_cpp='$CPP $CPPFLAGS'
4994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4999 echo "$as_me:$LINENO: checking for egrep" >&5
5000 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5001 if test "${ac_cv_prog_egrep+set}" = set; then
5002 echo $ECHO_N "(cached) $ECHO_C" >&6
5004 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5005 then ac_cv_prog_egrep='grep -E'
5006 else ac_cv_prog_egrep='egrep'
5009 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5010 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5011 EGREP=$ac_cv_prog_egrep
5014 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5015 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5016 if test "${ac_cv_header_stdc+set}" = set; then
5017 echo $ECHO_N "(cached) $ECHO_C" >&6
5019 cat >conftest.$ac_ext <<_ACEOF
5022 cat confdefs.h >>conftest.$ac_ext
5023 cat >>conftest.$ac_ext <<_ACEOF
5024 /* end confdefs.h. */
5038 rm -f conftest.$ac_objext
5039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5040 (eval $ac_compile) 2>conftest.er1
5042 grep -v '^ *+' conftest.er1 >conftest.err
5044 cat conftest.err >&5
5045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5046 (exit $ac_status); } &&
5047 { ac_try='test -z "$ac_c_werror_flag"
5048 || test ! -s conftest.err'
5049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053 (exit $ac_status); }; } &&
5054 { ac_try='test -s conftest.$ac_objext'
5055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059 (exit $ac_status); }; }; then
5060 ac_cv_header_stdc=yes
5062 echo "$as_me: failed program was:" >&5
5063 sed 's/^/| /' conftest.$ac_ext >&5
5065 ac_cv_header_stdc=no
5067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5069 if test $ac_cv_header_stdc = yes; then
5070 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5071 cat >conftest.$ac_ext <<_ACEOF
5074 cat confdefs.h >>conftest.$ac_ext
5075 cat >>conftest.$ac_ext <<_ACEOF
5076 /* end confdefs.h. */
5080 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5081 $EGREP "memchr" >/dev/null 2>&1; then
5084 ac_cv_header_stdc=no
5090 if test $ac_cv_header_stdc = yes; then
5091 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5092 cat >conftest.$ac_ext <<_ACEOF
5095 cat confdefs.h >>conftest.$ac_ext
5096 cat >>conftest.$ac_ext <<_ACEOF
5097 /* end confdefs.h. */
5101 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5102 $EGREP "free" >/dev/null 2>&1; then
5105 ac_cv_header_stdc=no
5111 if test $ac_cv_header_stdc = yes; then
5112 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5113 if test "$cross_compiling" = yes; then
5116 cat >conftest.$ac_ext <<_ACEOF
5119 cat confdefs.h >>conftest.$ac_ext
5120 cat >>conftest.$ac_ext <<_ACEOF
5121 /* end confdefs.h. */
5123 #if ((' ' & 0x0FF) == 0x020)
5124 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5125 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5127 # define ISLOWER(c) \
5128 (('a' <= (c) && (c) <= 'i') \
5129 || ('j' <= (c) && (c) <= 'r') \
5130 || ('s' <= (c) && (c) <= 'z'))
5131 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5134 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5139 for (i = 0; i < 256; i++)
5140 if (XOR (islower (i), ISLOWER (i))
5141 || toupper (i) != TOUPPER (i))
5146 rm -f conftest$ac_exeext
5147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5148 (eval $ac_link) 2>&5
5150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5151 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156 (exit $ac_status); }; }; then
5159 echo "$as_me: program exited with status $ac_status" >&5
5160 echo "$as_me: failed program was:" >&5
5161 sed 's/^/| /' conftest.$ac_ext >&5
5164 ac_cv_header_stdc=no
5166 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5170 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5171 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5172 if test $ac_cv_header_stdc = yes; then
5174 cat >>confdefs.h <<\_ACEOF
5175 #define STDC_HEADERS 1
5180 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5181 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5182 if test "${ac_cv_header_time+set}" = set; then
5183 echo $ECHO_N "(cached) $ECHO_C" >&6
5185 cat >conftest.$ac_ext <<_ACEOF
5188 cat confdefs.h >>conftest.$ac_ext
5189 cat >>conftest.$ac_ext <<_ACEOF
5190 /* end confdefs.h. */
5191 #include <sys/types.h>
5192 #include <sys/time.h>
5198 if ((struct tm *) 0)
5204 rm -f conftest.$ac_objext
5205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5206 (eval $ac_compile) 2>conftest.er1
5208 grep -v '^ *+' conftest.er1 >conftest.err
5210 cat conftest.err >&5
5211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212 (exit $ac_status); } &&
5213 { ac_try='test -z "$ac_c_werror_flag"
5214 || test ! -s conftest.err'
5215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219 (exit $ac_status); }; } &&
5220 { ac_try='test -s conftest.$ac_objext'
5221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225 (exit $ac_status); }; }; then
5226 ac_cv_header_time=yes
5228 echo "$as_me: failed program was:" >&5
5229 sed 's/^/| /' conftest.$ac_ext >&5
5231 ac_cv_header_time=no
5233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5235 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5236 echo "${ECHO_T}$ac_cv_header_time" >&6
5237 if test $ac_cv_header_time = yes; then
5239 cat >>confdefs.h <<\_ACEOF
5240 #define TIME_WITH_SYS_TIME 1
5245 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5255 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5256 inttypes.h stdint.h unistd.h
5258 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5259 echo "$as_me:$LINENO: checking for $ac_header" >&5
5260 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5261 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5262 echo $ECHO_N "(cached) $ECHO_C" >&6
5264 cat >conftest.$ac_ext <<_ACEOF
5267 cat confdefs.h >>conftest.$ac_ext
5268 cat >>conftest.$ac_ext <<_ACEOF
5269 /* end confdefs.h. */
5270 $ac_includes_default
5272 #include <$ac_header>
5274 rm -f conftest.$ac_objext
5275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5276 (eval $ac_compile) 2>conftest.er1
5278 grep -v '^ *+' conftest.er1 >conftest.err
5280 cat conftest.err >&5
5281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282 (exit $ac_status); } &&
5283 { ac_try='test -z "$ac_c_werror_flag"
5284 || test ! -s conftest.err'
5285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289 (exit $ac_status); }; } &&
5290 { ac_try='test -s conftest.$ac_objext'
5291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295 (exit $ac_status); }; }; then
5296 eval "$as_ac_Header=yes"
5298 echo "$as_me: failed program was:" >&5
5299 sed 's/^/| /' conftest.$ac_ext >&5
5301 eval "$as_ac_Header=no"
5303 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5305 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5306 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5307 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5308 cat >>confdefs.h <<_ACEOF
5309 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5321 for ac_header in unistd.h semaphore.h sys/loadavg.h sys/time.h
5323 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5324 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5325 echo "$as_me:$LINENO: checking for $ac_header" >&5
5326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5327 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5328 echo $ECHO_N "(cached) $ECHO_C" >&6
5330 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5331 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5333 # Is the header compilable?
5334 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5335 echo $ECHO_N "checking $ac_header usability... $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
5343 #include <$ac_header>
5345 rm -f conftest.$ac_objext
5346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5347 (eval $ac_compile) 2>conftest.er1
5349 grep -v '^ *+' conftest.er1 >conftest.err
5351 cat conftest.err >&5
5352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353 (exit $ac_status); } &&
5354 { ac_try='test -z "$ac_c_werror_flag"
5355 || test ! -s conftest.err'
5356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5360 (exit $ac_status); }; } &&
5361 { ac_try='test -s conftest.$ac_objext'
5362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366 (exit $ac_status); }; }; then
5367 ac_header_compiler=yes
5369 echo "$as_me: failed program was:" >&5
5370 sed 's/^/| /' conftest.$ac_ext >&5
5372 ac_header_compiler=no
5374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5375 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5376 echo "${ECHO_T}$ac_header_compiler" >&6
5378 # Is the header present?
5379 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5380 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5381 cat >conftest.$ac_ext <<_ACEOF
5384 cat confdefs.h >>conftest.$ac_ext
5385 cat >>conftest.$ac_ext <<_ACEOF
5386 /* end confdefs.h. */
5387 #include <$ac_header>
5389 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5390 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5392 grep -v '^ *+' conftest.er1 >conftest.err
5394 cat conftest.err >&5
5395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396 (exit $ac_status); } >/dev/null; then
5397 if test -s conftest.err; then
5398 ac_cpp_err=$ac_c_preproc_warn_flag
5399 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5406 if test -z "$ac_cpp_err"; then
5407 ac_header_preproc=yes
5409 echo "$as_me: failed program was:" >&5
5410 sed 's/^/| /' conftest.$ac_ext >&5
5412 ac_header_preproc=no
5414 rm -f conftest.err conftest.$ac_ext
5415 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5416 echo "${ECHO_T}$ac_header_preproc" >&6
5418 # So? What about this header?
5419 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5421 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5422 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5423 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5424 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5425 ac_header_preproc=yes
5428 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5429 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5430 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5431 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5432 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5433 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5434 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5435 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5436 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5437 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5438 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5439 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5442 ## ----------------------------------------------------- ##
5443 ## Report this to the GNU OpenMP Runtime Library lists. ##
5444 ## ----------------------------------------------------- ##
5447 sed "s/^/$as_me: WARNING: /" >&2
5450 echo "$as_me:$LINENO: checking for $ac_header" >&5
5451 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5452 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5453 echo $ECHO_N "(cached) $ECHO_C" >&6
5455 eval "$as_ac_Header=\$ac_header_preproc"
5457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5458 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5461 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5462 cat >>confdefs.h <<_ACEOF
5463 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5470 if test "${ac_cv_header_pthread_h+set}" = set; then
5471 echo "$as_me:$LINENO: checking for pthread.h" >&5
5472 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
5473 if test "${ac_cv_header_pthread_h+set}" = set; then
5474 echo $ECHO_N "(cached) $ECHO_C" >&6
5476 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
5477 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
5479 # Is the header compilable?
5480 echo "$as_me:$LINENO: checking pthread.h usability" >&5
5481 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
5482 cat >conftest.$ac_ext <<_ACEOF
5485 cat confdefs.h >>conftest.$ac_ext
5486 cat >>conftest.$ac_ext <<_ACEOF
5487 /* end confdefs.h. */
5488 $ac_includes_default
5489 #include <pthread.h>
5491 rm -f conftest.$ac_objext
5492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5493 (eval $ac_compile) 2>conftest.er1
5495 grep -v '^ *+' conftest.er1 >conftest.err
5497 cat conftest.err >&5
5498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5499 (exit $ac_status); } &&
5500 { ac_try='test -z "$ac_c_werror_flag"
5501 || test ! -s conftest.err'
5502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506 (exit $ac_status); }; } &&
5507 { ac_try='test -s conftest.$ac_objext'
5508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5512 (exit $ac_status); }; }; then
5513 ac_header_compiler=yes
5515 echo "$as_me: failed program was:" >&5
5516 sed 's/^/| /' conftest.$ac_ext >&5
5518 ac_header_compiler=no
5520 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5521 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5522 echo "${ECHO_T}$ac_header_compiler" >&6
5524 # Is the header present?
5525 echo "$as_me:$LINENO: checking pthread.h presence" >&5
5526 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
5527 cat >conftest.$ac_ext <<_ACEOF
5530 cat confdefs.h >>conftest.$ac_ext
5531 cat >>conftest.$ac_ext <<_ACEOF
5532 /* end confdefs.h. */
5533 #include <pthread.h>
5535 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5536 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5538 grep -v '^ *+' conftest.er1 >conftest.err
5540 cat conftest.err >&5
5541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542 (exit $ac_status); } >/dev/null; then
5543 if test -s conftest.err; then
5544 ac_cpp_err=$ac_c_preproc_warn_flag
5545 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5552 if test -z "$ac_cpp_err"; then
5553 ac_header_preproc=yes
5555 echo "$as_me: failed program was:" >&5
5556 sed 's/^/| /' conftest.$ac_ext >&5
5558 ac_header_preproc=no
5560 rm -f conftest.err conftest.$ac_ext
5561 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5562 echo "${ECHO_T}$ac_header_preproc" >&6
5564 # So? What about this header?
5565 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5567 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
5568 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5569 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
5570 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
5571 ac_header_preproc=yes
5574 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
5575 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
5576 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
5577 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
5578 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
5579 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
5580 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
5581 echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
5582 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
5583 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
5584 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
5585 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
5588 ## ----------------------------------------------------- ##
5589 ## Report this to the GNU OpenMP Runtime Library lists. ##
5590 ## ----------------------------------------------------- ##
5593 sed "s/^/$as_me: WARNING: /" >&2
5596 echo "$as_me:$LINENO: checking for pthread.h" >&5
5597 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
5598 if test "${ac_cv_header_pthread_h+set}" = set; then
5599 echo $ECHO_N "(cached) $ECHO_C" >&6
5601 ac_cv_header_pthread_h=$ac_header_preproc
5603 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
5604 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
5607 if test $ac_cv_header_pthread_h = yes; then
5610 { { echo "$as_me:$LINENO: error: Pthreads are required to build libgomp" >&5
5611 echo "$as_me: error: Pthreads are required to build libgomp" >&2;}
5612 { (exit 1); exit 1; }; }
5617 # Check to see if -pthread or -lpthread is needed. Prefer the former.
5619 CFLAGS="$CFLAGS -pthread"
5620 cat >conftest.$ac_ext <<_ACEOF
5623 cat confdefs.h >>conftest.$ac_ext
5624 cat >>conftest.$ac_ext <<_ACEOF
5625 /* end confdefs.h. */
5626 #include <pthread.h>
5627 void *g(void *d) { return NULL; }
5631 pthread_t t; pthread_create(&t,NULL,g,NULL);
5636 rm -f conftest.$ac_objext conftest$ac_exeext
5637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5638 (eval $ac_link) 2>conftest.er1
5640 grep -v '^ *+' conftest.er1 >conftest.err
5642 cat conftest.err >&5
5643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644 (exit $ac_status); } &&
5645 { ac_try='test -z "$ac_c_werror_flag"
5646 || test ! -s conftest.err'
5647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651 (exit $ac_status); }; } &&
5652 { ac_try='test -s conftest$ac_exeext'
5653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657 (exit $ac_status); }; }; then
5658 XPCFLAGS=" -Wc,-pthread"
5660 echo "$as_me: failed program was:" >&5
5661 sed 's/^/| /' conftest.$ac_ext >&5
5663 CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
5664 cat >conftest.$ac_ext <<_ACEOF
5667 cat confdefs.h >>conftest.$ac_ext
5668 cat >>conftest.$ac_ext <<_ACEOF
5669 /* end confdefs.h. */
5670 #include <pthread.h>
5671 void *g(void *d) { return NULL; }
5675 pthread_t t; pthread_create(&t,NULL,g,NULL);
5680 rm -f conftest.$ac_objext conftest$ac_exeext
5681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5682 (eval $ac_link) 2>conftest.er1
5684 grep -v '^ *+' conftest.er1 >conftest.err
5686 cat conftest.err >&5
5687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688 (exit $ac_status); } &&
5689 { ac_try='test -z "$ac_c_werror_flag"
5690 || test ! -s conftest.err'
5691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5695 (exit $ac_status); }; } &&
5696 { ac_try='test -s conftest$ac_exeext'
5697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701 (exit $ac_status); }; }; then
5704 echo "$as_me: failed program was:" >&5
5705 sed 's/^/| /' conftest.$ac_ext >&5
5707 { { echo "$as_me:$LINENO: error: Pthreads are required to build libgomp" >&5
5708 echo "$as_me: error: Pthreads are required to build libgomp" >&2;}
5709 { (exit 1); exit 1; }; }
5711 rm -f conftest.err conftest.$ac_objext \
5712 conftest$ac_exeext conftest.$ac_ext
5714 rm -f conftest.err conftest.$ac_objext \
5715 conftest$ac_exeext conftest.$ac_ext
5717 # Check for functions needed.
5720 for ac_func in getloadavg clock_gettime
5722 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5723 echo "$as_me:$LINENO: checking for $ac_func" >&5
5724 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5725 if eval "test \"\${$as_ac_var+set}\" = set"; then
5726 echo $ECHO_N "(cached) $ECHO_C" >&6
5728 cat >conftest.$ac_ext <<_ACEOF
5731 cat confdefs.h >>conftest.$ac_ext
5732 cat >>conftest.$ac_ext <<_ACEOF
5733 /* end confdefs.h. */
5734 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5735 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5736 #define $ac_func innocuous_$ac_func
5738 /* System header to define __stub macros and hopefully few prototypes,
5739 which can conflict with char $ac_func (); below.
5740 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5741 <limits.h> exists even on freestanding compilers. */
5744 # include <limits.h>
5746 # include <assert.h>
5751 /* Override any gcc2 internal prototype to avoid an error. */
5756 /* We use char because int might match the return type of a gcc2
5757 builtin and then its argument prototype would still apply. */
5759 /* The GNU C library defines this for functions which it implements
5760 to always fail with ENOSYS. Some functions are actually named
5761 something starting with __ and the normal name is an alias. */
5762 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5765 char (*f) () = $ac_func;
5774 return f != $ac_func;
5779 rm -f conftest.$ac_objext conftest$ac_exeext
5780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5781 (eval $ac_link) 2>conftest.er1
5783 grep -v '^ *+' conftest.er1 >conftest.err
5785 cat conftest.err >&5
5786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787 (exit $ac_status); } &&
5788 { ac_try='test -z "$ac_c_werror_flag"
5789 || test ! -s conftest.err'
5790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794 (exit $ac_status); }; } &&
5795 { ac_try='test -s conftest$ac_exeext'
5796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800 (exit $ac_status); }; }; then
5801 eval "$as_ac_var=yes"
5803 echo "$as_me: failed program was:" >&5
5804 sed 's/^/| /' conftest.$ac_ext >&5
5806 eval "$as_ac_var=no"
5808 rm -f conftest.err conftest.$ac_objext \
5809 conftest$ac_exeext conftest.$ac_ext
5811 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5812 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5813 if test `eval echo '${'$as_ac_var'}'` = yes; then
5814 cat >>confdefs.h <<_ACEOF
5815 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5822 # At least for glibc, clock_gettime is in librt. But don't pull that
5823 # in if it still doesn't give us the function we want.
5824 if test $ac_cv_func_clock_gettime = no; then
5825 echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
5826 echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
5827 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
5828 echo $ECHO_N "(cached) $ECHO_C" >&6
5830 ac_check_lib_save_LIBS=$LIBS
5832 cat >conftest.$ac_ext <<_ACEOF
5835 cat confdefs.h >>conftest.$ac_ext
5836 cat >>conftest.$ac_ext <<_ACEOF
5837 /* end confdefs.h. */
5839 /* Override any gcc2 internal prototype to avoid an error. */
5843 /* We use char because int might match the return type of a gcc2
5844 builtin and then its argument prototype would still apply. */
5845 char clock_gettime ();
5854 rm -f conftest.$ac_objext conftest$ac_exeext
5855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5856 (eval $ac_link) 2>conftest.er1
5858 grep -v '^ *+' conftest.er1 >conftest.err
5860 cat conftest.err >&5
5861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); } &&
5863 { ac_try='test -z "$ac_c_werror_flag"
5864 || test ! -s conftest.err'
5865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869 (exit $ac_status); }; } &&
5870 { ac_try='test -s conftest$ac_exeext'
5871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875 (exit $ac_status); }; }; then
5876 ac_cv_lib_rt_clock_gettime=yes
5878 echo "$as_me: failed program was:" >&5
5879 sed 's/^/| /' conftest.$ac_ext >&5
5881 ac_cv_lib_rt_clock_gettime=no
5883 rm -f conftest.err conftest.$ac_objext \
5884 conftest$ac_exeext conftest.$ac_ext
5885 LIBS=$ac_check_lib_save_LIBS
5887 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
5888 echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
5889 if test $ac_cv_lib_rt_clock_gettime = yes; then
5891 cat >>confdefs.h <<\_ACEOF
5892 #define HAVE_CLOCK_GETTIME Define to 1 if you have the `clock_gettime' function.
5899 # See if we support thread-local storage.
5901 # Check whether --enable-tls or --disable-tls was given.
5902 if test "${enable_tls+set}" = set; then
5903 enableval="$enable_tls"
5905 case "$enableval" in
5907 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
5908 echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
5909 { (exit 1); exit 1; }; } ;;
5916 echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
5917 echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
5918 if test "${have_tls+set}" = set; then
5919 echo $ECHO_N "(cached) $ECHO_C" >&6
5922 cat >conftest.$ac_ext <<_ACEOF
5925 cat confdefs.h >>conftest.$ac_ext
5926 cat >>conftest.$ac_ext <<_ACEOF
5927 /* end confdefs.h. */
5937 rm -f conftest.$ac_objext
5938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5939 (eval $ac_compile) 2>conftest.er1
5941 grep -v '^ *+' conftest.er1 >conftest.err
5943 cat conftest.err >&5
5944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945 (exit $ac_status); } &&
5946 { ac_try='test -z "$ac_c_werror_flag"
5947 || test ! -s conftest.err'
5948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952 (exit $ac_status); }; } &&
5953 { ac_try='test -s conftest.$ac_objext'
5954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958 (exit $ac_status); }; }; then
5959 have_tls=$enable_tls
5961 echo "$as_me: failed program was:" >&5
5962 sed 's/^/| /' conftest.$ac_ext >&5
5966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5968 echo "$as_me:$LINENO: result: $have_tls" >&5
5969 echo "${ECHO_T}$have_tls" >&6
5970 if test $have_tls = yes; then
5972 cat >>confdefs.h <<\_ACEOF
5978 # See what sort of export controls are availible.
5980 echo "$as_me:$LINENO: checking whether the target supports hidden visibility" >&5
5981 echo $ECHO_N "checking whether the target supports hidden visibility... $ECHO_C" >&6
5982 if test "${have_attribute_visibility+set}" = set; then
5983 echo $ECHO_N "(cached) $ECHO_C" >&6
5986 save_CFLAGS="$CFLAGS"
5987 CFLAGS="$CFLAGS -Werror"
5988 cat >conftest.$ac_ext <<_ACEOF
5991 cat confdefs.h >>conftest.$ac_ext
5992 cat >>conftest.$ac_ext <<_ACEOF
5993 /* end confdefs.h. */
5994 void __attribute__((visibility("hidden"))) foo(void) { }
6003 rm -f conftest.$ac_objext
6004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6005 (eval $ac_compile) 2>conftest.er1
6007 grep -v '^ *+' conftest.er1 >conftest.err
6009 cat conftest.err >&5
6010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011 (exit $ac_status); } &&
6012 { ac_try='test -z "$ac_c_werror_flag"
6013 || test ! -s conftest.err'
6014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); }; } &&
6019 { ac_try='test -s conftest.$ac_objext'
6020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024 (exit $ac_status); }; }; then
6025 have_attribute_visibility=yes
6027 echo "$as_me: failed program was:" >&5
6028 sed 's/^/| /' conftest.$ac_ext >&5
6030 have_attribute_visibility=no
6032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6033 CFLAGS="$save_CFLAGS"
6035 echo "$as_me:$LINENO: result: $have_attribute_visibility" >&5
6036 echo "${ECHO_T}$have_attribute_visibility" >&6
6037 if test $have_attribute_visibility = yes; then
6039 cat >>confdefs.h <<\_ACEOF
6040 #define HAVE_ATTRIBUTE_VISIBILITY 1
6045 echo "$as_me:$LINENO: checking whether the target supports dllexport" >&5
6046 echo $ECHO_N "checking whether the target supports dllexport... $ECHO_C" >&6
6047 if test "${have_attribute_dllexport+set}" = set; then
6048 echo $ECHO_N "(cached) $ECHO_C" >&6
6051 save_CFLAGS="$CFLAGS"
6052 CFLAGS="$CFLAGS -Werror"
6053 cat >conftest.$ac_ext <<_ACEOF
6056 cat confdefs.h >>conftest.$ac_ext
6057 cat >>conftest.$ac_ext <<_ACEOF
6058 /* end confdefs.h. */
6059 void __attribute__((dllexport)) foo(void) { }
6068 rm -f conftest.$ac_objext
6069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6070 (eval $ac_compile) 2>conftest.er1
6072 grep -v '^ *+' conftest.er1 >conftest.err
6074 cat conftest.err >&5
6075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6076 (exit $ac_status); } &&
6077 { ac_try='test -z "$ac_c_werror_flag"
6078 || test ! -s conftest.err'
6079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083 (exit $ac_status); }; } &&
6084 { ac_try='test -s conftest.$ac_objext'
6085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089 (exit $ac_status); }; }; then
6090 have_attribute_dllexport=yes
6092 echo "$as_me: failed program was:" >&5
6093 sed 's/^/| /' conftest.$ac_ext >&5
6095 have_attribute_dllexport=no
6097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6098 CFLAGS="$save_CFLAGS"
6100 echo "$as_me:$LINENO: result: $have_attribute_dllexport" >&5
6101 echo "${ECHO_T}$have_attribute_dllexport" >&6
6102 if test $have_attribute_dllexport = yes; then
6104 cat >>confdefs.h <<\_ACEOF
6105 #define HAVE_ATTRIBUTE_DLLEXPORT 1
6110 echo "$as_me:$LINENO: checking whether the target supports symbol aliases" >&5
6111 echo $ECHO_N "checking whether the target supports symbol aliases... $ECHO_C" >&6
6112 if test "${have_attribute_alias+set}" = set; then
6113 echo $ECHO_N "(cached) $ECHO_C" >&6
6116 cat >conftest.$ac_ext <<_ACEOF
6119 cat confdefs.h >>conftest.$ac_ext
6120 cat >>conftest.$ac_ext <<_ACEOF
6121 /* end confdefs.h. */
6123 #define ULP STR1(__USER_LABEL_PREFIX__)
6124 #define STR1(x) STR2(x)
6127 extern void bar(void) __attribute__((alias(ULP "foo")));
6136 rm -f conftest.$ac_objext conftest$ac_exeext
6137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6138 (eval $ac_link) 2>conftest.er1
6140 grep -v '^ *+' conftest.er1 >conftest.err
6142 cat conftest.err >&5
6143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144 (exit $ac_status); } &&
6145 { ac_try='test -z "$ac_c_werror_flag"
6146 || test ! -s conftest.err'
6147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151 (exit $ac_status); }; } &&
6152 { ac_try='test -s conftest$ac_exeext'
6153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6157 (exit $ac_status); }; }; then
6158 have_attribute_alias=yes
6160 echo "$as_me: failed program was:" >&5
6161 sed 's/^/| /' conftest.$ac_ext >&5
6163 have_attribute_alias=no
6165 rm -f conftest.err conftest.$ac_objext \
6166 conftest$ac_exeext conftest.$ac_ext
6168 echo "$as_me:$LINENO: result: $have_attribute_alias" >&5
6169 echo "${ECHO_T}$have_attribute_alias" >&6
6170 if test $have_attribute_alias = yes; then
6172 cat >>confdefs.h <<\_ACEOF
6173 #define HAVE_ATTRIBUTE_ALIAS 1
6178 # If we're not using GNU ld, then there's no point in even trying these
6179 # tests. Check for that first. We should have already tested for gld
6180 # by now (in libtool), but require it now just to be safe...
6181 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
6182 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
6186 # The name set by libtool depends on the version of libtool. Shame on us
6187 # for depending on an impl detail, but c'est la vie. Older versions used
6188 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
6189 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
6190 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
6191 # set (hence we're using an older libtool), then set it.
6192 if test x${with_gnu_ld+set} != xset; then
6193 if test x${ac_cv_prog_gnu_ld+set} != xset; then
6194 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
6197 with_gnu_ld=$ac_cv_prog_gnu_ld
6201 # Start by getting the version number. I think the libtool test already
6202 # does some of this, but throws away the result.
6204 ldver=`$LD --version 2>/dev/null | head -1 | \
6205 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
6207 libgomp_gnu_ld_version=`echo $ldver | \
6208 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
6210 # Set --gc-sections.
6211 if test "$with_gnu_ld" = "notbroken"; then
6212 # GNU ld it is! Joy and bunny rabbits!
6214 # All these tests are for C++; save the language and the compiler flags.
6215 # Need to do this so that g++ won't try to link in libstdc++
6216 ac_test_CFLAGS="${CFLAGS+set}"
6217 ac_save_CFLAGS="$CFLAGS"
6218 CFLAGS='-x c++ -Wl,--gc-sections'
6220 # Check for -Wl,--gc-sections
6221 # XXX This test is broken at the moment, as symbols required for linking
6222 # are now in libsupc++ (not built yet). In addition, this test has
6223 # cored on solaris in the past. In addition, --gc-sections doesn't
6224 # really work at the moment (keeps on discarding used sections, first
6225 # .eh_frame and now some of the glibc sections for iconv).
6226 # Bzzzzt. Thanks for playing, maybe next time.
6227 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
6228 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
6229 if test "$cross_compiling" = yes; then
6230 ac_sectionLDflags=yes
6232 cat >conftest.$ac_ext <<_ACEOF
6235 cat confdefs.h >>conftest.$ac_ext
6236 cat >>conftest.$ac_ext <<_ACEOF
6237 /* end confdefs.h. */
6247 rm -f conftest$ac_exeext
6248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6249 (eval $ac_link) 2>&5
6251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); }; }; then
6258 ac_sectionLDflags=yes
6260 echo "$as_me: program exited with status $ac_status" >&5
6261 echo "$as_me: failed program was:" >&5
6262 sed 's/^/| /' conftest.$ac_ext >&5
6265 ac_sectionLDflags=no
6267 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6269 if test "$ac_test_CFLAGS" = set; then
6270 CFLAGS="$ac_save_CFLAGS"
6272 # this is the suspicious part
6275 if test "$ac_sectionLDflags" = "yes"; then
6276 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
6278 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
6279 echo "${ECHO_T}$ac_sectionLDflags" >&6
6282 # Set linker optimization flags.
6283 if test x"$with_gnu_ld" = x"yes"; then
6284 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
6292 # Check whether --enable-symvers or --disable-symvers was given.
6293 if test "${enable_symvers+set}" = set; then
6294 enableval="$enable_symvers"
6296 case "$enableval" in
6298 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable symvers" >&5
6299 echo "$as_me: error: Unknown argument to enable/disable symvers" >&2;}
6300 { (exit 1); exit 1; }; } ;;
6308 # If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
6309 # don't know enough about $LD to do tricks...
6311 # FIXME The following test is too strict, in theory.
6312 if test $enable_shared = no ||
6314 test x$libgomp_gnu_ld_version = x; then
6318 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
6319 if test $enable_symvers != no; then
6320 echo "$as_me:$LINENO: checking for shared libgcc" >&5
6321 echo $ECHO_N "checking for shared libgcc... $ECHO_C" >&6
6322 ac_save_CFLAGS="$CFLAGS"
6324 cat >conftest.$ac_ext <<_ACEOF
6327 cat confdefs.h >>conftest.$ac_ext
6328 cat >>conftest.$ac_ext <<_ACEOF
6329 /* end confdefs.h. */
6339 rm -f conftest.$ac_objext conftest$ac_exeext
6340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6341 (eval $ac_link) 2>conftest.er1
6343 grep -v '^ *+' conftest.er1 >conftest.err
6345 cat conftest.err >&5
6346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347 (exit $ac_status); } &&
6348 { ac_try='test -z "$ac_c_werror_flag"
6349 || test ! -s conftest.err'
6350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354 (exit $ac_status); }; } &&
6355 { ac_try='test -s conftest$ac_exeext'
6356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360 (exit $ac_status); }; }; then
6361 libgomp_shared_libgcc=yes
6363 echo "$as_me: failed program was:" >&5
6364 sed 's/^/| /' conftest.$ac_ext >&5
6366 libgomp_shared_libgcc=no
6368 rm -f conftest.err conftest.$ac_objext \
6369 conftest$ac_exeext conftest.$ac_ext
6370 CFLAGS="$ac_save_CFLAGS"
6371 if test $libgomp_shared_libgcc = no; then
6372 cat > conftest.c <<EOF
6373 int main (void) { return 0; }
6375 libgomp_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
6376 -shared -shared-libgcc -o conftest.so \
6377 conftest.c -v 2>&1 >/dev/null \
6378 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
6379 rm -f conftest.c conftest.so
6380 if test x${libgomp_libgcc_s_suffix+set} = xset; then
6381 CFLAGS=" -lgcc_s$libgomp_libgcc_s_suffix"
6382 cat >conftest.$ac_ext <<_ACEOF
6385 cat confdefs.h >>conftest.$ac_ext
6386 cat >>conftest.$ac_ext <<_ACEOF
6387 /* end confdefs.h. */
6397 rm -f conftest.$ac_objext conftest$ac_exeext
6398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6399 (eval $ac_link) 2>conftest.er1
6401 grep -v '^ *+' conftest.er1 >conftest.err
6403 cat conftest.err >&5
6404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6405 (exit $ac_status); } &&
6406 { ac_try='test -z "$ac_c_werror_flag"
6407 || test ! -s conftest.err'
6408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412 (exit $ac_status); }; } &&
6413 { ac_try='test -s conftest$ac_exeext'
6414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6418 (exit $ac_status); }; }; then
6419 libgomp_shared_libgcc=yes
6421 echo "$as_me: failed program was:" >&5
6422 sed 's/^/| /' conftest.$ac_ext >&5
6425 rm -f conftest.err conftest.$ac_objext \
6426 conftest$ac_exeext conftest.$ac_ext
6427 CFLAGS="$ac_save_CFLAGS"
6430 echo "$as_me:$LINENO: result: $libgomp_shared_libgcc" >&5
6431 echo "${ECHO_T}$libgomp_shared_libgcc" >&6
6434 # For GNU ld, we need at least this version. The format is described in
6435 # LIBGOMP_CHECK_LINKER_FEATURES above.
6436 libgomp_min_gnu_ld_version=21400
6437 # XXXXXXXXXXX libgomp_gnu_ld_version=21390
6439 # Check to see if unspecified "yes" value can win, given results above.
6440 # Change "yes" into either "no" or a style name.
6441 if test $enable_symvers = yes; then
6442 if test $with_gnu_ld = yes &&
6443 test $libgomp_shared_libgcc = yes;
6445 if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
6448 # The right tools, the right setup, but too old. Fallbacks?
6449 { echo "$as_me:$LINENO: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
6450 echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
6451 { echo "$as_me:$LINENO: WARNING: === full symbol versioning support in this release of GCC." >&5
6452 echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
6453 { echo "$as_me:$LINENO: WARNING: === You would need to upgrade your binutils to version" >&5
6454 echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
6455 { echo "$as_me:$LINENO: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
6456 echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
6457 if test $libgomp_gnu_ld_version -ge 21200 ; then
6458 # Globbing fix is present, proper block support is not.
6459 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
6460 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
6464 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
6465 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
6471 { echo "$as_me:$LINENO: WARNING: === You have requested some kind of symbol versioning, but" >&5
6472 echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
6473 { echo "$as_me:$LINENO: WARNING: === either you are not using a supported linker, or you are" >&5
6474 echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
6475 { echo "$as_me:$LINENO: WARNING: === not building a shared libgcc_s (which is required)." >&5
6476 echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
6477 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
6478 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
6485 if test $enable_symvers != no; then
6486 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE=
6487 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE='#'
6489 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='#'
6490 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE=
6493 { echo "$as_me:$LINENO: versioning on shared library symbols is $enable_symvers" >&5
6494 echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
6497 # Get target configury.
6498 . ${srcdir}/configure.tgt
6499 CFLAGS="$save_CFLAGS $XCFLAGS"
6501 # Check for __sync_val_compare_and_swap, but only after the target has
6502 # had a chance to set XCFLAGS.
6504 echo "$as_me:$LINENO: checking whether the target supports __sync_*_compare_and_swap" >&5
6505 echo $ECHO_N "checking whether the target supports __sync_*_compare_and_swap... $ECHO_C" >&6
6506 if test "${have_sync_builtins+set}" = set; then
6507 echo $ECHO_N "(cached) $ECHO_C" >&6
6510 cat >conftest.$ac_ext <<_ACEOF
6513 cat confdefs.h >>conftest.$ac_ext
6514 cat >>conftest.$ac_ext <<_ACEOF
6515 /* end confdefs.h. */
6520 int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
6525 rm -f conftest.$ac_objext conftest$ac_exeext
6526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6527 (eval $ac_link) 2>conftest.er1
6529 grep -v '^ *+' conftest.er1 >conftest.err
6531 cat conftest.err >&5
6532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533 (exit $ac_status); } &&
6534 { ac_try='test -z "$ac_c_werror_flag"
6535 || test ! -s conftest.err'
6536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540 (exit $ac_status); }; } &&
6541 { ac_try='test -s conftest$ac_exeext'
6542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546 (exit $ac_status); }; }; then
6547 have_sync_builtins=yes
6549 echo "$as_me: failed program was:" >&5
6550 sed 's/^/| /' conftest.$ac_ext >&5
6552 have_sync_builtins=no
6554 rm -f conftest.err conftest.$ac_objext \
6555 conftest$ac_exeext conftest.$ac_ext
6557 echo "$as_me:$LINENO: result: $have_sync_builtins" >&5
6558 echo "${ECHO_T}$have_sync_builtins" >&6
6559 if test $have_sync_builtins = yes; then
6561 cat >>confdefs.h <<\_ACEOF
6562 #define HAVE_SYNC_BUILTINS 1
6567 XCFLAGS="$XCFLAGS$XPCFLAGS"
6574 CFLAGS="$save_CFLAGS"
6575 cat >confcache <<\_ACEOF
6576 # This file is a shell script that caches the results of configure
6577 # tests run on this system so they can be shared between configure
6578 # scripts and configure runs, see configure's option --config-cache.
6579 # It is not useful on other systems. If it contains results you don't
6580 # want to keep, you may remove or edit it.
6582 # config.status only pays attention to the cache file if you give it
6583 # the --recheck option to rerun configure.
6585 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6586 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6591 # The following way of writing the cache mishandles newlines in values,
6592 # but we know of no workaround that is simple, portable, and efficient.
6593 # So, don't put newlines in cache variables' values.
6594 # Ultrix sh set writes to stderr and can't be redirected directly,
6595 # and sets the high bit in the cache file unless we assign to the vars.
6598 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6600 # `set' does not quote correctly, so add quotes (double-quote
6601 # substitution turns \\\\ into \\, and sed turns \\ into \).
6604 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6607 # `set' quotes correctly as required by POSIX, so do not add quotes.
6609 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6616 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6618 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6620 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6621 if test -w $cache_file; then
6622 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6623 cat confcache >$cache_file
6625 echo "not updating unwritable cache $cache_file"
6630 if test ${multilib} = yes; then
6631 multilib_arg="--enable-multilib"
6636 # Set up the set of libraries that we need to link against for libgomp.
6637 # Note that the GOMP_SELF_SPEC in gcc.c will force -pthread for -fopenmp,
6638 # which will force linkage against -lpthread (or equivalent for the system).
6639 # That's not 100% ideal, but about the best we can do easily.
6640 if test $enable_shared = yes; then
6641 link_gomp="-lgomp %{static: $LIBS}"
6643 link_gomp="-lgomp $LIBS"
6649 if test "$ac_cv_fc_compiler_gnu" = yes; then
6651 USE_FORTRAN_FALSE='#'
6653 USE_FORTRAN_TRUE='#'
6658 ac_config_files="$ac_config_files Makefile testsuite/Makefile libgomp.spec"
6660 cat >confcache <<\_ACEOF
6661 # This file is a shell script that caches the results of configure
6662 # tests run on this system so they can be shared between configure
6663 # scripts and configure runs, see configure's option --config-cache.
6664 # It is not useful on other systems. If it contains results you don't
6665 # want to keep, you may remove or edit it.
6667 # config.status only pays attention to the cache file if you give it
6668 # the --recheck option to rerun configure.
6670 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6671 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6676 # The following way of writing the cache mishandles newlines in values,
6677 # but we know of no workaround that is simple, portable, and efficient.
6678 # So, don't put newlines in cache variables' values.
6679 # Ultrix sh set writes to stderr and can't be redirected directly,
6680 # and sets the high bit in the cache file unless we assign to the vars.
6683 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6685 # `set' does not quote correctly, so add quotes (double-quote
6686 # substitution turns \\\\ into \\, and sed turns \\ into \).
6689 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6692 # `set' quotes correctly as required by POSIX, so do not add quotes.
6694 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6701 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6703 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6705 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6706 if test -w $cache_file; then
6707 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6708 cat confcache >$cache_file
6710 echo "not updating unwritable cache $cache_file"
6715 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6716 # Let make expand exec_prefix.
6717 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6719 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6720 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6721 # trailing colons and then remove the whole line if VPATH becomes empty
6722 # (actually we leave an empty line to preserve line numbers).
6723 if test "x$srcdir" = x.; then
6724 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6725 s/:*\$(srcdir):*/:/;
6726 s/:*\${srcdir}:*/:/;
6728 s/^\([^=]*=[ ]*\):*/\1/;
6734 DEFS=-DHAVE_CONFIG_H
6738 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6739 # 1. Remove the extension, and $U if already installed.
6740 ac_i=`echo "$ac_i" |
6741 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6743 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6744 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6748 LTLIBOBJS=$ac_ltlibobjs
6751 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6752 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
6753 Usually this means the macro was only invoked conditionally." >&5
6754 echo "$as_me: error: conditional \"AMDEP\" was never defined.
6755 Usually this means the macro was only invoked conditionally." >&2;}
6756 { (exit 1); exit 1; }; }
6758 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6759 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
6760 Usually this means the macro was only invoked conditionally." >&5
6761 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
6762 Usually this means the macro was only invoked conditionally." >&2;}
6763 { (exit 1); exit 1; }; }
6765 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
6766 { { echo "$as_me:$LINENO: error: conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
6767 Usually this means the macro was only invoked conditionally." >&5
6768 echo "$as_me: error: conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
6769 Usually this means the macro was only invoked conditionally." >&2;}
6770 { (exit 1); exit 1; }; }
6772 if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
6773 { { echo "$as_me:$LINENO: error: conditional \"USE_FORTRAN\" was never defined.
6774 Usually this means the macro was only invoked conditionally." >&5
6775 echo "$as_me: error: conditional \"USE_FORTRAN\" was never defined.
6776 Usually this means the macro was only invoked conditionally." >&2;}
6777 { (exit 1); exit 1; }; }
6780 : ${CONFIG_STATUS=./config.status}
6781 ac_clean_files_save=$ac_clean_files
6782 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6783 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6784 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6785 cat >$CONFIG_STATUS <<_ACEOF
6787 # Generated by $as_me.
6788 # Run this file to recreate the current configuration.
6789 # Compiler output produced by configure, useful for debugging
6790 # configure, is in config.log if it exists.
6795 SHELL=\${CONFIG_SHELL-$SHELL}
6798 cat >>$CONFIG_STATUS <<\_ACEOF
6799 ## --------------------- ##
6800 ## M4sh Initialization. ##
6801 ## --------------------- ##
6803 # Be Bourne compatible
6804 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6807 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6808 # is contrary to our usage. Disable this feature.
6809 alias -g '${1+"$@"}'='"$@"'
6810 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6813 DUALCASE=1; export DUALCASE # for MKS sh
6815 # Support unset when possible.
6816 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6823 # Work around bugs in pre-3.0 UWIN ksh.
6824 $as_unset ENV MAIL MAILPATH
6831 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6832 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6833 LC_TELEPHONE LC_TIME
6835 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6836 eval $as_var=C; export $as_var
6842 # Required to use basename.
6843 if expr a : '\(a\)' >/dev/null 2>&1; then
6849 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6850 as_basename=basename
6856 # Name of the executable.
6857 as_me=`$as_basename "$0" ||
6858 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6859 X"$0" : 'X\(//\)$' \| \
6860 X"$0" : 'X\(/\)$' \| \
6861 . : '\(.\)' 2>/dev/null ||
6863 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6864 /^X\/\(\/\/\)$/{ s//\1/; q; }
6865 /^X\/\(\/\).*/{ s//\1/; q; }
6869 # PATH needs CR, and LINENO needs CR and PATH.
6870 # Avoid depending upon Character Ranges.
6871 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6872 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6873 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6874 as_cr_digits='0123456789'
6875 as_cr_alnum=$as_cr_Letters$as_cr_digits
6877 # The user is always right.
6878 if test "${PATH_SEPARATOR+set}" != set; then
6879 echo "#! /bin/sh" >conf$$.sh
6880 echo "exit 0" >>conf$$.sh
6882 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6893 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6894 test "x$as_lineno_1" != "x$as_lineno_2" &&
6895 test "x$as_lineno_3" = "x$as_lineno_2" || {
6896 # Find who we are. Look in the path if we contain no path at all
6899 *[\\/]* ) as_myself=$0 ;;
6900 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6904 test -z "$as_dir" && as_dir=.
6905 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6910 # We did not find ourselves, most probably we were run as `sh COMMAND'
6911 # in which case we are not to be found in the path.
6912 if test "x$as_myself" = x; then
6915 if test ! -f "$as_myself"; then
6916 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6917 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6918 { (exit 1); exit 1; }; }
6920 case $CONFIG_SHELL in
6922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6923 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6926 test -z "$as_dir" && as_dir=.
6927 for as_base in sh bash ksh sh5; do
6930 if ("$as_dir/$as_base" -c '
6933 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6934 test "x$as_lineno_1" != "x$as_lineno_2" &&
6935 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6936 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6937 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6938 CONFIG_SHELL=$as_dir/$as_base
6940 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6948 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6949 # uniformly replaced by the line number. The first 'sed' inserts a
6950 # line-number line before each line; the second 'sed' does the real
6951 # work. The second script uses 'N' to pair each line-number line
6952 # with the numbered line, and appends trailing '-' during
6953 # substitution so that $LINENO is not a special case at line end.
6954 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6955 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6956 sed '=' <$as_myself |
6961 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6964 s,^['$as_cr_digits']*\n,,
6966 chmod +x $as_me.lineno ||
6967 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6968 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6969 { (exit 1); exit 1; }; }
6971 # Don't try to exec as it changes $[0], causing all sort of problems
6972 # (the dirname of $[0] is not the place where we might find the
6973 # original and so on. Autoconf is especially sensible to this).
6975 # Exit status is that of the last command.
6980 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6981 *c*,-n*) ECHO_N= ECHO_C='
6983 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6984 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6987 if expr a : '\(a\)' >/dev/null 2>&1; then
6993 rm -f conf$$ conf$$.exe conf$$.file
6995 if ln -s conf$$.file conf$$ 2>/dev/null; then
6996 # We could just check for DJGPP; but this test a) works b) is more generic
6997 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6998 if test -f conf$$.exe; then
6999 # Don't use ln at all; we don't have any links
7004 elif ln conf$$.file conf$$ 2>/dev/null; then
7009 rm -f conf$$ conf$$.exe conf$$.file
7011 if mkdir -p . 2>/dev/null; then
7014 test -d ./-p && rmdir ./-p
7018 as_executable_p="test -f"
7020 # Sed expression to map a string onto a valid CPP name.
7021 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7023 # Sed expression to map a string onto a valid variable name.
7024 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7028 # We need space, tab and new line, in precisely that order.
7038 # Open the log real soon, to keep \$[0] and so on meaningful, and to
7039 # report actual input values of CONFIG_FILES etc. instead of their
7040 # values after options handling. Logging --version etc. is OK.
7044 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7045 ## Running $as_me. ##
7050 This file was extended by GNU OpenMP Runtime Library $as_me 1.0, which was
7051 generated by GNU Autoconf 2.59. Invocation command line was
7053 CONFIG_FILES = $CONFIG_FILES
7054 CONFIG_HEADERS = $CONFIG_HEADERS
7055 CONFIG_LINKS = $CONFIG_LINKS
7056 CONFIG_COMMANDS = $CONFIG_COMMANDS
7060 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7064 # Files that config.status was made for.
7065 if test -n "$ac_config_files"; then
7066 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7069 if test -n "$ac_config_headers"; then
7070 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7073 if test -n "$ac_config_links"; then
7074 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7077 if test -n "$ac_config_commands"; then
7078 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7081 cat >>$CONFIG_STATUS <<\_ACEOF
7084 \`$as_me' instantiates files from templates according to the
7085 current configuration.
7087 Usage: $0 [OPTIONS] [FILE]...
7089 -h, --help print this help, then exit
7090 -V, --version print version number, then exit
7091 -q, --quiet do not print progress messages
7092 -d, --debug don't remove temporary files
7093 --recheck update $as_me by reconfiguring in the same conditions
7094 --file=FILE[:TEMPLATE]
7095 instantiate the configuration file FILE
7096 --header=FILE[:TEMPLATE]
7097 instantiate the configuration header FILE
7099 Configuration files:
7102 Configuration headers:
7105 Configuration commands:
7108 Report bugs to <bug-autoconf@gnu.org>."
7111 cat >>$CONFIG_STATUS <<_ACEOF
7113 GNU OpenMP Runtime Library config.status 1.0
7114 configured by $0, generated by GNU Autoconf 2.59,
7115 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7117 Copyright (C) 2003 Free Software Foundation, Inc.
7118 This config.status script is free software; the Free Software Foundation
7119 gives unlimited permission to copy, distribute and modify it."
7124 cat >>$CONFIG_STATUS <<\_ACEOF
7125 # If no file are specified by the user, then we need to provide default
7126 # value. By we need to know if files were specified by the user.
7132 ac_option=`expr "x$1" : 'x\([^=]*\)='`
7133 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7141 *) # This is not an option, so the user has probably given explicit
7144 ac_need_defaults=false;;
7148 # Handling of the options.
7150 cat >>$CONFIG_STATUS <<\_ACEOF
7151 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7153 --version | --vers* | -V )
7154 echo "$ac_cs_version"; exit 0 ;;
7156 # Conflict between --help and --header
7157 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7158 Try \`$0 --help' for more information." >&5
7159 echo "$as_me: error: ambiguous option: $1
7160 Try \`$0 --help' for more information." >&2;}
7161 { (exit 1); exit 1; }; };;
7162 --help | --hel | -h )
7163 echo "$ac_cs_usage"; exit 0 ;;
7164 --debug | --d* | -d )
7166 --file | --fil | --fi | --f )
7168 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7169 ac_need_defaults=false;;
7170 --header | --heade | --head | --hea )
7172 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7173 ac_need_defaults=false;;
7174 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7175 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7179 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7180 Try \`$0 --help' for more information." >&5
7181 echo "$as_me: error: unrecognized option: $1
7182 Try \`$0 --help' for more information." >&2;}
7183 { (exit 1); exit 1; }; } ;;
7185 *) ac_config_targets="$ac_config_targets $1" ;;
7191 ac_configure_extra_args=
7193 if $ac_cs_silent; then
7195 ac_configure_extra_args="$ac_configure_extra_args --silent"
7199 cat >>$CONFIG_STATUS <<_ACEOF
7200 if \$ac_cs_recheck; then
7201 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7202 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7207 cat >>$CONFIG_STATUS <<_ACEOF
7209 # INIT-COMMANDS section.
7216 with_multisubdir="$with_multisubdir"
7217 with_multisrctop="$with_multisrctop"
7218 with_target_subdir="$with_target_subdir"
7219 ac_configure_args="${multilib_arg} ${ac_configure_args}"
7220 multi_basedir="$multi_basedir"
7221 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
7223 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
7229 cat >>$CONFIG_STATUS <<\_ACEOF
7230 for ac_config_target in $ac_config_targets
7232 case "$ac_config_target" in
7233 # Handling of arguments.
7234 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7235 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
7236 "libgomp.spec" ) CONFIG_FILES="$CONFIG_FILES libgomp.spec" ;;
7237 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
7238 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7239 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7240 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7241 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7242 { (exit 1); exit 1; }; };;
7246 # If the user did not use the arguments to specify the items to instantiate,
7247 # then the envvar interface is used. Set only those that are not.
7248 # We use the long form for the default assignment because of an extremely
7249 # bizarre bug on SunOS 4.1.3.
7250 if $ac_need_defaults; then
7251 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7252 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7253 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7256 # Have a temporary directory for convenience. Make it in the build tree
7257 # simply because there is no reason to put it here, and in addition,
7258 # creating and moving files from /tmp can sometimes cause problems.
7259 # Create a temporary directory, and hook for its removal unless debugging.
7262 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7263 trap '{ (exit 1); exit 1; }' 1 2 13 15
7266 # Create a (secure) tmp directory for tmp files.
7269 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7270 test -n "$tmp" && test -d "$tmp"
7273 tmp=./confstat$$-$RANDOM
7274 (umask 077 && mkdir $tmp)
7277 echo "$me: cannot create a temporary directory in ." >&2
7278 { (exit 1); exit 1; }
7283 cat >>$CONFIG_STATUS <<_ACEOF
7286 # CONFIG_FILES section.
7289 # No need to generate the scripts if there are no CONFIG_FILES.
7290 # This happens for instance when ./config.status config.h
7291 if test -n "\$CONFIG_FILES"; then
7292 # Protect against being on the right side of a sed subst in config.status.
7293 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7294 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7295 s,@SHELL@,$SHELL,;t t
7296 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7297 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7298 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7299 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7300 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7301 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7302 s,@exec_prefix@,$exec_prefix,;t t
7303 s,@prefix@,$prefix,;t t
7304 s,@program_transform_name@,$program_transform_name,;t t
7305 s,@bindir@,$bindir,;t t
7306 s,@sbindir@,$sbindir,;t t
7307 s,@libexecdir@,$libexecdir,;t t
7308 s,@datadir@,$datadir,;t t
7309 s,@sysconfdir@,$sysconfdir,;t t
7310 s,@sharedstatedir@,$sharedstatedir,;t t
7311 s,@localstatedir@,$localstatedir,;t t
7312 s,@libdir@,$libdir,;t t
7313 s,@includedir@,$includedir,;t t
7314 s,@oldincludedir@,$oldincludedir,;t t
7315 s,@infodir@,$infodir,;t t
7316 s,@mandir@,$mandir,;t t
7317 s,@build_alias@,$build_alias,;t t
7318 s,@host_alias@,$host_alias,;t t
7319 s,@target_alias@,$target_alias,;t t
7321 s,@ECHO_C@,$ECHO_C,;t t
7322 s,@ECHO_N@,$ECHO_N,;t t
7323 s,@ECHO_T@,$ECHO_T,;t t
7325 s,@build@,$build,;t t
7326 s,@build_cpu@,$build_cpu,;t t
7327 s,@build_vendor@,$build_vendor,;t t
7328 s,@build_os@,$build_os,;t t
7330 s,@host_cpu@,$host_cpu,;t t
7331 s,@host_vendor@,$host_vendor,;t t
7332 s,@host_os@,$host_os,;t t
7333 s,@target@,$target,;t t
7334 s,@target_cpu@,$target_cpu,;t t
7335 s,@target_vendor@,$target_vendor,;t t
7336 s,@target_os@,$target_os,;t t
7337 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7338 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7339 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7340 s,@CYGPATH_W@,$CYGPATH_W,;t t
7341 s,@PACKAGE@,$PACKAGE,;t t
7342 s,@VERSION@,$VERSION,;t t
7343 s,@ACLOCAL@,$ACLOCAL,;t t
7344 s,@AUTOCONF@,$AUTOCONF,;t t
7345 s,@AUTOMAKE@,$AUTOMAKE,;t t
7346 s,@AUTOHEADER@,$AUTOHEADER,;t t
7347 s,@MAKEINFO@,$MAKEINFO,;t t
7348 s,@install_sh@,$install_sh,;t t
7349 s,@STRIP@,$STRIP,;t t
7350 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
7351 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
7352 s,@mkdir_p@,$mkdir_p,;t t
7354 s,@SET_MAKE@,$SET_MAKE,;t t
7355 s,@am__leading_dot@,$am__leading_dot,;t t
7356 s,@AMTAR@,$AMTAR,;t t
7357 s,@am__tar@,$am__tar,;t t
7358 s,@am__untar@,$am__untar,;t t
7359 s,@multi_basedir@,$multi_basedir,;t t
7360 s,@toolexecdir@,$toolexecdir,;t t
7361 s,@toolexeclibdir@,$toolexeclibdir,;t t
7363 s,@ac_ct_CC@,$ac_ct_CC,;t t
7364 s,@EXEEXT@,$EXEEXT,;t t
7365 s,@OBJEXT@,$OBJEXT,;t t
7366 s,@DEPDIR@,$DEPDIR,;t t
7367 s,@am__include@,$am__include,;t t
7368 s,@am__quote@,$am__quote,;t t
7369 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
7370 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
7371 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
7372 s,@CCDEPMODE@,$CCDEPMODE,;t t
7373 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
7374 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
7375 s,@CFLAGS@,$CFLAGS,;t t
7377 s,@ac_ct_AR@,$ac_ct_AR,;t t
7378 s,@RANLIB@,$RANLIB,;t t
7379 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7382 s,@LIBTOOL@,$LIBTOOL,;t t
7383 s,@enable_shared@,$enable_shared,;t t
7384 s,@enable_static@,$enable_static,;t t
7386 s,@FCFLAGS@,$FCFLAGS,;t t
7387 s,@LDFLAGS@,$LDFLAGS,;t t
7388 s,@ac_ct_FC@,$ac_ct_FC,;t t
7389 s,@libtool_VERSION@,$libtool_VERSION,;t t
7391 s,@CPPFLAGS@,$CPPFLAGS,;t t
7392 s,@EGREP@,$EGREP,;t t
7393 s,@SECTION_LDFLAGS@,$SECTION_LDFLAGS,;t t
7394 s,@OPT_LDFLAGS@,$OPT_LDFLAGS,;t t
7395 s,@LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE@,$LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE,;t t
7396 s,@LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE@,$LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE,;t t
7397 s,@config_path@,$config_path,;t t
7398 s,@XCFLAGS@,$XCFLAGS,;t t
7399 s,@XLDFLAGS@,$XLDFLAGS,;t t
7400 s,@link_gomp@,$link_gomp,;t t
7401 s,@USE_FORTRAN_TRUE@,$USE_FORTRAN_TRUE,;t t
7402 s,@USE_FORTRAN_FALSE@,$USE_FORTRAN_FALSE,;t t
7403 s,@LIBOBJS@,$LIBOBJS,;t t
7404 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7409 cat >>$CONFIG_STATUS <<\_ACEOF
7410 # Split the substitutions into bite-sized pieces for seds with
7411 # small command number limits, like on Digital OSF/1 and HP-UX.
7413 ac_sed_frag=1 # Number of current file.
7414 ac_beg=1 # First line for current file.
7415 ac_end=$ac_max_sed_lines # Line after last line for current file.
7418 while $ac_more_lines; do
7419 if test $ac_beg -gt 1; then
7420 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7422 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7424 if test ! -s $tmp/subs.frag; then
7427 # The purpose of the label and of the branching condition is to
7428 # speed up the sed processing (if there are no `@' at all, there
7429 # is no need to browse any of the substitutions).
7430 # These are the two extra sed commands mentioned above.
7432 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7433 if test -z "$ac_sed_cmds"; then
7434 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7436 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7438 ac_sed_frag=`expr $ac_sed_frag + 1`
7440 ac_end=`expr $ac_end + $ac_max_sed_lines`
7443 if test -z "$ac_sed_cmds"; then
7446 fi # test -n "$CONFIG_FILES"
7449 cat >>$CONFIG_STATUS <<\_ACEOF
7450 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7451 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7453 - | *:- | *:-:* ) # input from stdin
7455 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7456 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7457 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7458 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7459 * ) ac_file_in=$ac_file.in ;;
7462 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7463 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7464 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7465 X"$ac_file" : 'X\(//\)[^/]' \| \
7466 X"$ac_file" : 'X\(//\)$' \| \
7467 X"$ac_file" : 'X\(/\)' \| \
7468 . : '\(.\)' 2>/dev/null ||
7470 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7471 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7472 /^X\(\/\/\)$/{ s//\1/; q; }
7473 /^X\(\/\).*/{ s//\1/; q; }
7475 { if $as_mkdir_p; then
7480 while test ! -d "$as_dir"; do
7481 as_dirs="$as_dir $as_dirs"
7482 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7483 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7484 X"$as_dir" : 'X\(//\)[^/]' \| \
7485 X"$as_dir" : 'X\(//\)$' \| \
7486 X"$as_dir" : 'X\(/\)' \| \
7487 . : '\(.\)' 2>/dev/null ||
7489 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7490 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7491 /^X\(\/\/\)$/{ s//\1/; q; }
7492 /^X\(\/\).*/{ s//\1/; q; }
7495 test ! -n "$as_dirs" || mkdir $as_dirs
7496 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7497 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7498 { (exit 1); exit 1; }; }; }
7502 if test "$ac_dir" != .; then
7503 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7504 # A "../" for each directory in $ac_dir_suffix.
7505 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7507 ac_dir_suffix= ac_top_builddir=
7511 .) # No --srcdir option. We are building in place.
7513 if test -z "$ac_top_builddir"; then
7516 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7518 [\\/]* | ?:[\\/]* ) # Absolute path.
7519 ac_srcdir=$srcdir$ac_dir_suffix;
7520 ac_top_srcdir=$srcdir ;;
7522 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7523 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7526 # Do not use `cd foo && pwd` to compute absolute paths, because
7527 # the directories may not exist.
7529 .) ac_abs_builddir="$ac_dir";;
7532 .) ac_abs_builddir=`pwd`;;
7533 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7534 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7537 case $ac_abs_builddir in
7538 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7540 case ${ac_top_builddir}. in
7541 .) ac_abs_top_builddir=$ac_abs_builddir;;
7542 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7543 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7546 case $ac_abs_builddir in
7547 .) ac_abs_srcdir=$ac_srcdir;;
7550 .) ac_abs_srcdir=$ac_abs_builddir;;
7551 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7552 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7555 case $ac_abs_builddir in
7556 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7558 case $ac_top_srcdir in
7559 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7560 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7561 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7567 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7568 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7571 if test x"$ac_file" != x-; then
7572 { echo "$as_me:$LINENO: creating $ac_file" >&5
7573 echo "$as_me: creating $ac_file" >&6;}
7576 # Let's still pretend it is `configure' which instantiates (i.e., don't
7577 # use $as_me), people would be surprised to read:
7578 # /* config.h. Generated by config.status. */
7579 if test x"$ac_file" = x-; then
7582 configure_input="$ac_file. "
7584 configure_input=$configure_input"Generated from `echo $ac_file_in |
7585 sed 's,.*/,,'` by configure."
7587 # First look for the input files in the build tree, otherwise in the
7589 ac_file_inputs=`IFS=:
7590 for f in $ac_file_in; do
7592 -) echo $tmp/stdin ;;
7594 # Absolute (can't be DOS-style, as IFS=:)
7595 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7596 echo "$as_me: error: cannot find input file: $f" >&2;}
7597 { (exit 1); exit 1; }; }
7600 if test -f "$f"; then
7603 elif test -f "$srcdir/$f"; then
7608 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7609 echo "$as_me: error: cannot find input file: $f" >&2;}
7610 { (exit 1); exit 1; }; }
7613 done` || { (exit 1); exit 1; }
7615 cat >>$CONFIG_STATUS <<_ACEOF
7619 cat >>$CONFIG_STATUS <<\_ACEOF
7621 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7622 s,@configure_input@,$configure_input,;t t
7623 s,@srcdir@,$ac_srcdir,;t t
7624 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7625 s,@top_srcdir@,$ac_top_srcdir,;t t
7626 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7627 s,@builddir@,$ac_builddir,;t t
7628 s,@abs_builddir@,$ac_abs_builddir,;t t
7629 s,@top_builddir@,$ac_top_builddir,;t t
7630 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7631 s,@INSTALL@,$ac_INSTALL,;t t
7632 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7634 if test x"$ac_file" != x-; then
7635 mv $tmp/out $ac_file
7643 cat >>$CONFIG_STATUS <<\_ACEOF
7646 # CONFIG_HEADER section.
7649 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7650 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7652 # ac_d sets the value in "#define NAME VALUE" lines.
7653 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7654 ac_dB='[ ].*$,\1#\2'
7657 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7658 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7659 ac_uB='$,\1#\2define\3'
7663 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7664 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7666 - | *:- | *:-:* ) # input from stdin
7668 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7669 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7670 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7671 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7672 * ) ac_file_in=$ac_file.in ;;
7675 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7676 echo "$as_me: creating $ac_file" >&6;}
7678 # First look for the input files in the build tree, otherwise in the
7680 ac_file_inputs=`IFS=:
7681 for f in $ac_file_in; do
7683 -) echo $tmp/stdin ;;
7685 # Absolute (can't be DOS-style, as IFS=:)
7686 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7687 echo "$as_me: error: cannot find input file: $f" >&2;}
7688 { (exit 1); exit 1; }; }
7689 # Do quote $f, to prevent DOS paths from being IFS'd.
7692 if test -f "$f"; then
7695 elif test -f "$srcdir/$f"; then
7700 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7701 echo "$as_me: error: cannot find input file: $f" >&2;}
7702 { (exit 1); exit 1; }; }
7705 done` || { (exit 1); exit 1; }
7706 # Remove the trailing spaces.
7707 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7711 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7712 # `conftest.undefs', that substitutes the proper values into
7713 # config.h.in to produce config.h. The first handles `#define'
7714 # templates, and the second `#undef' templates.
7715 # And first: Protect against being on the right side of a sed subst in
7716 # config.status. Protect against being in an unquoted here document
7718 rm -f conftest.defines conftest.undefs
7719 # Using a here document instead of a string reduces the quoting nightmare.
7720 # Putting comments in sed scripts is not portable.
7722 # `end' is used to avoid that the second main sed command (meant for
7723 # 0-ary CPP macros) applies to n-ary macro definitions.
7724 # See the Autoconf documentation for `clear'.
7725 cat >confdef2sed.sed <<\_ACEOF
7730 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7732 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7735 # If some macros were called several times there might be several times
7736 # the same #defines, which is useless. Nevertheless, we may not want to
7737 # sort them, since we want the *last* AC-DEFINE to be honored.
7738 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7739 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7740 rm -f confdef2sed.sed
7742 # This sed command replaces #undef with comments. This is necessary, for
7743 # example, in the case of _POSIX_SOURCE, which is predefined and required
7744 # on some systems where configure will not decide to define it.
7745 cat >>conftest.undefs <<\_ACEOF
7746 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7749 # Break up conftest.defines because some shells have a limit on the size
7750 # of here documents, and old seds have small limits too (100 cmds).
7751 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7752 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7753 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7754 echo ' :' >>$CONFIG_STATUS
7756 while grep . conftest.defines >/dev/null
7758 # Write a limited-size here document to $tmp/defines.sed.
7759 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7760 # Speed up: don't consider the non `#define' lines.
7761 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7762 # Work around the forget-to-reset-the-flag bug.
7763 echo 't clr' >>$CONFIG_STATUS
7764 echo ': clr' >>$CONFIG_STATUS
7765 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7767 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7771 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7772 rm -f conftest.defines
7773 mv conftest.tail conftest.defines
7775 rm -f conftest.defines
7776 echo ' fi # grep' >>$CONFIG_STATUS
7777 echo >>$CONFIG_STATUS
7779 # Break up conftest.undefs because some shells have a limit on the size
7780 # of here documents, and old seds have small limits too (100 cmds).
7781 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7783 while grep . conftest.undefs >/dev/null
7785 # Write a limited-size here document to $tmp/undefs.sed.
7786 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7787 # Speed up: don't consider the non `#undef'
7788 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7789 # Work around the forget-to-reset-the-flag bug.
7790 echo 't clr' >>$CONFIG_STATUS
7791 echo ': clr' >>$CONFIG_STATUS
7792 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7794 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7798 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7799 rm -f conftest.undefs
7800 mv conftest.tail conftest.undefs
7802 rm -f conftest.undefs
7804 cat >>$CONFIG_STATUS <<\_ACEOF
7805 # Let's still pretend it is `configure' which instantiates (i.e., don't
7806 # use $as_me), people would be surprised to read:
7807 # /* config.h. Generated by config.status. */
7808 if test x"$ac_file" = x-; then
7809 echo "/* Generated by configure. */" >$tmp/config.h
7811 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7813 cat $tmp/in >>$tmp/config.h
7815 if test x"$ac_file" != x-; then
7816 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7817 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7818 echo "$as_me: $ac_file is unchanged" >&6;}
7820 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7821 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7822 X"$ac_file" : 'X\(//\)[^/]' \| \
7823 X"$ac_file" : 'X\(//\)$' \| \
7824 X"$ac_file" : 'X\(/\)' \| \
7825 . : '\(.\)' 2>/dev/null ||
7827 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7828 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7829 /^X\(\/\/\)$/{ s//\1/; q; }
7830 /^X\(\/\).*/{ s//\1/; q; }
7832 { if $as_mkdir_p; then
7837 while test ! -d "$as_dir"; do
7838 as_dirs="$as_dir $as_dirs"
7839 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7840 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7841 X"$as_dir" : 'X\(//\)[^/]' \| \
7842 X"$as_dir" : 'X\(//\)$' \| \
7843 X"$as_dir" : 'X\(/\)' \| \
7844 . : '\(.\)' 2>/dev/null ||
7846 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7847 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7848 /^X\(\/\/\)$/{ s//\1/; q; }
7849 /^X\(\/\).*/{ s//\1/; q; }
7852 test ! -n "$as_dirs" || mkdir $as_dirs
7853 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7854 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7855 { (exit 1); exit 1; }; }; }
7858 mv $tmp/config.h $ac_file
7864 # Compute $ac_file's index in $config_headers.
7866 for _am_header in $config_headers :; do
7868 $ac_file | $ac_file:* )
7871 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7874 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
7875 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7876 X$ac_file : 'X\(//\)[^/]' \| \
7877 X$ac_file : 'X\(//\)$' \| \
7878 X$ac_file : 'X\(/\)' \| \
7879 . : '\(.\)' 2>/dev/null ||
7881 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7882 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7883 /^X\(\/\/\)$/{ s//\1/; q; }
7884 /^X\(\/\).*/{ s//\1/; q; }
7885 s/.*/./; q'`/stamp-h$_am_stamp_count
7888 cat >>$CONFIG_STATUS <<\_ACEOF
7891 # CONFIG_COMMANDS section.
7893 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
7894 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7895 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7896 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
7897 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7898 X"$ac_dest" : 'X\(//\)[^/]' \| \
7899 X"$ac_dest" : 'X\(//\)$' \| \
7900 X"$ac_dest" : 'X\(/\)' \| \
7901 . : '\(.\)' 2>/dev/null ||
7903 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7904 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7905 /^X\(\/\/\)$/{ s//\1/; q; }
7906 /^X\(\/\).*/{ s//\1/; q; }
7908 { if $as_mkdir_p; then
7913 while test ! -d "$as_dir"; do
7914 as_dirs="$as_dir $as_dirs"
7915 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7916 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7917 X"$as_dir" : 'X\(//\)[^/]' \| \
7918 X"$as_dir" : 'X\(//\)$' \| \
7919 X"$as_dir" : 'X\(/\)' \| \
7920 . : '\(.\)' 2>/dev/null ||
7922 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7923 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7924 /^X\(\/\/\)$/{ s//\1/; q; }
7925 /^X\(\/\).*/{ s//\1/; q; }
7928 test ! -n "$as_dirs" || mkdir $as_dirs
7929 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7930 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7931 { (exit 1); exit 1; }; }; }
7935 if test "$ac_dir" != .; then
7936 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7937 # A "../" for each directory in $ac_dir_suffix.
7938 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7940 ac_dir_suffix= ac_top_builddir=
7944 .) # No --srcdir option. We are building in place.
7946 if test -z "$ac_top_builddir"; then
7949 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7951 [\\/]* | ?:[\\/]* ) # Absolute path.
7952 ac_srcdir=$srcdir$ac_dir_suffix;
7953 ac_top_srcdir=$srcdir ;;
7955 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7956 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7959 # Do not use `cd foo && pwd` to compute absolute paths, because
7960 # the directories may not exist.
7962 .) ac_abs_builddir="$ac_dir";;
7965 .) ac_abs_builddir=`pwd`;;
7966 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7967 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7970 case $ac_abs_builddir in
7971 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7973 case ${ac_top_builddir}. in
7974 .) ac_abs_top_builddir=$ac_abs_builddir;;
7975 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7976 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7979 case $ac_abs_builddir in
7980 .) ac_abs_srcdir=$ac_srcdir;;
7983 .) ac_abs_srcdir=$ac_abs_builddir;;
7984 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7985 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7988 case $ac_abs_builddir in
7989 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7991 case $ac_top_srcdir in
7992 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7993 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7994 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7999 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
8000 echo "$as_me: executing $ac_dest commands" >&6;}
8003 # Only add multilib support code if we just rebuilt the top-level
8005 case " $CONFIG_FILES " in
8007 ac_file=Makefile . ${multi_basedir}/config-ml.in
8010 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
8011 # Strip MF so we end up with the name of the file.
8012 mf=`echo "$mf" | sed -e 's/:.*$//'`
8013 # Check whether this is an Automake generated Makefile or not.
8014 # We used to match only the files named `Makefile.in', but
8015 # some people rename them; so instead we look at the file content.
8016 # Grep'ing the first line is not enough: some people post-process
8017 # each Makefile.in and add a new line on top of each file to say so.
8018 # So let's grep whole file.
8019 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
8020 dirpart=`(dirname "$mf") 2>/dev/null ||
8021 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8022 X"$mf" : 'X\(//\)[^/]' \| \
8023 X"$mf" : 'X\(//\)$' \| \
8024 X"$mf" : 'X\(/\)' \| \
8025 . : '\(.\)' 2>/dev/null ||
8027 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8028 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8029 /^X\(\/\/\)$/{ s//\1/; q; }
8030 /^X\(\/\).*/{ s//\1/; q; }
8035 # Extract the definition of DEPDIR, am__include, and am__quote
8036 # from the Makefile without running `make'.
8037 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8038 test -z "$DEPDIR" && continue
8039 am__include=`sed -n 's/^am__include = //p' < "$mf"`
8040 test -z "am__include" && continue
8041 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8042 # When using ansi2knr, U may be empty or an underscore; expand it
8043 U=`sed -n 's/^U = //p' < "$mf"`
8044 # Find all dependency output files, they are included files with
8045 # $(DEPDIR) in their names. We invoke sed twice because it is the
8046 # simplest approach to changing $(DEPDIR) to its actual value in the
8048 for file in `sed -n "
8049 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
8050 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8051 # Make sure the directory exists.
8052 test -f "$dirpart/$file" && continue
8053 fdir=`(dirname "$file") 2>/dev/null ||
8054 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8055 X"$file" : 'X\(//\)[^/]' \| \
8056 X"$file" : 'X\(//\)$' \| \
8057 X"$file" : 'X\(/\)' \| \
8058 . : '\(.\)' 2>/dev/null ||
8060 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8061 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8062 /^X\(\/\/\)$/{ s//\1/; q; }
8063 /^X\(\/\).*/{ s//\1/; q; }
8065 { if $as_mkdir_p; then
8066 mkdir -p $dirpart/$fdir
8068 as_dir=$dirpart/$fdir
8070 while test ! -d "$as_dir"; do
8071 as_dirs="$as_dir $as_dirs"
8072 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8073 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8074 X"$as_dir" : 'X\(//\)[^/]' \| \
8075 X"$as_dir" : 'X\(//\)$' \| \
8076 X"$as_dir" : 'X\(/\)' \| \
8077 . : '\(.\)' 2>/dev/null ||
8079 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8080 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8081 /^X\(\/\/\)$/{ s//\1/; q; }
8082 /^X\(\/\).*/{ s//\1/; q; }
8085 test ! -n "$as_dirs" || mkdir $as_dirs
8086 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
8087 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
8088 { (exit 1); exit 1; }; }; }
8090 # echo "creating $dirpart/$file"
8091 echo '# dummy' > "$dirpart/$file"
8099 cat >>$CONFIG_STATUS <<\_ACEOF
8101 { (exit 0); exit 0; }
8103 chmod +x $CONFIG_STATUS
8104 ac_clean_files=$ac_clean_files_save
8107 # configure is writing to config.log, and then calls config.status.
8108 # config.status does its own redirection, appending to config.log.
8109 # Unfortunately, on DOS this fails, as config.log is still kept open
8110 # by configure, so config.status won't be able to write to it; its
8111 # output is simply discarded. So we exec the FD to /dev/null,
8112 # effectively closing config.log, so it can be properly (re)opened and
8113 # appended to by config.status. When coming back to configure, we
8114 # need to make the FD available again.
8115 if test "$no_create" != yes; then
8117 ac_config_status_args=
8118 test "$silent" = yes &&
8119 ac_config_status_args="$ac_config_status_args --quiet"
8121 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8123 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8124 # would make configure fail if this is the last instruction.
8125 $ac_cs_success || { (exit 1); exit 1; }