2008-05-30 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / libgomp / configure
blob0fda5c740a0690e5e7083509bb2222783782bb49
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for GNU OpenMP Runtime Library 1.0.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
248 case X$lt_ECHO in
249 X*--fallback-echo)
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
253 esac
255 ECHO=${lt_ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
258 shift
259 elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
262 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $ECHO works!
265 else
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
270 if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
272 shift
273 cat <<_LT_EOF
275 _LT_EOF
276 exit 0
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
280 # if CDPATH is set.
281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
283 if test -z "$lt_ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
289 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
290 then
291 break
293 done
296 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
297 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
298 test "X$echo_testing_string" = "X$echo_test_string"; then
300 else
301 # The Solaris, AIX, and Digital Unix default echo programs unquote
302 # backslashes. This makes it impossible to quote backslashes using
303 # echo "$something" | sed 's/\\/\\\\/g'
305 # So, first we look for a working echo in the user's PATH.
307 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
308 for dir in $PATH /usr/ucb; do
309 IFS="$lt_save_ifs"
310 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
311 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
312 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
313 test "X$echo_testing_string" = "X$echo_test_string"; then
314 ECHO="$dir/echo"
315 break
317 done
318 IFS="$lt_save_ifs"
320 if test "X$ECHO" = Xecho; then
321 # We didn't find a better echo, so look for alternatives.
322 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
323 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
324 test "X$echo_testing_string" = "X$echo_test_string"; then
325 # This shell has a builtin print -r that does the trick.
326 ECHO='print -r'
327 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
328 test "X$CONFIG_SHELL" != X/bin/ksh; then
329 # If we have ksh, try running configure again with it.
330 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
331 export ORIGINAL_CONFIG_SHELL
332 CONFIG_SHELL=/bin/ksh
333 export CONFIG_SHELL
334 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
335 else
336 # Try using printf.
337 ECHO='printf %s\n'
338 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
339 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
340 test "X$echo_testing_string" = "X$echo_test_string"; then
341 # Cool, printf works
343 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
344 test "X$echo_testing_string" = 'X\t' &&
345 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
346 test "X$echo_testing_string" = "X$echo_test_string"; then
347 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
348 export CONFIG_SHELL
349 SHELL="$CONFIG_SHELL"
350 export SHELL
351 ECHO="$CONFIG_SHELL $0 --fallback-echo"
352 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353 test "X$echo_testing_string" = 'X\t' &&
354 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355 test "X$echo_testing_string" = "X$echo_test_string"; then
356 ECHO="$CONFIG_SHELL $0 --fallback-echo"
357 else
358 # maybe with a smaller string...
359 prev=:
361 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
362 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
363 then
364 break
366 prev="$cmd"
367 done
369 if test "$prev" != 'sed 50q "$0"'; then
370 echo_test_string=`eval $prev`
371 export echo_test_string
372 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
373 else
374 # Oops. We lost completely, so just stick with echo.
375 ECHO=echo
383 # Copy echo and quote the copy suitably for passing to libtool from
384 # the Makefile, instead of quoting the original, which is used later.
385 lt_ECHO=$ECHO
386 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
393 # Name of the host.
394 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395 # so uname gets run too.
396 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
398 exec 6>&1
401 # Initializations.
403 ac_default_prefix=/usr/local
404 ac_config_libobj_dir=.
405 cross_compiling=no
406 subdirs=
407 MFLAGS=
408 MAKEFLAGS=
409 SHELL=${CONFIG_SHELL-/bin/sh}
411 # Maximum number of lines to put in a shell here document.
412 # This variable seems obsolete. It should probably be removed, and
413 # only ac_max_sed_lines should be used.
414 : ${ac_max_here_lines=38}
416 # Identity of this package.
417 PACKAGE_NAME='GNU OpenMP Runtime Library'
418 PACKAGE_TARNAME='libgomp'
419 PACKAGE_VERSION='1.0'
420 PACKAGE_STRING='GNU OpenMP Runtime Library 1.0'
421 PACKAGE_BUGREPORT=''
423 # Factoring default headers for most tests.
424 ac_includes_default="\
425 #include <stdio.h>
426 #if HAVE_SYS_TYPES_H
427 # include <sys/types.h>
428 #endif
429 #if HAVE_SYS_STAT_H
430 # include <sys/stat.h>
431 #endif
432 #if STDC_HEADERS
433 # include <stdlib.h>
434 # include <stddef.h>
435 #else
436 # if HAVE_STDLIB_H
437 # include <stdlib.h>
438 # endif
439 #endif
440 #if HAVE_STRING_H
441 # if !STDC_HEADERS && HAVE_MEMORY_H
442 # include <memory.h>
443 # endif
444 # include <string.h>
445 #endif
446 #if HAVE_STRINGS_H
447 # include <strings.h>
448 #endif
449 #if HAVE_INTTYPES_H
450 # include <inttypes.h>
451 #else
452 # if HAVE_STDINT_H
453 # include <stdint.h>
454 # endif
455 #endif
456 #if HAVE_UNISTD_H
457 # include <unistd.h>
458 #endif"
460 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS GENINSRC_TRUE GENINSRC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar multi_basedir toolexecdir toolexeclibdir CC ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CFLAGS AR ac_ct_AR RANLIB ac_ct_RANLIB PERL BUILD_INFO_TRUE BUILD_INFO_FALSE LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S lt_ECHO CPP CPPFLAGS enable_shared enable_static MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT FC FCFLAGS LDFLAGS ac_ct_FC libtool_VERSION SECTION_LDFLAGS OPT_LDFLAGS LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE config_path XCFLAGS XLDFLAGS link_gomp USE_FORTRAN_TRUE USE_FORTRAN_FALSE OMP_LOCK_SIZE OMP_LOCK_ALIGN OMP_NEST_LOCK_SIZE OMP_NEST_LOCK_ALIGN OMP_LOCK_KIND OMP_NEST_LOCK_KIND LIBOBJS LTLIBOBJS'
461 ac_subst_files=''
463 # Initialize some variables set by options.
464 ac_init_help=
465 ac_init_version=false
466 # The variables have the same names as the options, with
467 # dashes changed to underlines.
468 cache_file=/dev/null
469 exec_prefix=NONE
470 no_create=
471 no_recursion=
472 prefix=NONE
473 program_prefix=NONE
474 program_suffix=NONE
475 program_transform_name=s,x,x,
476 silent=
477 site=
478 srcdir=
479 verbose=
480 x_includes=NONE
481 x_libraries=NONE
483 # Installation directory options.
484 # These are left unexpanded so users can "make install exec_prefix=/foo"
485 # and all the variables that are supposed to be based on exec_prefix
486 # by default will actually change.
487 # Use braces instead of parens because sh, perl, etc. also accept them.
488 bindir='${exec_prefix}/bin'
489 sbindir='${exec_prefix}/sbin'
490 libexecdir='${exec_prefix}/libexec'
491 datadir='${prefix}/share'
492 sysconfdir='${prefix}/etc'
493 sharedstatedir='${prefix}/com'
494 localstatedir='${prefix}/var'
495 libdir='${exec_prefix}/lib'
496 includedir='${prefix}/include'
497 oldincludedir='/usr/include'
498 infodir='${prefix}/info'
499 mandir='${prefix}/man'
501 ac_prev=
502 for ac_option
504 # If the previous option needs an argument, assign it.
505 if test -n "$ac_prev"; then
506 eval "$ac_prev=\$ac_option"
507 ac_prev=
508 continue
511 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
513 # Accept the important Cygnus configure options, so we can diagnose typos.
515 case $ac_option in
517 -bindir | --bindir | --bindi | --bind | --bin | --bi)
518 ac_prev=bindir ;;
519 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
520 bindir=$ac_optarg ;;
522 -build | --build | --buil | --bui | --bu)
523 ac_prev=build_alias ;;
524 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
525 build_alias=$ac_optarg ;;
527 -cache-file | --cache-file | --cache-fil | --cache-fi \
528 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
529 ac_prev=cache_file ;;
530 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
531 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
532 cache_file=$ac_optarg ;;
534 --config-cache | -C)
535 cache_file=config.cache ;;
537 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
538 ac_prev=datadir ;;
539 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
540 | --da=*)
541 datadir=$ac_optarg ;;
543 -disable-* | --disable-*)
544 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
545 # Reject names that are not valid shell variable names.
546 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
547 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
548 { (exit 1); exit 1; }; }
549 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
550 eval "enable_$ac_feature=no" ;;
552 -enable-* | --enable-*)
553 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
554 # Reject names that are not valid shell variable names.
555 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
556 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
557 { (exit 1); exit 1; }; }
558 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
559 case $ac_option in
560 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
561 *) ac_optarg=yes ;;
562 esac
563 eval "enable_$ac_feature='$ac_optarg'" ;;
565 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
566 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
567 | --exec | --exe | --ex)
568 ac_prev=exec_prefix ;;
569 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
570 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
571 | --exec=* | --exe=* | --ex=*)
572 exec_prefix=$ac_optarg ;;
574 -gas | --gas | --ga | --g)
575 # Obsolete; use --with-gas.
576 with_gas=yes ;;
578 -help | --help | --hel | --he | -h)
579 ac_init_help=long ;;
580 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
581 ac_init_help=recursive ;;
582 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
583 ac_init_help=short ;;
585 -host | --host | --hos | --ho)
586 ac_prev=host_alias ;;
587 -host=* | --host=* | --hos=* | --ho=*)
588 host_alias=$ac_optarg ;;
590 -includedir | --includedir | --includedi | --included | --include \
591 | --includ | --inclu | --incl | --inc)
592 ac_prev=includedir ;;
593 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
594 | --includ=* | --inclu=* | --incl=* | --inc=*)
595 includedir=$ac_optarg ;;
597 -infodir | --infodir | --infodi | --infod | --info | --inf)
598 ac_prev=infodir ;;
599 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
600 infodir=$ac_optarg ;;
602 -libdir | --libdir | --libdi | --libd)
603 ac_prev=libdir ;;
604 -libdir=* | --libdir=* | --libdi=* | --libd=*)
605 libdir=$ac_optarg ;;
607 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
608 | --libexe | --libex | --libe)
609 ac_prev=libexecdir ;;
610 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
611 | --libexe=* | --libex=* | --libe=*)
612 libexecdir=$ac_optarg ;;
614 -localstatedir | --localstatedir | --localstatedi | --localstated \
615 | --localstate | --localstat | --localsta | --localst \
616 | --locals | --local | --loca | --loc | --lo)
617 ac_prev=localstatedir ;;
618 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
619 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
620 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
621 localstatedir=$ac_optarg ;;
623 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
624 ac_prev=mandir ;;
625 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
626 mandir=$ac_optarg ;;
628 -nfp | --nfp | --nf)
629 # Obsolete; use --without-fp.
630 with_fp=no ;;
632 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
633 | --no-cr | --no-c | -n)
634 no_create=yes ;;
636 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
637 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
638 no_recursion=yes ;;
640 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
641 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
642 | --oldin | --oldi | --old | --ol | --o)
643 ac_prev=oldincludedir ;;
644 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
645 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
646 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
647 oldincludedir=$ac_optarg ;;
649 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
650 ac_prev=prefix ;;
651 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
652 prefix=$ac_optarg ;;
654 -program-prefix | --program-prefix | --program-prefi | --program-pref \
655 | --program-pre | --program-pr | --program-p)
656 ac_prev=program_prefix ;;
657 -program-prefix=* | --program-prefix=* | --program-prefi=* \
658 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
659 program_prefix=$ac_optarg ;;
661 -program-suffix | --program-suffix | --program-suffi | --program-suff \
662 | --program-suf | --program-su | --program-s)
663 ac_prev=program_suffix ;;
664 -program-suffix=* | --program-suffix=* | --program-suffi=* \
665 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
666 program_suffix=$ac_optarg ;;
668 -program-transform-name | --program-transform-name \
669 | --program-transform-nam | --program-transform-na \
670 | --program-transform-n | --program-transform- \
671 | --program-transform | --program-transfor \
672 | --program-transfo | --program-transf \
673 | --program-trans | --program-tran \
674 | --progr-tra | --program-tr | --program-t)
675 ac_prev=program_transform_name ;;
676 -program-transform-name=* | --program-transform-name=* \
677 | --program-transform-nam=* | --program-transform-na=* \
678 | --program-transform-n=* | --program-transform-=* \
679 | --program-transform=* | --program-transfor=* \
680 | --program-transfo=* | --program-transf=* \
681 | --program-trans=* | --program-tran=* \
682 | --progr-tra=* | --program-tr=* | --program-t=*)
683 program_transform_name=$ac_optarg ;;
685 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
686 | -silent | --silent | --silen | --sile | --sil)
687 silent=yes ;;
689 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
690 ac_prev=sbindir ;;
691 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
692 | --sbi=* | --sb=*)
693 sbindir=$ac_optarg ;;
695 -sharedstatedir | --sharedstatedir | --sharedstatedi \
696 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
697 | --sharedst | --shareds | --shared | --share | --shar \
698 | --sha | --sh)
699 ac_prev=sharedstatedir ;;
700 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
701 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
702 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
703 | --sha=* | --sh=*)
704 sharedstatedir=$ac_optarg ;;
706 -site | --site | --sit)
707 ac_prev=site ;;
708 -site=* | --site=* | --sit=*)
709 site=$ac_optarg ;;
711 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
712 ac_prev=srcdir ;;
713 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
714 srcdir=$ac_optarg ;;
716 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
717 | --syscon | --sysco | --sysc | --sys | --sy)
718 ac_prev=sysconfdir ;;
719 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
720 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
721 sysconfdir=$ac_optarg ;;
723 -target | --target | --targe | --targ | --tar | --ta | --t)
724 ac_prev=target_alias ;;
725 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
726 target_alias=$ac_optarg ;;
728 -v | -verbose | --verbose | --verbos | --verbo | --verb)
729 verbose=yes ;;
731 -version | --version | --versio | --versi | --vers | -V)
732 ac_init_version=: ;;
734 -with-* | --with-*)
735 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
736 # Reject names that are not valid shell variable names.
737 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
738 { echo "$as_me: error: invalid package name: $ac_package" >&2
739 { (exit 1); exit 1; }; }
740 ac_package=`echo $ac_package| sed 's/-/_/g'`
741 case $ac_option in
742 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
743 *) ac_optarg=yes ;;
744 esac
745 eval "with_$ac_package='$ac_optarg'" ;;
747 -without-* | --without-*)
748 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
749 # Reject names that are not valid shell variable names.
750 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
751 { echo "$as_me: error: invalid package name: $ac_package" >&2
752 { (exit 1); exit 1; }; }
753 ac_package=`echo $ac_package | sed 's/-/_/g'`
754 eval "with_$ac_package=no" ;;
756 --x)
757 # Obsolete; use --with-x.
758 with_x=yes ;;
760 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
761 | --x-incl | --x-inc | --x-in | --x-i)
762 ac_prev=x_includes ;;
763 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
764 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
765 x_includes=$ac_optarg ;;
767 -x-libraries | --x-libraries | --x-librarie | --x-librari \
768 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
769 ac_prev=x_libraries ;;
770 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
771 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
772 x_libraries=$ac_optarg ;;
774 -*) { echo "$as_me: error: unrecognized option: $ac_option
775 Try \`$0 --help' for more information." >&2
776 { (exit 1); exit 1; }; }
779 *=*)
780 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
781 # Reject names that are not valid shell variable names.
782 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
783 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
784 { (exit 1); exit 1; }; }
785 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
786 eval "$ac_envvar='$ac_optarg'"
787 export $ac_envvar ;;
790 # FIXME: should be removed in autoconf 3.0.
791 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
792 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
793 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
794 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
797 esac
798 done
800 if test -n "$ac_prev"; then
801 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
802 { echo "$as_me: error: missing argument to $ac_option" >&2
803 { (exit 1); exit 1; }; }
806 # Be sure to have absolute paths.
807 for ac_var in exec_prefix prefix
809 eval ac_val=$`echo $ac_var`
810 case $ac_val in
811 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
812 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
813 { (exit 1); exit 1; }; };;
814 esac
815 done
817 # Be sure to have absolute paths.
818 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
819 localstatedir libdir includedir oldincludedir infodir mandir
821 eval ac_val=$`echo $ac_var`
822 case $ac_val in
823 [\\/$]* | ?:[\\/]* ) ;;
824 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
825 { (exit 1); exit 1; }; };;
826 esac
827 done
829 # There might be people who depend on the old broken behavior: `$host'
830 # used to hold the argument of --host etc.
831 # FIXME: To remove some day.
832 build=$build_alias
833 host=$host_alias
834 target=$target_alias
836 # FIXME: To remove some day.
837 if test "x$host_alias" != x; then
838 if test "x$build_alias" = x; then
839 cross_compiling=maybe
840 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
841 If a cross compiler is detected then cross compile mode will be used." >&2
842 elif test "x$build_alias" != "x$host_alias"; then
843 cross_compiling=yes
847 ac_tool_prefix=
848 test -n "$host_alias" && ac_tool_prefix=$host_alias-
850 test "$silent" = yes && exec 6>/dev/null
853 # Find the source files, if location was not specified.
854 if test -z "$srcdir"; then
855 ac_srcdir_defaulted=yes
856 # Try the directory containing this script, then its parent.
857 ac_confdir=`(dirname "$0") 2>/dev/null ||
858 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
859 X"$0" : 'X\(//\)[^/]' \| \
860 X"$0" : 'X\(//\)$' \| \
861 X"$0" : 'X\(/\)' \| \
862 . : '\(.\)' 2>/dev/null ||
863 echo X"$0" |
864 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
865 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
866 /^X\(\/\/\)$/{ s//\1/; q; }
867 /^X\(\/\).*/{ s//\1/; q; }
868 s/.*/./; q'`
869 srcdir=$ac_confdir
870 if test ! -r $srcdir/$ac_unique_file; then
871 srcdir=..
873 else
874 ac_srcdir_defaulted=no
876 if test ! -r $srcdir/$ac_unique_file; then
877 if test "$ac_srcdir_defaulted" = yes; then
878 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
879 { (exit 1); exit 1; }; }
880 else
881 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
882 { (exit 1); exit 1; }; }
885 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
886 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
887 { (exit 1); exit 1; }; }
888 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
889 ac_env_build_alias_set=${build_alias+set}
890 ac_env_build_alias_value=$build_alias
891 ac_cv_env_build_alias_set=${build_alias+set}
892 ac_cv_env_build_alias_value=$build_alias
893 ac_env_host_alias_set=${host_alias+set}
894 ac_env_host_alias_value=$host_alias
895 ac_cv_env_host_alias_set=${host_alias+set}
896 ac_cv_env_host_alias_value=$host_alias
897 ac_env_target_alias_set=${target_alias+set}
898 ac_env_target_alias_value=$target_alias
899 ac_cv_env_target_alias_set=${target_alias+set}
900 ac_cv_env_target_alias_value=$target_alias
901 ac_env_CPP_set=${CPP+set}
902 ac_env_CPP_value=$CPP
903 ac_cv_env_CPP_set=${CPP+set}
904 ac_cv_env_CPP_value=$CPP
905 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
906 ac_env_CPPFLAGS_value=$CPPFLAGS
907 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
908 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
909 ac_env_FC_set=${FC+set}
910 ac_env_FC_value=$FC
911 ac_cv_env_FC_set=${FC+set}
912 ac_cv_env_FC_value=$FC
913 ac_env_FCFLAGS_set=${FCFLAGS+set}
914 ac_env_FCFLAGS_value=$FCFLAGS
915 ac_cv_env_FCFLAGS_set=${FCFLAGS+set}
916 ac_cv_env_FCFLAGS_value=$FCFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
923 # Report the --help message.
925 if test "$ac_init_help" = "long"; then
926 # Omit some internal or obsolete options to make the list less imposing.
927 # This message is too long to be a string in the A/UX 3.1 sh.
928 cat <<_ACEOF
929 \`configure' configures GNU OpenMP Runtime Library 1.0 to adapt to many kinds of systems.
931 Usage: $0 [OPTION]... [VAR=VALUE]...
933 To assign environment variables (e.g., CC, CFLAGS...), specify them as
934 VAR=VALUE. See below for descriptions of some of the useful variables.
936 Defaults for the options are specified in brackets.
938 Configuration:
939 -h, --help display this help and exit
940 --help=short display options specific to this package
941 --help=recursive display the short help of all the included packages
942 -V, --version display version information and exit
943 -q, --quiet, --silent do not print \`checking...' messages
944 --cache-file=FILE cache test results in FILE [disabled]
945 -C, --config-cache alias for \`--cache-file=config.cache'
946 -n, --no-create do not create output files
947 --srcdir=DIR find the sources in DIR [configure dir or \`..']
949 _ACEOF
951 cat <<_ACEOF
952 Installation directories:
953 --prefix=PREFIX install architecture-independent files in PREFIX
954 [$ac_default_prefix]
955 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
956 [PREFIX]
958 By default, \`make install' will install all the files in
959 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
960 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
961 for instance \`--prefix=\$HOME'.
963 For better control, use the options below.
965 Fine tuning of the installation directories:
966 --bindir=DIR user executables [EPREFIX/bin]
967 --sbindir=DIR system admin executables [EPREFIX/sbin]
968 --libexecdir=DIR program executables [EPREFIX/libexec]
969 --datadir=DIR read-only architecture-independent data [PREFIX/share]
970 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
971 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
972 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
973 --libdir=DIR object code libraries [EPREFIX/lib]
974 --includedir=DIR C header files [PREFIX/include]
975 --oldincludedir=DIR C header files for non-gcc [/usr/include]
976 --infodir=DIR info documentation [PREFIX/info]
977 --mandir=DIR man documentation [PREFIX/man]
978 _ACEOF
980 cat <<\_ACEOF
982 Program names:
983 --program-prefix=PREFIX prepend PREFIX to installed program names
984 --program-suffix=SUFFIX append SUFFIX to installed program names
985 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
987 System types:
988 --build=BUILD configure for building on BUILD [guessed]
989 --host=HOST cross-compile to build programs to run on HOST [BUILD]
990 --target=TARGET configure for building compilers for TARGET [HOST]
991 _ACEOF
994 if test -n "$ac_init_help"; then
995 case $ac_init_help in
996 short | recursive ) echo "Configuration of GNU OpenMP Runtime Library 1.0:";;
997 esac
998 cat <<\_ACEOF
1000 Optional Features:
1001 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1002 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1003 --enable-version-specific-runtime-libs
1004 Specify that runtime libraries should be installed
1005 in a compiler-specific directory [default=no]
1006 --enable-generated-files-in-srcdir
1007 put copies of generated files in source dir intended
1008 for creating source tarballs for users without
1009 texinfo bison or flex. [default=no]
1010 --enable-multilib build many library versions (default)
1011 --disable-dependency-tracking speeds up one-time build
1012 --enable-dependency-tracking do not reject slow dependency extractors
1013 --enable-shared[=PKGS]
1014 build shared libraries [default=yes]
1015 --enable-static[=PKGS]
1016 build static libraries [default=yes]
1017 --enable-fast-install[=PKGS]
1018 optimize for fast installation [default=yes]
1019 --disable-libtool-lock avoid locking (might break parallel builds)
1020 --enable-maintainer-mode enable make rules and dependencies not useful
1021 (and sometimes confusing) to the casual installer
1022 --enable-linux-futex use the Linux futex system call
1023 [default=default]
1024 --enable-tls Use thread-local storage [default=yes]
1025 --enable-symvers=STYLE enables symbol versioning of the shared library
1026 [default=yes]
1028 Optional Packages:
1029 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1030 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1031 --with-pic try to use only PIC/non-PIC objects [default=use
1032 both]
1033 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1035 Some influential environment variables:
1036 CC C compiler command
1037 CFLAGS C compiler flags
1038 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1039 nonstandard directory <lib dir>
1040 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1041 headers in a nonstandard directory <include dir>
1042 CPP C preprocessor
1043 FC Fortran compiler command
1044 FCFLAGS Fortran compiler flags
1046 Use these variables to override the choices made by `configure' or to help
1047 it to find libraries and programs with nonstandard names/locations.
1049 _ACEOF
1052 if test "$ac_init_help" = "recursive"; then
1053 # If there are subdirs, report their specific --help.
1054 ac_popdir=`pwd`
1055 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1056 test -d $ac_dir || continue
1057 ac_builddir=.
1059 if test "$ac_dir" != .; then
1060 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1061 # A "../" for each directory in $ac_dir_suffix.
1062 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1063 else
1064 ac_dir_suffix= ac_top_builddir=
1067 case $srcdir in
1068 .) # No --srcdir option. We are building in place.
1069 ac_srcdir=.
1070 if test -z "$ac_top_builddir"; then
1071 ac_top_srcdir=.
1072 else
1073 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1074 fi ;;
1075 [\\/]* | ?:[\\/]* ) # Absolute path.
1076 ac_srcdir=$srcdir$ac_dir_suffix;
1077 ac_top_srcdir=$srcdir ;;
1078 *) # Relative path.
1079 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1080 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1081 esac
1083 # Do not use `cd foo && pwd` to compute absolute paths, because
1084 # the directories may not exist.
1085 case `pwd` in
1086 .) ac_abs_builddir="$ac_dir";;
1088 case "$ac_dir" in
1089 .) ac_abs_builddir=`pwd`;;
1090 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1091 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1092 esac;;
1093 esac
1094 case $ac_abs_builddir in
1095 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1097 case ${ac_top_builddir}. in
1098 .) ac_abs_top_builddir=$ac_abs_builddir;;
1099 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1100 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1101 esac;;
1102 esac
1103 case $ac_abs_builddir in
1104 .) ac_abs_srcdir=$ac_srcdir;;
1106 case $ac_srcdir in
1107 .) ac_abs_srcdir=$ac_abs_builddir;;
1108 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1109 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1110 esac;;
1111 esac
1112 case $ac_abs_builddir in
1113 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1115 case $ac_top_srcdir in
1116 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1117 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1118 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1119 esac;;
1120 esac
1122 cd $ac_dir
1123 # Check for guested configure; otherwise get Cygnus style configure.
1124 if test -f $ac_srcdir/configure.gnu; then
1125 echo
1126 $SHELL $ac_srcdir/configure.gnu --help=recursive
1127 elif test -f $ac_srcdir/configure; then
1128 echo
1129 $SHELL $ac_srcdir/configure --help=recursive
1130 elif test -f $ac_srcdir/configure.ac ||
1131 test -f $ac_srcdir/configure.in; then
1132 echo
1133 $ac_configure --help
1134 else
1135 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1137 cd $ac_popdir
1138 done
1141 test -n "$ac_init_help" && exit 0
1142 if $ac_init_version; then
1143 cat <<\_ACEOF
1144 GNU OpenMP Runtime Library configure 1.0
1145 generated by GNU Autoconf 2.59
1147 Copyright (C) 2003 Free Software Foundation, Inc.
1148 This configure script is free software; the Free Software Foundation
1149 gives unlimited permission to copy, distribute and modify it.
1150 _ACEOF
1151 exit 0
1153 exec 5>config.log
1154 cat >&5 <<_ACEOF
1155 This file contains any messages produced by compilers while
1156 running configure, to aid debugging if configure makes a mistake.
1158 It was created by GNU OpenMP Runtime Library $as_me 1.0, which was
1159 generated by GNU Autoconf 2.59. Invocation command line was
1161 $ $0 $@
1163 _ACEOF
1165 cat <<_ASUNAME
1166 ## --------- ##
1167 ## Platform. ##
1168 ## --------- ##
1170 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1171 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1172 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1173 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1174 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1176 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1177 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1179 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1180 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1181 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1182 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1183 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1184 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1185 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1187 _ASUNAME
1189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1190 for as_dir in $PATH
1192 IFS=$as_save_IFS
1193 test -z "$as_dir" && as_dir=.
1194 echo "PATH: $as_dir"
1195 done
1197 } >&5
1199 cat >&5 <<_ACEOF
1202 ## ----------- ##
1203 ## Core tests. ##
1204 ## ----------- ##
1206 _ACEOF
1209 # Keep a trace of the command line.
1210 # Strip out --no-create and --no-recursion so they do not pile up.
1211 # Strip out --silent because we don't want to record it for future runs.
1212 # Also quote any args containing shell meta-characters.
1213 # Make two passes to allow for proper duplicate-argument suppression.
1214 ac_configure_args=
1215 ac_configure_args0=
1216 ac_configure_args1=
1217 ac_sep=
1218 ac_must_keep_next=false
1219 for ac_pass in 1 2
1221 for ac_arg
1223 case $ac_arg in
1224 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1225 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1226 | -silent | --silent | --silen | --sile | --sil)
1227 continue ;;
1228 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1229 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1230 esac
1231 case $ac_pass in
1232 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1234 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1235 if test $ac_must_keep_next = true; then
1236 ac_must_keep_next=false # Got value, back to normal.
1237 else
1238 case $ac_arg in
1239 *=* | --config-cache | -C | -disable-* | --disable-* \
1240 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1241 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1242 | -with-* | --with-* | -without-* | --without-* | --x)
1243 case "$ac_configure_args0 " in
1244 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1245 esac
1247 -* ) ac_must_keep_next=true ;;
1248 esac
1250 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1251 # Get rid of the leading space.
1252 ac_sep=" "
1254 esac
1255 done
1256 done
1257 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1258 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1260 # When interrupted or exit'd, cleanup temporary files, and complete
1261 # config.log. We remove comments because anyway the quotes in there
1262 # would cause problems or look ugly.
1263 # WARNING: Be sure not to use single quotes in there, as some shells,
1264 # such as our DU 5.0 friend, will then `close' the trap.
1265 trap 'exit_status=$?
1266 # Save into config.log some information that might help in debugging.
1268 echo
1270 cat <<\_ASBOX
1271 ## ---------------- ##
1272 ## Cache variables. ##
1273 ## ---------------- ##
1274 _ASBOX
1275 echo
1276 # The following way of writing the cache mishandles newlines in values,
1278 (set) 2>&1 |
1279 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1280 *ac_space=\ *)
1281 sed -n \
1282 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1283 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1286 sed -n \
1287 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1289 esac;
1291 echo
1293 cat <<\_ASBOX
1294 ## ----------------- ##
1295 ## Output variables. ##
1296 ## ----------------- ##
1297 _ASBOX
1298 echo
1299 for ac_var in $ac_subst_vars
1301 eval ac_val=$`echo $ac_var`
1302 echo "$ac_var='"'"'$ac_val'"'"'"
1303 done | sort
1304 echo
1306 if test -n "$ac_subst_files"; then
1307 cat <<\_ASBOX
1308 ## ------------- ##
1309 ## Output files. ##
1310 ## ------------- ##
1311 _ASBOX
1312 echo
1313 for ac_var in $ac_subst_files
1315 eval ac_val=$`echo $ac_var`
1316 echo "$ac_var='"'"'$ac_val'"'"'"
1317 done | sort
1318 echo
1321 if test -s confdefs.h; then
1322 cat <<\_ASBOX
1323 ## ----------- ##
1324 ## confdefs.h. ##
1325 ## ----------- ##
1326 _ASBOX
1327 echo
1328 sed "/^$/d" confdefs.h | sort
1329 echo
1331 test "$ac_signal" != 0 &&
1332 echo "$as_me: caught signal $ac_signal"
1333 echo "$as_me: exit $exit_status"
1334 } >&5
1335 rm -f core *.core &&
1336 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1337 exit $exit_status
1339 for ac_signal in 1 2 13 15; do
1340 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1341 done
1342 ac_signal=0
1344 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1345 rm -rf conftest* confdefs.h
1346 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1347 echo >confdefs.h
1349 # Predefined preprocessor variables.
1351 cat >>confdefs.h <<_ACEOF
1352 #define PACKAGE_NAME "$PACKAGE_NAME"
1353 _ACEOF
1356 cat >>confdefs.h <<_ACEOF
1357 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1358 _ACEOF
1361 cat >>confdefs.h <<_ACEOF
1362 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1363 _ACEOF
1366 cat >>confdefs.h <<_ACEOF
1367 #define PACKAGE_STRING "$PACKAGE_STRING"
1368 _ACEOF
1371 cat >>confdefs.h <<_ACEOF
1372 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1373 _ACEOF
1376 # Let the site file select an alternate cache file if it wants to.
1377 # Prefer explicitly selected file to automatically selected ones.
1378 if test -z "$CONFIG_SITE"; then
1379 if test "x$prefix" != xNONE; then
1380 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1381 else
1382 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1385 for ac_site_file in $CONFIG_SITE; do
1386 if test -r "$ac_site_file"; then
1387 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1388 echo "$as_me: loading site script $ac_site_file" >&6;}
1389 sed 's/^/| /' "$ac_site_file" >&5
1390 . "$ac_site_file"
1392 done
1394 if test -r "$cache_file"; then
1395 # Some versions of bash will fail to source /dev/null (special
1396 # files actually), so we avoid doing that.
1397 if test -f "$cache_file"; then
1398 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1399 echo "$as_me: loading cache $cache_file" >&6;}
1400 case $cache_file in
1401 [\\/]* | ?:[\\/]* ) . $cache_file;;
1402 *) . ./$cache_file;;
1403 esac
1405 else
1406 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1407 echo "$as_me: creating cache $cache_file" >&6;}
1408 >$cache_file
1411 # Check that the precious variables saved in the cache have kept the same
1412 # value.
1413 ac_cache_corrupted=false
1414 for ac_var in `(set) 2>&1 |
1415 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1416 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1417 eval ac_new_set=\$ac_env_${ac_var}_set
1418 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1419 eval ac_new_val="\$ac_env_${ac_var}_value"
1420 case $ac_old_set,$ac_new_set in
1421 set,)
1422 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1423 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1424 ac_cache_corrupted=: ;;
1425 ,set)
1426 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1427 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1428 ac_cache_corrupted=: ;;
1429 ,);;
1431 if test "x$ac_old_val" != "x$ac_new_val"; then
1432 # differences in whitespace do not lead to failure.
1433 ac_old_val_w=`echo x $ac_old_val`
1434 ac_new_val_w=`echo x $ac_new_val`
1435 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1436 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1437 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1438 ac_cache_corrupted=:
1439 else
1440 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1441 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1442 eval $ac_var=\$ac_old_val
1444 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1445 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1446 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1447 echo "$as_me: current value: \`$ac_new_val'" >&2;}
1448 fi;;
1449 esac
1450 # Pass precious variables to config.status.
1451 if test "$ac_new_set" = set; then
1452 case $ac_new_val in
1453 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1454 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1455 *) ac_arg=$ac_var=$ac_new_val ;;
1456 esac
1457 case " $ac_configure_args " in
1458 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1459 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1460 esac
1462 done
1463 if $ac_cache_corrupted; then
1464 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1465 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1466 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1467 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1468 { (exit 1); exit 1; }; }
1471 ac_ext=c
1472 ac_cpp='$CPP $CPPFLAGS'
1473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1503 ac_config_headers="$ac_config_headers config.h"
1506 # -------
1507 # Options
1508 # -------
1510 echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
1511 echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6
1512 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1513 if test "${enable_version_specific_runtime_libs+set}" = set; then
1514 enableval="$enable_version_specific_runtime_libs"
1516 case "$enableval" in
1517 yes|no) ;;
1518 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific-runtime-libs" >&5
1519 echo "$as_me: error: Unknown argument to enable/disable version-specific-runtime-libs" >&2;}
1520 { (exit 1); exit 1; }; } ;;
1521 esac
1523 else
1524 enable_version_specific_runtime_libs=no
1527 echo "$as_me:$LINENO: result: $enable_version_specific_runtime_libs" >&5
1528 echo "${ECHO_T}$enable_version_specific_runtime_libs" >&6
1530 # We would like our source tree to be readonly. However when releases or
1531 # pre-releases are generated, the flex/bison generated files as well as the
1532 # various formats of manuals need to be included along with the rest of the
1533 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1534 # just that.
1535 echo "$as_me:$LINENO: checking for --enable-generated-files-in-srcdir" >&5
1536 echo $ECHO_N "checking for --enable-generated-files-in-srcdir... $ECHO_C" >&6
1537 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1538 if test "${enable_generated_files_in_srcdir+set}" = set; then
1539 enableval="$enable_generated_files_in_srcdir"
1541 case "$enableval" in
1542 yes|no) ;;
1543 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable generated-files-in-srcdir" >&5
1544 echo "$as_me: error: Unknown argument to enable/disable generated-files-in-srcdir" >&2;}
1545 { (exit 1); exit 1; }; } ;;
1546 esac
1548 else
1549 enable_generated_files_in_srcdir=no
1552 echo "$as_me:$LINENO: result: $enable_generated_files_in_srcdir" >&5
1553 echo "${ECHO_T}$enable_generated_files_in_srcdir" >&6
1556 if test "$enable_generated_files_in_srcdir" = yes; then
1557 GENINSRC_TRUE=
1558 GENINSRC_FALSE='#'
1559 else
1560 GENINSRC_TRUE='#'
1561 GENINSRC_FALSE=
1566 # -------
1567 # -------
1569 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
1571 # You will slowly go insane if you do not grok the following fact: when
1572 # building this library, the top-level /target/ becomes the library's /host/.
1574 # configure then causes --target to default to --host, exactly like any
1575 # other package using autoconf. Therefore, 'target' and 'host' will
1576 # always be the same. This makes sense both for native and cross compilers
1577 # just think about it for a little while. :-)
1579 # Also, if this library is being configured as part of a cross compiler, the
1580 # top-level configure script will pass the "real" host as $with_cross_host.
1582 # Do not delete or change the following two lines. For why, see
1583 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
1584 ac_aux_dir=
1585 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1586 if test -f $ac_dir/install-sh; then
1587 ac_aux_dir=$ac_dir
1588 ac_install_sh="$ac_aux_dir/install-sh -c"
1589 break
1590 elif test -f $ac_dir/install.sh; then
1591 ac_aux_dir=$ac_dir
1592 ac_install_sh="$ac_aux_dir/install.sh -c"
1593 break
1594 elif test -f $ac_dir/shtool; then
1595 ac_aux_dir=$ac_dir
1596 ac_install_sh="$ac_aux_dir/shtool install -c"
1597 break
1599 done
1600 if test -z "$ac_aux_dir"; then
1601 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1602 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1603 { (exit 1); exit 1; }; }
1605 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1606 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1607 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1609 # Make sure we can run config.sub.
1610 $ac_config_sub sun4 >/dev/null 2>&1 ||
1611 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1612 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1613 { (exit 1); exit 1; }; }
1615 echo "$as_me:$LINENO: checking build system type" >&5
1616 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1617 if test "${ac_cv_build+set}" = set; then
1618 echo $ECHO_N "(cached) $ECHO_C" >&6
1619 else
1620 ac_cv_build_alias=$build_alias
1621 test -z "$ac_cv_build_alias" &&
1622 ac_cv_build_alias=`$ac_config_guess`
1623 test -z "$ac_cv_build_alias" &&
1624 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1625 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1626 { (exit 1); exit 1; }; }
1627 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1628 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1629 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1630 { (exit 1); exit 1; }; }
1633 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1634 echo "${ECHO_T}$ac_cv_build" >&6
1635 build=$ac_cv_build
1636 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1637 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1638 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1641 echo "$as_me:$LINENO: checking host system type" >&5
1642 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1643 if test "${ac_cv_host+set}" = set; then
1644 echo $ECHO_N "(cached) $ECHO_C" >&6
1645 else
1646 ac_cv_host_alias=$host_alias
1647 test -z "$ac_cv_host_alias" &&
1648 ac_cv_host_alias=$ac_cv_build_alias
1649 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1650 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1651 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1652 { (exit 1); exit 1; }; }
1655 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1656 echo "${ECHO_T}$ac_cv_host" >&6
1657 host=$ac_cv_host
1658 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1659 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1660 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1663 echo "$as_me:$LINENO: checking target system type" >&5
1664 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1665 if test "${ac_cv_target+set}" = set; then
1666 echo $ECHO_N "(cached) $ECHO_C" >&6
1667 else
1668 ac_cv_target_alias=$target_alias
1669 test "x$ac_cv_target_alias" = "x" &&
1670 ac_cv_target_alias=$ac_cv_host_alias
1671 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1672 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1673 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1674 { (exit 1); exit 1; }; }
1677 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1678 echo "${ECHO_T}$ac_cv_target" >&6
1679 target=$ac_cv_target
1680 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1681 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1682 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1685 # The aliases save the names the user supplied, while $host etc.
1686 # will get canonicalized.
1687 test -n "$target_alias" &&
1688 test "$program_prefix$program_suffix$program_transform_name" = \
1689 NONENONEs,x,x, &&
1690 program_prefix=${target_alias}-
1691 target_alias=${target_alias-$host_alias}
1693 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
1694 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
1695 # 1.9.0: minimum required version
1696 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
1697 # of other PACKAGE_* variables will, however, and there's nothing
1698 # we can do about that; they come from AC_INIT).
1699 # foreign: we don't follow the normal rules for GNU packages (no COPYING
1700 # file in the top srcdir, etc, etc), so stop complaining.
1701 # -Wall: turns on all automake warnings...
1702 # -Wno-portability: ...except this one, since GNU make is required.
1703 # -Wno-override: ... and this one, since we do want this in testsuite.
1704 am__api_version="1.9"
1705 # Find a good install program. We prefer a C program (faster),
1706 # so one script is as good as another. But avoid the broken or
1707 # incompatible versions:
1708 # SysV /etc/install, /usr/sbin/install
1709 # SunOS /usr/etc/install
1710 # IRIX /sbin/install
1711 # AIX /bin/install
1712 # AmigaOS /C/install, which installs bootblocks on floppy discs
1713 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1714 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1715 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1716 # OS/2's system install, which has a completely different semantic
1717 # ./install, which can be erroneously created by make from ./install.sh.
1718 # Reject install programs that cannot install multiple files.
1719 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1720 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1721 if test -z "$INSTALL"; then
1722 if test "${ac_cv_path_install+set}" = set; then
1723 echo $ECHO_N "(cached) $ECHO_C" >&6
1724 else
1725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1726 for as_dir in $PATH
1728 IFS=$as_save_IFS
1729 test -z "$as_dir" && as_dir=.
1730 # Account for people who put trailing slashes in PATH elements.
1731 case $as_dir/ in
1732 ./ | .// | /cC/* | \
1733 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1734 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1735 /usr/ucb/* ) ;;
1737 # OSF1 and SCO ODT 3.0 have their own names for install.
1738 # Don't use installbsd from OSF since it installs stuff as root
1739 # by default.
1740 for ac_prog in ginstall scoinst install; do
1741 for ac_exec_ext in '' $ac_executable_extensions; do
1742 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1743 if test $ac_prog = install &&
1744 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1745 # AIX install. It has an incompatible calling convention.
1747 elif test $ac_prog = install &&
1748 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1749 # program-specific install script used by HP pwplus--don't use.
1751 else
1752 rm -rf conftest.one conftest.two conftest.dir
1753 echo one > conftest.one
1754 echo two > conftest.two
1755 mkdir conftest.dir
1756 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1757 test -s conftest.one && test -s conftest.two &&
1758 test -s conftest.dir/conftest.one &&
1759 test -s conftest.dir/conftest.two
1760 then
1761 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1762 break 3
1766 done
1767 done
1769 esac
1770 done
1772 rm -rf conftest.one conftest.two conftest.dir
1775 if test "${ac_cv_path_install+set}" = set; then
1776 INSTALL=$ac_cv_path_install
1777 else
1778 # As a last resort, use the slow shell script. Don't cache a
1779 # value for INSTALL within a source directory, because that will
1780 # break other packages using the cache if that directory is
1781 # removed, or if the value is a relative name.
1782 INSTALL=$ac_install_sh
1785 echo "$as_me:$LINENO: result: $INSTALL" >&5
1786 echo "${ECHO_T}$INSTALL" >&6
1788 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1789 # It thinks the first close brace ends the variable substitution.
1790 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1792 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1794 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1796 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1797 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1798 # Just in case
1799 sleep 1
1800 echo timestamp > conftest.file
1801 # Do `set' in a subshell so we don't clobber the current shell's
1802 # arguments. Must try -L first in case configure is actually a
1803 # symlink; some systems play weird games with the mod time of symlinks
1804 # (eg FreeBSD returns the mod time of the symlink's containing
1805 # directory).
1806 if (
1807 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1808 if test "$*" = "X"; then
1809 # -L didn't work.
1810 set X `ls -t $srcdir/configure conftest.file`
1812 rm -f conftest.file
1813 if test "$*" != "X $srcdir/configure conftest.file" \
1814 && test "$*" != "X conftest.file $srcdir/configure"; then
1816 # If neither matched, then we have a broken ls. This can happen
1817 # if, for instance, CONFIG_SHELL is bash and it inherits a
1818 # broken ls alias from the environment. This has actually
1819 # happened. Such a system could not be considered "sane".
1820 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1821 alias in your environment" >&5
1822 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1823 alias in your environment" >&2;}
1824 { (exit 1); exit 1; }; }
1827 test "$2" = conftest.file
1829 then
1830 # Ok.
1832 else
1833 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1834 Check your system clock" >&5
1835 echo "$as_me: error: newly created file is older than distributed files!
1836 Check your system clock" >&2;}
1837 { (exit 1); exit 1; }; }
1839 echo "$as_me:$LINENO: result: yes" >&5
1840 echo "${ECHO_T}yes" >&6
1841 test "$program_prefix" != NONE &&
1842 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1843 # Use a double $ so make ignores it.
1844 test "$program_suffix" != NONE &&
1845 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1846 # Double any \ or $. echo might interpret backslashes.
1847 # By default was `s,x,x', remove it if useless.
1848 cat <<\_ACEOF >conftest.sed
1849 s/[\\$]/&&/g;s/;s,x,x,$//
1850 _ACEOF
1851 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1852 rm conftest.sed
1854 # expand $ac_aux_dir to an absolute path
1855 am_aux_dir=`cd $ac_aux_dir && pwd`
1857 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1858 # Use eval to expand $SHELL
1859 if eval "$MISSING --run true"; then
1860 am_missing_run="$MISSING --run "
1861 else
1862 am_missing_run=
1863 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1864 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1867 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1868 # We used to keeping the `.' as first argument, in order to
1869 # allow $(mkdir_p) to be used without argument. As in
1870 # $(mkdir_p) $(somedir)
1871 # where $(somedir) is conditionally defined. However this is wrong
1872 # for two reasons:
1873 # 1. if the package is installed by a user who cannot write `.'
1874 # make install will fail,
1875 # 2. the above comment should most certainly read
1876 # $(mkdir_p) $(DESTDIR)$(somedir)
1877 # so it does not work when $(somedir) is undefined and
1878 # $(DESTDIR) is not.
1879 # To support the latter case, we have to write
1880 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1881 # so the `.' trick is pointless.
1882 mkdir_p='mkdir -p --'
1883 else
1884 # On NextStep and OpenStep, the `mkdir' command does not
1885 # recognize any option. It will interpret all options as
1886 # directories to create, and then abort because `.' already
1887 # exists.
1888 for d in ./-p ./--version;
1890 test -d $d && rmdir $d
1891 done
1892 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1893 if test -f "$ac_aux_dir/mkinstalldirs"; then
1894 mkdir_p='$(mkinstalldirs)'
1895 else
1896 mkdir_p='$(install_sh) -d'
1900 for ac_prog in gawk mawk nawk awk
1902 # Extract the first word of "$ac_prog", so it can be a program name with args.
1903 set dummy $ac_prog; ac_word=$2
1904 echo "$as_me:$LINENO: checking for $ac_word" >&5
1905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1906 if test "${ac_cv_prog_AWK+set}" = set; then
1907 echo $ECHO_N "(cached) $ECHO_C" >&6
1908 else
1909 if test -n "$AWK"; then
1910 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1911 else
1912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1913 for as_dir in $PATH
1915 IFS=$as_save_IFS
1916 test -z "$as_dir" && as_dir=.
1917 for ac_exec_ext in '' $ac_executable_extensions; do
1918 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1919 ac_cv_prog_AWK="$ac_prog"
1920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1921 break 2
1923 done
1924 done
1928 AWK=$ac_cv_prog_AWK
1929 if test -n "$AWK"; then
1930 echo "$as_me:$LINENO: result: $AWK" >&5
1931 echo "${ECHO_T}$AWK" >&6
1932 else
1933 echo "$as_me:$LINENO: result: no" >&5
1934 echo "${ECHO_T}no" >&6
1937 test -n "$AWK" && break
1938 done
1940 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1941 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1942 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1943 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1944 echo $ECHO_N "(cached) $ECHO_C" >&6
1945 else
1946 cat >conftest.make <<\_ACEOF
1947 all:
1948 @echo 'ac_maketemp="$(MAKE)"'
1949 _ACEOF
1950 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1951 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1952 if test -n "$ac_maketemp"; then
1953 eval ac_cv_prog_make_${ac_make}_set=yes
1954 else
1955 eval ac_cv_prog_make_${ac_make}_set=no
1957 rm -f conftest.make
1959 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1960 echo "$as_me:$LINENO: result: yes" >&5
1961 echo "${ECHO_T}yes" >&6
1962 SET_MAKE=
1963 else
1964 echo "$as_me:$LINENO: result: no" >&5
1965 echo "${ECHO_T}no" >&6
1966 SET_MAKE="MAKE=${MAKE-make}"
1969 rm -rf .tst 2>/dev/null
1970 mkdir .tst 2>/dev/null
1971 if test -d .tst; then
1972 am__leading_dot=.
1973 else
1974 am__leading_dot=_
1976 rmdir .tst 2>/dev/null
1978 # test to see if srcdir already configured
1979 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1980 test -f $srcdir/config.status; then
1981 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1982 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1983 { (exit 1); exit 1; }; }
1986 # test whether we have cygpath
1987 if test -z "$CYGPATH_W"; then
1988 if (cygpath --version) >/dev/null 2>/dev/null; then
1989 CYGPATH_W='cygpath -w'
1990 else
1991 CYGPATH_W=echo
1996 # Define the identity of the package.
1997 PACKAGE='libgomp'
1998 VERSION='1.0'
2001 cat >>confdefs.h <<_ACEOF
2002 #define PACKAGE "$PACKAGE"
2003 _ACEOF
2006 cat >>confdefs.h <<_ACEOF
2007 #define VERSION "$VERSION"
2008 _ACEOF
2010 # Some tools Automake needs.
2012 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2015 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2018 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2021 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2024 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2026 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2028 # Installed binaries are usually stripped using `strip' when the user
2029 # run `make install-strip'. However `strip' might not be the right
2030 # tool to use in cross-compilation environments, therefore Automake
2031 # will honor the `STRIP' environment variable to overrule this program.
2032 if test "$cross_compiling" != no; then
2033 if test -n "$ac_tool_prefix"; then
2034 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2035 set dummy ${ac_tool_prefix}strip; ac_word=$2
2036 echo "$as_me:$LINENO: checking for $ac_word" >&5
2037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2038 if test "${ac_cv_prog_STRIP+set}" = set; then
2039 echo $ECHO_N "(cached) $ECHO_C" >&6
2040 else
2041 if test -n "$STRIP"; then
2042 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2043 else
2044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2045 for as_dir in $PATH
2047 IFS=$as_save_IFS
2048 test -z "$as_dir" && as_dir=.
2049 for ac_exec_ext in '' $ac_executable_extensions; do
2050 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2051 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2053 break 2
2055 done
2056 done
2060 STRIP=$ac_cv_prog_STRIP
2061 if test -n "$STRIP"; then
2062 echo "$as_me:$LINENO: result: $STRIP" >&5
2063 echo "${ECHO_T}$STRIP" >&6
2064 else
2065 echo "$as_me:$LINENO: result: no" >&5
2066 echo "${ECHO_T}no" >&6
2070 if test -z "$ac_cv_prog_STRIP"; then
2071 ac_ct_STRIP=$STRIP
2072 # Extract the first word of "strip", so it can be a program name with args.
2073 set dummy strip; ac_word=$2
2074 echo "$as_me:$LINENO: checking for $ac_word" >&5
2075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2076 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2077 echo $ECHO_N "(cached) $ECHO_C" >&6
2078 else
2079 if test -n "$ac_ct_STRIP"; then
2080 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2081 else
2082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2083 for as_dir in $PATH
2085 IFS=$as_save_IFS
2086 test -z "$as_dir" && as_dir=.
2087 for ac_exec_ext in '' $ac_executable_extensions; do
2088 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2089 ac_cv_prog_ac_ct_STRIP="strip"
2090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2091 break 2
2093 done
2094 done
2096 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2099 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2100 if test -n "$ac_ct_STRIP"; then
2101 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2102 echo "${ECHO_T}$ac_ct_STRIP" >&6
2103 else
2104 echo "$as_me:$LINENO: result: no" >&5
2105 echo "${ECHO_T}no" >&6
2108 STRIP=$ac_ct_STRIP
2109 else
2110 STRIP="$ac_cv_prog_STRIP"
2114 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2116 # We need awk for the "check" target. The system "awk" is bad on
2117 # some platforms.
2118 # Always define AMTAR for backward compatibility.
2120 AMTAR=${AMTAR-"${am_missing_run}tar"}
2122 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2128 # Default to --enable-multilib
2129 # Check whether --enable-multilib or --disable-multilib was given.
2130 if test "${enable_multilib+set}" = set; then
2131 enableval="$enable_multilib"
2132 case "$enableval" in
2133 yes) multilib=yes ;;
2134 no) multilib=no ;;
2135 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
2136 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
2137 { (exit 1); exit 1; }; } ;;
2138 esac
2139 else
2140 multilib=yes
2143 # We may get other options which we leave undocumented:
2144 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2145 # See config-ml.in if you want the gory details.
2147 if test "$srcdir" = "."; then
2148 if test "$with_target_subdir" != "."; then
2149 multi_basedir="$srcdir/$with_multisrctop../.."
2150 else
2151 multi_basedir="$srcdir/$with_multisrctop.."
2153 else
2154 multi_basedir="$srcdir/.."
2158 # Even if the default multilib is not a cross compilation,
2159 # it may be that some of the other multilibs are.
2160 if test $cross_compiling = no && test $multilib = yes \
2161 && test "x${with_multisubdir}" != x ; then
2162 cross_compiling=maybe
2165 ac_config_commands="$ac_config_commands default-1"
2168 # Calculate toolexeclibdir
2169 # Also toolexecdir, though it's only used in toolexeclibdir
2170 case ${enable_version_specific_runtime_libs} in
2171 yes)
2172 # Need the gcc compiler version to know where to install libraries
2173 # and header files if --enable-version-specific-runtime-libs option
2174 # is selected.
2175 toolexecdir='$(libdir)/gcc/$(target_alias)'
2176 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
2179 if test -n "$with_cross_host" &&
2180 test x"$with_cross_host" != x"no"; then
2181 # Install a library built with a cross compiler in tooldir, not libdir.
2182 toolexecdir='$(exec_prefix)/$(target_alias)'
2183 toolexeclibdir='$(toolexecdir)/lib'
2184 else
2185 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
2186 toolexeclibdir='$(libdir)'
2188 multi_os_directory=`$CC -print-multi-os-directory`
2189 case $multi_os_directory in
2190 .) ;; # Avoid trailing /.
2191 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
2192 esac
2194 esac
2198 # Check the compiler.
2199 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
2200 # We must force CC to /not/ be precious variables; otherwise
2201 # the wrong, non-multilib-adjusted value will be used in multilibs.
2202 # As a side effect, we have to subst CFLAGS ourselves.
2206 ac_ext=c
2207 ac_cpp='$CPP $CPPFLAGS'
2208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2211 if test -n "$ac_tool_prefix"; then
2212 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2213 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2214 echo "$as_me:$LINENO: checking for $ac_word" >&5
2215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2216 if test "${ac_cv_prog_CC+set}" = set; then
2217 echo $ECHO_N "(cached) $ECHO_C" >&6
2218 else
2219 if test -n "$CC"; then
2220 ac_cv_prog_CC="$CC" # Let the user override the test.
2221 else
2222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2223 for as_dir in $PATH
2225 IFS=$as_save_IFS
2226 test -z "$as_dir" && as_dir=.
2227 for ac_exec_ext in '' $ac_executable_extensions; do
2228 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2229 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2231 break 2
2233 done
2234 done
2238 CC=$ac_cv_prog_CC
2239 if test -n "$CC"; then
2240 echo "$as_me:$LINENO: result: $CC" >&5
2241 echo "${ECHO_T}$CC" >&6
2242 else
2243 echo "$as_me:$LINENO: result: no" >&5
2244 echo "${ECHO_T}no" >&6
2248 if test -z "$ac_cv_prog_CC"; then
2249 ac_ct_CC=$CC
2250 # Extract the first word of "gcc", so it can be a program name with args.
2251 set dummy gcc; ac_word=$2
2252 echo "$as_me:$LINENO: checking for $ac_word" >&5
2253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2254 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2255 echo $ECHO_N "(cached) $ECHO_C" >&6
2256 else
2257 if test -n "$ac_ct_CC"; then
2258 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2259 else
2260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2261 for as_dir in $PATH
2263 IFS=$as_save_IFS
2264 test -z "$as_dir" && as_dir=.
2265 for ac_exec_ext in '' $ac_executable_extensions; do
2266 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2267 ac_cv_prog_ac_ct_CC="gcc"
2268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2269 break 2
2271 done
2272 done
2276 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2277 if test -n "$ac_ct_CC"; then
2278 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2279 echo "${ECHO_T}$ac_ct_CC" >&6
2280 else
2281 echo "$as_me:$LINENO: result: no" >&5
2282 echo "${ECHO_T}no" >&6
2285 CC=$ac_ct_CC
2286 else
2287 CC="$ac_cv_prog_CC"
2290 if test -z "$CC"; then
2291 if test -n "$ac_tool_prefix"; then
2292 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2293 set dummy ${ac_tool_prefix}cc; ac_word=$2
2294 echo "$as_me:$LINENO: checking for $ac_word" >&5
2295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2296 if test "${ac_cv_prog_CC+set}" = set; then
2297 echo $ECHO_N "(cached) $ECHO_C" >&6
2298 else
2299 if test -n "$CC"; then
2300 ac_cv_prog_CC="$CC" # Let the user override the test.
2301 else
2302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2303 for as_dir in $PATH
2305 IFS=$as_save_IFS
2306 test -z "$as_dir" && as_dir=.
2307 for ac_exec_ext in '' $ac_executable_extensions; do
2308 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2309 ac_cv_prog_CC="${ac_tool_prefix}cc"
2310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2311 break 2
2313 done
2314 done
2318 CC=$ac_cv_prog_CC
2319 if test -n "$CC"; then
2320 echo "$as_me:$LINENO: result: $CC" >&5
2321 echo "${ECHO_T}$CC" >&6
2322 else
2323 echo "$as_me:$LINENO: result: no" >&5
2324 echo "${ECHO_T}no" >&6
2328 if test -z "$ac_cv_prog_CC"; then
2329 ac_ct_CC=$CC
2330 # Extract the first word of "cc", so it can be a program name with args.
2331 set dummy cc; ac_word=$2
2332 echo "$as_me:$LINENO: checking for $ac_word" >&5
2333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2334 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2335 echo $ECHO_N "(cached) $ECHO_C" >&6
2336 else
2337 if test -n "$ac_ct_CC"; then
2338 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2339 else
2340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2341 for as_dir in $PATH
2343 IFS=$as_save_IFS
2344 test -z "$as_dir" && as_dir=.
2345 for ac_exec_ext in '' $ac_executable_extensions; do
2346 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2347 ac_cv_prog_ac_ct_CC="cc"
2348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2349 break 2
2351 done
2352 done
2356 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2357 if test -n "$ac_ct_CC"; then
2358 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2359 echo "${ECHO_T}$ac_ct_CC" >&6
2360 else
2361 echo "$as_me:$LINENO: result: no" >&5
2362 echo "${ECHO_T}no" >&6
2365 CC=$ac_ct_CC
2366 else
2367 CC="$ac_cv_prog_CC"
2371 if test -z "$CC"; then
2372 # Extract the first word of "cc", so it can be a program name with args.
2373 set dummy cc; ac_word=$2
2374 echo "$as_me:$LINENO: checking for $ac_word" >&5
2375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2376 if test "${ac_cv_prog_CC+set}" = set; then
2377 echo $ECHO_N "(cached) $ECHO_C" >&6
2378 else
2379 if test -n "$CC"; then
2380 ac_cv_prog_CC="$CC" # Let the user override the test.
2381 else
2382 ac_prog_rejected=no
2383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2384 for as_dir in $PATH
2386 IFS=$as_save_IFS
2387 test -z "$as_dir" && as_dir=.
2388 for ac_exec_ext in '' $ac_executable_extensions; do
2389 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2390 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2391 ac_prog_rejected=yes
2392 continue
2394 ac_cv_prog_CC="cc"
2395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2396 break 2
2398 done
2399 done
2401 if test $ac_prog_rejected = yes; then
2402 # We found a bogon in the path, so make sure we never use it.
2403 set dummy $ac_cv_prog_CC
2404 shift
2405 if test $# != 0; then
2406 # We chose a different compiler from the bogus one.
2407 # However, it has the same basename, so the bogon will be chosen
2408 # first if we set CC to just the basename; use the full file name.
2409 shift
2410 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2415 CC=$ac_cv_prog_CC
2416 if test -n "$CC"; then
2417 echo "$as_me:$LINENO: result: $CC" >&5
2418 echo "${ECHO_T}$CC" >&6
2419 else
2420 echo "$as_me:$LINENO: result: no" >&5
2421 echo "${ECHO_T}no" >&6
2425 if test -z "$CC"; then
2426 if test -n "$ac_tool_prefix"; then
2427 for ac_prog in cl
2429 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2430 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2431 echo "$as_me:$LINENO: checking for $ac_word" >&5
2432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2433 if test "${ac_cv_prog_CC+set}" = set; then
2434 echo $ECHO_N "(cached) $ECHO_C" >&6
2435 else
2436 if test -n "$CC"; then
2437 ac_cv_prog_CC="$CC" # Let the user override the test.
2438 else
2439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2440 for as_dir in $PATH
2442 IFS=$as_save_IFS
2443 test -z "$as_dir" && as_dir=.
2444 for ac_exec_ext in '' $ac_executable_extensions; do
2445 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2446 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2448 break 2
2450 done
2451 done
2455 CC=$ac_cv_prog_CC
2456 if test -n "$CC"; then
2457 echo "$as_me:$LINENO: result: $CC" >&5
2458 echo "${ECHO_T}$CC" >&6
2459 else
2460 echo "$as_me:$LINENO: result: no" >&5
2461 echo "${ECHO_T}no" >&6
2464 test -n "$CC" && break
2465 done
2467 if test -z "$CC"; then
2468 ac_ct_CC=$CC
2469 for ac_prog in cl
2471 # Extract the first word of "$ac_prog", so it can be a program name with args.
2472 set dummy $ac_prog; ac_word=$2
2473 echo "$as_me:$LINENO: checking for $ac_word" >&5
2474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2475 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2476 echo $ECHO_N "(cached) $ECHO_C" >&6
2477 else
2478 if test -n "$ac_ct_CC"; then
2479 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2480 else
2481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2482 for as_dir in $PATH
2484 IFS=$as_save_IFS
2485 test -z "$as_dir" && as_dir=.
2486 for ac_exec_ext in '' $ac_executable_extensions; do
2487 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2488 ac_cv_prog_ac_ct_CC="$ac_prog"
2489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2490 break 2
2492 done
2493 done
2497 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2498 if test -n "$ac_ct_CC"; then
2499 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2500 echo "${ECHO_T}$ac_ct_CC" >&6
2501 else
2502 echo "$as_me:$LINENO: result: no" >&5
2503 echo "${ECHO_T}no" >&6
2506 test -n "$ac_ct_CC" && break
2507 done
2509 CC=$ac_ct_CC
2515 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2516 See \`config.log' for more details." >&5
2517 echo "$as_me: error: no acceptable C compiler found in \$PATH
2518 See \`config.log' for more details." >&2;}
2519 { (exit 1); exit 1; }; }
2521 # Provide some information about the compiler.
2522 echo "$as_me:$LINENO:" \
2523 "checking for C compiler version" >&5
2524 ac_compiler=`set X $ac_compile; echo $2`
2525 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2526 (eval $ac_compiler --version </dev/null >&5) 2>&5
2527 ac_status=$?
2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529 (exit $ac_status); }
2530 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2531 (eval $ac_compiler -v </dev/null >&5) 2>&5
2532 ac_status=$?
2533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534 (exit $ac_status); }
2535 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2536 (eval $ac_compiler -V </dev/null >&5) 2>&5
2537 ac_status=$?
2538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539 (exit $ac_status); }
2541 cat >conftest.$ac_ext <<_ACEOF
2542 /* confdefs.h. */
2543 _ACEOF
2544 cat confdefs.h >>conftest.$ac_ext
2545 cat >>conftest.$ac_ext <<_ACEOF
2546 /* end confdefs.h. */
2549 main ()
2553 return 0;
2555 _ACEOF
2556 ac_clean_files_save=$ac_clean_files
2557 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2558 # Try to create an executable without -o first, disregard a.out.
2559 # It will help us diagnose broken compilers, and finding out an intuition
2560 # of exeext.
2561 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2562 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2563 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2564 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2565 (eval $ac_link_default) 2>&5
2566 ac_status=$?
2567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568 (exit $ac_status); }; then
2569 # Find the output, starting from the most likely. This scheme is
2570 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2571 # resort.
2573 # Be careful to initialize this variable, since it used to be cached.
2574 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2575 ac_cv_exeext=
2576 # b.out is created by i960 compilers.
2577 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2579 test -f "$ac_file" || continue
2580 case $ac_file in
2581 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2583 conftest.$ac_ext )
2584 # This is the source file.
2586 [ab].out )
2587 # We found the default executable, but exeext='' is most
2588 # certainly right.
2589 break;;
2590 *.* )
2591 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2592 # FIXME: I believe we export ac_cv_exeext for Libtool,
2593 # but it would be cool to find out if it's true. Does anybody
2594 # maintain Libtool? --akim.
2595 export ac_cv_exeext
2596 break;;
2598 break;;
2599 esac
2600 done
2601 else
2602 echo "$as_me: failed program was:" >&5
2603 sed 's/^/| /' conftest.$ac_ext >&5
2605 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2606 See \`config.log' for more details." >&5
2607 echo "$as_me: error: C compiler cannot create executables
2608 See \`config.log' for more details." >&2;}
2609 { (exit 77); exit 77; }; }
2612 ac_exeext=$ac_cv_exeext
2613 echo "$as_me:$LINENO: result: $ac_file" >&5
2614 echo "${ECHO_T}$ac_file" >&6
2616 # Check the compiler produces executables we can run. If not, either
2617 # the compiler is broken, or we cross compile.
2618 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2619 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2620 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2621 # If not cross compiling, check that we can run a simple program.
2622 if test "$cross_compiling" != yes; then
2623 if { ac_try='./$ac_file'
2624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2625 (eval $ac_try) 2>&5
2626 ac_status=$?
2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 (exit $ac_status); }; }; then
2629 cross_compiling=no
2630 else
2631 if test "$cross_compiling" = maybe; then
2632 cross_compiling=yes
2633 else
2634 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2635 If you meant to cross compile, use \`--host'.
2636 See \`config.log' for more details." >&5
2637 echo "$as_me: error: cannot run C compiled programs.
2638 If you meant to cross compile, use \`--host'.
2639 See \`config.log' for more details." >&2;}
2640 { (exit 1); exit 1; }; }
2644 echo "$as_me:$LINENO: result: yes" >&5
2645 echo "${ECHO_T}yes" >&6
2647 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2648 ac_clean_files=$ac_clean_files_save
2649 # Check the compiler produces executables we can run. If not, either
2650 # the compiler is broken, or we cross compile.
2651 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2652 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2653 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2654 echo "${ECHO_T}$cross_compiling" >&6
2656 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2657 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2659 (eval $ac_link) 2>&5
2660 ac_status=$?
2661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662 (exit $ac_status); }; then
2663 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2664 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2665 # work properly (i.e., refer to `conftest.exe'), while it won't with
2666 # `rm'.
2667 for ac_file in conftest.exe conftest conftest.*; do
2668 test -f "$ac_file" || continue
2669 case $ac_file in
2670 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2671 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2672 export ac_cv_exeext
2673 break;;
2674 * ) break;;
2675 esac
2676 done
2677 else
2678 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2679 See \`config.log' for more details." >&5
2680 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2681 See \`config.log' for more details." >&2;}
2682 { (exit 1); exit 1; }; }
2685 rm -f conftest$ac_cv_exeext
2686 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2687 echo "${ECHO_T}$ac_cv_exeext" >&6
2689 rm -f conftest.$ac_ext
2690 EXEEXT=$ac_cv_exeext
2691 ac_exeext=$EXEEXT
2692 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2693 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2694 if test "${ac_cv_objext+set}" = set; then
2695 echo $ECHO_N "(cached) $ECHO_C" >&6
2696 else
2697 cat >conftest.$ac_ext <<_ACEOF
2698 /* confdefs.h. */
2699 _ACEOF
2700 cat confdefs.h >>conftest.$ac_ext
2701 cat >>conftest.$ac_ext <<_ACEOF
2702 /* end confdefs.h. */
2705 main ()
2709 return 0;
2711 _ACEOF
2712 rm -f conftest.o conftest.obj
2713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2714 (eval $ac_compile) 2>&5
2715 ac_status=$?
2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717 (exit $ac_status); }; then
2718 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2719 case $ac_file in
2720 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2721 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2722 break;;
2723 esac
2724 done
2725 else
2726 echo "$as_me: failed program was:" >&5
2727 sed 's/^/| /' conftest.$ac_ext >&5
2729 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2730 See \`config.log' for more details." >&5
2731 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2732 See \`config.log' for more details." >&2;}
2733 { (exit 1); exit 1; }; }
2736 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2738 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2739 echo "${ECHO_T}$ac_cv_objext" >&6
2740 OBJEXT=$ac_cv_objext
2741 ac_objext=$OBJEXT
2742 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2743 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2744 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2745 echo $ECHO_N "(cached) $ECHO_C" >&6
2746 else
2747 cat >conftest.$ac_ext <<_ACEOF
2748 /* confdefs.h. */
2749 _ACEOF
2750 cat confdefs.h >>conftest.$ac_ext
2751 cat >>conftest.$ac_ext <<_ACEOF
2752 /* end confdefs.h. */
2755 main ()
2757 #ifndef __GNUC__
2758 choke me
2759 #endif
2762 return 0;
2764 _ACEOF
2765 rm -f conftest.$ac_objext
2766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2767 (eval $ac_compile) 2>conftest.er1
2768 ac_status=$?
2769 grep -v '^ *+' conftest.er1 >conftest.err
2770 rm -f conftest.er1
2771 cat conftest.err >&5
2772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773 (exit $ac_status); } &&
2774 { ac_try='test -z "$ac_c_werror_flag"
2775 || test ! -s conftest.err'
2776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2777 (eval $ac_try) 2>&5
2778 ac_status=$?
2779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780 (exit $ac_status); }; } &&
2781 { ac_try='test -s conftest.$ac_objext'
2782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2783 (eval $ac_try) 2>&5
2784 ac_status=$?
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); }; }; then
2787 ac_compiler_gnu=yes
2788 else
2789 echo "$as_me: failed program was:" >&5
2790 sed 's/^/| /' conftest.$ac_ext >&5
2792 ac_compiler_gnu=no
2794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2795 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2798 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2799 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2800 GCC=`test $ac_compiler_gnu = yes && echo yes`
2801 ac_test_CFLAGS=${CFLAGS+set}
2802 ac_save_CFLAGS=$CFLAGS
2803 CFLAGS="-g"
2804 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2805 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2806 if test "${ac_cv_prog_cc_g+set}" = set; then
2807 echo $ECHO_N "(cached) $ECHO_C" >&6
2808 else
2809 cat >conftest.$ac_ext <<_ACEOF
2810 /* confdefs.h. */
2811 _ACEOF
2812 cat confdefs.h >>conftest.$ac_ext
2813 cat >>conftest.$ac_ext <<_ACEOF
2814 /* end confdefs.h. */
2817 main ()
2821 return 0;
2823 _ACEOF
2824 rm -f conftest.$ac_objext
2825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2826 (eval $ac_compile) 2>conftest.er1
2827 ac_status=$?
2828 grep -v '^ *+' conftest.er1 >conftest.err
2829 rm -f conftest.er1
2830 cat conftest.err >&5
2831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2832 (exit $ac_status); } &&
2833 { ac_try='test -z "$ac_c_werror_flag"
2834 || test ! -s conftest.err'
2835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2836 (eval $ac_try) 2>&5
2837 ac_status=$?
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); }; } &&
2840 { ac_try='test -s conftest.$ac_objext'
2841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2842 (eval $ac_try) 2>&5
2843 ac_status=$?
2844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845 (exit $ac_status); }; }; then
2846 ac_cv_prog_cc_g=yes
2847 else
2848 echo "$as_me: failed program was:" >&5
2849 sed 's/^/| /' conftest.$ac_ext >&5
2851 ac_cv_prog_cc_g=no
2853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2855 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2856 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2857 if test "$ac_test_CFLAGS" = set; then
2858 CFLAGS=$ac_save_CFLAGS
2859 elif test $ac_cv_prog_cc_g = yes; then
2860 if test "$GCC" = yes; then
2861 CFLAGS="-g -O2"
2862 else
2863 CFLAGS="-g"
2865 else
2866 if test "$GCC" = yes; then
2867 CFLAGS="-O2"
2868 else
2869 CFLAGS=
2872 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2873 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2874 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2875 echo $ECHO_N "(cached) $ECHO_C" >&6
2876 else
2877 ac_cv_prog_cc_stdc=no
2878 ac_save_CC=$CC
2879 cat >conftest.$ac_ext <<_ACEOF
2880 /* confdefs.h. */
2881 _ACEOF
2882 cat confdefs.h >>conftest.$ac_ext
2883 cat >>conftest.$ac_ext <<_ACEOF
2884 /* end confdefs.h. */
2885 #include <stdarg.h>
2886 #include <stdio.h>
2887 #include <sys/types.h>
2888 #include <sys/stat.h>
2889 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2890 struct buf { int x; };
2891 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2892 static char *e (p, i)
2893 char **p;
2894 int i;
2896 return p[i];
2898 static char *f (char * (*g) (char **, int), char **p, ...)
2900 char *s;
2901 va_list v;
2902 va_start (v,p);
2903 s = g (p, va_arg (v,int));
2904 va_end (v);
2905 return s;
2908 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2909 function prototypes and stuff, but not '\xHH' hex character constants.
2910 These don't provoke an error unfortunately, instead are silently treated
2911 as 'x'. The following induces an error, until -std1 is added to get
2912 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2913 array size at least. It's necessary to write '\x00'==0 to get something
2914 that's true only with -std1. */
2915 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2917 int test (int i, double x);
2918 struct s1 {int (*f) (int a);};
2919 struct s2 {int (*f) (double a);};
2920 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2921 int argc;
2922 char **argv;
2924 main ()
2926 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2928 return 0;
2930 _ACEOF
2931 # Don't try gcc -ansi; that turns off useful extensions and
2932 # breaks some systems' header files.
2933 # AIX -qlanglvl=ansi
2934 # Ultrix and OSF/1 -std1
2935 # HP-UX 10.20 and later -Ae
2936 # HP-UX older versions -Aa -D_HPUX_SOURCE
2937 # SVR4 -Xc -D__EXTENSIONS__
2938 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2940 CC="$ac_save_CC $ac_arg"
2941 rm -f conftest.$ac_objext
2942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2943 (eval $ac_compile) 2>conftest.er1
2944 ac_status=$?
2945 grep -v '^ *+' conftest.er1 >conftest.err
2946 rm -f conftest.er1
2947 cat conftest.err >&5
2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949 (exit $ac_status); } &&
2950 { ac_try='test -z "$ac_c_werror_flag"
2951 || test ! -s conftest.err'
2952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2953 (eval $ac_try) 2>&5
2954 ac_status=$?
2955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956 (exit $ac_status); }; } &&
2957 { ac_try='test -s conftest.$ac_objext'
2958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2959 (eval $ac_try) 2>&5
2960 ac_status=$?
2961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962 (exit $ac_status); }; }; then
2963 ac_cv_prog_cc_stdc=$ac_arg
2964 break
2965 else
2966 echo "$as_me: failed program was:" >&5
2967 sed 's/^/| /' conftest.$ac_ext >&5
2970 rm -f conftest.err conftest.$ac_objext
2971 done
2972 rm -f conftest.$ac_ext conftest.$ac_objext
2973 CC=$ac_save_CC
2977 case "x$ac_cv_prog_cc_stdc" in
2978 x|xno)
2979 echo "$as_me:$LINENO: result: none needed" >&5
2980 echo "${ECHO_T}none needed" >&6 ;;
2982 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2983 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2984 CC="$CC $ac_cv_prog_cc_stdc" ;;
2985 esac
2987 # Some people use a C++ compiler to compile C. Since we use `exit',
2988 # in C++ we need to declare it. In case someone uses the same compiler
2989 # for both compiling C and C++ we need to have the C++ compiler decide
2990 # the declaration of exit, since it's the most demanding environment.
2991 cat >conftest.$ac_ext <<_ACEOF
2992 #ifndef __cplusplus
2993 choke me
2994 #endif
2995 _ACEOF
2996 rm -f conftest.$ac_objext
2997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2998 (eval $ac_compile) 2>conftest.er1
2999 ac_status=$?
3000 grep -v '^ *+' conftest.er1 >conftest.err
3001 rm -f conftest.er1
3002 cat conftest.err >&5
3003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004 (exit $ac_status); } &&
3005 { ac_try='test -z "$ac_c_werror_flag"
3006 || test ! -s conftest.err'
3007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3008 (eval $ac_try) 2>&5
3009 ac_status=$?
3010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011 (exit $ac_status); }; } &&
3012 { ac_try='test -s conftest.$ac_objext'
3013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3014 (eval $ac_try) 2>&5
3015 ac_status=$?
3016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017 (exit $ac_status); }; }; then
3018 for ac_declaration in \
3019 '' \
3020 'extern "C" void std::exit (int) throw (); using std::exit;' \
3021 'extern "C" void std::exit (int); using std::exit;' \
3022 'extern "C" void exit (int) throw ();' \
3023 'extern "C" void exit (int);' \
3024 'void exit (int);'
3026 cat >conftest.$ac_ext <<_ACEOF
3027 /* confdefs.h. */
3028 _ACEOF
3029 cat confdefs.h >>conftest.$ac_ext
3030 cat >>conftest.$ac_ext <<_ACEOF
3031 /* end confdefs.h. */
3032 $ac_declaration
3033 #include <stdlib.h>
3035 main ()
3037 exit (42);
3039 return 0;
3041 _ACEOF
3042 rm -f conftest.$ac_objext
3043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3044 (eval $ac_compile) 2>conftest.er1
3045 ac_status=$?
3046 grep -v '^ *+' conftest.er1 >conftest.err
3047 rm -f conftest.er1
3048 cat conftest.err >&5
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); } &&
3051 { ac_try='test -z "$ac_c_werror_flag"
3052 || test ! -s conftest.err'
3053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3054 (eval $ac_try) 2>&5
3055 ac_status=$?
3056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057 (exit $ac_status); }; } &&
3058 { ac_try='test -s conftest.$ac_objext'
3059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3060 (eval $ac_try) 2>&5
3061 ac_status=$?
3062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063 (exit $ac_status); }; }; then
3065 else
3066 echo "$as_me: failed program was:" >&5
3067 sed 's/^/| /' conftest.$ac_ext >&5
3069 continue
3071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3072 cat >conftest.$ac_ext <<_ACEOF
3073 /* confdefs.h. */
3074 _ACEOF
3075 cat confdefs.h >>conftest.$ac_ext
3076 cat >>conftest.$ac_ext <<_ACEOF
3077 /* end confdefs.h. */
3078 $ac_declaration
3080 main ()
3082 exit (42);
3084 return 0;
3086 _ACEOF
3087 rm -f conftest.$ac_objext
3088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3089 (eval $ac_compile) 2>conftest.er1
3090 ac_status=$?
3091 grep -v '^ *+' conftest.er1 >conftest.err
3092 rm -f conftest.er1
3093 cat conftest.err >&5
3094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095 (exit $ac_status); } &&
3096 { ac_try='test -z "$ac_c_werror_flag"
3097 || test ! -s conftest.err'
3098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3099 (eval $ac_try) 2>&5
3100 ac_status=$?
3101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102 (exit $ac_status); }; } &&
3103 { ac_try='test -s conftest.$ac_objext'
3104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3105 (eval $ac_try) 2>&5
3106 ac_status=$?
3107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108 (exit $ac_status); }; }; then
3109 break
3110 else
3111 echo "$as_me: failed program was:" >&5
3112 sed 's/^/| /' conftest.$ac_ext >&5
3115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3116 done
3117 rm -f conftest*
3118 if test -n "$ac_declaration"; then
3119 echo '#ifdef __cplusplus' >>confdefs.h
3120 echo $ac_declaration >>confdefs.h
3121 echo '#endif' >>confdefs.h
3124 else
3125 echo "$as_me: failed program was:" >&5
3126 sed 's/^/| /' conftest.$ac_ext >&5
3129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3130 ac_ext=c
3131 ac_cpp='$CPP $CPPFLAGS'
3132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3135 DEPDIR="${am__leading_dot}deps"
3137 ac_config_commands="$ac_config_commands depfiles"
3140 am_make=${MAKE-make}
3141 cat > confinc << 'END'
3142 am__doit:
3143 @echo done
3144 .PHONY: am__doit
3146 # If we don't find an include directive, just comment out the code.
3147 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3148 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3149 am__include="#"
3150 am__quote=
3151 _am_result=none
3152 # First try GNU make style include.
3153 echo "include confinc" > confmf
3154 # We grep out `Entering directory' and `Leaving directory'
3155 # messages which can occur if `w' ends up in MAKEFLAGS.
3156 # In particular we don't look at `^make:' because GNU make might
3157 # be invoked under some other name (usually "gmake"), in which
3158 # case it prints its new name instead of `make'.
3159 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3160 am__include=include
3161 am__quote=
3162 _am_result=GNU
3164 # Now try BSD make style include.
3165 if test "$am__include" = "#"; then
3166 echo '.include "confinc"' > confmf
3167 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3168 am__include=.include
3169 am__quote="\""
3170 _am_result=BSD
3175 echo "$as_me:$LINENO: result: $_am_result" >&5
3176 echo "${ECHO_T}$_am_result" >&6
3177 rm -f confinc confmf
3179 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3180 if test "${enable_dependency_tracking+set}" = set; then
3181 enableval="$enable_dependency_tracking"
3184 if test "x$enable_dependency_tracking" != xno; then
3185 am_depcomp="$ac_aux_dir/depcomp"
3186 AMDEPBACKSLASH='\'
3190 if test "x$enable_dependency_tracking" != xno; then
3191 AMDEP_TRUE=
3192 AMDEP_FALSE='#'
3193 else
3194 AMDEP_TRUE='#'
3195 AMDEP_FALSE=
3201 depcc="$CC" am_compiler_list=
3203 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3204 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3205 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3206 echo $ECHO_N "(cached) $ECHO_C" >&6
3207 else
3208 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3209 # We make a subdir and do the tests there. Otherwise we can end up
3210 # making bogus files that we don't know about and never remove. For
3211 # instance it was reported that on HP-UX the gcc test will end up
3212 # making a dummy file named `D' -- because `-MD' means `put the output
3213 # in D'.
3214 mkdir conftest.dir
3215 # Copy depcomp to subdir because otherwise we won't find it if we're
3216 # using a relative directory.
3217 cp "$am_depcomp" conftest.dir
3218 cd conftest.dir
3219 # We will build objects and dependencies in a subdirectory because
3220 # it helps to detect inapplicable dependency modes. For instance
3221 # both Tru64's cc and ICC support -MD to output dependencies as a
3222 # side effect of compilation, but ICC will put the dependencies in
3223 # the current directory while Tru64 will put them in the object
3224 # directory.
3225 mkdir sub
3227 am_cv_CC_dependencies_compiler_type=none
3228 if test "$am_compiler_list" = ""; then
3229 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3231 for depmode in $am_compiler_list; do
3232 # Setup a source with many dependencies, because some compilers
3233 # like to wrap large dependency lists on column 80 (with \), and
3234 # we should not choose a depcomp mode which is confused by this.
3236 # We need to recreate these files for each test, as the compiler may
3237 # overwrite some of them when testing with obscure command lines.
3238 # This happens at least with the AIX C compiler.
3239 : > sub/conftest.c
3240 for i in 1 2 3 4 5 6; do
3241 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3242 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3243 # Solaris 8's {/usr,}/bin/sh.
3244 touch sub/conftst$i.h
3245 done
3246 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3248 case $depmode in
3249 nosideeffect)
3250 # after this tag, mechanisms are not by side-effect, so they'll
3251 # only be used when explicitly requested
3252 if test "x$enable_dependency_tracking" = xyes; then
3253 continue
3254 else
3255 break
3258 none) break ;;
3259 esac
3260 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3261 # mode. It turns out that the SunPro C++ compiler does not properly
3262 # handle `-M -o', and we need to detect this.
3263 if depmode=$depmode \
3264 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3265 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3266 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3267 >/dev/null 2>conftest.err &&
3268 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3269 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3270 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3271 # icc doesn't choke on unknown options, it will just issue warnings
3272 # or remarks (even with -Werror). So we grep stderr for any message
3273 # that says an option was ignored or not supported.
3274 # When given -MP, icc 7.0 and 7.1 complain thusly:
3275 # icc: Command line warning: ignoring option '-M'; no argument required
3276 # The diagnosis changed in icc 8.0:
3277 # icc: Command line remark: option '-MP' not supported
3278 if (grep 'ignoring option' conftest.err ||
3279 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3280 am_cv_CC_dependencies_compiler_type=$depmode
3281 break
3284 done
3286 cd ..
3287 rm -rf conftest.dir
3288 else
3289 am_cv_CC_dependencies_compiler_type=none
3293 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3294 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3295 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3300 test "x$enable_dependency_tracking" != xno \
3301 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3302 am__fastdepCC_TRUE=
3303 am__fastdepCC_FALSE='#'
3304 else
3305 am__fastdepCC_TRUE='#'
3306 am__fastdepCC_FALSE=
3314 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
3315 # in XCFLAGS. But we need them in CFLAGS during configury. So put them
3316 # in both places for now and restore CFLAGS at the end of config.
3317 save_CFLAGS="$CFLAGS"
3319 # Add -Wall -Werror if we are using GCC.
3320 if test "x$GCC" = "xyes"; then
3321 XCFLAGS="$XCFLAGS -Wall -Werror"
3324 # Find other programs we need.
3325 if test -n "$ac_tool_prefix"; then
3326 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3327 set dummy ${ac_tool_prefix}ar; ac_word=$2
3328 echo "$as_me:$LINENO: checking for $ac_word" >&5
3329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3330 if test "${ac_cv_prog_AR+set}" = set; then
3331 echo $ECHO_N "(cached) $ECHO_C" >&6
3332 else
3333 if test -n "$AR"; then
3334 ac_cv_prog_AR="$AR" # Let the user override the test.
3335 else
3336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3337 for as_dir in $PATH
3339 IFS=$as_save_IFS
3340 test -z "$as_dir" && as_dir=.
3341 for ac_exec_ext in '' $ac_executable_extensions; do
3342 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3343 ac_cv_prog_AR="${ac_tool_prefix}ar"
3344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3345 break 2
3347 done
3348 done
3352 AR=$ac_cv_prog_AR
3353 if test -n "$AR"; then
3354 echo "$as_me:$LINENO: result: $AR" >&5
3355 echo "${ECHO_T}$AR" >&6
3356 else
3357 echo "$as_me:$LINENO: result: no" >&5
3358 echo "${ECHO_T}no" >&6
3362 if test -z "$ac_cv_prog_AR"; then
3363 ac_ct_AR=$AR
3364 # Extract the first word of "ar", so it can be a program name with args.
3365 set dummy ar; ac_word=$2
3366 echo "$as_me:$LINENO: checking for $ac_word" >&5
3367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3368 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3369 echo $ECHO_N "(cached) $ECHO_C" >&6
3370 else
3371 if test -n "$ac_ct_AR"; then
3372 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3373 else
3374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3375 for as_dir in $PATH
3377 IFS=$as_save_IFS
3378 test -z "$as_dir" && as_dir=.
3379 for ac_exec_ext in '' $ac_executable_extensions; do
3380 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3381 ac_cv_prog_ac_ct_AR="ar"
3382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3383 break 2
3385 done
3386 done
3390 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3391 if test -n "$ac_ct_AR"; then
3392 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3393 echo "${ECHO_T}$ac_ct_AR" >&6
3394 else
3395 echo "$as_me:$LINENO: result: no" >&5
3396 echo "${ECHO_T}no" >&6
3399 AR=$ac_ct_AR
3400 else
3401 AR="$ac_cv_prog_AR"
3404 if test -n "$ac_tool_prefix"; then
3405 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3406 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3407 echo "$as_me:$LINENO: checking for $ac_word" >&5
3408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3409 if test "${ac_cv_prog_RANLIB+set}" = set; then
3410 echo $ECHO_N "(cached) $ECHO_C" >&6
3411 else
3412 if test -n "$RANLIB"; then
3413 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3414 else
3415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3416 for as_dir in $PATH
3418 IFS=$as_save_IFS
3419 test -z "$as_dir" && as_dir=.
3420 for ac_exec_ext in '' $ac_executable_extensions; do
3421 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3422 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3424 break 2
3426 done
3427 done
3431 RANLIB=$ac_cv_prog_RANLIB
3432 if test -n "$RANLIB"; then
3433 echo "$as_me:$LINENO: result: $RANLIB" >&5
3434 echo "${ECHO_T}$RANLIB" >&6
3435 else
3436 echo "$as_me:$LINENO: result: no" >&5
3437 echo "${ECHO_T}no" >&6
3441 if test -z "$ac_cv_prog_RANLIB"; then
3442 ac_ct_RANLIB=$RANLIB
3443 # Extract the first word of "ranlib", so it can be a program name with args.
3444 set dummy ranlib; ac_word=$2
3445 echo "$as_me:$LINENO: checking for $ac_word" >&5
3446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3447 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3448 echo $ECHO_N "(cached) $ECHO_C" >&6
3449 else
3450 if test -n "$ac_ct_RANLIB"; then
3451 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3452 else
3453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3454 for as_dir in $PATH
3456 IFS=$as_save_IFS
3457 test -z "$as_dir" && as_dir=.
3458 for ac_exec_ext in '' $ac_executable_extensions; do
3459 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3460 ac_cv_prog_ac_ct_RANLIB="ranlib"
3461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3462 break 2
3464 done
3465 done
3467 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error"
3470 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3471 if test -n "$ac_ct_RANLIB"; then
3472 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3473 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3474 else
3475 echo "$as_me:$LINENO: result: no" >&5
3476 echo "${ECHO_T}no" >&6
3479 RANLIB=$ac_ct_RANLIB
3480 else
3481 RANLIB="$ac_cv_prog_RANLIB"
3484 # Extract the first word of "perl", so it can be a program name with args.
3485 set dummy perl; ac_word=$2
3486 echo "$as_me:$LINENO: checking for $ac_word" >&5
3487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3488 if test "${ac_cv_path_PERL+set}" = set; then
3489 echo $ECHO_N "(cached) $ECHO_C" >&6
3490 else
3491 case $PERL in
3492 [\\/]* | ?:[\\/]*)
3493 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3497 for as_dir in $PATH
3499 IFS=$as_save_IFS
3500 test -z "$as_dir" && as_dir=.
3501 for ac_exec_ext in '' $ac_executable_extensions; do
3502 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3503 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
3504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3505 break 2
3507 done
3508 done
3510 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
3512 esac
3514 PERL=$ac_cv_path_PERL
3516 if test -n "$PERL"; then
3517 echo "$as_me:$LINENO: result: $PERL" >&5
3518 echo "${ECHO_T}$PERL" >&6
3519 else
3520 echo "$as_me:$LINENO: result: no" >&5
3521 echo "${ECHO_T}no" >&6
3524 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3525 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3526 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3527 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3528 echo $ECHO_N "(cached) $ECHO_C" >&6
3529 else
3530 cat >conftest.make <<\_ACEOF
3531 all:
3532 @echo 'ac_maketemp="$(MAKE)"'
3533 _ACEOF
3534 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3535 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3536 if test -n "$ac_maketemp"; then
3537 eval ac_cv_prog_make_${ac_make}_set=yes
3538 else
3539 eval ac_cv_prog_make_${ac_make}_set=no
3541 rm -f conftest.make
3543 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3544 echo "$as_me:$LINENO: result: yes" >&5
3545 echo "${ECHO_T}yes" >&6
3546 SET_MAKE=
3547 else
3548 echo "$as_me:$LINENO: result: no" >&5
3549 echo "${ECHO_T}no" >&6
3550 SET_MAKE="MAKE=${MAKE-make}"
3553 # Find a good install program. We prefer a C program (faster),
3554 # so one script is as good as another. But avoid the broken or
3555 # incompatible versions:
3556 # SysV /etc/install, /usr/sbin/install
3557 # SunOS /usr/etc/install
3558 # IRIX /sbin/install
3559 # AIX /bin/install
3560 # AmigaOS /C/install, which installs bootblocks on floppy discs
3561 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3562 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3563 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3564 # OS/2's system install, which has a completely different semantic
3565 # ./install, which can be erroneously created by make from ./install.sh.
3566 # Reject install programs that cannot install multiple files.
3567 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3568 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3569 if test -z "$INSTALL"; then
3570 if test "${ac_cv_path_install+set}" = set; then
3571 echo $ECHO_N "(cached) $ECHO_C" >&6
3572 else
3573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3574 for as_dir in $PATH
3576 IFS=$as_save_IFS
3577 test -z "$as_dir" && as_dir=.
3578 # Account for people who put trailing slashes in PATH elements.
3579 case $as_dir/ in
3580 ./ | .// | /cC/* | \
3581 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3582 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3583 /usr/ucb/* ) ;;
3585 # OSF1 and SCO ODT 3.0 have their own names for install.
3586 # Don't use installbsd from OSF since it installs stuff as root
3587 # by default.
3588 for ac_prog in ginstall scoinst install; do
3589 for ac_exec_ext in '' $ac_executable_extensions; do
3590 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3591 if test $ac_prog = install &&
3592 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3593 # AIX install. It has an incompatible calling convention.
3595 elif test $ac_prog = install &&
3596 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3597 # program-specific install script used by HP pwplus--don't use.
3599 else
3600 rm -rf conftest.one conftest.two conftest.dir
3601 echo one > conftest.one
3602 echo two > conftest.two
3603 mkdir conftest.dir
3604 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3605 test -s conftest.one && test -s conftest.two &&
3606 test -s conftest.dir/conftest.one &&
3607 test -s conftest.dir/conftest.two
3608 then
3609 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3610 break 3
3614 done
3615 done
3617 esac
3618 done
3620 rm -rf conftest.one conftest.two conftest.dir
3623 if test "${ac_cv_path_install+set}" = set; then
3624 INSTALL=$ac_cv_path_install
3625 else
3626 # As a last resort, use the slow shell script. Don't cache a
3627 # value for INSTALL within a source directory, because that will
3628 # break other packages using the cache if that directory is
3629 # removed, or if the value is a relative name.
3630 INSTALL=$ac_install_sh
3633 echo "$as_me:$LINENO: result: $INSTALL" >&5
3634 echo "${ECHO_T}$INSTALL" >&6
3636 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3637 # It thinks the first close brace ends the variable substitution.
3638 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3640 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3642 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3645 # See if makeinfo has been installed and is modern enough
3646 # that we can use it.
3648 # Extract the first word of "makeinfo", so it can be a program name with args.
3649 set dummy makeinfo; ac_word=$2
3650 echo "$as_me:$LINENO: checking for $ac_word" >&5
3651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3652 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
3653 echo $ECHO_N "(cached) $ECHO_C" >&6
3654 else
3655 if test -n "$MAKEINFO"; then
3656 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3657 else
3658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3659 for as_dir in $PATH
3661 IFS=$as_save_IFS
3662 test -z "$as_dir" && as_dir=.
3663 for ac_exec_ext in '' $ac_executable_extensions; do
3664 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3665 ac_cv_prog_MAKEINFO="makeinfo"
3666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3667 break 2
3669 done
3670 done
3674 MAKEINFO=$ac_cv_prog_MAKEINFO
3675 if test -n "$MAKEINFO"; then
3676 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
3677 echo "${ECHO_T}$MAKEINFO" >&6
3678 else
3679 echo "$as_me:$LINENO: result: no" >&5
3680 echo "${ECHO_T}no" >&6
3683 if test -n "$MAKEINFO"; then
3684 # Found it, now check the version.
3685 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
3686 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
3687 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
3688 echo $ECHO_N "(cached) $ECHO_C" >&6
3689 else
3690 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
3691 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
3693 case $ac_prog_version in
3694 '') gcc_cv_prog_makeinfo_modern=no;;
3695 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
3696 *) gcc_cv_prog_makeinfo_modern=no;;
3697 esac
3700 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
3701 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
3702 else
3703 gcc_cv_prog_makeinfo_modern=no
3705 if test $gcc_cv_prog_makeinfo_modern = no; then
3706 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
3711 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
3712 BUILD_INFO_TRUE=
3713 BUILD_INFO_FALSE='#'
3714 else
3715 BUILD_INFO_TRUE='#'
3716 BUILD_INFO_FALSE=
3721 # Configure libtool
3724 macro_version='2.1a'
3725 macro_revision='1.2435'
3738 ltmain="$ac_aux_dir/ltmain.sh"
3740 # Set options
3742 enable_dlopen=no
3745 enable_win32_dll=no
3748 # Check whether --enable-shared or --disable-shared was given.
3749 if test "${enable_shared+set}" = set; then
3750 enableval="$enable_shared"
3751 p=${PACKAGE-default}
3752 case $enableval in
3753 yes) enable_shared=yes ;;
3754 no) enable_shared=no ;;
3756 enable_shared=no
3757 # Look at the argument we got. We use all the common list separators.
3758 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3759 for pkg in $enableval; do
3760 IFS="$lt_save_ifs"
3761 if test "X$pkg" = "X$p"; then
3762 enable_shared=yes
3764 done
3765 IFS="$lt_save_ifs"
3767 esac
3768 else
3769 enable_shared=yes
3779 # Check whether --enable-static or --disable-static was given.
3780 if test "${enable_static+set}" = set; then
3781 enableval="$enable_static"
3782 p=${PACKAGE-default}
3783 case $enableval in
3784 yes) enable_static=yes ;;
3785 no) enable_static=no ;;
3787 enable_static=no
3788 # Look at the argument we got. We use all the common list separators.
3789 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3790 for pkg in $enableval; do
3791 IFS="$lt_save_ifs"
3792 if test "X$pkg" = "X$p"; then
3793 enable_static=yes
3795 done
3796 IFS="$lt_save_ifs"
3798 esac
3799 else
3800 enable_static=yes
3811 # Check whether --with-pic or --without-pic was given.
3812 if test "${with_pic+set}" = set; then
3813 withval="$with_pic"
3814 pic_mode="$withval"
3815 else
3816 pic_mode=default
3819 test -z "$pic_mode" && pic_mode=default
3827 # Check whether --enable-fast-install or --disable-fast-install was given.
3828 if test "${enable_fast_install+set}" = set; then
3829 enableval="$enable_fast_install"
3830 p=${PACKAGE-default}
3831 case $enableval in
3832 yes) enable_fast_install=yes ;;
3833 no) enable_fast_install=no ;;
3835 enable_fast_install=no
3836 # Look at the argument we got. We use all the common list separators.
3837 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3838 for pkg in $enableval; do
3839 IFS="$lt_save_ifs"
3840 if test "X$pkg" = "X$p"; then
3841 enable_fast_install=yes
3843 done
3844 IFS="$lt_save_ifs"
3846 esac
3847 else
3848 enable_fast_install=yes
3858 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3859 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3860 if test "${lt_cv_path_SED+set}" = set; then
3861 echo $ECHO_N "(cached) $ECHO_C" >&6
3862 else
3863 # Loop through the user's path and test for sed and gsed.
3864 # Then use that list of sed's as ones to test for truncation.
3865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3866 for as_dir in $PATH
3868 IFS=$as_save_IFS
3869 test -z "$as_dir" && as_dir=.
3870 for lt_ac_prog in sed gsed; do
3871 for ac_exec_ext in '' $ac_executable_extensions; do
3872 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3873 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3875 done
3876 done
3877 done
3878 IFS=$as_save_IFS
3879 lt_ac_max=0
3880 lt_ac_count=0
3881 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3882 # along with /bin/sed that truncates output.
3883 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3884 test ! -f $lt_ac_sed && continue
3885 cat /dev/null > conftest.in
3886 lt_ac_count=0
3887 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3888 # Check for GNU sed and select it if it is found.
3889 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3890 lt_cv_path_SED=$lt_ac_sed
3891 break
3893 while true; do
3894 cat conftest.in conftest.in >conftest.tmp
3895 mv conftest.tmp conftest.in
3896 cp conftest.in conftest.nl
3897 echo >>conftest.nl
3898 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3899 cmp -s conftest.out conftest.nl || break
3900 # 10000 chars as input seems more than enough
3901 test $lt_ac_count -gt 10 && break
3902 lt_ac_count=`expr $lt_ac_count + 1`
3903 if test $lt_ac_count -gt $lt_ac_max; then
3904 lt_ac_max=$lt_ac_count
3905 lt_cv_path_SED=$lt_ac_sed
3907 done
3908 done
3912 SED=$lt_cv_path_SED
3914 echo "$as_me:$LINENO: result: $SED" >&5
3915 echo "${ECHO_T}$SED" >&6
3917 test -z "$SED" && SED=sed
3918 Xsed="$SED -e 1s/^X//"
3930 echo "$as_me:$LINENO: checking for egrep" >&5
3931 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3932 if test "${ac_cv_prog_egrep+set}" = set; then
3933 echo $ECHO_N "(cached) $ECHO_C" >&6
3934 else
3935 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3936 then ac_cv_prog_egrep='grep -E'
3937 else ac_cv_prog_egrep='egrep'
3940 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3941 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3942 EGREP=$ac_cv_prog_egrep
3945 echo "$as_me:$LINENO: checking for fgrep" >&5
3946 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
3947 if test "${ac_cv_prog_fgrep+set}" = set; then
3948 echo $ECHO_N "(cached) $ECHO_C" >&6
3949 else
3950 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
3951 then ac_cv_prog_fgrep='grep -F'
3952 else ac_cv_prog_fgrep='fgrep'
3955 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
3956 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
3957 FGREP=$ac_cv_prog_fgrep
3960 test -z "$GREP" && GREP=grep
3980 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3981 if test "${with_gnu_ld+set}" = set; then
3982 withval="$with_gnu_ld"
3983 test "$withval" = no || with_gnu_ld=yes
3984 else
3985 with_gnu_ld=no
3987 ac_prog=ld
3988 if test "$GCC" = yes; then
3989 # Check if gcc -print-prog-name=ld gives a path.
3990 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3991 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3992 case $host in
3993 *-*-mingw*)
3994 # gcc leaves a trailing carriage return which upsets mingw
3995 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3997 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3998 esac
3999 case $ac_prog in
4000 # Accept absolute paths.
4001 [\\/]* | ?:[\\/]*)
4002 re_direlt='/[^/][^/]*/\.\./'
4003 # Canonicalize the pathname of ld
4004 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4005 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4006 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4007 done
4008 test -z "$LD" && LD="$ac_prog"
4011 # If it fails, then pretend we aren't using GCC.
4012 ac_prog=ld
4015 # If it is relative, then search for the first ld in PATH.
4016 with_gnu_ld=unknown
4018 esac
4019 elif test "$with_gnu_ld" = yes; then
4020 echo "$as_me:$LINENO: checking for GNU ld" >&5
4021 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4022 else
4023 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4024 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4026 if test "${lt_cv_path_LD+set}" = set; then
4027 echo $ECHO_N "(cached) $ECHO_C" >&6
4028 else
4029 if test -z "$LD"; then
4030 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4031 for ac_dir in $PATH; do
4032 IFS="$lt_save_ifs"
4033 test -z "$ac_dir" && ac_dir=.
4034 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4035 lt_cv_path_LD="$ac_dir/$ac_prog"
4036 # Check to see if the program is GNU ld. I'd rather use --version,
4037 # but apparently some variants of GNU ld only accept -v.
4038 # Break only if it was the GNU/non-GNU ld that we prefer.
4039 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4040 *GNU* | *'with BFD'*)
4041 test "$with_gnu_ld" != no && break
4044 test "$with_gnu_ld" != yes && break
4046 esac
4048 done
4049 IFS="$lt_save_ifs"
4050 else
4051 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4055 LD="$lt_cv_path_LD"
4056 if test -n "$LD"; then
4057 echo "$as_me:$LINENO: result: $LD" >&5
4058 echo "${ECHO_T}$LD" >&6
4059 else
4060 echo "$as_me:$LINENO: result: no" >&5
4061 echo "${ECHO_T}no" >&6
4063 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4064 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4065 { (exit 1); exit 1; }; }
4066 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4067 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4068 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4069 echo $ECHO_N "(cached) $ECHO_C" >&6
4070 else
4071 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4072 case `$LD -v 2>&1 </dev/null` in
4073 *GNU* | *'with BFD'*)
4074 lt_cv_prog_gnu_ld=yes
4077 lt_cv_prog_gnu_ld=no
4079 esac
4081 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4082 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4083 with_gnu_ld=$lt_cv_prog_gnu_ld
4094 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4095 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
4096 if test "${lt_cv_path_NM+set}" = set; then
4097 echo $ECHO_N "(cached) $ECHO_C" >&6
4098 else
4099 if test -n "$NM"; then
4100 # Let the user override the test.
4101 lt_cv_path_NM="$NM"
4102 else
4103 lt_nm_to_check="${ac_tool_prefix}nm"
4104 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4105 lt_nm_to_check="$lt_nm_to_check nm"
4107 for lt_tmp_nm in $lt_nm_to_check; do
4108 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4109 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4110 IFS="$lt_save_ifs"
4111 test -z "$ac_dir" && ac_dir=.
4112 tmp_nm="$ac_dir/$lt_tmp_nm"
4113 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4114 # Check to see if the nm accepts a BSD-compat flag.
4115 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4116 # nm: unknown option "B" ignored
4117 # Tru64's nm complains that /dev/null is an invalid object file
4118 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4119 */dev/null* | *'Invalid file or object type'*)
4120 lt_cv_path_NM="$tmp_nm -B"
4121 break
4124 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4125 */dev/null*)
4126 lt_cv_path_NM="$tmp_nm -p"
4127 break
4130 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4131 continue # so that we can try to find one that supports BSD flags
4133 esac
4135 esac
4137 done
4138 IFS="$lt_save_ifs"
4139 done
4140 : ${lt_cv_path_NM=no}
4143 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4144 echo "${ECHO_T}$lt_cv_path_NM" >&6
4145 if test "$lt_cv_path_NM" != "no"; then
4146 NM="$lt_cv_path_NM"
4147 else
4148 # Didn't find any BSD compatible name lister, look for dumpbin.
4149 if test -n "$ac_tool_prefix"; then
4150 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4152 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4153 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4154 echo "$as_me:$LINENO: checking for $ac_word" >&5
4155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4156 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4157 echo $ECHO_N "(cached) $ECHO_C" >&6
4158 else
4159 if test -n "$DUMPBIN"; then
4160 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4161 else
4162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4163 for as_dir in $PATH
4165 IFS=$as_save_IFS
4166 test -z "$as_dir" && as_dir=.
4167 for ac_exec_ext in '' $ac_executable_extensions; do
4168 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4169 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4171 break 2
4173 done
4174 done
4178 DUMPBIN=$ac_cv_prog_DUMPBIN
4179 if test -n "$DUMPBIN"; then
4180 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4181 echo "${ECHO_T}$DUMPBIN" >&6
4182 else
4183 echo "$as_me:$LINENO: result: no" >&5
4184 echo "${ECHO_T}no" >&6
4187 test -n "$DUMPBIN" && break
4188 done
4190 if test -z "$DUMPBIN"; then
4191 ac_ct_DUMPBIN=$DUMPBIN
4192 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4194 # Extract the first word of "$ac_prog", so it can be a program name with args.
4195 set dummy $ac_prog; ac_word=$2
4196 echo "$as_me:$LINENO: checking for $ac_word" >&5
4197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4198 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4199 echo $ECHO_N "(cached) $ECHO_C" >&6
4200 else
4201 if test -n "$ac_ct_DUMPBIN"; then
4202 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4203 else
4204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4205 for as_dir in $PATH
4207 IFS=$as_save_IFS
4208 test -z "$as_dir" && as_dir=.
4209 for ac_exec_ext in '' $ac_executable_extensions; do
4210 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4211 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4213 break 2
4215 done
4216 done
4220 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4221 if test -n "$ac_ct_DUMPBIN"; then
4222 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4223 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4224 else
4225 echo "$as_me:$LINENO: result: no" >&5
4226 echo "${ECHO_T}no" >&6
4229 test -n "$ac_ct_DUMPBIN" && break
4230 done
4231 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
4233 DUMPBIN=$ac_ct_DUMPBIN
4237 if test "$DUMPBIN" != ":"; then
4238 NM="$DUMPBIN"
4241 test -z "$NM" && NM=nm
4248 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4249 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4250 if test "${lt_cv_nm_interface+set}" = set; then
4251 echo $ECHO_N "(cached) $ECHO_C" >&6
4252 else
4253 lt_cv_nm_interface="BSD nm"
4254 echo "int some_variable = 0;" > conftest.$ac_ext
4255 (eval echo "\"\$as_me:4255: $ac_compile\"" >&5)
4256 (eval "$ac_compile" 2>conftest.err)
4257 cat conftest.err >&5
4258 (eval echo "\"\$as_me:4258: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4259 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4260 cat conftest.err >&5
4261 (eval echo "\"\$as_me:4261: output\"" >&5)
4262 cat conftest.out >&5
4263 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4264 lt_cv_nm_interface="MS dumpbin"
4266 rm -f conftest*
4268 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4269 echo "${ECHO_T}$lt_cv_nm_interface" >&6
4271 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4272 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4273 LN_S=$as_ln_s
4274 if test "$LN_S" = "ln -s"; then
4275 echo "$as_me:$LINENO: result: yes" >&5
4276 echo "${ECHO_T}yes" >&6
4277 else
4278 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4279 echo "${ECHO_T}no, using $LN_S" >&6
4282 # find the maximum length of command line arguments
4283 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4284 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4285 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4286 echo $ECHO_N "(cached) $ECHO_C" >&6
4287 else
4289 teststring="ABCD"
4291 case $build_os in
4292 msdosdjgpp*)
4293 # On DJGPP, this test can blow up pretty badly due to problems in libc
4294 # (any single argument exceeding 2000 bytes causes a buffer overrun
4295 # during glob expansion). Even if it were fixed, the result of this
4296 # check would be larger than it should be.
4297 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4300 gnu*)
4301 # Under GNU Hurd, this test is not required because there is
4302 # no limit to the length of command line arguments.
4303 # Libtool will interpret -1 as no limit whatsoever
4304 lt_cv_sys_max_cmd_len=-1;
4307 cygwin* | mingw*)
4308 # On Win9x/ME, this test blows up -- it succeeds, but takes
4309 # about 5 minutes as the teststring grows exponentially.
4310 # Worse, since 9x/ME are not pre-emptively multitasking,
4311 # you end up with a "frozen" computer, even though with patience
4312 # the test eventually succeeds (with a max line length of 256k).
4313 # Instead, let's just punt: use the minimum linelength reported by
4314 # all of the supported platforms: 8192 (on NT/2K/XP).
4315 lt_cv_sys_max_cmd_len=8192;
4318 amigaos*)
4319 # On AmigaOS with pdksh, this test takes hours, literally.
4320 # So we just punt and use a minimum line length of 8192.
4321 lt_cv_sys_max_cmd_len=8192;
4324 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4325 # This has been around since 386BSD, at least. Likely further.
4326 if test -x /sbin/sysctl; then
4327 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4328 elif test -x /usr/sbin/sysctl; then
4329 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4330 else
4331 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4333 # And add a safety zone
4334 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4335 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4338 interix*)
4339 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4340 lt_cv_sys_max_cmd_len=196608
4343 osf*)
4344 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4345 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4346 # nice to cause kernel panics so lets avoid the loop below.
4347 # First set a reasonable default.
4348 lt_cv_sys_max_cmd_len=16384
4350 if test -x /sbin/sysconfig; then
4351 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4352 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4353 esac
4356 sco3.2v5*)
4357 lt_cv_sys_max_cmd_len=102400
4359 sysv5* | sco5v6* | sysv4.2uw2*)
4360 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4361 if test -n "$kargmax"; then
4362 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4363 else
4364 lt_cv_sys_max_cmd_len=32768
4368 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
4369 if test -n $lt_cv_sys_max_cmd_len; then
4370 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4371 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4372 else
4373 # Make teststring a little bigger before we do anything with it.
4374 # a 1K string should be a reasonable start.
4375 for i in 1 2 3 4 5 6 7 8 ; do
4376 teststring=$teststring$teststring
4377 done
4378 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4379 # If test is not a shell built-in, we'll probably end up computing a
4380 # maximum length that is only half of the actual maximum length, but
4381 # we can't tell.
4382 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4383 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4384 test $i != 17 # 1/2 MB should be enough
4386 i=`expr $i + 1`
4387 teststring=$teststring$teststring
4388 done
4389 # Only check the string length outside the loop.
4390 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4391 teststring=
4392 # Add a significant safety factor because C++ compilers can tack on
4393 # massive amounts of additional arguments before passing them to the
4394 # linker. It appears as though 1/2 is a usable value.
4395 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4398 esac
4402 if test -n $lt_cv_sys_max_cmd_len ; then
4403 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4404 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4405 else
4406 echo "$as_me:$LINENO: result: none" >&5
4407 echo "${ECHO_T}none" >&6
4409 max_cmd_len=$lt_cv_sys_max_cmd_len
4417 : ${CP="cp -f"}
4418 : ${MV="mv -f"}
4419 : ${RM="rm -f"}
4421 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4422 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4423 # Try some XSI features
4424 xsi_shell=no
4425 ( _lt_dummy="a/b/c"
4426 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4427 = c,a/b,, ) >/dev/null 2>&1 \
4428 && xsi_shell=yes
4429 echo "$as_me:$LINENO: result: $xsi_shell" >&5
4430 echo "${ECHO_T}$xsi_shell" >&6
4433 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4434 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4435 lt_shell_append=no
4436 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4437 >/dev/null 2>&1 \
4438 && lt_shell_append=yes
4439 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4440 echo "${ECHO_T}$lt_shell_append" >&6
4443 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4444 lt_unset=unset
4445 else
4446 lt_unset=false
4453 # test EBCDIC or ASCII
4454 case `echo X|tr X '\101'` in
4455 A) # ASCII based system
4456 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4457 lt_SP2NL='tr \040 \012'
4458 lt_NL2SP='tr \015\012 \040\040'
4460 *) # EBCDIC based system
4461 lt_SP2NL='tr \100 \n'
4462 lt_NL2SP='tr \r\n \100\100'
4464 esac
4474 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4475 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4476 if test "${lt_cv_ld_reload_flag+set}" = set; then
4477 echo $ECHO_N "(cached) $ECHO_C" >&6
4478 else
4479 lt_cv_ld_reload_flag='-r'
4481 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4482 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4483 reload_flag=$lt_cv_ld_reload_flag
4484 case $reload_flag in
4485 "" | " "*) ;;
4486 *) reload_flag=" $reload_flag" ;;
4487 esac
4488 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4489 case $host_os in
4490 darwin*)
4491 if test "$GCC" = yes; then
4492 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4493 else
4494 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4497 esac
4508 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4509 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4510 if test "${lt_cv_deplibs_check_method+set}" = set; then
4511 echo $ECHO_N "(cached) $ECHO_C" >&6
4512 else
4513 lt_cv_file_magic_cmd='$MAGIC_CMD'
4514 lt_cv_file_magic_test_file=
4515 lt_cv_deplibs_check_method='unknown'
4516 # Need to set the preceding variable on all platforms that support
4517 # interlibrary dependencies.
4518 # 'none' -- dependencies not supported.
4519 # `unknown' -- same as none, but documents that we really don't know.
4520 # 'pass_all' -- all dependencies passed with no checks.
4521 # 'test_compile' -- check by making test program.
4522 # 'file_magic [[regex]]' -- check by looking for files in library path
4523 # which responds to the $file_magic_cmd with a given extended regex.
4524 # If you have `file' or equivalent on your system and you're not sure
4525 # whether `pass_all' will *always* work, you probably want this one.
4527 case $host_os in
4528 aix[4-9]*)
4529 lt_cv_deplibs_check_method=pass_all
4532 beos*)
4533 lt_cv_deplibs_check_method=pass_all
4536 bsdi[45]*)
4537 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4538 lt_cv_file_magic_cmd='/usr/bin/file -L'
4539 lt_cv_file_magic_test_file=/shlib/libc.so
4542 cygwin*)
4543 # func_win32_libid is a shell function defined in ltmain.sh
4544 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4545 lt_cv_file_magic_cmd='func_win32_libid'
4548 mingw* | pw32*)
4549 # Base MSYS/MinGW do not provide the 'file' command needed by
4550 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4551 # unless we find 'file', for example because we are cross-compiling.
4552 if ( file / ) >/dev/null 2>&1; then
4553 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4554 lt_cv_file_magic_cmd='func_win32_libid'
4555 else
4556 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4557 lt_cv_file_magic_cmd='$OBJDUMP -f'
4561 darwin* | rhapsody*)
4562 lt_cv_deplibs_check_method=pass_all
4565 freebsd* | dragonfly*)
4566 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4567 case $host_cpu in
4568 i*86 )
4569 # Not sure whether the presence of OpenBSD here was a mistake.
4570 # Let's accept both of them until this is cleared up.
4571 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4572 lt_cv_file_magic_cmd=/usr/bin/file
4573 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4575 esac
4576 else
4577 lt_cv_deplibs_check_method=pass_all
4581 gnu*)
4582 lt_cv_deplibs_check_method=pass_all
4585 hpux10.20* | hpux11*)
4586 lt_cv_file_magic_cmd=/usr/bin/file
4587 case $host_cpu in
4588 ia64*)
4589 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4590 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4592 hppa*64*)
4593 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4594 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4597 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4598 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4600 esac
4603 interix[3-9]*)
4604 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4605 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4608 irix5* | irix6* | nonstopux*)
4609 case $LD in
4610 *-32|*"-32 ") libmagic=32-bit;;
4611 *-n32|*"-n32 ") libmagic=N32;;
4612 *-64|*"-64 ") libmagic=64-bit;;
4613 *) libmagic=never-match;;
4614 esac
4615 lt_cv_deplibs_check_method=pass_all
4618 # This must be Linux ELF.
4619 linux* | k*bsd*-gnu)
4620 lt_cv_deplibs_check_method=pass_all
4623 netbsd*)
4624 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4625 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4626 else
4627 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4631 newos6*)
4632 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4633 lt_cv_file_magic_cmd=/usr/bin/file
4634 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4637 *nto* | *qnx*)
4638 lt_cv_deplibs_check_method=pass_all
4641 openbsd*)
4642 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4643 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4644 else
4645 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4649 osf3* | osf4* | osf5*)
4650 lt_cv_deplibs_check_method=pass_all
4653 rdos*)
4654 lt_cv_deplibs_check_method=pass_all
4657 solaris*)
4658 lt_cv_deplibs_check_method=pass_all
4661 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4662 lt_cv_deplibs_check_method=pass_all
4665 sysv4 | sysv4.3*)
4666 case $host_vendor in
4667 motorola)
4668 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]'
4669 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4671 ncr)
4672 lt_cv_deplibs_check_method=pass_all
4674 sequent)
4675 lt_cv_file_magic_cmd='/bin/file'
4676 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4678 sni)
4679 lt_cv_file_magic_cmd='/bin/file'
4680 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4681 lt_cv_file_magic_test_file=/lib/libc.so
4683 siemens)
4684 lt_cv_deplibs_check_method=pass_all
4687 lt_cv_deplibs_check_method=pass_all
4689 esac
4692 tpf*)
4693 lt_cv_deplibs_check_method=pass_all
4695 esac
4698 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4699 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4700 file_magic_cmd=$lt_cv_file_magic_cmd
4701 deplibs_check_method=$lt_cv_deplibs_check_method
4702 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4715 if test -n "$ac_tool_prefix"; then
4716 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4717 set dummy ${ac_tool_prefix}ar; ac_word=$2
4718 echo "$as_me:$LINENO: checking for $ac_word" >&5
4719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4720 if test "${ac_cv_prog_AR+set}" = set; then
4721 echo $ECHO_N "(cached) $ECHO_C" >&6
4722 else
4723 if test -n "$AR"; then
4724 ac_cv_prog_AR="$AR" # Let the user override the test.
4725 else
4726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4727 for as_dir in $PATH
4729 IFS=$as_save_IFS
4730 test -z "$as_dir" && as_dir=.
4731 for ac_exec_ext in '' $ac_executable_extensions; do
4732 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4733 ac_cv_prog_AR="${ac_tool_prefix}ar"
4734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4735 break 2
4737 done
4738 done
4742 AR=$ac_cv_prog_AR
4743 if test -n "$AR"; then
4744 echo "$as_me:$LINENO: result: $AR" >&5
4745 echo "${ECHO_T}$AR" >&6
4746 else
4747 echo "$as_me:$LINENO: result: no" >&5
4748 echo "${ECHO_T}no" >&6
4752 if test -z "$ac_cv_prog_AR"; then
4753 ac_ct_AR=$AR
4754 # Extract the first word of "ar", so it can be a program name with args.
4755 set dummy ar; ac_word=$2
4756 echo "$as_me:$LINENO: checking for $ac_word" >&5
4757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4758 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4759 echo $ECHO_N "(cached) $ECHO_C" >&6
4760 else
4761 if test -n "$ac_ct_AR"; then
4762 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4763 else
4764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4765 for as_dir in $PATH
4767 IFS=$as_save_IFS
4768 test -z "$as_dir" && as_dir=.
4769 for ac_exec_ext in '' $ac_executable_extensions; do
4770 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4771 ac_cv_prog_ac_ct_AR="ar"
4772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4773 break 2
4775 done
4776 done
4778 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
4781 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4782 if test -n "$ac_ct_AR"; then
4783 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4784 echo "${ECHO_T}$ac_ct_AR" >&6
4785 else
4786 echo "$as_me:$LINENO: result: no" >&5
4787 echo "${ECHO_T}no" >&6
4790 AR=$ac_ct_AR
4791 else
4792 AR="$ac_cv_prog_AR"
4795 test -z "$AR" && AR=ar
4796 test -z "$AR_FLAGS" && AR_FLAGS=cru
4808 if test -n "$ac_tool_prefix"; then
4809 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4810 set dummy ${ac_tool_prefix}strip; ac_word=$2
4811 echo "$as_me:$LINENO: checking for $ac_word" >&5
4812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4813 if test "${ac_cv_prog_STRIP+set}" = set; then
4814 echo $ECHO_N "(cached) $ECHO_C" >&6
4815 else
4816 if test -n "$STRIP"; then
4817 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4818 else
4819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4820 for as_dir in $PATH
4822 IFS=$as_save_IFS
4823 test -z "$as_dir" && as_dir=.
4824 for ac_exec_ext in '' $ac_executable_extensions; do
4825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4826 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4828 break 2
4830 done
4831 done
4835 STRIP=$ac_cv_prog_STRIP
4836 if test -n "$STRIP"; then
4837 echo "$as_me:$LINENO: result: $STRIP" >&5
4838 echo "${ECHO_T}$STRIP" >&6
4839 else
4840 echo "$as_me:$LINENO: result: no" >&5
4841 echo "${ECHO_T}no" >&6
4845 if test -z "$ac_cv_prog_STRIP"; then
4846 ac_ct_STRIP=$STRIP
4847 # Extract the first word of "strip", so it can be a program name with args.
4848 set dummy strip; ac_word=$2
4849 echo "$as_me:$LINENO: checking for $ac_word" >&5
4850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4851 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4852 echo $ECHO_N "(cached) $ECHO_C" >&6
4853 else
4854 if test -n "$ac_ct_STRIP"; then
4855 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4856 else
4857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4858 for as_dir in $PATH
4860 IFS=$as_save_IFS
4861 test -z "$as_dir" && as_dir=.
4862 for ac_exec_ext in '' $ac_executable_extensions; do
4863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4864 ac_cv_prog_ac_ct_STRIP="strip"
4865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4866 break 2
4868 done
4869 done
4871 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4874 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4875 if test -n "$ac_ct_STRIP"; then
4876 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4877 echo "${ECHO_T}$ac_ct_STRIP" >&6
4878 else
4879 echo "$as_me:$LINENO: result: no" >&5
4880 echo "${ECHO_T}no" >&6
4883 STRIP=$ac_ct_STRIP
4884 else
4885 STRIP="$ac_cv_prog_STRIP"
4888 test -z "$STRIP" && STRIP=:
4895 if test -n "$ac_tool_prefix"; then
4896 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4897 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4898 echo "$as_me:$LINENO: checking for $ac_word" >&5
4899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4900 if test "${ac_cv_prog_RANLIB+set}" = set; then
4901 echo $ECHO_N "(cached) $ECHO_C" >&6
4902 else
4903 if test -n "$RANLIB"; then
4904 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4905 else
4906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4907 for as_dir in $PATH
4909 IFS=$as_save_IFS
4910 test -z "$as_dir" && as_dir=.
4911 for ac_exec_ext in '' $ac_executable_extensions; do
4912 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4913 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4915 break 2
4917 done
4918 done
4922 RANLIB=$ac_cv_prog_RANLIB
4923 if test -n "$RANLIB"; then
4924 echo "$as_me:$LINENO: result: $RANLIB" >&5
4925 echo "${ECHO_T}$RANLIB" >&6
4926 else
4927 echo "$as_me:$LINENO: result: no" >&5
4928 echo "${ECHO_T}no" >&6
4932 if test -z "$ac_cv_prog_RANLIB"; then
4933 ac_ct_RANLIB=$RANLIB
4934 # Extract the first word of "ranlib", so it can be a program name with args.
4935 set dummy ranlib; ac_word=$2
4936 echo "$as_me:$LINENO: checking for $ac_word" >&5
4937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4938 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4939 echo $ECHO_N "(cached) $ECHO_C" >&6
4940 else
4941 if test -n "$ac_ct_RANLIB"; then
4942 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4943 else
4944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4945 for as_dir in $PATH
4947 IFS=$as_save_IFS
4948 test -z "$as_dir" && as_dir=.
4949 for ac_exec_ext in '' $ac_executable_extensions; do
4950 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4951 ac_cv_prog_ac_ct_RANLIB="ranlib"
4952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4953 break 2
4955 done
4956 done
4958 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4961 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4962 if test -n "$ac_ct_RANLIB"; then
4963 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4964 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4965 else
4966 echo "$as_me:$LINENO: result: no" >&5
4967 echo "${ECHO_T}no" >&6
4970 RANLIB=$ac_ct_RANLIB
4971 else
4972 RANLIB="$ac_cv_prog_RANLIB"
4975 test -z "$RANLIB" && RANLIB=:
4982 # Determine commands to create old-style static archives.
4983 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4984 old_postinstall_cmds='chmod 644 $oldlib'
4985 old_postuninstall_cmds=
4987 if test -n "$RANLIB"; then
4988 case $host_os in
4989 openbsd*)
4990 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4993 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4995 esac
4996 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5032 # If no C compiler was specified, use CC.
5033 LTCC=${LTCC-"$CC"}
5035 # If no C compiler flags were specified, use CFLAGS.
5036 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5038 # Allow CC to be a program name with arguments.
5039 compiler=$CC
5042 # Check for command to grab the raw symbol name followed by C symbol from nm.
5043 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5044 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5045 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5046 echo $ECHO_N "(cached) $ECHO_C" >&6
5047 else
5049 # These are sane defaults that work on at least a few old systems.
5050 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5052 # Character class describing NM global symbol codes.
5053 symcode='[BCDEGRST]'
5055 # Regexp to match symbols that can be accessed directly from C.
5056 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5058 # Define system-specific variables.
5059 case $host_os in
5060 aix*)
5061 symcode='[BCDT]'
5063 cygwin* | mingw* | pw32*)
5064 symcode='[ABCDGISTW]'
5066 hpux*)
5067 if test "$host_cpu" = ia64; then
5068 symcode='[ABCDEGRST]'
5071 irix* | nonstopux*)
5072 symcode='[BCDEGRST]'
5074 osf*)
5075 symcode='[BCDEGQRST]'
5077 solaris*)
5078 symcode='[BDRT]'
5080 sco3.2v5*)
5081 symcode='[DT]'
5083 sysv4.2uw2*)
5084 symcode='[DT]'
5086 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5087 symcode='[ABDT]'
5089 sysv4)
5090 symcode='[DFNSTU]'
5092 esac
5094 # If we're using GNU nm, then use its standard symbol codes.
5095 case `$NM -V 2>&1` in
5096 *GNU* | *'with BFD'*)
5097 symcode='[ABCDGIRSTW]' ;;
5098 esac
5100 # Transform an extracted symbol line into a proper C declaration.
5101 # Some systems (esp. on ia64) link data and code symbols differently,
5102 # so use this general approach.
5103 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5105 # Transform an extracted symbol line into symbol name and symbol address
5106 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5108 # Handle CRLF in mingw tool chain
5109 opt_cr=
5110 case $build_os in
5111 mingw*)
5112 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5114 esac
5116 # Try without a prefix underscore, then with it.
5117 for ac_symprfx in "" "_"; do
5119 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5120 symxfrm="\\1 $ac_symprfx\\2 \\2"
5122 # Write the raw and C identifiers.
5123 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5124 # Fake it for dumpbin and say T for any non-static function
5125 # and D for any global variable.
5126 # Also find C++ and __fastcall symbols from MSVC++,
5127 # which start with @ or ?.
5128 lt_cv_sys_global_symbol_pipe="$AWK '"\
5129 " {last_section=section; section=\$ 3};"\
5130 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5131 " \$ 0!~/External *\|/{next};"\
5132 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5133 " {if(hide[section]) next};"\
5134 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5135 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5136 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5137 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5138 " ' prfx=^$ac_symprfx"
5139 else
5140 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5143 # Check to see that the pipe works correctly.
5144 pipe_works=no
5146 rm -f conftest*
5147 cat > conftest.$ac_ext <<_LT_EOF
5148 #ifdef __cplusplus
5149 extern "C" {
5150 #endif
5151 char nm_test_var;
5152 void nm_test_func(void);
5153 void nm_test_func(void){}
5154 #ifdef __cplusplus
5156 #endif
5157 int main(){nm_test_var='a';nm_test_func();return(0);}
5158 _LT_EOF
5160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5161 (eval $ac_compile) 2>&5
5162 ac_status=$?
5163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5164 (exit $ac_status); }; then
5165 # Now try to grab the symbols.
5166 nlist=conftest.nm
5167 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5168 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5169 ac_status=$?
5170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5171 (exit $ac_status); } && test -s "$nlist"; then
5172 # Try sorting and uniquifying the output.
5173 if sort "$nlist" | uniq > "$nlist"T; then
5174 mv -f "$nlist"T "$nlist"
5175 else
5176 rm -f "$nlist"T
5179 # Make sure that we snagged all the symbols we need.
5180 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5181 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5182 cat <<_LT_EOF > conftest.$ac_ext
5183 #ifdef __cplusplus
5184 extern "C" {
5185 #endif
5187 _LT_EOF
5188 # Now generate the symbol file.
5189 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5191 cat <<_LT_EOF >> conftest.$ac_ext
5193 /* The mapping between symbol names and symbols. */
5194 const struct {
5195 const char *name;
5196 void *address;
5198 lt__PROGRAM__LTX_preloaded_symbols[] =
5200 { "@PROGRAM@", (void *) 0 },
5201 _LT_EOF
5202 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5203 cat <<\_LT_EOF >> conftest.$ac_ext
5204 {0, (void *) 0}
5207 /* This works around a problem in FreeBSD linker */
5208 #ifdef FREEBSD_WORKAROUND
5209 static const void *lt_preloaded_setup() {
5210 return lt__PROGRAM__LTX_preloaded_symbols;
5212 #endif
5214 #ifdef __cplusplus
5216 #endif
5217 _LT_EOF
5218 # Now try linking the two files.
5219 mv conftest.$ac_objext conftstm.$ac_objext
5220 lt_save_LIBS="$LIBS"
5221 lt_save_CFLAGS="$CFLAGS"
5222 LIBS="conftstm.$ac_objext"
5223 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5225 (eval $ac_link) 2>&5
5226 ac_status=$?
5227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5229 pipe_works=yes
5231 LIBS="$lt_save_LIBS"
5232 CFLAGS="$lt_save_CFLAGS"
5233 else
5234 echo "cannot find nm_test_func in $nlist" >&5
5236 else
5237 echo "cannot find nm_test_var in $nlist" >&5
5239 else
5240 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5242 else
5243 echo "$progname: failed program was:" >&5
5244 cat conftest.$ac_ext >&5
5246 rm -f conftest* conftst*
5248 # Do not use the global_symbol_pipe unless it works.
5249 if test "$pipe_works" = yes; then
5250 break
5251 else
5252 lt_cv_sys_global_symbol_pipe=
5254 done
5258 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5259 lt_cv_sys_global_symbol_to_cdecl=
5261 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5262 echo "$as_me:$LINENO: result: failed" >&5
5263 echo "${ECHO_T}failed" >&6
5264 else
5265 echo "$as_me:$LINENO: result: ok" >&5
5266 echo "${ECHO_T}ok" >&6
5286 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5287 if test "${enable_libtool_lock+set}" = set; then
5288 enableval="$enable_libtool_lock"
5291 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5293 # Some flags need to be propagated to the compiler or linker for good
5294 # libtool support.
5295 case $host in
5296 ia64-*-hpux*)
5297 # Find out which ABI we are using.
5298 echo 'int i;' > conftest.$ac_ext
5299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5300 (eval $ac_compile) 2>&5
5301 ac_status=$?
5302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5303 (exit $ac_status); }; then
5304 case `/usr/bin/file conftest.$ac_objext` in
5305 *ELF-32*)
5306 HPUX_IA64_MODE="32"
5308 *ELF-64*)
5309 HPUX_IA64_MODE="64"
5311 esac
5313 rm -rf conftest*
5315 *-*-irix6*)
5316 # Find out which ABI we are using.
5317 echo '#line 5317 "configure"' > conftest.$ac_ext
5318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5319 (eval $ac_compile) 2>&5
5320 ac_status=$?
5321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322 (exit $ac_status); }; then
5323 if test "$lt_cv_prog_gnu_ld" = yes; then
5324 case `/usr/bin/file conftest.$ac_objext` in
5325 *32-bit*)
5326 LD="${LD-ld} -melf32bsmip"
5328 *N32*)
5329 LD="${LD-ld} -melf32bmipn32"
5331 *64-bit*)
5332 LD="${LD-ld} -melf64bmip"
5334 esac
5335 else
5336 case `/usr/bin/file conftest.$ac_objext` in
5337 *32-bit*)
5338 LD="${LD-ld} -32"
5340 *N32*)
5341 LD="${LD-ld} -n32"
5343 *64-bit*)
5344 LD="${LD-ld} -64"
5346 esac
5349 rm -rf conftest*
5352 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5353 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5354 # Find out which ABI we are using.
5355 echo 'int i;' > conftest.$ac_ext
5356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5357 (eval $ac_compile) 2>&5
5358 ac_status=$?
5359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5360 (exit $ac_status); }; then
5361 case `/usr/bin/file conftest.o` in
5362 *32-bit*)
5363 case $host in
5364 x86_64-*kfreebsd*-gnu)
5365 LD="${LD-ld} -m elf_i386_fbsd"
5367 x86_64-*linux*)
5368 LD="${LD-ld} -m elf_i386"
5370 ppc64-*linux*|powerpc64-*linux*)
5371 LD="${LD-ld} -m elf32ppclinux"
5373 s390x-*linux*)
5374 LD="${LD-ld} -m elf_s390"
5376 sparc64-*linux*)
5377 LD="${LD-ld} -m elf32_sparc"
5379 esac
5381 *64-bit*)
5382 case $host in
5383 x86_64-*kfreebsd*-gnu)
5384 LD="${LD-ld} -m elf_x86_64_fbsd"
5386 x86_64-*linux*)
5387 LD="${LD-ld} -m elf_x86_64"
5389 ppc*-*linux*|powerpc*-*linux*)
5390 LD="${LD-ld} -m elf64ppc"
5392 s390*-*linux*|s390*-*tpf*)
5393 LD="${LD-ld} -m elf64_s390"
5395 sparc*-*linux*)
5396 LD="${LD-ld} -m elf64_sparc"
5398 esac
5400 esac
5402 rm -rf conftest*
5405 *-*-sco3.2v5*)
5406 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5407 SAVE_CFLAGS="$CFLAGS"
5408 CFLAGS="$CFLAGS -belf"
5409 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5410 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5411 if test "${lt_cv_cc_needs_belf+set}" = set; then
5412 echo $ECHO_N "(cached) $ECHO_C" >&6
5413 else
5414 ac_ext=c
5415 ac_cpp='$CPP $CPPFLAGS'
5416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5420 cat >conftest.$ac_ext <<_ACEOF
5421 /* confdefs.h. */
5422 _ACEOF
5423 cat confdefs.h >>conftest.$ac_ext
5424 cat >>conftest.$ac_ext <<_ACEOF
5425 /* end confdefs.h. */
5428 main ()
5432 return 0;
5434 _ACEOF
5435 rm -f conftest.$ac_objext conftest$ac_exeext
5436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5437 (eval $ac_link) 2>conftest.er1
5438 ac_status=$?
5439 grep -v '^ *+' conftest.er1 >conftest.err
5440 rm -f conftest.er1
5441 cat conftest.err >&5
5442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443 (exit $ac_status); } &&
5444 { ac_try='test -z "$ac_c_werror_flag"
5445 || test ! -s conftest.err'
5446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5447 (eval $ac_try) 2>&5
5448 ac_status=$?
5449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450 (exit $ac_status); }; } &&
5451 { ac_try='test -s conftest$ac_exeext'
5452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5453 (eval $ac_try) 2>&5
5454 ac_status=$?
5455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456 (exit $ac_status); }; }; then
5457 lt_cv_cc_needs_belf=yes
5458 else
5459 echo "$as_me: failed program was:" >&5
5460 sed 's/^/| /' conftest.$ac_ext >&5
5462 lt_cv_cc_needs_belf=no
5464 rm -f conftest.err conftest.$ac_objext \
5465 conftest$ac_exeext conftest.$ac_ext
5466 ac_ext=c
5467 ac_cpp='$CPP $CPPFLAGS'
5468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5473 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5474 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5475 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5476 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5477 CFLAGS="$SAVE_CFLAGS"
5480 sparc*-*solaris*)
5481 # Find out which ABI we are using.
5482 echo 'int i;' > conftest.$ac_ext
5483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5484 (eval $ac_compile) 2>&5
5485 ac_status=$?
5486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5487 (exit $ac_status); }; then
5488 case `/usr/bin/file conftest.o` in
5489 *64-bit*)
5490 case $lt_cv_prog_gnu_ld in
5491 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5492 *) LD="${LD-ld} -64" ;;
5493 esac
5495 esac
5497 rm -rf conftest*
5499 esac
5501 need_locks="$enable_libtool_lock"
5503 ac_ext=c
5504 ac_cpp='$CPP $CPPFLAGS'
5505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5508 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5509 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5510 # On Suns, sometimes $CPP names a directory.
5511 if test -n "$CPP" && test -d "$CPP"; then
5512 CPP=
5514 if test -z "$CPP"; then
5515 if test "${ac_cv_prog_CPP+set}" = set; then
5516 echo $ECHO_N "(cached) $ECHO_C" >&6
5517 else
5518 # Double quotes because CPP needs to be expanded
5519 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5521 ac_preproc_ok=false
5522 for ac_c_preproc_warn_flag in '' yes
5524 # Use a header file that comes with gcc, so configuring glibc
5525 # with a fresh cross-compiler works.
5526 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5527 # <limits.h> exists even on freestanding compilers.
5528 # On the NeXT, cc -E runs the code through the compiler's parser,
5529 # not just through cpp. "Syntax error" is here to catch this case.
5530 cat >conftest.$ac_ext <<_ACEOF
5531 /* confdefs.h. */
5532 _ACEOF
5533 cat confdefs.h >>conftest.$ac_ext
5534 cat >>conftest.$ac_ext <<_ACEOF
5535 /* end confdefs.h. */
5536 #ifdef __STDC__
5537 # include <limits.h>
5538 #else
5539 # include <assert.h>
5540 #endif
5541 Syntax error
5542 _ACEOF
5543 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5544 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5545 ac_status=$?
5546 grep -v '^ *+' conftest.er1 >conftest.err
5547 rm -f conftest.er1
5548 cat conftest.err >&5
5549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5550 (exit $ac_status); } >/dev/null; then
5551 if test -s conftest.err; then
5552 ac_cpp_err=$ac_c_preproc_warn_flag
5553 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5554 else
5555 ac_cpp_err=
5557 else
5558 ac_cpp_err=yes
5560 if test -z "$ac_cpp_err"; then
5562 else
5563 echo "$as_me: failed program was:" >&5
5564 sed 's/^/| /' conftest.$ac_ext >&5
5566 # Broken: fails on valid input.
5567 continue
5569 rm -f conftest.err conftest.$ac_ext
5571 # OK, works on sane cases. Now check whether non-existent headers
5572 # can be detected and how.
5573 cat >conftest.$ac_ext <<_ACEOF
5574 /* confdefs.h. */
5575 _ACEOF
5576 cat confdefs.h >>conftest.$ac_ext
5577 cat >>conftest.$ac_ext <<_ACEOF
5578 /* end confdefs.h. */
5579 #include <ac_nonexistent.h>
5580 _ACEOF
5581 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5582 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5583 ac_status=$?
5584 grep -v '^ *+' conftest.er1 >conftest.err
5585 rm -f conftest.er1
5586 cat conftest.err >&5
5587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588 (exit $ac_status); } >/dev/null; then
5589 if test -s conftest.err; then
5590 ac_cpp_err=$ac_c_preproc_warn_flag
5591 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5592 else
5593 ac_cpp_err=
5595 else
5596 ac_cpp_err=yes
5598 if test -z "$ac_cpp_err"; then
5599 # Broken: success on invalid input.
5600 continue
5601 else
5602 echo "$as_me: failed program was:" >&5
5603 sed 's/^/| /' conftest.$ac_ext >&5
5605 # Passes both tests.
5606 ac_preproc_ok=:
5607 break
5609 rm -f conftest.err conftest.$ac_ext
5611 done
5612 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5613 rm -f conftest.err conftest.$ac_ext
5614 if $ac_preproc_ok; then
5615 break
5618 done
5619 ac_cv_prog_CPP=$CPP
5622 CPP=$ac_cv_prog_CPP
5623 else
5624 ac_cv_prog_CPP=$CPP
5626 echo "$as_me:$LINENO: result: $CPP" >&5
5627 echo "${ECHO_T}$CPP" >&6
5628 ac_preproc_ok=false
5629 for ac_c_preproc_warn_flag in '' yes
5631 # Use a header file that comes with gcc, so configuring glibc
5632 # with a fresh cross-compiler works.
5633 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5634 # <limits.h> exists even on freestanding compilers.
5635 # On the NeXT, cc -E runs the code through the compiler's parser,
5636 # not just through cpp. "Syntax error" is here to catch this case.
5637 cat >conftest.$ac_ext <<_ACEOF
5638 /* confdefs.h. */
5639 _ACEOF
5640 cat confdefs.h >>conftest.$ac_ext
5641 cat >>conftest.$ac_ext <<_ACEOF
5642 /* end confdefs.h. */
5643 #ifdef __STDC__
5644 # include <limits.h>
5645 #else
5646 # include <assert.h>
5647 #endif
5648 Syntax error
5649 _ACEOF
5650 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5651 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5652 ac_status=$?
5653 grep -v '^ *+' conftest.er1 >conftest.err
5654 rm -f conftest.er1
5655 cat conftest.err >&5
5656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657 (exit $ac_status); } >/dev/null; then
5658 if test -s conftest.err; then
5659 ac_cpp_err=$ac_c_preproc_warn_flag
5660 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5661 else
5662 ac_cpp_err=
5664 else
5665 ac_cpp_err=yes
5667 if test -z "$ac_cpp_err"; then
5669 else
5670 echo "$as_me: failed program was:" >&5
5671 sed 's/^/| /' conftest.$ac_ext >&5
5673 # Broken: fails on valid input.
5674 continue
5676 rm -f conftest.err conftest.$ac_ext
5678 # OK, works on sane cases. Now check whether non-existent headers
5679 # can be detected and how.
5680 cat >conftest.$ac_ext <<_ACEOF
5681 /* confdefs.h. */
5682 _ACEOF
5683 cat confdefs.h >>conftest.$ac_ext
5684 cat >>conftest.$ac_ext <<_ACEOF
5685 /* end confdefs.h. */
5686 #include <ac_nonexistent.h>
5687 _ACEOF
5688 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5689 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5690 ac_status=$?
5691 grep -v '^ *+' conftest.er1 >conftest.err
5692 rm -f conftest.er1
5693 cat conftest.err >&5
5694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5695 (exit $ac_status); } >/dev/null; then
5696 if test -s conftest.err; then
5697 ac_cpp_err=$ac_c_preproc_warn_flag
5698 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5699 else
5700 ac_cpp_err=
5702 else
5703 ac_cpp_err=yes
5705 if test -z "$ac_cpp_err"; then
5706 # Broken: success on invalid input.
5707 continue
5708 else
5709 echo "$as_me: failed program was:" >&5
5710 sed 's/^/| /' conftest.$ac_ext >&5
5712 # Passes both tests.
5713 ac_preproc_ok=:
5714 break
5716 rm -f conftest.err conftest.$ac_ext
5718 done
5719 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5720 rm -f conftest.err conftest.$ac_ext
5721 if $ac_preproc_ok; then
5723 else
5724 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5725 See \`config.log' for more details." >&5
5726 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5727 See \`config.log' for more details." >&2;}
5728 { (exit 1); exit 1; }; }
5731 ac_ext=c
5732 ac_cpp='$CPP $CPPFLAGS'
5733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5738 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5739 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5740 if test "${ac_cv_header_stdc+set}" = set; then
5741 echo $ECHO_N "(cached) $ECHO_C" >&6
5742 else
5743 cat >conftest.$ac_ext <<_ACEOF
5744 /* confdefs.h. */
5745 _ACEOF
5746 cat confdefs.h >>conftest.$ac_ext
5747 cat >>conftest.$ac_ext <<_ACEOF
5748 /* end confdefs.h. */
5749 #include <stdlib.h>
5750 #include <stdarg.h>
5751 #include <string.h>
5752 #include <float.h>
5755 main ()
5759 return 0;
5761 _ACEOF
5762 rm -f conftest.$ac_objext
5763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5764 (eval $ac_compile) 2>conftest.er1
5765 ac_status=$?
5766 grep -v '^ *+' conftest.er1 >conftest.err
5767 rm -f conftest.er1
5768 cat conftest.err >&5
5769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770 (exit $ac_status); } &&
5771 { ac_try='test -z "$ac_c_werror_flag"
5772 || test ! -s conftest.err'
5773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5774 (eval $ac_try) 2>&5
5775 ac_status=$?
5776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5777 (exit $ac_status); }; } &&
5778 { ac_try='test -s conftest.$ac_objext'
5779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5780 (eval $ac_try) 2>&5
5781 ac_status=$?
5782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783 (exit $ac_status); }; }; then
5784 ac_cv_header_stdc=yes
5785 else
5786 echo "$as_me: failed program was:" >&5
5787 sed 's/^/| /' conftest.$ac_ext >&5
5789 ac_cv_header_stdc=no
5791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5793 if test $ac_cv_header_stdc = yes; then
5794 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5795 cat >conftest.$ac_ext <<_ACEOF
5796 /* confdefs.h. */
5797 _ACEOF
5798 cat confdefs.h >>conftest.$ac_ext
5799 cat >>conftest.$ac_ext <<_ACEOF
5800 /* end confdefs.h. */
5801 #include <string.h>
5803 _ACEOF
5804 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5805 $EGREP "memchr" >/dev/null 2>&1; then
5807 else
5808 ac_cv_header_stdc=no
5810 rm -f conftest*
5814 if test $ac_cv_header_stdc = yes; then
5815 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5816 cat >conftest.$ac_ext <<_ACEOF
5817 /* confdefs.h. */
5818 _ACEOF
5819 cat confdefs.h >>conftest.$ac_ext
5820 cat >>conftest.$ac_ext <<_ACEOF
5821 /* end confdefs.h. */
5822 #include <stdlib.h>
5824 _ACEOF
5825 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5826 $EGREP "free" >/dev/null 2>&1; then
5828 else
5829 ac_cv_header_stdc=no
5831 rm -f conftest*
5835 if test $ac_cv_header_stdc = yes; then
5836 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5837 if test "$cross_compiling" = yes; then
5839 else
5840 cat >conftest.$ac_ext <<_ACEOF
5841 /* confdefs.h. */
5842 _ACEOF
5843 cat confdefs.h >>conftest.$ac_ext
5844 cat >>conftest.$ac_ext <<_ACEOF
5845 /* end confdefs.h. */
5846 #include <ctype.h>
5847 #if ((' ' & 0x0FF) == 0x020)
5848 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5849 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5850 #else
5851 # define ISLOWER(c) \
5852 (('a' <= (c) && (c) <= 'i') \
5853 || ('j' <= (c) && (c) <= 'r') \
5854 || ('s' <= (c) && (c) <= 'z'))
5855 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5856 #endif
5858 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5860 main ()
5862 int i;
5863 for (i = 0; i < 256; i++)
5864 if (XOR (islower (i), ISLOWER (i))
5865 || toupper (i) != TOUPPER (i))
5866 exit(2);
5867 exit (0);
5869 _ACEOF
5870 rm -f conftest$ac_exeext
5871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5872 (eval $ac_link) 2>&5
5873 ac_status=$?
5874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5877 (eval $ac_try) 2>&5
5878 ac_status=$?
5879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880 (exit $ac_status); }; }; then
5882 else
5883 echo "$as_me: program exited with status $ac_status" >&5
5884 echo "$as_me: failed program was:" >&5
5885 sed 's/^/| /' conftest.$ac_ext >&5
5887 ( exit $ac_status )
5888 ac_cv_header_stdc=no
5890 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5894 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5895 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5896 if test $ac_cv_header_stdc = yes; then
5898 cat >>confdefs.h <<\_ACEOF
5899 #define STDC_HEADERS 1
5900 _ACEOF
5904 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5914 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5915 inttypes.h stdint.h unistd.h
5917 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5918 echo "$as_me:$LINENO: checking for $ac_header" >&5
5919 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5920 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5921 echo $ECHO_N "(cached) $ECHO_C" >&6
5922 else
5923 cat >conftest.$ac_ext <<_ACEOF
5924 /* confdefs.h. */
5925 _ACEOF
5926 cat confdefs.h >>conftest.$ac_ext
5927 cat >>conftest.$ac_ext <<_ACEOF
5928 /* end confdefs.h. */
5929 $ac_includes_default
5931 #include <$ac_header>
5932 _ACEOF
5933 rm -f conftest.$ac_objext
5934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5935 (eval $ac_compile) 2>conftest.er1
5936 ac_status=$?
5937 grep -v '^ *+' conftest.er1 >conftest.err
5938 rm -f conftest.er1
5939 cat conftest.err >&5
5940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941 (exit $ac_status); } &&
5942 { ac_try='test -z "$ac_c_werror_flag"
5943 || test ! -s conftest.err'
5944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5945 (eval $ac_try) 2>&5
5946 ac_status=$?
5947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948 (exit $ac_status); }; } &&
5949 { ac_try='test -s conftest.$ac_objext'
5950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5951 (eval $ac_try) 2>&5
5952 ac_status=$?
5953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954 (exit $ac_status); }; }; then
5955 eval "$as_ac_Header=yes"
5956 else
5957 echo "$as_me: failed program was:" >&5
5958 sed 's/^/| /' conftest.$ac_ext >&5
5960 eval "$as_ac_Header=no"
5962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5964 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5965 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5966 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5967 cat >>confdefs.h <<_ACEOF
5968 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5969 _ACEOF
5973 done
5977 for ac_header in dlfcn.h
5979 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5980 echo "$as_me:$LINENO: checking for $ac_header" >&5
5981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5982 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5983 echo $ECHO_N "(cached) $ECHO_C" >&6
5984 else
5985 cat >conftest.$ac_ext <<_ACEOF
5986 /* confdefs.h. */
5987 _ACEOF
5988 cat confdefs.h >>conftest.$ac_ext
5989 cat >>conftest.$ac_ext <<_ACEOF
5990 /* end confdefs.h. */
5991 $ac_includes_default
5993 #include <$ac_header>
5994 _ACEOF
5995 rm -f conftest.$ac_objext
5996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5997 (eval $ac_compile) 2>conftest.er1
5998 ac_status=$?
5999 grep -v '^ *+' conftest.er1 >conftest.err
6000 rm -f conftest.er1
6001 cat conftest.err >&5
6002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003 (exit $ac_status); } &&
6004 { ac_try='test -z "$ac_c_werror_flag"
6005 || test ! -s conftest.err'
6006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6007 (eval $ac_try) 2>&5
6008 ac_status=$?
6009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010 (exit $ac_status); }; } &&
6011 { ac_try='test -s conftest.$ac_objext'
6012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6013 (eval $ac_try) 2>&5
6014 ac_status=$?
6015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6016 (exit $ac_status); }; }; then
6017 eval "$as_ac_Header=yes"
6018 else
6019 echo "$as_me: failed program was:" >&5
6020 sed 's/^/| /' conftest.$ac_ext >&5
6022 eval "$as_ac_Header=no"
6024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6026 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6027 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6028 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6029 cat >>confdefs.h <<_ACEOF
6030 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6031 _ACEOF
6035 done
6039 # This can be used to rebuild libtool when needed
6040 LIBTOOL_DEPS="$ltmain"
6042 # Always use our own libtool.
6043 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6069 test -z "$LN_S" && LN_S="ln -s"
6084 if test -n "${ZSH_VERSION+set}" ; then
6085 setopt NO_GLOB_SUBST
6088 echo "$as_me:$LINENO: checking for objdir" >&5
6089 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6090 if test "${lt_cv_objdir+set}" = set; then
6091 echo $ECHO_N "(cached) $ECHO_C" >&6
6092 else
6093 rm -f .libs 2>/dev/null
6094 mkdir .libs 2>/dev/null
6095 if test -d .libs; then
6096 lt_cv_objdir=.libs
6097 else
6098 # MS-DOS does not allow filenames that begin with a dot.
6099 lt_cv_objdir=_libs
6101 rmdir .libs 2>/dev/null
6103 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6104 echo "${ECHO_T}$lt_cv_objdir" >&6
6105 objdir=$lt_cv_objdir
6111 cat >>confdefs.h <<_ACEOF
6112 #define LT_OBJDIR "$lt_cv_objdir/"
6113 _ACEOF
6131 case $host_os in
6132 aix3*)
6133 # AIX sometimes has problems with the GCC collect2 program. For some
6134 # reason, if we set the COLLECT_NAMES environment variable, the problems
6135 # vanish in a puff of smoke.
6136 if test "X${COLLECT_NAMES+set}" != Xset; then
6137 COLLECT_NAMES=
6138 export COLLECT_NAMES
6141 esac
6143 # Sed substitution that helps us do robust quoting. It backslashifies
6144 # metacharacters that are still active within double-quoted strings.
6145 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6147 # Same as above, but do not quote variable references.
6148 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6150 # Sed substitution to delay expansion of an escaped shell variable in a
6151 # double_quote_subst'ed string.
6152 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6154 # Sed substitution to delay expansion of an escaped single quote.
6155 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6157 # Sed substitution to avoid accidental globbing in evaled expressions
6158 no_glob_subst='s/\*/\\\*/g'
6160 # Global variables:
6161 ofile=libtool
6162 can_build_shared=yes
6164 # All known linkers require a `.a' archive for static linking (except MSVC,
6165 # which needs '.lib').
6166 libext=a
6168 with_gnu_ld="$lt_cv_prog_gnu_ld"
6170 old_CC="$CC"
6171 old_CFLAGS="$CFLAGS"
6173 # Set sane defaults for various variables
6174 test -z "$CC" && CC=cc
6175 test -z "$LTCC" && LTCC=$CC
6176 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6177 test -z "$LD" && LD=ld
6178 test -z "$ac_objext" && ac_objext=o
6180 for cc_temp in $compiler""; do
6181 case $cc_temp in
6182 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6183 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6184 \-*) ;;
6185 *) break;;
6186 esac
6187 done
6188 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6191 # Only perform the check for file, if the check method requires it
6192 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6193 case $deplibs_check_method in
6194 file_magic*)
6195 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6196 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6197 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6198 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6199 echo $ECHO_N "(cached) $ECHO_C" >&6
6200 else
6201 case $MAGIC_CMD in
6202 [\\/*] | ?:[\\/]*)
6203 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6206 lt_save_MAGIC_CMD="$MAGIC_CMD"
6207 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6208 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6209 for ac_dir in $ac_dummy; do
6210 IFS="$lt_save_ifs"
6211 test -z "$ac_dir" && ac_dir=.
6212 if test -f $ac_dir/${ac_tool_prefix}file; then
6213 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6214 if test -n "$file_magic_test_file"; then
6215 case $deplibs_check_method in
6216 "file_magic "*)
6217 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6218 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6219 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6220 $EGREP "$file_magic_regex" > /dev/null; then
6222 else
6223 cat <<_LT_EOF 1>&2
6225 *** Warning: the command libtool uses to detect shared libraries,
6226 *** $file_magic_cmd, produces output that libtool cannot recognize.
6227 *** The result is that libtool may fail to recognize shared libraries
6228 *** as such. This will affect the creation of libtool libraries that
6229 *** depend on shared libraries, but programs linked with such libtool
6230 *** libraries will work regardless of this problem. Nevertheless, you
6231 *** may want to report the problem to your system manager and/or to
6232 *** bug-libtool@gnu.org
6234 _LT_EOF
6235 fi ;;
6236 esac
6238 break
6240 done
6241 IFS="$lt_save_ifs"
6242 MAGIC_CMD="$lt_save_MAGIC_CMD"
6244 esac
6247 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6248 if test -n "$MAGIC_CMD"; then
6249 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6250 echo "${ECHO_T}$MAGIC_CMD" >&6
6251 else
6252 echo "$as_me:$LINENO: result: no" >&5
6253 echo "${ECHO_T}no" >&6
6260 if test -z "$lt_cv_path_MAGIC_CMD"; then
6261 if test -n "$ac_tool_prefix"; then
6262 echo "$as_me:$LINENO: checking for file" >&5
6263 echo $ECHO_N "checking for file... $ECHO_C" >&6
6264 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6265 echo $ECHO_N "(cached) $ECHO_C" >&6
6266 else
6267 case $MAGIC_CMD in
6268 [\\/*] | ?:[\\/]*)
6269 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6272 lt_save_MAGIC_CMD="$MAGIC_CMD"
6273 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6274 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6275 for ac_dir in $ac_dummy; do
6276 IFS="$lt_save_ifs"
6277 test -z "$ac_dir" && ac_dir=.
6278 if test -f $ac_dir/file; then
6279 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6280 if test -n "$file_magic_test_file"; then
6281 case $deplibs_check_method in
6282 "file_magic "*)
6283 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6284 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6285 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6286 $EGREP "$file_magic_regex" > /dev/null; then
6288 else
6289 cat <<_LT_EOF 1>&2
6291 *** Warning: the command libtool uses to detect shared libraries,
6292 *** $file_magic_cmd, produces output that libtool cannot recognize.
6293 *** The result is that libtool may fail to recognize shared libraries
6294 *** as such. This will affect the creation of libtool libraries that
6295 *** depend on shared libraries, but programs linked with such libtool
6296 *** libraries will work regardless of this problem. Nevertheless, you
6297 *** may want to report the problem to your system manager and/or to
6298 *** bug-libtool@gnu.org
6300 _LT_EOF
6301 fi ;;
6302 esac
6304 break
6306 done
6307 IFS="$lt_save_ifs"
6308 MAGIC_CMD="$lt_save_MAGIC_CMD"
6310 esac
6313 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6314 if test -n "$MAGIC_CMD"; then
6315 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6316 echo "${ECHO_T}$MAGIC_CMD" >&6
6317 else
6318 echo "$as_me:$LINENO: result: no" >&5
6319 echo "${ECHO_T}no" >&6
6323 else
6324 MAGIC_CMD=:
6330 esac
6332 # Use C for the default configuration in the libtool script
6334 lt_save_CC="$CC"
6335 ac_ext=c
6336 ac_cpp='$CPP $CPPFLAGS'
6337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6342 # Source file extension for C test sources.
6343 ac_ext=c
6345 # Object file extension for compiled C test sources.
6346 objext=o
6347 objext=$objext
6349 # Code to be used in simple compile tests
6350 lt_simple_compile_test_code="int some_variable = 0;"
6352 # Code to be used in simple link tests
6353 lt_simple_link_test_code='int main(){return(0);}'
6361 # If no C compiler was specified, use CC.
6362 LTCC=${LTCC-"$CC"}
6364 # If no C compiler flags were specified, use CFLAGS.
6365 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6367 # Allow CC to be a program name with arguments.
6368 compiler=$CC
6370 # Save the default compiler, since it gets overwritten when the other
6371 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6372 compiler_DEFAULT=$CC
6374 # save warnings/boilerplate of simple test code
6375 ac_outfile=conftest.$ac_objext
6376 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6377 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6378 _lt_compiler_boilerplate=`cat conftest.err`
6379 $RM conftest*
6381 ac_outfile=conftest.$ac_objext
6382 echo "$lt_simple_link_test_code" >conftest.$ac_ext
6383 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6384 _lt_linker_boilerplate=`cat conftest.err`
6385 $RM conftest*
6388 ## CAVEAT EMPTOR:
6389 ## There is no encapsulation within the following macros, do not change
6390 ## the running order or otherwise move them around unless you know exactly
6391 ## what you are doing...
6392 if test -n "$compiler"; then
6394 lt_prog_compiler_no_builtin_flag=
6396 if test "$GCC" = yes; then
6397 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6399 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6400 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6401 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6402 echo $ECHO_N "(cached) $ECHO_C" >&6
6403 else
6404 lt_cv_prog_compiler_rtti_exceptions=no
6405 ac_outfile=conftest.$ac_objext
6406 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6407 lt_compiler_flag="-fno-rtti -fno-exceptions"
6408 # Insert the option either (1) after the last *FLAGS variable, or
6409 # (2) before a word containing "conftest.", or (3) at the end.
6410 # Note that $ac_compile itself does not contain backslashes and begins
6411 # with a dollar sign (not a hyphen), so the echo should work correctly.
6412 # The option is referenced via a variable to avoid confusing sed.
6413 lt_compile=`echo "$ac_compile" | $SED \
6414 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6415 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6416 -e 's:$: $lt_compiler_flag:'`
6417 (eval echo "\"\$as_me:6417: $lt_compile\"" >&5)
6418 (eval "$lt_compile" 2>conftest.err)
6419 ac_status=$?
6420 cat conftest.err >&5
6421 echo "$as_me:6421: \$? = $ac_status" >&5
6422 if (exit $ac_status) && test -s "$ac_outfile"; then
6423 # The compiler can only warn and ignore the option if not recognized
6424 # So say no if there are warnings other than the usual output.
6425 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6426 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6427 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6428 lt_cv_prog_compiler_rtti_exceptions=yes
6431 $RM conftest*
6434 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6435 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6437 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6438 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6439 else
6450 lt_prog_compiler_wl=
6451 lt_prog_compiler_pic=
6452 lt_prog_compiler_static=
6454 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6455 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6457 if test "$GCC" = yes; then
6458 lt_prog_compiler_wl='-Wl,'
6459 lt_prog_compiler_static='-static'
6461 case $host_os in
6462 aix*)
6463 # All AIX code is PIC.
6464 if test "$host_cpu" = ia64; then
6465 # AIX 5 now supports IA64 processor
6466 lt_prog_compiler_static='-Bstatic'
6470 amigaos*)
6471 if test "$host_cpu" = m68k; then
6472 # FIXME: we need at least 68020 code to build shared libraries, but
6473 # adding the `-m68020' flag to GCC prevents building anything better,
6474 # like `-m68040'.
6475 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6479 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6480 # PIC is the default for these OSes.
6483 mingw* | cygwin* | pw32* | os2*)
6484 # This hack is so that the source file can tell whether it is being
6485 # built for inclusion in a dll (and should export symbols for example).
6486 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6487 # (--disable-auto-import) libraries
6488 lt_prog_compiler_pic='-DDLL_EXPORT'
6491 darwin* | rhapsody*)
6492 # PIC is the default on this platform
6493 # Common symbols not allowed in MH_DYLIB files
6494 lt_prog_compiler_pic='-fno-common'
6497 hpux*)
6498 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6499 # not for PA HP-UX.
6500 case $host_cpu in
6501 hppa*64*|ia64*)
6502 # +Z the default
6505 lt_prog_compiler_pic='-fPIC'
6507 esac
6510 interix[3-9]*)
6511 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6512 # Instead, we relocate shared libraries at runtime.
6515 msdosdjgpp*)
6516 # Just because we use GCC doesn't mean we suddenly get shared libraries
6517 # on systems that don't support them.
6518 lt_prog_compiler_can_build_shared=no
6519 enable_shared=no
6522 *nto* | *qnx*)
6523 # QNX uses GNU C++, but need to define -shared option too, otherwise
6524 # it will coredump.
6525 lt_prog_compiler_pic='-fPIC -shared'
6528 sysv4*MP*)
6529 if test -d /usr/nec; then
6530 lt_prog_compiler_pic=-Kconform_pic
6535 lt_prog_compiler_pic='-fPIC'
6537 esac
6538 else
6539 # PORTME Check for flag to pass linker flags through the system compiler.
6540 case $host_os in
6541 aix*)
6542 lt_prog_compiler_wl='-Wl,'
6543 if test "$host_cpu" = ia64; then
6544 # AIX 5 now supports IA64 processor
6545 lt_prog_compiler_static='-Bstatic'
6546 else
6547 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6550 darwin*)
6551 # PIC is the default on this platform
6552 # Common symbols not allowed in MH_DYLIB files
6553 case $cc_basename in
6554 xlc*)
6555 lt_prog_compiler_pic='-qnocommon'
6556 lt_prog_compiler_wl='-Wl,'
6558 esac
6561 mingw* | cygwin* | pw32* | os2*)
6562 # This hack is so that the source file can tell whether it is being
6563 # built for inclusion in a dll (and should export symbols for example).
6564 lt_prog_compiler_pic='-DDLL_EXPORT'
6567 hpux9* | hpux10* | hpux11*)
6568 lt_prog_compiler_wl='-Wl,'
6569 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6570 # not for PA HP-UX.
6571 case $host_cpu in
6572 hppa*64*|ia64*)
6573 # +Z the default
6576 lt_prog_compiler_pic='+Z'
6578 esac
6579 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6580 lt_prog_compiler_static='${wl}-a ${wl}archive'
6583 irix5* | irix6* | nonstopux*)
6584 lt_prog_compiler_wl='-Wl,'
6585 # PIC (with -KPIC) is the default.
6586 lt_prog_compiler_static='-non_shared'
6589 linux* | k*bsd*-gnu)
6590 case $cc_basename in
6591 icc* | ecc*)
6592 lt_prog_compiler_wl='-Wl,'
6593 lt_prog_compiler_pic='-KPIC'
6594 lt_prog_compiler_static='-static'
6596 pgcc* | pgf77* | pgf90* | pgf95*)
6597 # Portland Group compilers (*not* the Pentium gcc compiler,
6598 # which looks to be a dead project)
6599 lt_prog_compiler_wl='-Wl,'
6600 lt_prog_compiler_pic='-fpic'
6601 lt_prog_compiler_static='-Bstatic'
6603 ccc*)
6604 lt_prog_compiler_wl='-Wl,'
6605 # All Alpha code is PIC.
6606 lt_prog_compiler_static='-non_shared'
6609 case `$CC -V 2>&1 | sed 5q` in
6610 *Sun\ C*)
6611 # Sun C 5.9
6612 lt_prog_compiler_pic='-KPIC'
6613 lt_prog_compiler_static='-Bstatic'
6614 lt_prog_compiler_wl='-Wl,'
6616 *Sun\ F*)
6617 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6618 lt_prog_compiler_pic='-KPIC'
6619 lt_prog_compiler_static='-Bstatic'
6620 lt_prog_compiler_wl=''
6622 esac
6624 esac
6627 newsos6)
6628 lt_prog_compiler_pic='-KPIC'
6629 lt_prog_compiler_static='-Bstatic'
6632 *nto* | *qnx*)
6633 # QNX uses GNU C++, but need to define -shared option too, otherwise
6634 # it will coredump.
6635 lt_prog_compiler_pic='-fPIC -shared'
6638 osf3* | osf4* | osf5*)
6639 lt_prog_compiler_wl='-Wl,'
6640 # All OSF/1 code is PIC.
6641 lt_prog_compiler_static='-non_shared'
6644 rdos*)
6645 lt_prog_compiler_static='-non_shared'
6648 solaris*)
6649 lt_prog_compiler_pic='-KPIC'
6650 lt_prog_compiler_static='-Bstatic'
6651 case $cc_basename in
6652 f77* | f90* | f95*)
6653 lt_prog_compiler_wl='-Qoption ld ';;
6655 lt_prog_compiler_wl='-Wl,';;
6656 esac
6659 sunos4*)
6660 lt_prog_compiler_wl='-Qoption ld '
6661 lt_prog_compiler_pic='-PIC'
6662 lt_prog_compiler_static='-Bstatic'
6665 sysv4 | sysv4.2uw2* | sysv4.3*)
6666 lt_prog_compiler_wl='-Wl,'
6667 lt_prog_compiler_pic='-KPIC'
6668 lt_prog_compiler_static='-Bstatic'
6671 sysv4*MP*)
6672 if test -d /usr/nec ;then
6673 lt_prog_compiler_pic='-Kconform_pic'
6674 lt_prog_compiler_static='-Bstatic'
6678 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6679 lt_prog_compiler_wl='-Wl,'
6680 lt_prog_compiler_pic='-KPIC'
6681 lt_prog_compiler_static='-Bstatic'
6684 unicos*)
6685 lt_prog_compiler_wl='-Wl,'
6686 lt_prog_compiler_can_build_shared=no
6689 uts4*)
6690 lt_prog_compiler_pic='-pic'
6691 lt_prog_compiler_static='-Bstatic'
6695 lt_prog_compiler_can_build_shared=no
6697 esac
6700 case $host_os in
6701 # For platforms which do not support PIC, -DPIC is meaningless:
6702 *djgpp*)
6703 lt_prog_compiler_pic=
6706 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6708 esac
6709 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6710 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6718 # Check to make sure the PIC flag actually works.
6720 if test -n "$lt_prog_compiler_pic"; then
6721 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6722 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6723 if test "${lt_prog_compiler_pic_works+set}" = set; then
6724 echo $ECHO_N "(cached) $ECHO_C" >&6
6725 else
6726 lt_prog_compiler_pic_works=no
6727 ac_outfile=conftest.$ac_objext
6728 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6729 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6730 # Insert the option either (1) after the last *FLAGS variable, or
6731 # (2) before a word containing "conftest.", or (3) at the end.
6732 # Note that $ac_compile itself does not contain backslashes and begins
6733 # with a dollar sign (not a hyphen), so the echo should work correctly.
6734 # The option is referenced via a variable to avoid confusing sed.
6735 lt_compile=`echo "$ac_compile" | $SED \
6736 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6737 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6738 -e 's:$: $lt_compiler_flag:'`
6739 (eval echo "\"\$as_me:6739: $lt_compile\"" >&5)
6740 (eval "$lt_compile" 2>conftest.err)
6741 ac_status=$?
6742 cat conftest.err >&5
6743 echo "$as_me:6743: \$? = $ac_status" >&5
6744 if (exit $ac_status) && test -s "$ac_outfile"; then
6745 # The compiler can only warn and ignore the option if not recognized
6746 # So say no if there are warnings other than the usual output.
6747 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6748 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6749 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6750 lt_prog_compiler_pic_works=yes
6753 $RM conftest*
6756 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6757 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6759 if test x"$lt_prog_compiler_pic_works" = xyes; then
6760 case $lt_prog_compiler_pic in
6761 "" | " "*) ;;
6762 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6763 esac
6764 else
6765 lt_prog_compiler_pic=
6766 lt_prog_compiler_can_build_shared=no
6777 # Check to make sure the static flag actually works.
6779 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6780 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6781 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6782 if test "${lt_prog_compiler_static_works+set}" = set; then
6783 echo $ECHO_N "(cached) $ECHO_C" >&6
6784 else
6785 lt_prog_compiler_static_works=no
6786 save_LDFLAGS="$LDFLAGS"
6787 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6788 echo "$lt_simple_link_test_code" > conftest.$ac_ext
6789 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6790 # The linker can only warn and ignore the option if not recognized
6791 # So say no if there are warnings
6792 if test -s conftest.err; then
6793 # Append any errors to the config.log.
6794 cat conftest.err 1>&5
6795 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6796 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6797 if diff conftest.exp conftest.er2 >/dev/null; then
6798 lt_prog_compiler_static_works=yes
6800 else
6801 lt_prog_compiler_static_works=yes
6804 $RM conftest*
6805 LDFLAGS="$save_LDFLAGS"
6808 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6809 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6811 if test x"$lt_prog_compiler_static_works" = xyes; then
6813 else
6814 lt_prog_compiler_static=
6823 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6824 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6825 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6826 echo $ECHO_N "(cached) $ECHO_C" >&6
6827 else
6828 lt_cv_prog_compiler_c_o=no
6829 $RM -r conftest 2>/dev/null
6830 mkdir conftest
6831 cd conftest
6832 mkdir out
6833 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6835 lt_compiler_flag="-o out/conftest2.$ac_objext"
6836 # Insert the option either (1) after the last *FLAGS variable, or
6837 # (2) before a word containing "conftest.", or (3) at the end.
6838 # Note that $ac_compile itself does not contain backslashes and begins
6839 # with a dollar sign (not a hyphen), so the echo should work correctly.
6840 lt_compile=`echo "$ac_compile" | $SED \
6841 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6842 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6843 -e 's:$: $lt_compiler_flag:'`
6844 (eval echo "\"\$as_me:6844: $lt_compile\"" >&5)
6845 (eval "$lt_compile" 2>out/conftest.err)
6846 ac_status=$?
6847 cat out/conftest.err >&5
6848 echo "$as_me:6848: \$? = $ac_status" >&5
6849 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6850 then
6851 # The compiler can only warn and ignore the option if not recognized
6852 # So say no if there are warnings
6853 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6854 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6855 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6856 lt_cv_prog_compiler_c_o=yes
6859 chmod u+w . 2>&5
6860 $RM conftest*
6861 # SGI C++ compiler will create directory out/ii_files/ for
6862 # template instantiation
6863 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6864 $RM out/* && rmdir out
6865 cd ..
6866 $RM -r conftest
6867 $RM conftest*
6870 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6871 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6878 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6879 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6880 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6881 echo $ECHO_N "(cached) $ECHO_C" >&6
6882 else
6883 lt_cv_prog_compiler_c_o=no
6884 $RM -r conftest 2>/dev/null
6885 mkdir conftest
6886 cd conftest
6887 mkdir out
6888 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6890 lt_compiler_flag="-o out/conftest2.$ac_objext"
6891 # Insert the option either (1) after the last *FLAGS variable, or
6892 # (2) before a word containing "conftest.", or (3) at the end.
6893 # Note that $ac_compile itself does not contain backslashes and begins
6894 # with a dollar sign (not a hyphen), so the echo should work correctly.
6895 lt_compile=`echo "$ac_compile" | $SED \
6896 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6897 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6898 -e 's:$: $lt_compiler_flag:'`
6899 (eval echo "\"\$as_me:6899: $lt_compile\"" >&5)
6900 (eval "$lt_compile" 2>out/conftest.err)
6901 ac_status=$?
6902 cat out/conftest.err >&5
6903 echo "$as_me:6903: \$? = $ac_status" >&5
6904 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6905 then
6906 # The compiler can only warn and ignore the option if not recognized
6907 # So say no if there are warnings
6908 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6909 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6910 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6911 lt_cv_prog_compiler_c_o=yes
6914 chmod u+w . 2>&5
6915 $RM conftest*
6916 # SGI C++ compiler will create directory out/ii_files/ for
6917 # template instantiation
6918 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6919 $RM out/* && rmdir out
6920 cd ..
6921 $RM -r conftest
6922 $RM conftest*
6925 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6926 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6931 hard_links="nottested"
6932 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6933 # do not overwrite the value of need_locks provided by the user
6934 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6935 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6936 hard_links=yes
6937 $RM conftest*
6938 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6939 touch conftest.a
6940 ln conftest.a conftest.b 2>&5 || hard_links=no
6941 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6942 echo "$as_me:$LINENO: result: $hard_links" >&5
6943 echo "${ECHO_T}$hard_links" >&6
6944 if test "$hard_links" = no; then
6945 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6946 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6947 need_locks=warn
6949 else
6950 need_locks=no
6958 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6959 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6961 runpath_var=
6962 allow_undefined_flag=
6963 always_export_symbols=no
6964 archive_cmds=
6965 archive_expsym_cmds=
6966 compiler_needs_object=no
6967 enable_shared_with_static_runtimes=no
6968 export_dynamic_flag_spec=
6969 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6970 hardcode_automatic=no
6971 hardcode_direct=no
6972 hardcode_direct_absolute=no
6973 hardcode_libdir_flag_spec=
6974 hardcode_libdir_flag_spec_ld=
6975 hardcode_libdir_separator=
6976 hardcode_minus_L=no
6977 hardcode_shlibpath_var=unsupported
6978 inherit_rpath=no
6979 link_all_deplibs=unknown
6980 module_cmds=
6981 module_expsym_cmds=
6982 old_archive_from_new_cmds=
6983 old_archive_from_expsyms_cmds=
6984 thread_safe_flag_spec=
6985 whole_archive_flag_spec=
6986 # include_expsyms should be a list of space-separated symbols to be *always*
6987 # included in the symbol list
6988 include_expsyms=
6989 # exclude_expsyms can be an extended regexp of symbols to exclude
6990 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6991 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6992 # as well as any symbol that contains `d'.
6993 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6994 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6995 # platforms (ab)use it in PIC code, but their linkers get confused if
6996 # the symbol is explicitly referenced. Since portable code cannot
6997 # rely on this symbol name, it's probably fine to never include it in
6998 # preloaded symbol tables.
6999 extract_expsyms_cmds=
7001 case $host_os in
7002 cygwin* | mingw* | pw32*)
7003 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7004 # When not using gcc, we currently assume that we are using
7005 # Microsoft Visual C++.
7006 if test "$GCC" != yes; then
7007 with_gnu_ld=no
7010 interix*)
7011 # we just hope/assume this is gcc and not c89 (= MSVC++)
7012 with_gnu_ld=yes
7014 openbsd*)
7015 with_gnu_ld=no
7017 esac
7019 ld_shlibs=yes
7020 if test "$with_gnu_ld" = yes; then
7021 # If archive_cmds runs LD, not CC, wlarc should be empty
7022 wlarc='${wl}'
7024 # Set some defaults for GNU ld with shared library support. These
7025 # are reset later if shared libraries are not supported. Putting them
7026 # here allows them to be overridden if necessary.
7027 runpath_var=LD_RUN_PATH
7028 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7029 export_dynamic_flag_spec='${wl}--export-dynamic'
7030 # ancient GNU ld didn't support --whole-archive et. al.
7031 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7032 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7033 else
7034 whole_archive_flag_spec=
7036 supports_anon_versioning=no
7037 case `$LD -v 2>&1` in
7038 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7039 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7040 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7041 *\ 2.11.*) ;; # other 2.11 versions
7042 *) supports_anon_versioning=yes ;;
7043 esac
7045 # See if GNU ld supports shared libraries.
7046 case $host_os in
7047 aix[3-9]*)
7048 # On AIX/PPC, the GNU linker is very broken
7049 if test "$host_cpu" != ia64; then
7050 ld_shlibs=no
7051 cat <<_LT_EOF 1>&2
7053 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7054 *** to be unable to reliably create shared libraries on AIX.
7055 *** Therefore, libtool is disabling shared libraries support. If you
7056 *** really care for shared libraries, you may want to modify your PATH
7057 *** so that a non-GNU linker is found, and then restart.
7059 _LT_EOF
7063 amigaos*)
7064 if test "$host_cpu" = m68k; then
7065 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
7066 hardcode_libdir_flag_spec='-L$libdir'
7067 hardcode_minus_L=yes
7070 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7071 # that the semantics of dynamic libraries on AmigaOS, at least up
7072 # to version 4, is to share data among multiple programs linked
7073 # with the same dynamic library. Since this doesn't match the
7074 # behavior of shared libraries on other platforms, we can't use
7075 # them.
7076 ld_shlibs=no
7079 beos*)
7080 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7081 allow_undefined_flag=unsupported
7082 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7083 # support --undefined. This deserves some investigation. FIXME
7084 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7085 else
7086 ld_shlibs=no
7090 cygwin* | mingw* | pw32*)
7091 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7092 # as there is no search path for DLLs.
7093 hardcode_libdir_flag_spec='-L$libdir'
7094 allow_undefined_flag=unsupported
7095 always_export_symbols=no
7096 enable_shared_with_static_runtimes=yes
7097 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7099 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7100 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7101 # If the export-symbols file already is a .def file (1st line
7102 # is EXPORTS), use it as is; otherwise, prepend...
7103 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7104 cp $export_symbols $output_objdir/$soname.def;
7105 else
7106 echo EXPORTS > $output_objdir/$soname.def;
7107 cat $export_symbols >> $output_objdir/$soname.def;
7109 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7110 else
7111 ld_shlibs=no
7115 interix[3-9]*)
7116 hardcode_direct=no
7117 hardcode_shlibpath_var=no
7118 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7119 export_dynamic_flag_spec='${wl}-E'
7120 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7121 # Instead, shared libraries are loaded at an image base (0x10000000 by
7122 # default) and relocated if they conflict, which is a slow very memory
7123 # consuming and fragmenting process. To avoid this, we pick a random,
7124 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7125 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7126 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7127 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7130 gnu* | linux* | tpf* | k*bsd*-gnu)
7131 tmp_diet=no
7132 if test "$host_os" = linux-dietlibc; then
7133 case $cc_basename in
7134 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7135 esac
7137 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7138 && test "$tmp_diet" = no
7139 then
7140 tmp_addflag=
7141 case $cc_basename,$host_cpu in
7142 pgcc*) # Portland Group C compiler
7143 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7144 tmp_addflag=' $pic_flag'
7146 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7147 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7148 tmp_addflag=' $pic_flag -Mnomain' ;;
7149 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7150 tmp_addflag=' -i_dynamic' ;;
7151 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7152 tmp_addflag=' -i_dynamic -nofor_main' ;;
7153 ifc* | ifort*) # Intel Fortran compiler
7154 tmp_addflag=' -nofor_main' ;;
7155 esac
7156 case `$CC -V 2>&1 | sed 5q` in
7157 *Sun\ C*) # Sun C 5.9
7158 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7159 compiler_needs_object=yes
7160 tmp_sharedflag='-G' ;;
7161 *Sun\ F*) # Sun Fortran 8.3
7162 tmp_sharedflag='-G' ;;
7164 tmp_sharedflag='-shared' ;;
7165 esac
7166 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7168 if test "x$supports_anon_versioning" = xyes; then
7169 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7170 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7171 echo "local: *; };" >> $output_objdir/$libname.ver~
7172 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7174 else
7175 ld_shlibs=no
7179 netbsd*)
7180 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7181 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7182 wlarc=
7183 else
7184 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7185 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7189 solaris*)
7190 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7191 ld_shlibs=no
7192 cat <<_LT_EOF 1>&2
7194 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7195 *** create shared libraries on Solaris systems. Therefore, libtool
7196 *** is disabling shared libraries support. We urge you to upgrade GNU
7197 *** binutils to release 2.9.1 or newer. Another option is to modify
7198 *** your PATH or compiler configuration so that the native linker is
7199 *** used, and then restart.
7201 _LT_EOF
7202 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7203 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7204 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7205 else
7206 ld_shlibs=no
7210 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7211 case `$LD -v 2>&1` in
7212 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7213 ld_shlibs=no
7214 cat <<_LT_EOF 1>&2
7216 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7217 *** reliably create shared libraries on SCO systems. Therefore, libtool
7218 *** is disabling shared libraries support. We urge you to upgrade GNU
7219 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7220 *** your PATH or compiler configuration so that the native linker is
7221 *** used, and then restart.
7223 _LT_EOF
7226 # For security reasons, it is highly recommended that you always
7227 # use absolute paths for naming shared libraries, and exclude the
7228 # DT_RUNPATH tag from executables and libraries. But doing so
7229 # requires that you compile everything twice, which is a pain.
7230 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7231 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7232 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7233 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7234 else
7235 ld_shlibs=no
7238 esac
7241 sunos4*)
7242 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7243 wlarc=
7244 hardcode_direct=yes
7245 hardcode_shlibpath_var=no
7249 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7250 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7251 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7252 else
7253 ld_shlibs=no
7256 esac
7258 if test "$ld_shlibs" = no; then
7259 runpath_var=
7260 hardcode_libdir_flag_spec=
7261 export_dynamic_flag_spec=
7262 whole_archive_flag_spec=
7264 else
7265 # PORTME fill in a description of your system's linker (not GNU ld)
7266 case $host_os in
7267 aix3*)
7268 allow_undefined_flag=unsupported
7269 always_export_symbols=yes
7270 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
7271 # Note: this linker hardcodes the directories in LIBPATH if there
7272 # are no directories specified by -L.
7273 hardcode_minus_L=yes
7274 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7275 # Neither direct hardcoding nor static linking is supported with a
7276 # broken collect2.
7277 hardcode_direct=unsupported
7281 aix[4-9]*)
7282 if test "$host_cpu" = ia64; then
7283 # On IA64, the linker does run time linking by default, so we don't
7284 # have to do anything special.
7285 aix_use_runtimelinking=no
7286 exp_sym_flag='-Bexport'
7287 no_entry_flag=""
7288 else
7289 # If we're using GNU nm, then we don't want the "-C" option.
7290 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7291 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7292 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
7293 else
7294 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
7296 aix_use_runtimelinking=no
7298 # Test if we are trying to use run time linking or normal
7299 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7300 # need to do runtime linking.
7301 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7302 for ld_flag in $LDFLAGS; do
7303 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7304 aix_use_runtimelinking=yes
7305 break
7307 done
7309 esac
7311 exp_sym_flag='-bexport'
7312 no_entry_flag='-bnoentry'
7315 # When large executables or shared objects are built, AIX ld can
7316 # have problems creating the table of contents. If linking a library
7317 # or program results in "error TOC overflow" add -mminimal-toc to
7318 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7319 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7321 archive_cmds=''
7322 hardcode_direct=yes
7323 hardcode_direct_absolute=yes
7324 hardcode_libdir_separator=':'
7325 link_all_deplibs=yes
7326 file_list_spec='${wl}-f,'
7328 if test "$GCC" = yes; then
7329 case $host_os in aix4.[012]|aix4.[012].*)
7330 # We only want to do this on AIX 4.2 and lower, the check
7331 # below for broken collect2 doesn't work under 4.3+
7332 collect2name=`${CC} -print-prog-name=collect2`
7333 if test -f "$collect2name" &&
7334 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7335 then
7336 # We have reworked collect2
7338 else
7339 # We have old collect2
7340 hardcode_direct=unsupported
7341 # It fails to find uninstalled libraries when the uninstalled
7342 # path is not listed in the libpath. Setting hardcode_minus_L
7343 # to unsupported forces relinking
7344 hardcode_minus_L=yes
7345 hardcode_libdir_flag_spec='-L$libdir'
7346 hardcode_libdir_separator=
7349 esac
7350 shared_flag='-shared'
7351 if test "$aix_use_runtimelinking" = yes; then
7352 shared_flag="$shared_flag "'${wl}-G'
7354 else
7355 # not using gcc
7356 if test "$host_cpu" = ia64; then
7357 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7358 # chokes on -Wl,-G. The following line is correct:
7359 shared_flag='-G'
7360 else
7361 if test "$aix_use_runtimelinking" = yes; then
7362 shared_flag='${wl}-G'
7363 else
7364 shared_flag='${wl}-bM:SRE'
7369 # It seems that -bexpall does not export symbols beginning with
7370 # underscore (_), so it is better to generate a list of symbols to export.
7371 always_export_symbols=yes
7372 if test "$aix_use_runtimelinking" = yes; then
7373 # Warning - without using the other runtime loading flags (-brtl),
7374 # -berok will link without error, but may produce a broken library.
7375 allow_undefined_flag='-berok'
7376 # Determine the default libpath from the value encoded in an
7377 # empty executable.
7378 cat >conftest.$ac_ext <<_ACEOF
7379 /* confdefs.h. */
7380 _ACEOF
7381 cat confdefs.h >>conftest.$ac_ext
7382 cat >>conftest.$ac_ext <<_ACEOF
7383 /* end confdefs.h. */
7386 main ()
7390 return 0;
7392 _ACEOF
7393 rm -f conftest.$ac_objext conftest$ac_exeext
7394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7395 (eval $ac_link) 2>conftest.er1
7396 ac_status=$?
7397 grep -v '^ *+' conftest.er1 >conftest.err
7398 rm -f conftest.er1
7399 cat conftest.err >&5
7400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7401 (exit $ac_status); } &&
7402 { ac_try='test -z "$ac_c_werror_flag"
7403 || test ! -s conftest.err'
7404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7405 (eval $ac_try) 2>&5
7406 ac_status=$?
7407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7408 (exit $ac_status); }; } &&
7409 { ac_try='test -s conftest$ac_exeext'
7410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7411 (eval $ac_try) 2>&5
7412 ac_status=$?
7413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7414 (exit $ac_status); }; }; then
7416 lt_aix_libpath_sed='
7417 /Import File Strings/,/^$/ {
7418 /^0/ {
7419 s/^0 *\(.*\)$/\1/
7423 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7424 # Check for a 64-bit object if we didn't find anything.
7425 if test -z "$aix_libpath"; then
7426 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7428 else
7429 echo "$as_me: failed program was:" >&5
7430 sed 's/^/| /' conftest.$ac_ext >&5
7433 rm -f conftest.err conftest.$ac_objext \
7434 conftest$ac_exeext conftest.$ac_ext
7435 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7437 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7438 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7439 else
7440 if test "$host_cpu" = ia64; then
7441 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7442 allow_undefined_flag="-z nodefs"
7443 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7444 else
7445 # Determine the default libpath from the value encoded in an
7446 # empty executable.
7447 cat >conftest.$ac_ext <<_ACEOF
7448 /* confdefs.h. */
7449 _ACEOF
7450 cat confdefs.h >>conftest.$ac_ext
7451 cat >>conftest.$ac_ext <<_ACEOF
7452 /* end confdefs.h. */
7455 main ()
7459 return 0;
7461 _ACEOF
7462 rm -f conftest.$ac_objext conftest$ac_exeext
7463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7464 (eval $ac_link) 2>conftest.er1
7465 ac_status=$?
7466 grep -v '^ *+' conftest.er1 >conftest.err
7467 rm -f conftest.er1
7468 cat conftest.err >&5
7469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7470 (exit $ac_status); } &&
7471 { ac_try='test -z "$ac_c_werror_flag"
7472 || test ! -s conftest.err'
7473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7474 (eval $ac_try) 2>&5
7475 ac_status=$?
7476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7477 (exit $ac_status); }; } &&
7478 { ac_try='test -s conftest$ac_exeext'
7479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7480 (eval $ac_try) 2>&5
7481 ac_status=$?
7482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7483 (exit $ac_status); }; }; then
7485 lt_aix_libpath_sed='
7486 /Import File Strings/,/^$/ {
7487 /^0/ {
7488 s/^0 *\(.*\)$/\1/
7492 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7493 # Check for a 64-bit object if we didn't find anything.
7494 if test -z "$aix_libpath"; then
7495 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7497 else
7498 echo "$as_me: failed program was:" >&5
7499 sed 's/^/| /' conftest.$ac_ext >&5
7502 rm -f conftest.err conftest.$ac_objext \
7503 conftest$ac_exeext conftest.$ac_ext
7504 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7506 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7507 # Warning - without using the other run time loading flags,
7508 # -berok will link without error, but may produce a broken library.
7509 no_undefined_flag=' ${wl}-bernotok'
7510 allow_undefined_flag=' ${wl}-berok'
7511 # Exported symbols can be pulled into shared objects from archives
7512 whole_archive_flag_spec='$convenience'
7513 archive_cmds_need_lc=yes
7514 # This is similar to how AIX traditionally builds its shared libraries.
7515 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7520 amigaos*)
7521 if test "$host_cpu" = m68k; then
7522 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
7523 hardcode_libdir_flag_spec='-L$libdir'
7524 hardcode_minus_L=yes
7526 # see comment about different semantics on the GNU ld section
7527 ld_shlibs=no
7530 bsdi[45]*)
7531 export_dynamic_flag_spec=-rdynamic
7534 cygwin* | mingw* | pw32*)
7535 # When not using gcc, we currently assume that we are using
7536 # Microsoft Visual C++.
7537 # hardcode_libdir_flag_spec is actually meaningless, as there is
7538 # no search path for DLLs.
7539 hardcode_libdir_flag_spec=' '
7540 allow_undefined_flag=unsupported
7541 # Tell ltmain to make .lib files, not .a files.
7542 libext=lib
7543 # Tell ltmain to make .dll files, not .so files.
7544 shrext_cmds=".dll"
7545 # FIXME: Setting linknames here is a bad hack.
7546 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7547 # The linker will automatically build a .lib file if we build a DLL.
7548 old_archive_from_new_cmds='true'
7549 # FIXME: Should let the user specify the lib program.
7550 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7551 fix_srcfile_path='`cygpath -w "$srcfile"`'
7552 enable_shared_with_static_runtimes=yes
7555 darwin* | rhapsody*)
7556 case $host_os in
7557 rhapsody* | darwin1.[012])
7558 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7560 *) # Darwin 1.3 on
7561 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7562 10.[012])
7563 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7565 10.*)
7566 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7568 esac
7570 esac
7571 archive_cmds_need_lc=no
7572 hardcode_direct=no
7573 hardcode_automatic=yes
7574 hardcode_shlibpath_var=unsupported
7575 whole_archive_flag_spec=''
7576 link_all_deplibs=yes
7577 if test "$GCC" = yes ; then
7578 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7579 echo $ECHO_N "(cached) $ECHO_C" >&6
7580 else
7581 lt_cv_apple_cc_single_mod=no
7582 if test -z "${LT_MULTI_MODULE}"; then
7583 # By default we will add the -single_module flag. You can override
7584 # by either setting the environment variable LT_MULTI_MODULE
7585 # non-empty at configure time, or by adding -multi-module to the
7586 # link flags.
7587 echo "int foo(void){return 1;}" > conftest.c
7588 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7589 -dynamiclib ${wl}-single_module conftest.c
7590 if test -f libconftest.dylib; then
7591 lt_cv_apple_cc_single_mod=yes
7592 rm libconftest.dylib
7594 rm conftest.$ac_ext
7598 output_verbose_link_cmd=echo
7599 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
7600 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7601 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7602 else
7603 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7604 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7606 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7607 module_expsym_cmds='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7608 else
7609 case $cc_basename in
7610 xlc*)
7611 output_verbose_link_cmd=echo
7612 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
7613 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7614 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7615 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7616 module_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7619 ld_shlibs=no
7621 esac
7625 dgux*)
7626 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7627 hardcode_libdir_flag_spec='-L$libdir'
7628 hardcode_shlibpath_var=no
7631 freebsd1*)
7632 ld_shlibs=no
7635 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7636 # support. Future versions do this automatically, but an explicit c++rt0.o
7637 # does not break anything, and helps significantly (at the cost of a little
7638 # extra space).
7639 freebsd2.2*)
7640 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7641 hardcode_libdir_flag_spec='-R$libdir'
7642 hardcode_direct=yes
7643 hardcode_shlibpath_var=no
7646 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7647 freebsd2*)
7648 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7649 hardcode_direct=yes
7650 hardcode_minus_L=yes
7651 hardcode_shlibpath_var=no
7654 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7655 freebsd* | dragonfly*)
7656 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7657 hardcode_libdir_flag_spec='-R$libdir'
7658 hardcode_direct=yes
7659 hardcode_shlibpath_var=no
7662 hpux9*)
7663 if test "$GCC" = yes; then
7664 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7665 else
7666 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7668 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7669 hardcode_libdir_separator=:
7670 hardcode_direct=yes
7672 # hardcode_minus_L: Not really in the search PATH,
7673 # but as the default location of the library.
7674 hardcode_minus_L=yes
7675 export_dynamic_flag_spec='${wl}-E'
7678 hpux10*)
7679 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7680 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7681 else
7682 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7684 if test "$with_gnu_ld" = no; then
7685 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7686 hardcode_libdir_flag_spec_ld='+b $libdir'
7687 hardcode_libdir_separator=:
7688 hardcode_direct=yes
7689 hardcode_direct_absolute=yes
7690 export_dynamic_flag_spec='${wl}-E'
7691 # hardcode_minus_L: Not really in the search PATH,
7692 # but as the default location of the library.
7693 hardcode_minus_L=yes
7697 hpux11*)
7698 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7699 case $host_cpu in
7700 hppa*64*)
7701 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7703 ia64*)
7704 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7707 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7709 esac
7710 else
7711 case $host_cpu in
7712 hppa*64*)
7713 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7715 ia64*)
7716 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7719 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7721 esac
7723 if test "$with_gnu_ld" = no; then
7724 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7725 hardcode_libdir_separator=:
7727 case $host_cpu in
7728 hppa*64*|ia64*)
7729 hardcode_direct=no
7730 hardcode_shlibpath_var=no
7733 hardcode_direct=yes
7734 hardcode_direct_absolute=yes
7735 export_dynamic_flag_spec='${wl}-E'
7737 # hardcode_minus_L: Not really in the search PATH,
7738 # but as the default location of the library.
7739 hardcode_minus_L=yes
7741 esac
7745 irix5* | irix6* | nonstopux*)
7746 if test "$GCC" = yes; then
7747 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7748 # Try to use the -exported_symbol ld option, if it does not
7749 # work, assume that -exports_file does not work either and
7750 # implicitly export all symbols.
7751 save_LDFLAGS="$LDFLAGS"
7752 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
7753 cat >conftest.$ac_ext <<_ACEOF
7754 int foo(void) {}
7755 _ACEOF
7756 rm -f conftest.$ac_objext conftest$ac_exeext
7757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7758 (eval $ac_link) 2>conftest.er1
7759 ac_status=$?
7760 grep -v '^ *+' conftest.er1 >conftest.err
7761 rm -f conftest.er1
7762 cat conftest.err >&5
7763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7764 (exit $ac_status); } &&
7765 { ac_try='test -z "$ac_c_werror_flag"
7766 || test ! -s conftest.err'
7767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7768 (eval $ac_try) 2>&5
7769 ac_status=$?
7770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7771 (exit $ac_status); }; } &&
7772 { ac_try='test -s conftest$ac_exeext'
7773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7774 (eval $ac_try) 2>&5
7775 ac_status=$?
7776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7777 (exit $ac_status); }; }; then
7778 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
7780 else
7781 echo "$as_me: failed program was:" >&5
7782 sed 's/^/| /' conftest.$ac_ext >&5
7785 rm -f conftest.err conftest.$ac_objext \
7786 conftest$ac_exeext conftest.$ac_ext
7787 LDFLAGS="$save_LDFLAGS"
7788 else
7789 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
7790 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
7792 archive_cmds_need_lc='no'
7793 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7794 hardcode_libdir_separator=:
7795 inherit_rpath=yes
7796 link_all_deplibs=yes
7799 netbsd*)
7800 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7801 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7802 else
7803 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7805 hardcode_libdir_flag_spec='-R$libdir'
7806 hardcode_direct=yes
7807 hardcode_shlibpath_var=no
7810 newsos6)
7811 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7812 hardcode_direct=yes
7813 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7814 hardcode_libdir_separator=:
7815 hardcode_shlibpath_var=no
7818 *nto* | *qnx*)
7821 openbsd*)
7822 hardcode_direct=yes
7823 hardcode_shlibpath_var=no
7824 hardcode_direct_absolute=yes
7825 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7826 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7827 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7828 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7829 export_dynamic_flag_spec='${wl}-E'
7830 else
7831 case $host_os in
7832 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7833 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7834 hardcode_libdir_flag_spec='-R$libdir'
7837 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7838 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7840 esac
7844 os2*)
7845 hardcode_libdir_flag_spec='-L$libdir'
7846 hardcode_minus_L=yes
7847 allow_undefined_flag=unsupported
7848 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
7849 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7852 osf3*)
7853 if test "$GCC" = yes; then
7854 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7855 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7856 else
7857 allow_undefined_flag=' -expect_unresolved \*'
7858 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
7860 archive_cmds_need_lc='no'
7861 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7862 hardcode_libdir_separator=:
7865 osf4* | osf5*) # as osf3* with the addition of -msym flag
7866 if test "$GCC" = yes; then
7867 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7868 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7869 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7870 else
7871 allow_undefined_flag=' -expect_unresolved \*'
7872 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
7873 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
7874 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
7876 # Both c and cxx compiler support -rpath directly
7877 hardcode_libdir_flag_spec='-rpath $libdir'
7879 archive_cmds_need_lc='no'
7880 hardcode_libdir_separator=:
7883 solaris*)
7884 no_undefined_flag=' -z defs'
7885 if test "$GCC" = yes; then
7886 wlarc='${wl}'
7887 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7888 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7889 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7890 else
7891 case `$CC -V 2>&1` in
7892 *"Compilers 5.0"*)
7893 wlarc=''
7894 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7895 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7896 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
7899 wlarc='${wl}'
7900 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
7901 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7902 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7904 esac
7906 hardcode_libdir_flag_spec='-R$libdir'
7907 hardcode_shlibpath_var=no
7908 case $host_os in
7909 solaris2.[0-5] | solaris2.[0-5].*) ;;
7911 # The compiler driver will combine and reorder linker options,
7912 # but understands `-z linker_flag'. GCC discards it without `$wl',
7913 # but is careful enough not to reorder.
7914 # Supported since Solaris 2.6 (maybe 2.5.1?)
7915 if test "$GCC" = yes; then
7916 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7917 else
7918 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
7921 esac
7922 link_all_deplibs=yes
7925 sunos4*)
7926 if test "x$host_vendor" = xsequent; then
7927 # Use $CC to link under sequent, because it throws in some extra .o
7928 # files that make .init and .fini sections work.
7929 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7930 else
7931 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7933 hardcode_libdir_flag_spec='-L$libdir'
7934 hardcode_direct=yes
7935 hardcode_minus_L=yes
7936 hardcode_shlibpath_var=no
7939 sysv4)
7940 case $host_vendor in
7941 sni)
7942 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7943 hardcode_direct=yes # is this really true???
7945 siemens)
7946 ## LD is ld it makes a PLAMLIB
7947 ## CC just makes a GrossModule.
7948 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7949 reload_cmds='$CC -r -o $output$reload_objs'
7950 hardcode_direct=no
7952 motorola)
7953 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7954 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7956 esac
7957 runpath_var='LD_RUN_PATH'
7958 hardcode_shlibpath_var=no
7961 sysv4.3*)
7962 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7963 hardcode_shlibpath_var=no
7964 export_dynamic_flag_spec='-Bexport'
7967 sysv4*MP*)
7968 if test -d /usr/nec; then
7969 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7970 hardcode_shlibpath_var=no
7971 runpath_var=LD_RUN_PATH
7972 hardcode_runpath_var=yes
7973 ld_shlibs=yes
7977 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
7978 no_undefined_flag='${wl}-z,text'
7979 archive_cmds_need_lc=no
7980 hardcode_shlibpath_var=no
7981 runpath_var='LD_RUN_PATH'
7983 if test "$GCC" = yes; then
7984 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7985 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7986 else
7987 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7988 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7992 sysv5* | sco3.2v5* | sco5v6*)
7993 # Note: We can NOT use -z defs as we might desire, because we do not
7994 # link with -lc, and that would cause any symbols used from libc to
7995 # always be unresolved, which means just about no library would
7996 # ever link correctly. If we're not using GNU ld we use -z text
7997 # though, which does catch some bad symbols but isn't as heavy-handed
7998 # as -z defs.
7999 no_undefined_flag='${wl}-z,text'
8000 allow_undefined_flag='${wl}-z,nodefs'
8001 archive_cmds_need_lc=no
8002 hardcode_shlibpath_var=no
8003 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8004 hardcode_libdir_separator=':'
8005 link_all_deplibs=yes
8006 export_dynamic_flag_spec='${wl}-Bexport'
8007 runpath_var='LD_RUN_PATH'
8009 if test "$GCC" = yes; then
8010 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8011 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8012 else
8013 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8014 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8018 uts4*)
8019 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8020 hardcode_libdir_flag_spec='-L$libdir'
8021 hardcode_shlibpath_var=no
8025 ld_shlibs=no
8027 esac
8029 if test x$host_vendor = xsni; then
8030 case $host in
8031 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8032 export_dynamic_flag_spec='${wl}-Blargedynsym'
8034 esac
8038 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8039 echo "${ECHO_T}$ld_shlibs" >&6
8040 test "$ld_shlibs" = no && can_build_shared=no
8042 with_gnu_ld=$with_gnu_ld
8059 # Do we need to explicitly link libc?
8061 case "x$archive_cmds_need_lc" in
8062 x|xyes)
8063 # Assume -lc should be added
8064 archive_cmds_need_lc=yes
8066 if test "$enable_shared" = yes && test "$GCC" = yes; then
8067 case $archive_cmds in
8068 *'~'*)
8069 # FIXME: we may have to deal with multi-command sequences.
8071 '$CC '*)
8072 # Test whether the compiler implicitly links with -lc since on some
8073 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8074 # to ld, don't add -lc before -lgcc.
8075 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8076 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8077 $RM conftest*
8078 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8081 (eval $ac_compile) 2>&5
8082 ac_status=$?
8083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8084 (exit $ac_status); } 2>conftest.err; then
8085 soname=conftest
8086 lib=conftest
8087 libobjs=conftest.$ac_objext
8088 deplibs=
8089 wl=$lt_prog_compiler_wl
8090 pic_flag=$lt_prog_compiler_pic
8091 compiler_flags=-v
8092 linker_flags=-v
8093 verstring=
8094 output_objdir=.
8095 libname=conftest
8096 lt_save_allow_undefined_flag=$allow_undefined_flag
8097 allow_undefined_flag=
8098 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8099 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8100 ac_status=$?
8101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8102 (exit $ac_status); }
8103 then
8104 archive_cmds_need_lc=no
8105 else
8106 archive_cmds_need_lc=yes
8108 allow_undefined_flag=$lt_save_allow_undefined_flag
8109 else
8110 cat conftest.err 1>&5
8112 $RM conftest*
8113 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8114 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8116 esac
8119 esac
8277 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8278 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8279 withGCC=$GCC
8280 if test "$withGCC" = yes; then
8281 case $host_os in
8282 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8283 *) lt_awk_arg="/^libraries:/" ;;
8284 esac
8285 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8286 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8287 # if the path contains ";" then we assume it to be the separator
8288 # otherwise default to the standard path separator (i.e. ":") - it is
8289 # assumed that no part of a normal pathname contains ";" but that should
8290 # okay in the real world where ";" in dirpaths is itself problematic.
8291 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8292 else
8293 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8295 # Ok, now we have the path, separated by spaces, we can step through it
8296 # and add multilib dir if necessary.
8297 lt_tmp_lt_search_path_spec=
8298 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8299 for lt_sys_path in $lt_search_path_spec; do
8300 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8301 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8302 else
8303 test -d "$lt_sys_path" && \
8304 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8306 done
8307 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8308 BEGIN {RS=" "; FS="/|\n";} {
8309 lt_foo="";
8310 lt_count=0;
8311 for (lt_i = NF; lt_i > 0; lt_i--) {
8312 if ($lt_i != "" && $lt_i != ".") {
8313 if ($lt_i == "..") {
8314 lt_count++;
8315 } else {
8316 if (lt_count == 0) {
8317 lt_foo="/" $lt_i lt_foo;
8318 } else {
8319 lt_count--;
8324 if (lt_foo != "") { lt_freq[lt_foo]++; }
8325 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8327 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8328 else
8329 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8331 library_names_spec=
8332 libname_spec='lib$name'
8333 soname_spec=
8334 shrext_cmds=".so"
8335 postinstall_cmds=
8336 postuninstall_cmds=
8337 finish_cmds=
8338 finish_eval=
8339 shlibpath_var=
8340 shlibpath_overrides_runpath=unknown
8341 version_type=none
8342 dynamic_linker="$host_os ld.so"
8343 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8344 need_lib_prefix=unknown
8345 hardcode_into_libs=no
8347 # when you set need_version to no, make sure it does not cause -set_version
8348 # flags to be left without arguments
8349 need_version=unknown
8351 case $host_os in
8352 aix3*)
8353 version_type=linux
8354 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8355 shlibpath_var=LIBPATH
8357 # AIX 3 has no versioning support, so we append a major version to the name.
8358 soname_spec='${libname}${release}${shared_ext}$major'
8361 aix[4-9]*)
8362 version_type=linux
8363 need_lib_prefix=no
8364 need_version=no
8365 hardcode_into_libs=yes
8366 if test "$host_cpu" = ia64; then
8367 # AIX 5 supports IA64
8368 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8369 shlibpath_var=LD_LIBRARY_PATH
8370 else
8371 # With GCC up to 2.95.x, collect2 would create an import file
8372 # for dependence libraries. The import file would start with
8373 # the line `#! .'. This would cause the generated library to
8374 # depend on `.', always an invalid library. This was fixed in
8375 # development snapshots of GCC prior to 3.0.
8376 case $host_os in
8377 aix4 | aix4.[01] | aix4.[01].*)
8378 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8379 echo ' yes '
8380 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8382 else
8383 can_build_shared=no
8386 esac
8387 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8388 # soname into executable. Probably we can add versioning support to
8389 # collect2, so additional links can be useful in future.
8390 if test "$aix_use_runtimelinking" = yes; then
8391 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8392 # instead of lib<name>.a to let people know that these are not
8393 # typical AIX shared libraries.
8394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8395 else
8396 # We preserve .a as extension for shared libraries through AIX4.2
8397 # and later when we are not doing run time linking.
8398 library_names_spec='${libname}${release}.a $libname.a'
8399 soname_spec='${libname}${release}${shared_ext}$major'
8401 shlibpath_var=LIBPATH
8405 amigaos*)
8406 if test "$host_cpu" = m68k; then
8407 library_names_spec='$libname.ixlibrary $libname.a'
8408 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8409 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
8410 else
8411 dynamic_linker=no
8415 beos*)
8416 library_names_spec='${libname}${shared_ext}'
8417 dynamic_linker="$host_os ld.so"
8418 shlibpath_var=LIBRARY_PATH
8421 bsdi[45]*)
8422 version_type=linux
8423 need_version=no
8424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8425 soname_spec='${libname}${release}${shared_ext}$major'
8426 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8427 shlibpath_var=LD_LIBRARY_PATH
8428 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8429 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8430 # the default ld.so.conf also contains /usr/contrib/lib and
8431 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8432 # libtool to hard-code these into programs
8435 cygwin* | mingw* | pw32*)
8436 version_type=windows
8437 shrext_cmds=".dll"
8438 need_version=no
8439 need_lib_prefix=no
8441 case $withGCC,$host_os in
8442 yes,cygwin* | yes,mingw* | yes,pw32*)
8443 library_names_spec='$libname.dll.a'
8444 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8445 postinstall_cmds='base_file=`basename \${file}`~
8446 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8447 dldir=$destdir/`dirname \$dlpath`~
8448 test -d \$dldir || mkdir -p \$dldir~
8449 $install_prog $dir/$dlname \$dldir/$dlname~
8450 chmod a+x \$dldir/$dlname~
8451 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8452 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8454 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8455 dlpath=$dir/\$dldll~
8456 $RM \$dlpath'
8457 shlibpath_overrides_runpath=yes
8459 case $host_os in
8460 cygwin*)
8461 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8462 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8463 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8465 mingw*)
8466 # MinGW DLLs use traditional 'lib' prefix
8467 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8468 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8469 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8470 # It is most probably a Windows format PATH printed by
8471 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8472 # path with ; separators, and with drive letters. We can handle the
8473 # drive letters (cygwin fileutils understands them), so leave them,
8474 # especially as we might pass files found there to a mingw objdump,
8475 # which wouldn't understand a cygwinified path. Ahh.
8476 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8477 else
8478 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8481 pw32*)
8482 # pw32 DLLs use 'pw' prefix rather than 'lib'
8483 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8485 esac
8489 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8491 esac
8492 dynamic_linker='Win32 ld.exe'
8493 # FIXME: first we should search . and the directory the executable is in
8494 shlibpath_var=PATH
8497 darwin* | rhapsody*)
8498 dynamic_linker="$host_os dyld"
8499 version_type=darwin
8500 need_lib_prefix=no
8501 need_version=no
8502 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8503 soname_spec='${libname}${release}${major}$shared_ext'
8504 shlibpath_overrides_runpath=yes
8505 shlibpath_var=DYLD_LIBRARY_PATH
8506 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8508 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8509 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8512 dgux*)
8513 version_type=linux
8514 need_lib_prefix=no
8515 need_version=no
8516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8517 soname_spec='${libname}${release}${shared_ext}$major'
8518 shlibpath_var=LD_LIBRARY_PATH
8521 freebsd1*)
8522 dynamic_linker=no
8525 freebsd* | dragonfly*)
8526 # DragonFly does not have aout. When/if they implement a new
8527 # versioning mechanism, adjust this.
8528 if test -x /usr/bin/objformat; then
8529 objformat=`/usr/bin/objformat`
8530 else
8531 case $host_os in
8532 freebsd[123]*) objformat=aout ;;
8533 *) objformat=elf ;;
8534 esac
8536 version_type=freebsd-$objformat
8537 case $version_type in
8538 freebsd-elf*)
8539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8540 need_version=no
8541 need_lib_prefix=no
8543 freebsd-*)
8544 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8545 need_version=yes
8547 esac
8548 shlibpath_var=LD_LIBRARY_PATH
8549 case $host_os in
8550 freebsd2*)
8551 shlibpath_overrides_runpath=yes
8553 freebsd3.[01]* | freebsdelf3.[01]*)
8554 shlibpath_overrides_runpath=yes
8555 hardcode_into_libs=yes
8557 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8558 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8559 shlibpath_overrides_runpath=no
8560 hardcode_into_libs=yes
8562 *) # from 4.6 on, and DragonFly
8563 shlibpath_overrides_runpath=yes
8564 hardcode_into_libs=yes
8566 esac
8569 gnu*)
8570 version_type=linux
8571 need_lib_prefix=no
8572 need_version=no
8573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8574 soname_spec='${libname}${release}${shared_ext}$major'
8575 shlibpath_var=LD_LIBRARY_PATH
8576 hardcode_into_libs=yes
8579 hpux9* | hpux10* | hpux11*)
8580 # Give a soname corresponding to the major version so that dld.sl refuses to
8581 # link against other versions.
8582 version_type=sunos
8583 need_lib_prefix=no
8584 need_version=no
8585 case $host_cpu in
8586 ia64*)
8587 shrext_cmds='.so'
8588 hardcode_into_libs=yes
8589 dynamic_linker="$host_os dld.so"
8590 shlibpath_var=LD_LIBRARY_PATH
8591 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8593 soname_spec='${libname}${release}${shared_ext}$major'
8594 if test "X$HPUX_IA64_MODE" = X32; then
8595 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8596 else
8597 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8599 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8601 hppa*64*)
8602 shrext_cmds='.sl'
8603 hardcode_into_libs=yes
8604 dynamic_linker="$host_os dld.sl"
8605 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8606 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8608 soname_spec='${libname}${release}${shared_ext}$major'
8609 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8610 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8613 shrext_cmds='.sl'
8614 dynamic_linker="$host_os dld.sl"
8615 shlibpath_var=SHLIB_PATH
8616 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8618 soname_spec='${libname}${release}${shared_ext}$major'
8620 esac
8621 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8622 postinstall_cmds='chmod 555 $lib'
8625 interix[3-9]*)
8626 version_type=linux
8627 need_lib_prefix=no
8628 need_version=no
8629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8630 soname_spec='${libname}${release}${shared_ext}$major'
8631 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8632 shlibpath_var=LD_LIBRARY_PATH
8633 shlibpath_overrides_runpath=no
8634 hardcode_into_libs=yes
8637 irix5* | irix6* | nonstopux*)
8638 case $host_os in
8639 nonstopux*) version_type=nonstopux ;;
8641 if test "$lt_cv_prog_gnu_ld" = yes; then
8642 version_type=linux
8643 else
8644 version_type=irix
8645 fi ;;
8646 esac
8647 need_lib_prefix=no
8648 need_version=no
8649 soname_spec='${libname}${release}${shared_ext}$major'
8650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8651 case $host_os in
8652 irix5* | nonstopux*)
8653 libsuff= shlibsuff=
8656 case $LD in # libtool.m4 will add one of these switches to LD
8657 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8658 libsuff= shlibsuff= libmagic=32-bit;;
8659 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8660 libsuff=32 shlibsuff=N32 libmagic=N32;;
8661 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8662 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8663 *) libsuff= shlibsuff= libmagic=never-match;;
8664 esac
8666 esac
8667 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8668 shlibpath_overrides_runpath=no
8669 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8670 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8671 hardcode_into_libs=yes
8674 # No shared lib support for Linux oldld, aout, or coff.
8675 linux*oldld* | linux*aout* | linux*coff*)
8676 dynamic_linker=no
8679 # This must be Linux ELF.
8680 linux* | k*bsd*-gnu)
8681 version_type=linux
8682 need_lib_prefix=no
8683 need_version=no
8684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8685 soname_spec='${libname}${release}${shared_ext}$major'
8686 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8687 shlibpath_var=LD_LIBRARY_PATH
8688 shlibpath_overrides_runpath=no
8689 # Some binutils ld are patched to set DT_RUNPATH
8690 save_LDFLAGS=$LDFLAGS
8691 save_libdir=$libdir
8692 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8693 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8694 cat >conftest.$ac_ext <<_ACEOF
8695 /* confdefs.h. */
8696 _ACEOF
8697 cat confdefs.h >>conftest.$ac_ext
8698 cat >>conftest.$ac_ext <<_ACEOF
8699 /* end confdefs.h. */
8702 main ()
8706 return 0;
8708 _ACEOF
8709 rm -f conftest.$ac_objext conftest$ac_exeext
8710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8711 (eval $ac_link) 2>conftest.er1
8712 ac_status=$?
8713 grep -v '^ *+' conftest.er1 >conftest.err
8714 rm -f conftest.er1
8715 cat conftest.err >&5
8716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717 (exit $ac_status); } &&
8718 { ac_try='test -z "$ac_c_werror_flag"
8719 || test ! -s conftest.err'
8720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8721 (eval $ac_try) 2>&5
8722 ac_status=$?
8723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8724 (exit $ac_status); }; } &&
8725 { ac_try='test -s conftest$ac_exeext'
8726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8727 (eval $ac_try) 2>&5
8728 ac_status=$?
8729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8730 (exit $ac_status); }; }; then
8731 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
8732 shlibpath_overrides_runpath=yes
8735 else
8736 echo "$as_me: failed program was:" >&5
8737 sed 's/^/| /' conftest.$ac_ext >&5
8740 rm -f conftest.err conftest.$ac_objext \
8741 conftest$ac_exeext conftest.$ac_ext
8742 LDFLAGS=$save_LDFLAGS
8743 libdir=$save_libdir
8745 # This implies no fast_install, which is unacceptable.
8746 # Some rework will be needed to allow for fast_install
8747 # before this can be enabled.
8748 hardcode_into_libs=yes
8750 # Append ld.so.conf contents to the search path
8751 if test -f /etc/ld.so.conf; then
8752 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8753 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8756 # We used to test for /lib/ld.so.1 and disable shared libraries on
8757 # powerpc, because MkLinux only supported shared libraries with the
8758 # GNU dynamic linker. Since this was broken with cross compilers,
8759 # most powerpc-linux boxes support dynamic linking these days and
8760 # people can always --disable-shared, the test was removed, and we
8761 # assume the GNU/Linux dynamic linker is in use.
8762 dynamic_linker='GNU/Linux ld.so'
8765 netbsd*)
8766 version_type=sunos
8767 need_lib_prefix=no
8768 need_version=no
8769 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8771 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8772 dynamic_linker='NetBSD (a.out) ld.so'
8773 else
8774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8775 soname_spec='${libname}${release}${shared_ext}$major'
8776 dynamic_linker='NetBSD ld.elf_so'
8778 shlibpath_var=LD_LIBRARY_PATH
8779 shlibpath_overrides_runpath=yes
8780 hardcode_into_libs=yes
8783 newsos6)
8784 version_type=linux
8785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8786 shlibpath_var=LD_LIBRARY_PATH
8787 shlibpath_overrides_runpath=yes
8790 *nto* | *qnx*)
8791 version_type=qnx
8792 need_lib_prefix=no
8793 need_version=no
8794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8795 soname_spec='${libname}${release}${shared_ext}$major'
8796 shlibpath_var=LD_LIBRARY_PATH
8797 shlibpath_overrides_runpath=no
8798 hardcode_into_libs=yes
8799 dynamic_linker='ldqnx.so'
8802 openbsd*)
8803 version_type=sunos
8804 sys_lib_dlsearch_path_spec="/usr/lib"
8805 need_lib_prefix=no
8806 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8807 case $host_os in
8808 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8809 *) need_version=no ;;
8810 esac
8811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8812 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8813 shlibpath_var=LD_LIBRARY_PATH
8814 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8815 case $host_os in
8816 openbsd2.[89] | openbsd2.[89].*)
8817 shlibpath_overrides_runpath=no
8820 shlibpath_overrides_runpath=yes
8822 esac
8823 else
8824 shlibpath_overrides_runpath=yes
8828 os2*)
8829 libname_spec='$name'
8830 shrext_cmds=".dll"
8831 need_lib_prefix=no
8832 library_names_spec='$libname${shared_ext} $libname.a'
8833 dynamic_linker='OS/2 ld.exe'
8834 shlibpath_var=LIBPATH
8837 osf3* | osf4* | osf5*)
8838 version_type=osf
8839 need_lib_prefix=no
8840 need_version=no
8841 soname_spec='${libname}${release}${shared_ext}$major'
8842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8843 shlibpath_var=LD_LIBRARY_PATH
8844 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8845 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8848 rdos*)
8849 dynamic_linker=no
8852 solaris*)
8853 version_type=linux
8854 need_lib_prefix=no
8855 need_version=no
8856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8857 soname_spec='${libname}${release}${shared_ext}$major'
8858 shlibpath_var=LD_LIBRARY_PATH
8859 shlibpath_overrides_runpath=yes
8860 hardcode_into_libs=yes
8861 # ldd complains unless libraries are executable
8862 postinstall_cmds='chmod +x $lib'
8865 sunos4*)
8866 version_type=sunos
8867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8868 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8869 shlibpath_var=LD_LIBRARY_PATH
8870 shlibpath_overrides_runpath=yes
8871 if test "$with_gnu_ld" = yes; then
8872 need_lib_prefix=no
8874 need_version=yes
8877 sysv4 | sysv4.3*)
8878 version_type=linux
8879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8880 soname_spec='${libname}${release}${shared_ext}$major'
8881 shlibpath_var=LD_LIBRARY_PATH
8882 case $host_vendor in
8883 sni)
8884 shlibpath_overrides_runpath=no
8885 need_lib_prefix=no
8886 runpath_var=LD_RUN_PATH
8888 siemens)
8889 need_lib_prefix=no
8891 motorola)
8892 need_lib_prefix=no
8893 need_version=no
8894 shlibpath_overrides_runpath=no
8895 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8897 esac
8900 sysv4*MP*)
8901 if test -d /usr/nec ;then
8902 version_type=linux
8903 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8904 soname_spec='$libname${shared_ext}.$major'
8905 shlibpath_var=LD_LIBRARY_PATH
8909 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8910 version_type=freebsd-elf
8911 need_lib_prefix=no
8912 need_version=no
8913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8914 soname_spec='${libname}${release}${shared_ext}$major'
8915 shlibpath_var=LD_LIBRARY_PATH
8916 shlibpath_overrides_runpath=yes
8917 hardcode_into_libs=yes
8918 if test "$with_gnu_ld" = yes; then
8919 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8920 else
8921 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8922 case $host_os in
8923 sco3.2v5*)
8924 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8926 esac
8928 sys_lib_dlsearch_path_spec='/usr/lib'
8931 tpf*)
8932 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
8933 version_type=linux
8934 need_lib_prefix=no
8935 need_version=no
8936 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8937 shlibpath_var=LD_LIBRARY_PATH
8938 shlibpath_overrides_runpath=no
8939 hardcode_into_libs=yes
8942 uts4*)
8943 version_type=linux
8944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8945 soname_spec='${libname}${release}${shared_ext}$major'
8946 shlibpath_var=LD_LIBRARY_PATH
8950 dynamic_linker=no
8952 esac
8953 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8954 echo "${ECHO_T}$dynamic_linker" >&6
8955 test "$dynamic_linker" = no && can_build_shared=no
8957 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8958 if test "$GCC" = yes; then
8959 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9048 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9049 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9050 hardcode_action=
9051 if test -n "$hardcode_libdir_flag_spec" ||
9052 test -n "$runpath_var" ||
9053 test "X$hardcode_automatic" = "Xyes" ; then
9055 # We can hardcode non-existent directories.
9056 if test "$hardcode_direct" != no &&
9057 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9058 # have to relink, otherwise we might link with an installed library
9059 # when we should be linking with a yet-to-be-installed one
9060 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9061 test "$hardcode_minus_L" != no; then
9062 # Linking always hardcodes the temporary library directory.
9063 hardcode_action=relink
9064 else
9065 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9066 hardcode_action=immediate
9068 else
9069 # We cannot hardcode anything, or else we can only hardcode existing
9070 # directories.
9071 hardcode_action=unsupported
9073 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9074 echo "${ECHO_T}$hardcode_action" >&6
9076 if test "$hardcode_action" = relink ||
9077 test "$inherit_rpath" = yes; then
9078 # Fast installation is not supported
9079 enable_fast_install=no
9080 elif test "$shlibpath_overrides_runpath" = yes ||
9081 test "$enable_shared" = no; then
9082 # Fast installation is not necessary
9083 enable_fast_install=needless
9091 if test "x$enable_dlopen" != xyes; then
9092 enable_dlopen=unknown
9093 enable_dlopen_self=unknown
9094 enable_dlopen_self_static=unknown
9095 else
9096 lt_cv_dlopen=no
9097 lt_cv_dlopen_libs=
9099 case $host_os in
9100 beos*)
9101 lt_cv_dlopen="load_add_on"
9102 lt_cv_dlopen_libs=
9103 lt_cv_dlopen_self=yes
9106 mingw* | pw32*)
9107 lt_cv_dlopen="LoadLibrary"
9108 lt_cv_dlopen_libs=
9111 cygwin*)
9112 lt_cv_dlopen="dlopen"
9113 lt_cv_dlopen_libs=
9116 darwin*)
9117 # if libdl is installed we need to link against it
9118 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9119 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9120 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9121 echo $ECHO_N "(cached) $ECHO_C" >&6
9122 else
9123 ac_check_lib_save_LIBS=$LIBS
9124 LIBS="-ldl $LIBS"
9125 cat >conftest.$ac_ext <<_ACEOF
9126 /* confdefs.h. */
9127 _ACEOF
9128 cat confdefs.h >>conftest.$ac_ext
9129 cat >>conftest.$ac_ext <<_ACEOF
9130 /* end confdefs.h. */
9132 /* Override any gcc2 internal prototype to avoid an error. */
9133 #ifdef __cplusplus
9134 extern "C"
9135 #endif
9136 /* We use char because int might match the return type of a gcc2
9137 builtin and then its argument prototype would still apply. */
9138 char dlopen ();
9140 main ()
9142 dlopen ();
9144 return 0;
9146 _ACEOF
9147 rm -f conftest.$ac_objext conftest$ac_exeext
9148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9149 (eval $ac_link) 2>conftest.er1
9150 ac_status=$?
9151 grep -v '^ *+' conftest.er1 >conftest.err
9152 rm -f conftest.er1
9153 cat conftest.err >&5
9154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9155 (exit $ac_status); } &&
9156 { ac_try='test -z "$ac_c_werror_flag"
9157 || test ! -s conftest.err'
9158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9159 (eval $ac_try) 2>&5
9160 ac_status=$?
9161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9162 (exit $ac_status); }; } &&
9163 { ac_try='test -s conftest$ac_exeext'
9164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9165 (eval $ac_try) 2>&5
9166 ac_status=$?
9167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9168 (exit $ac_status); }; }; then
9169 ac_cv_lib_dl_dlopen=yes
9170 else
9171 echo "$as_me: failed program was:" >&5
9172 sed 's/^/| /' conftest.$ac_ext >&5
9174 ac_cv_lib_dl_dlopen=no
9176 rm -f conftest.err conftest.$ac_objext \
9177 conftest$ac_exeext conftest.$ac_ext
9178 LIBS=$ac_check_lib_save_LIBS
9180 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9181 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9182 if test $ac_cv_lib_dl_dlopen = yes; then
9183 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9184 else
9186 lt_cv_dlopen="dyld"
9187 lt_cv_dlopen_libs=
9188 lt_cv_dlopen_self=yes
9195 echo "$as_me:$LINENO: checking for shl_load" >&5
9196 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9197 if test "${ac_cv_func_shl_load+set}" = set; then
9198 echo $ECHO_N "(cached) $ECHO_C" >&6
9199 else
9200 cat >conftest.$ac_ext <<_ACEOF
9201 /* confdefs.h. */
9202 _ACEOF
9203 cat confdefs.h >>conftest.$ac_ext
9204 cat >>conftest.$ac_ext <<_ACEOF
9205 /* end confdefs.h. */
9206 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9207 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9208 #define shl_load innocuous_shl_load
9210 /* System header to define __stub macros and hopefully few prototypes,
9211 which can conflict with char shl_load (); below.
9212 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9213 <limits.h> exists even on freestanding compilers. */
9215 #ifdef __STDC__
9216 # include <limits.h>
9217 #else
9218 # include <assert.h>
9219 #endif
9221 #undef shl_load
9223 /* Override any gcc2 internal prototype to avoid an error. */
9224 #ifdef __cplusplus
9225 extern "C"
9227 #endif
9228 /* We use char because int might match the return type of a gcc2
9229 builtin and then its argument prototype would still apply. */
9230 char shl_load ();
9231 /* The GNU C library defines this for functions which it implements
9232 to always fail with ENOSYS. Some functions are actually named
9233 something starting with __ and the normal name is an alias. */
9234 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9235 choke me
9236 #else
9237 char (*f) () = shl_load;
9238 #endif
9239 #ifdef __cplusplus
9241 #endif
9244 main ()
9246 return f != shl_load;
9248 return 0;
9250 _ACEOF
9251 rm -f conftest.$ac_objext conftest$ac_exeext
9252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9253 (eval $ac_link) 2>conftest.er1
9254 ac_status=$?
9255 grep -v '^ *+' conftest.er1 >conftest.err
9256 rm -f conftest.er1
9257 cat conftest.err >&5
9258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259 (exit $ac_status); } &&
9260 { ac_try='test -z "$ac_c_werror_flag"
9261 || test ! -s conftest.err'
9262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9263 (eval $ac_try) 2>&5
9264 ac_status=$?
9265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9266 (exit $ac_status); }; } &&
9267 { ac_try='test -s conftest$ac_exeext'
9268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9269 (eval $ac_try) 2>&5
9270 ac_status=$?
9271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9272 (exit $ac_status); }; }; then
9273 ac_cv_func_shl_load=yes
9274 else
9275 echo "$as_me: failed program was:" >&5
9276 sed 's/^/| /' conftest.$ac_ext >&5
9278 ac_cv_func_shl_load=no
9280 rm -f conftest.err conftest.$ac_objext \
9281 conftest$ac_exeext conftest.$ac_ext
9283 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9284 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9285 if test $ac_cv_func_shl_load = yes; then
9286 lt_cv_dlopen="shl_load"
9287 else
9288 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9289 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9290 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9291 echo $ECHO_N "(cached) $ECHO_C" >&6
9292 else
9293 ac_check_lib_save_LIBS=$LIBS
9294 LIBS="-ldld $LIBS"
9295 cat >conftest.$ac_ext <<_ACEOF
9296 /* confdefs.h. */
9297 _ACEOF
9298 cat confdefs.h >>conftest.$ac_ext
9299 cat >>conftest.$ac_ext <<_ACEOF
9300 /* end confdefs.h. */
9302 /* Override any gcc2 internal prototype to avoid an error. */
9303 #ifdef __cplusplus
9304 extern "C"
9305 #endif
9306 /* We use char because int might match the return type of a gcc2
9307 builtin and then its argument prototype would still apply. */
9308 char shl_load ();
9310 main ()
9312 shl_load ();
9314 return 0;
9316 _ACEOF
9317 rm -f conftest.$ac_objext conftest$ac_exeext
9318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9319 (eval $ac_link) 2>conftest.er1
9320 ac_status=$?
9321 grep -v '^ *+' conftest.er1 >conftest.err
9322 rm -f conftest.er1
9323 cat conftest.err >&5
9324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9325 (exit $ac_status); } &&
9326 { ac_try='test -z "$ac_c_werror_flag"
9327 || test ! -s conftest.err'
9328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9329 (eval $ac_try) 2>&5
9330 ac_status=$?
9331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9332 (exit $ac_status); }; } &&
9333 { ac_try='test -s conftest$ac_exeext'
9334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9335 (eval $ac_try) 2>&5
9336 ac_status=$?
9337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9338 (exit $ac_status); }; }; then
9339 ac_cv_lib_dld_shl_load=yes
9340 else
9341 echo "$as_me: failed program was:" >&5
9342 sed 's/^/| /' conftest.$ac_ext >&5
9344 ac_cv_lib_dld_shl_load=no
9346 rm -f conftest.err conftest.$ac_objext \
9347 conftest$ac_exeext conftest.$ac_ext
9348 LIBS=$ac_check_lib_save_LIBS
9350 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9351 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9352 if test $ac_cv_lib_dld_shl_load = yes; then
9353 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9354 else
9355 echo "$as_me:$LINENO: checking for dlopen" >&5
9356 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9357 if test "${ac_cv_func_dlopen+set}" = set; then
9358 echo $ECHO_N "(cached) $ECHO_C" >&6
9359 else
9360 cat >conftest.$ac_ext <<_ACEOF
9361 /* confdefs.h. */
9362 _ACEOF
9363 cat confdefs.h >>conftest.$ac_ext
9364 cat >>conftest.$ac_ext <<_ACEOF
9365 /* end confdefs.h. */
9366 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9367 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9368 #define dlopen innocuous_dlopen
9370 /* System header to define __stub macros and hopefully few prototypes,
9371 which can conflict with char dlopen (); below.
9372 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9373 <limits.h> exists even on freestanding compilers. */
9375 #ifdef __STDC__
9376 # include <limits.h>
9377 #else
9378 # include <assert.h>
9379 #endif
9381 #undef dlopen
9383 /* Override any gcc2 internal prototype to avoid an error. */
9384 #ifdef __cplusplus
9385 extern "C"
9387 #endif
9388 /* We use char because int might match the return type of a gcc2
9389 builtin and then its argument prototype would still apply. */
9390 char dlopen ();
9391 /* The GNU C library defines this for functions which it implements
9392 to always fail with ENOSYS. Some functions are actually named
9393 something starting with __ and the normal name is an alias. */
9394 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9395 choke me
9396 #else
9397 char (*f) () = dlopen;
9398 #endif
9399 #ifdef __cplusplus
9401 #endif
9404 main ()
9406 return f != dlopen;
9408 return 0;
9410 _ACEOF
9411 rm -f conftest.$ac_objext conftest$ac_exeext
9412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9413 (eval $ac_link) 2>conftest.er1
9414 ac_status=$?
9415 grep -v '^ *+' conftest.er1 >conftest.err
9416 rm -f conftest.er1
9417 cat conftest.err >&5
9418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9419 (exit $ac_status); } &&
9420 { ac_try='test -z "$ac_c_werror_flag"
9421 || test ! -s conftest.err'
9422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9423 (eval $ac_try) 2>&5
9424 ac_status=$?
9425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9426 (exit $ac_status); }; } &&
9427 { ac_try='test -s conftest$ac_exeext'
9428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9429 (eval $ac_try) 2>&5
9430 ac_status=$?
9431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9432 (exit $ac_status); }; }; then
9433 ac_cv_func_dlopen=yes
9434 else
9435 echo "$as_me: failed program was:" >&5
9436 sed 's/^/| /' conftest.$ac_ext >&5
9438 ac_cv_func_dlopen=no
9440 rm -f conftest.err conftest.$ac_objext \
9441 conftest$ac_exeext conftest.$ac_ext
9443 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9444 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9445 if test $ac_cv_func_dlopen = yes; then
9446 lt_cv_dlopen="dlopen"
9447 else
9448 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9449 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9450 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9451 echo $ECHO_N "(cached) $ECHO_C" >&6
9452 else
9453 ac_check_lib_save_LIBS=$LIBS
9454 LIBS="-ldl $LIBS"
9455 cat >conftest.$ac_ext <<_ACEOF
9456 /* confdefs.h. */
9457 _ACEOF
9458 cat confdefs.h >>conftest.$ac_ext
9459 cat >>conftest.$ac_ext <<_ACEOF
9460 /* end confdefs.h. */
9462 /* Override any gcc2 internal prototype to avoid an error. */
9463 #ifdef __cplusplus
9464 extern "C"
9465 #endif
9466 /* We use char because int might match the return type of a gcc2
9467 builtin and then its argument prototype would still apply. */
9468 char dlopen ();
9470 main ()
9472 dlopen ();
9474 return 0;
9476 _ACEOF
9477 rm -f conftest.$ac_objext conftest$ac_exeext
9478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9479 (eval $ac_link) 2>conftest.er1
9480 ac_status=$?
9481 grep -v '^ *+' conftest.er1 >conftest.err
9482 rm -f conftest.er1
9483 cat conftest.err >&5
9484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9485 (exit $ac_status); } &&
9486 { ac_try='test -z "$ac_c_werror_flag"
9487 || test ! -s conftest.err'
9488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9489 (eval $ac_try) 2>&5
9490 ac_status=$?
9491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9492 (exit $ac_status); }; } &&
9493 { ac_try='test -s conftest$ac_exeext'
9494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9495 (eval $ac_try) 2>&5
9496 ac_status=$?
9497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9498 (exit $ac_status); }; }; then
9499 ac_cv_lib_dl_dlopen=yes
9500 else
9501 echo "$as_me: failed program was:" >&5
9502 sed 's/^/| /' conftest.$ac_ext >&5
9504 ac_cv_lib_dl_dlopen=no
9506 rm -f conftest.err conftest.$ac_objext \
9507 conftest$ac_exeext conftest.$ac_ext
9508 LIBS=$ac_check_lib_save_LIBS
9510 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9511 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9512 if test $ac_cv_lib_dl_dlopen = yes; then
9513 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9514 else
9515 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9516 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9517 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9518 echo $ECHO_N "(cached) $ECHO_C" >&6
9519 else
9520 ac_check_lib_save_LIBS=$LIBS
9521 LIBS="-lsvld $LIBS"
9522 cat >conftest.$ac_ext <<_ACEOF
9523 /* confdefs.h. */
9524 _ACEOF
9525 cat confdefs.h >>conftest.$ac_ext
9526 cat >>conftest.$ac_ext <<_ACEOF
9527 /* end confdefs.h. */
9529 /* Override any gcc2 internal prototype to avoid an error. */
9530 #ifdef __cplusplus
9531 extern "C"
9532 #endif
9533 /* We use char because int might match the return type of a gcc2
9534 builtin and then its argument prototype would still apply. */
9535 char dlopen ();
9537 main ()
9539 dlopen ();
9541 return 0;
9543 _ACEOF
9544 rm -f conftest.$ac_objext conftest$ac_exeext
9545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9546 (eval $ac_link) 2>conftest.er1
9547 ac_status=$?
9548 grep -v '^ *+' conftest.er1 >conftest.err
9549 rm -f conftest.er1
9550 cat conftest.err >&5
9551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9552 (exit $ac_status); } &&
9553 { ac_try='test -z "$ac_c_werror_flag"
9554 || test ! -s conftest.err'
9555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9556 (eval $ac_try) 2>&5
9557 ac_status=$?
9558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9559 (exit $ac_status); }; } &&
9560 { ac_try='test -s conftest$ac_exeext'
9561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9562 (eval $ac_try) 2>&5
9563 ac_status=$?
9564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9565 (exit $ac_status); }; }; then
9566 ac_cv_lib_svld_dlopen=yes
9567 else
9568 echo "$as_me: failed program was:" >&5
9569 sed 's/^/| /' conftest.$ac_ext >&5
9571 ac_cv_lib_svld_dlopen=no
9573 rm -f conftest.err conftest.$ac_objext \
9574 conftest$ac_exeext conftest.$ac_ext
9575 LIBS=$ac_check_lib_save_LIBS
9577 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9578 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9579 if test $ac_cv_lib_svld_dlopen = yes; then
9580 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9581 else
9582 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9583 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9584 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9585 echo $ECHO_N "(cached) $ECHO_C" >&6
9586 else
9587 ac_check_lib_save_LIBS=$LIBS
9588 LIBS="-ldld $LIBS"
9589 cat >conftest.$ac_ext <<_ACEOF
9590 /* confdefs.h. */
9591 _ACEOF
9592 cat confdefs.h >>conftest.$ac_ext
9593 cat >>conftest.$ac_ext <<_ACEOF
9594 /* end confdefs.h. */
9596 /* Override any gcc2 internal prototype to avoid an error. */
9597 #ifdef __cplusplus
9598 extern "C"
9599 #endif
9600 /* We use char because int might match the return type of a gcc2
9601 builtin and then its argument prototype would still apply. */
9602 char dld_link ();
9604 main ()
9606 dld_link ();
9608 return 0;
9610 _ACEOF
9611 rm -f conftest.$ac_objext conftest$ac_exeext
9612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9613 (eval $ac_link) 2>conftest.er1
9614 ac_status=$?
9615 grep -v '^ *+' conftest.er1 >conftest.err
9616 rm -f conftest.er1
9617 cat conftest.err >&5
9618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9619 (exit $ac_status); } &&
9620 { ac_try='test -z "$ac_c_werror_flag"
9621 || test ! -s conftest.err'
9622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9623 (eval $ac_try) 2>&5
9624 ac_status=$?
9625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9626 (exit $ac_status); }; } &&
9627 { ac_try='test -s conftest$ac_exeext'
9628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9629 (eval $ac_try) 2>&5
9630 ac_status=$?
9631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632 (exit $ac_status); }; }; then
9633 ac_cv_lib_dld_dld_link=yes
9634 else
9635 echo "$as_me: failed program was:" >&5
9636 sed 's/^/| /' conftest.$ac_ext >&5
9638 ac_cv_lib_dld_dld_link=no
9640 rm -f conftest.err conftest.$ac_objext \
9641 conftest$ac_exeext conftest.$ac_ext
9642 LIBS=$ac_check_lib_save_LIBS
9644 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9645 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9646 if test $ac_cv_lib_dld_dld_link = yes; then
9647 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9666 esac
9668 if test "x$lt_cv_dlopen" != xno; then
9669 enable_dlopen=yes
9670 else
9671 enable_dlopen=no
9674 case $lt_cv_dlopen in
9675 dlopen)
9676 save_CPPFLAGS="$CPPFLAGS"
9677 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9679 save_LDFLAGS="$LDFLAGS"
9680 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9682 save_LIBS="$LIBS"
9683 LIBS="$lt_cv_dlopen_libs $LIBS"
9685 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9686 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9687 if test "${lt_cv_dlopen_self+set}" = set; then
9688 echo $ECHO_N "(cached) $ECHO_C" >&6
9689 else
9690 if test "$cross_compiling" = yes; then :
9691 lt_cv_dlopen_self=cross
9692 else
9693 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9694 lt_status=$lt_dlunknown
9695 cat > conftest.$ac_ext <<_LT_EOF
9696 #line 9696 "configure"
9697 #include "confdefs.h"
9699 #if HAVE_DLFCN_H
9700 #include <dlfcn.h>
9701 #endif
9703 #include <stdio.h>
9705 #ifdef RTLD_GLOBAL
9706 # define LT_DLGLOBAL RTLD_GLOBAL
9707 #else
9708 # ifdef DL_GLOBAL
9709 # define LT_DLGLOBAL DL_GLOBAL
9710 # else
9711 # define LT_DLGLOBAL 0
9712 # endif
9713 #endif
9715 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9716 find out it does not work in some platform. */
9717 #ifndef LT_DLLAZY_OR_NOW
9718 # ifdef RTLD_LAZY
9719 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9720 # else
9721 # ifdef DL_LAZY
9722 # define LT_DLLAZY_OR_NOW DL_LAZY
9723 # else
9724 # ifdef RTLD_NOW
9725 # define LT_DLLAZY_OR_NOW RTLD_NOW
9726 # else
9727 # ifdef DL_NOW
9728 # define LT_DLLAZY_OR_NOW DL_NOW
9729 # else
9730 # define LT_DLLAZY_OR_NOW 0
9731 # endif
9732 # endif
9733 # endif
9734 # endif
9735 #endif
9737 #ifdef __cplusplus
9738 extern "C" void exit (int);
9739 #endif
9741 void fnord() { int i=42;}
9742 int main ()
9744 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9745 int status = $lt_dlunknown;
9747 if (self)
9749 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9750 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9751 /* dlclose (self); */
9753 else
9754 puts (dlerror ());
9756 exit (status);
9758 _LT_EOF
9759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9760 (eval $ac_link) 2>&5
9761 ac_status=$?
9762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9763 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9764 (./conftest; exit; ) >&5 2>/dev/null
9765 lt_status=$?
9766 case x$lt_status in
9767 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9768 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9769 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9770 esac
9771 else :
9772 # compilation failed
9773 lt_cv_dlopen_self=no
9776 rm -fr conftest*
9780 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9781 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9783 if test "x$lt_cv_dlopen_self" = xyes; then
9784 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9785 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9786 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9787 if test "${lt_cv_dlopen_self_static+set}" = set; then
9788 echo $ECHO_N "(cached) $ECHO_C" >&6
9789 else
9790 if test "$cross_compiling" = yes; then :
9791 lt_cv_dlopen_self_static=cross
9792 else
9793 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9794 lt_status=$lt_dlunknown
9795 cat > conftest.$ac_ext <<_LT_EOF
9796 #line 9796 "configure"
9797 #include "confdefs.h"
9799 #if HAVE_DLFCN_H
9800 #include <dlfcn.h>
9801 #endif
9803 #include <stdio.h>
9805 #ifdef RTLD_GLOBAL
9806 # define LT_DLGLOBAL RTLD_GLOBAL
9807 #else
9808 # ifdef DL_GLOBAL
9809 # define LT_DLGLOBAL DL_GLOBAL
9810 # else
9811 # define LT_DLGLOBAL 0
9812 # endif
9813 #endif
9815 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9816 find out it does not work in some platform. */
9817 #ifndef LT_DLLAZY_OR_NOW
9818 # ifdef RTLD_LAZY
9819 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9820 # else
9821 # ifdef DL_LAZY
9822 # define LT_DLLAZY_OR_NOW DL_LAZY
9823 # else
9824 # ifdef RTLD_NOW
9825 # define LT_DLLAZY_OR_NOW RTLD_NOW
9826 # else
9827 # ifdef DL_NOW
9828 # define LT_DLLAZY_OR_NOW DL_NOW
9829 # else
9830 # define LT_DLLAZY_OR_NOW 0
9831 # endif
9832 # endif
9833 # endif
9834 # endif
9835 #endif
9837 #ifdef __cplusplus
9838 extern "C" void exit (int);
9839 #endif
9841 void fnord() { int i=42;}
9842 int main ()
9844 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9845 int status = $lt_dlunknown;
9847 if (self)
9849 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9850 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9851 /* dlclose (self); */
9853 else
9854 puts (dlerror ());
9856 exit (status);
9858 _LT_EOF
9859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9860 (eval $ac_link) 2>&5
9861 ac_status=$?
9862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9864 (./conftest; exit; ) >&5 2>/dev/null
9865 lt_status=$?
9866 case x$lt_status in
9867 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9868 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9869 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9870 esac
9871 else :
9872 # compilation failed
9873 lt_cv_dlopen_self_static=no
9876 rm -fr conftest*
9880 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9881 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9884 CPPFLAGS="$save_CPPFLAGS"
9885 LDFLAGS="$save_LDFLAGS"
9886 LIBS="$save_LIBS"
9888 esac
9890 case $lt_cv_dlopen_self in
9891 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9892 *) enable_dlopen_self=unknown ;;
9893 esac
9895 case $lt_cv_dlopen_self_static in
9896 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9897 *) enable_dlopen_self_static=unknown ;;
9898 esac
9917 striplib=
9918 old_striplib=
9919 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9920 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9921 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9922 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9923 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9924 echo "$as_me:$LINENO: result: yes" >&5
9925 echo "${ECHO_T}yes" >&6
9926 else
9927 # FIXME - insert some real tests, host_os isn't really good enough
9928 case $host_os in
9929 darwin*)
9930 if test -n "$STRIP" ; then
9931 striplib="$STRIP -x"
9932 old_striplib="$STRIP -S"
9933 echo "$as_me:$LINENO: result: yes" >&5
9934 echo "${ECHO_T}yes" >&6
9935 else
9936 echo "$as_me:$LINENO: result: no" >&5
9937 echo "${ECHO_T}no" >&6
9941 echo "$as_me:$LINENO: result: no" >&5
9942 echo "${ECHO_T}no" >&6
9944 esac
9958 # Report which library types will actually be built
9959 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9960 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9961 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9962 echo "${ECHO_T}$can_build_shared" >&6
9964 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9965 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9966 test "$can_build_shared" = "no" && enable_shared=no
9968 # On AIX, shared libraries and static libraries use the same namespace, and
9969 # are all built from PIC.
9970 case $host_os in
9971 aix3*)
9972 test "$enable_shared" = yes && enable_static=no
9973 if test -n "$RANLIB"; then
9974 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9975 postinstall_cmds='$RANLIB $lib'
9979 aix[4-9]*)
9980 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9981 test "$enable_shared" = yes && enable_static=no
9984 esac
9985 echo "$as_me:$LINENO: result: $enable_shared" >&5
9986 echo "${ECHO_T}$enable_shared" >&6
9988 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9989 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9990 # Make sure either enable_shared or enable_static is yes.
9991 test "$enable_shared" = yes || enable_static=yes
9992 echo "$as_me:$LINENO: result: $enable_static" >&5
9993 echo "${ECHO_T}$enable_static" >&6
9999 ac_ext=c
10000 ac_cpp='$CPP $CPPFLAGS'
10001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10005 CC="$lt_save_CC"
10019 ac_config_commands="$ac_config_commands libtool"
10024 # Only expand once:
10030 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
10031 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
10032 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
10033 if test "${enable_maintainer_mode+set}" = set; then
10034 enableval="$enable_maintainer_mode"
10035 USE_MAINTAINER_MODE=$enableval
10036 else
10037 USE_MAINTAINER_MODE=no
10039 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
10040 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
10043 if test $USE_MAINTAINER_MODE = yes; then
10044 MAINTAINER_MODE_TRUE=
10045 MAINTAINER_MODE_FALSE='#'
10046 else
10047 MAINTAINER_MODE_TRUE='#'
10048 MAINTAINER_MODE_FALSE=
10051 MAINT=$MAINTAINER_MODE_TRUE
10055 # We need gfortran to compile parts of the library
10056 # We can't use AC_PROG_FC because it expects a fully working gfortran.
10057 #AC_PROG_FC(gfortran)
10058 FC="$GFORTRAN"
10059 ac_ext=${FC_SRCEXT-f}
10060 ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
10061 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
10062 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
10063 if test -n "$ac_tool_prefix"; then
10064 for ac_prog in gfortran
10066 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10067 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10068 echo "$as_me:$LINENO: checking for $ac_word" >&5
10069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10070 if test "${ac_cv_prog_FC+set}" = set; then
10071 echo $ECHO_N "(cached) $ECHO_C" >&6
10072 else
10073 if test -n "$FC"; then
10074 ac_cv_prog_FC="$FC" # Let the user override the test.
10075 else
10076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10077 for as_dir in $PATH
10079 IFS=$as_save_IFS
10080 test -z "$as_dir" && as_dir=.
10081 for ac_exec_ext in '' $ac_executable_extensions; do
10082 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10083 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
10084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10085 break 2
10087 done
10088 done
10092 FC=$ac_cv_prog_FC
10093 if test -n "$FC"; then
10094 echo "$as_me:$LINENO: result: $FC" >&5
10095 echo "${ECHO_T}$FC" >&6
10096 else
10097 echo "$as_me:$LINENO: result: no" >&5
10098 echo "${ECHO_T}no" >&6
10101 test -n "$FC" && break
10102 done
10104 if test -z "$FC"; then
10105 ac_ct_FC=$FC
10106 for ac_prog in gfortran
10108 # Extract the first word of "$ac_prog", so it can be a program name with args.
10109 set dummy $ac_prog; ac_word=$2
10110 echo "$as_me:$LINENO: checking for $ac_word" >&5
10111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10112 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then
10113 echo $ECHO_N "(cached) $ECHO_C" >&6
10114 else
10115 if test -n "$ac_ct_FC"; then
10116 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
10117 else
10118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10119 for as_dir in $PATH
10121 IFS=$as_save_IFS
10122 test -z "$as_dir" && as_dir=.
10123 for ac_exec_ext in '' $ac_executable_extensions; do
10124 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10125 ac_cv_prog_ac_ct_FC="$ac_prog"
10126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10127 break 2
10129 done
10130 done
10134 ac_ct_FC=$ac_cv_prog_ac_ct_FC
10135 if test -n "$ac_ct_FC"; then
10136 echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
10137 echo "${ECHO_T}$ac_ct_FC" >&6
10138 else
10139 echo "$as_me:$LINENO: result: no" >&5
10140 echo "${ECHO_T}no" >&6
10143 test -n "$ac_ct_FC" && break
10144 done
10146 FC=$ac_ct_FC
10150 # Provide some information about the compiler.
10151 echo "$as_me:10151:" \
10152 "checking for Fortran compiler version" >&5
10153 ac_compiler=`set X $ac_compile; echo $2`
10154 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10155 (eval $ac_compiler --version </dev/null >&5) 2>&5
10156 ac_status=$?
10157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10158 (exit $ac_status); }
10159 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10160 (eval $ac_compiler -v </dev/null >&5) 2>&5
10161 ac_status=$?
10162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10163 (exit $ac_status); }
10164 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10165 (eval $ac_compiler -V </dev/null >&5) 2>&5
10166 ac_status=$?
10167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10168 (exit $ac_status); }
10169 rm -f a.out
10171 # If we don't use `.F' as extension, the preprocessor is not run on the
10172 # input file. (Note that this only needs to work for GNU compilers.)
10173 ac_save_ext=$ac_ext
10174 ac_ext=F
10175 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
10176 echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6
10177 if test "${ac_cv_fc_compiler_gnu+set}" = set; then
10178 echo $ECHO_N "(cached) $ECHO_C" >&6
10179 else
10180 cat >conftest.$ac_ext <<_ACEOF
10181 program main
10182 #ifndef __GNUC__
10183 choke me
10184 #endif
10187 _ACEOF
10188 rm -f conftest.$ac_objext
10189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10190 (eval $ac_compile) 2>conftest.er1
10191 ac_status=$?
10192 grep -v '^ *+' conftest.er1 >conftest.err
10193 rm -f conftest.er1
10194 cat conftest.err >&5
10195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10196 (exit $ac_status); } &&
10197 { ac_try='test -z "$ac_fc_werror_flag"
10198 || test ! -s conftest.err'
10199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10200 (eval $ac_try) 2>&5
10201 ac_status=$?
10202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10203 (exit $ac_status); }; } &&
10204 { ac_try='test -s conftest.$ac_objext'
10205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10206 (eval $ac_try) 2>&5
10207 ac_status=$?
10208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10209 (exit $ac_status); }; }; then
10210 ac_compiler_gnu=yes
10211 else
10212 echo "$as_me: failed program was:" >&5
10213 sed 's/^/| /' conftest.$ac_ext >&5
10215 ac_compiler_gnu=no
10217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10218 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
10221 echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
10222 echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6
10223 ac_ext=$ac_save_ext
10224 ac_test_FFLAGS=${FCFLAGS+set}
10225 ac_save_FFLAGS=$FCFLAGS
10226 FCFLAGS=
10227 echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
10228 echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6
10229 if test "${ac_cv_prog_fc_g+set}" = set; then
10230 echo $ECHO_N "(cached) $ECHO_C" >&6
10231 else
10232 FCFLAGS=-g
10233 cat >conftest.$ac_ext <<_ACEOF
10234 program main
10237 _ACEOF
10238 rm -f conftest.$ac_objext
10239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10240 (eval $ac_compile) 2>conftest.er1
10241 ac_status=$?
10242 grep -v '^ *+' conftest.er1 >conftest.err
10243 rm -f conftest.er1
10244 cat conftest.err >&5
10245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246 (exit $ac_status); } &&
10247 { ac_try='test -z "$ac_fc_werror_flag"
10248 || test ! -s conftest.err'
10249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10250 (eval $ac_try) 2>&5
10251 ac_status=$?
10252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253 (exit $ac_status); }; } &&
10254 { ac_try='test -s conftest.$ac_objext'
10255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10256 (eval $ac_try) 2>&5
10257 ac_status=$?
10258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10259 (exit $ac_status); }; }; then
10260 ac_cv_prog_fc_g=yes
10261 else
10262 echo "$as_me: failed program was:" >&5
10263 sed 's/^/| /' conftest.$ac_ext >&5
10265 ac_cv_prog_fc_g=no
10267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10270 echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
10271 echo "${ECHO_T}$ac_cv_prog_fc_g" >&6
10272 if test "$ac_test_FFLAGS" = set; then
10273 FCFLAGS=$ac_save_FFLAGS
10274 elif test $ac_cv_prog_fc_g = yes; then
10275 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
10276 FCFLAGS="-g -O2"
10277 else
10278 FCFLAGS="-g"
10280 else
10281 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
10282 FCFLAGS="-O2"
10283 else
10284 FCFLAGS=
10288 ac_ext=c
10289 ac_cpp='$CPP $CPPFLAGS'
10290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10295 ac_ext=${FC_SRCEXT-f}
10296 ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
10297 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
10298 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
10299 if test -n "$ac_tool_prefix"; then
10300 for ac_prog in f95 fort xlf95 ifc efc pgf95 lf95 gfortran f90 xlf90 pgf90 epcf90 g77 f77 xlf frt pgf77 fort77 fl32 af77
10302 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10303 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10304 echo "$as_me:$LINENO: checking for $ac_word" >&5
10305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10306 if test "${ac_cv_prog_FC+set}" = set; then
10307 echo $ECHO_N "(cached) $ECHO_C" >&6
10308 else
10309 if test -n "$FC"; then
10310 ac_cv_prog_FC="$FC" # Let the user override the test.
10311 else
10312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10313 for as_dir in $PATH
10315 IFS=$as_save_IFS
10316 test -z "$as_dir" && as_dir=.
10317 for ac_exec_ext in '' $ac_executable_extensions; do
10318 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10319 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
10320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10321 break 2
10323 done
10324 done
10328 FC=$ac_cv_prog_FC
10329 if test -n "$FC"; then
10330 echo "$as_me:$LINENO: result: $FC" >&5
10331 echo "${ECHO_T}$FC" >&6
10332 else
10333 echo "$as_me:$LINENO: result: no" >&5
10334 echo "${ECHO_T}no" >&6
10337 test -n "$FC" && break
10338 done
10340 if test -z "$FC"; then
10341 ac_ct_FC=$FC
10342 for ac_prog in f95 fort xlf95 ifc efc pgf95 lf95 gfortran f90 xlf90 pgf90 epcf90 g77 f77 xlf frt pgf77 fort77 fl32 af77
10344 # Extract the first word of "$ac_prog", so it can be a program name with args.
10345 set dummy $ac_prog; ac_word=$2
10346 echo "$as_me:$LINENO: checking for $ac_word" >&5
10347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10348 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then
10349 echo $ECHO_N "(cached) $ECHO_C" >&6
10350 else
10351 if test -n "$ac_ct_FC"; then
10352 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
10353 else
10354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10355 for as_dir in $PATH
10357 IFS=$as_save_IFS
10358 test -z "$as_dir" && as_dir=.
10359 for ac_exec_ext in '' $ac_executable_extensions; do
10360 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10361 ac_cv_prog_ac_ct_FC="$ac_prog"
10362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10363 break 2
10365 done
10366 done
10370 ac_ct_FC=$ac_cv_prog_ac_ct_FC
10371 if test -n "$ac_ct_FC"; then
10372 echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
10373 echo "${ECHO_T}$ac_ct_FC" >&6
10374 else
10375 echo "$as_me:$LINENO: result: no" >&5
10376 echo "${ECHO_T}no" >&6
10379 test -n "$ac_ct_FC" && break
10380 done
10382 FC=$ac_ct_FC
10386 # Provide some information about the compiler.
10387 echo "$as_me:10387:" \
10388 "checking for Fortran compiler version" >&5
10389 ac_compiler=`set X $ac_compile; echo $2`
10390 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10391 (eval $ac_compiler --version </dev/null >&5) 2>&5
10392 ac_status=$?
10393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394 (exit $ac_status); }
10395 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10396 (eval $ac_compiler -v </dev/null >&5) 2>&5
10397 ac_status=$?
10398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399 (exit $ac_status); }
10400 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10401 (eval $ac_compiler -V </dev/null >&5) 2>&5
10402 ac_status=$?
10403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404 (exit $ac_status); }
10405 rm -f a.out
10407 # If we don't use `.F' as extension, the preprocessor is not run on the
10408 # input file. (Note that this only needs to work for GNU compilers.)
10409 ac_save_ext=$ac_ext
10410 ac_ext=F
10411 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
10412 echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6
10413 if test "${ac_cv_fc_compiler_gnu+set}" = set; then
10414 echo $ECHO_N "(cached) $ECHO_C" >&6
10415 else
10416 cat >conftest.$ac_ext <<_ACEOF
10417 program main
10418 #ifndef __GNUC__
10419 choke me
10420 #endif
10423 _ACEOF
10424 rm -f conftest.$ac_objext
10425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10426 (eval $ac_compile) 2>conftest.er1
10427 ac_status=$?
10428 grep -v '^ *+' conftest.er1 >conftest.err
10429 rm -f conftest.er1
10430 cat conftest.err >&5
10431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10432 (exit $ac_status); } &&
10433 { ac_try='test -z "$ac_fc_werror_flag"
10434 || test ! -s conftest.err'
10435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10436 (eval $ac_try) 2>&5
10437 ac_status=$?
10438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10439 (exit $ac_status); }; } &&
10440 { ac_try='test -s conftest.$ac_objext'
10441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10442 (eval $ac_try) 2>&5
10443 ac_status=$?
10444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10445 (exit $ac_status); }; }; then
10446 ac_compiler_gnu=yes
10447 else
10448 echo "$as_me: failed program was:" >&5
10449 sed 's/^/| /' conftest.$ac_ext >&5
10451 ac_compiler_gnu=no
10453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10454 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
10457 echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
10458 echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6
10459 ac_ext=$ac_save_ext
10460 ac_test_FFLAGS=${FCFLAGS+set}
10461 ac_save_FFLAGS=$FCFLAGS
10462 FCFLAGS=
10463 echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
10464 echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6
10465 if test "${ac_cv_prog_fc_g+set}" = set; then
10466 echo $ECHO_N "(cached) $ECHO_C" >&6
10467 else
10468 FCFLAGS=-g
10469 cat >conftest.$ac_ext <<_ACEOF
10470 program main
10473 _ACEOF
10474 rm -f conftest.$ac_objext
10475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10476 (eval $ac_compile) 2>conftest.er1
10477 ac_status=$?
10478 grep -v '^ *+' conftest.er1 >conftest.err
10479 rm -f conftest.er1
10480 cat conftest.err >&5
10481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10482 (exit $ac_status); } &&
10483 { ac_try='test -z "$ac_fc_werror_flag"
10484 || test ! -s conftest.err'
10485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10486 (eval $ac_try) 2>&5
10487 ac_status=$?
10488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10489 (exit $ac_status); }; } &&
10490 { ac_try='test -s conftest.$ac_objext'
10491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10492 (eval $ac_try) 2>&5
10493 ac_status=$?
10494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10495 (exit $ac_status); }; }; then
10496 ac_cv_prog_fc_g=yes
10497 else
10498 echo "$as_me: failed program was:" >&5
10499 sed 's/^/| /' conftest.$ac_ext >&5
10501 ac_cv_prog_fc_g=no
10503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10506 echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
10507 echo "${ECHO_T}$ac_cv_prog_fc_g" >&6
10508 if test "$ac_test_FFLAGS" = set; then
10509 FCFLAGS=$ac_save_FFLAGS
10510 elif test $ac_cv_prog_fc_g = yes; then
10511 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
10512 FCFLAGS="-g -O2"
10513 else
10514 FCFLAGS="-g"
10516 else
10517 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
10518 FCFLAGS="-O2"
10519 else
10520 FCFLAGS=
10524 ac_ext=c
10525 ac_cpp='$CPP $CPPFLAGS'
10526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10530 if test -z "$FC" || test "X$FC" = "Xno"; then
10531 _lt_disable_FC=yes
10536 ac_ext=${FC_SRCEXT-f}
10537 ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
10538 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
10539 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
10542 archive_cmds_need_lc_FC=no
10543 allow_undefined_flag_FC=
10544 always_export_symbols_FC=no
10545 archive_expsym_cmds_FC=
10546 export_dynamic_flag_spec_FC=
10547 hardcode_direct_FC=no
10548 hardcode_direct_absolute_FC=no
10549 hardcode_libdir_flag_spec_FC=
10550 hardcode_libdir_flag_spec_ld_FC=
10551 hardcode_libdir_separator_FC=
10552 hardcode_minus_L_FC=no
10553 hardcode_automatic_FC=no
10554 inherit_rpath_FC=no
10555 module_cmds_FC=
10556 module_expsym_cmds_FC=
10557 link_all_deplibs_FC=unknown
10558 old_archive_cmds_FC=$old_archive_cmds
10559 no_undefined_flag_FC=
10560 whole_archive_flag_spec_FC=
10561 enable_shared_with_static_runtimes_FC=no
10563 # Source file extension for fc test sources.
10564 ac_ext=${ac_fc_srcext-f}
10566 # Object file extension for compiled fc test sources.
10567 objext=o
10568 objext_FC=$objext
10570 # No sense in running all these tests if we already determined that
10571 # the FC compiler isn't working. Some variables (like enable_shared)
10572 # are currently assumed to apply to all compilers on this platform,
10573 # and will be corrupted by setting them based on a non-working compiler.
10574 if test "$_lt_disable_FC" != yes; then
10575 # Code to be used in simple compile tests
10576 lt_simple_compile_test_code="\
10577 subroutine t
10578 return
10582 # Code to be used in simple link tests
10583 lt_simple_link_test_code="\
10584 program t
10588 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10595 # If no C compiler was specified, use CC.
10596 LTCC=${LTCC-"$CC"}
10598 # If no C compiler flags were specified, use CFLAGS.
10599 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10601 # Allow CC to be a program name with arguments.
10602 compiler=$CC
10605 # save warnings/boilerplate of simple test code
10606 ac_outfile=conftest.$ac_objext
10607 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10608 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10609 _lt_compiler_boilerplate=`cat conftest.err`
10610 $RM conftest*
10612 ac_outfile=conftest.$ac_objext
10613 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10614 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10615 _lt_linker_boilerplate=`cat conftest.err`
10616 $RM conftest*
10619 # Allow CC to be a program name with arguments.
10620 lt_save_CC="$CC"
10621 CC=${FC-"f95"}
10622 compiler=$CC
10623 compiler_FC=$CC
10624 for cc_temp in $compiler""; do
10625 case $cc_temp in
10626 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10627 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10628 \-*) ;;
10629 *) break;;
10630 esac
10631 done
10632 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10635 if test -n "$compiler"; then
10636 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10637 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10638 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10639 echo "${ECHO_T}$can_build_shared" >&6
10641 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10642 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10643 test "$can_build_shared" = "no" && enable_shared=no
10645 # On AIX, shared libraries and static libraries use the same namespace, and
10646 # are all built from PIC.
10647 case $host_os in
10648 aix3*)
10649 test "$enable_shared" = yes && enable_static=no
10650 if test -n "$RANLIB"; then
10651 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10652 postinstall_cmds='$RANLIB $lib'
10655 aix[4-9]*)
10656 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10657 test "$enable_shared" = yes && enable_static=no
10660 esac
10661 echo "$as_me:$LINENO: result: $enable_shared" >&5
10662 echo "${ECHO_T}$enable_shared" >&6
10664 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10665 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10666 # Make sure either enable_shared or enable_static is yes.
10667 test "$enable_shared" = yes || enable_static=yes
10668 echo "$as_me:$LINENO: result: $enable_static" >&5
10669 echo "${ECHO_T}$enable_static" >&6
10671 GCC_FC="$ac_cv_fc_compiler_gnu"
10672 LD_FC="$LD"
10674 ## CAVEAT EMPTOR:
10675 ## There is no encapsulation within the following macros, do not change
10676 ## the running order or otherwise move them around unless you know exactly
10677 ## what you are doing...
10678 # Dependencies to place before and after the object being linked:
10679 predep_objects_FC=
10680 postdep_objects_FC=
10681 predeps_FC=
10682 postdeps_FC=
10683 compiler_lib_search_path_FC=
10685 cat > conftest.$ac_ext <<_LT_EOF
10686 subroutine foo
10687 implicit none
10688 integer a
10690 return
10692 _LT_EOF
10694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10695 (eval $ac_compile) 2>&5
10696 ac_status=$?
10697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698 (exit $ac_status); }; then
10699 # Parse the compiler output and extract the necessary
10700 # objects, libraries and library flags.
10702 # Sentinel used to keep track of whether or not we are before
10703 # the conftest object file.
10704 pre_test_object_deps_done=no
10706 # The `*' in the case matches for architectures that use `case' in
10707 # $output_verbose_cmd can trigger glob expansion during the loop
10708 # eval without this substitution.
10709 output_verbose_link_cmd=`$ECHO "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
10711 for p in `eval $output_verbose_link_cmd`; do
10712 case $p in
10714 -L* | -R* | -l*)
10715 # Some compilers place space between "-{L,R}" and the path.
10716 # Remove the space.
10717 if test $p = "-L" ||
10718 test $p = "-R"; then
10719 prev=$p
10720 continue
10721 else
10722 prev=
10725 if test "$pre_test_object_deps_done" = no; then
10726 case $p in
10727 -L* | -R*)
10728 # Internal compiler library paths should come after those
10729 # provided the user. The postdeps already come after the
10730 # user supplied libs so there is no need to process them.
10731 if test -z "$compiler_lib_search_path_FC"; then
10732 compiler_lib_search_path_FC="${prev}${p}"
10733 else
10734 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
10737 # The "-l" case would never come before the object being
10738 # linked, so don't bother handling this case.
10739 esac
10740 else
10741 if test -z "$postdeps_FC"; then
10742 postdeps_FC="${prev}${p}"
10743 else
10744 postdeps_FC="${postdeps_FC} ${prev}${p}"
10749 *.$objext)
10750 # This assumes that the test object file only shows up
10751 # once in the compiler output.
10752 if test "$p" = "conftest.$objext"; then
10753 pre_test_object_deps_done=yes
10754 continue
10757 if test "$pre_test_object_deps_done" = no; then
10758 if test -z "$predep_objects_FC"; then
10759 predep_objects_FC="$p"
10760 else
10761 predep_objects_FC="$predep_objects_FC $p"
10763 else
10764 if test -z "$postdep_objects_FC"; then
10765 postdep_objects_FC="$p"
10766 else
10767 postdep_objects_FC="$postdep_objects_FC $p"
10772 *) ;; # Ignore the rest.
10774 esac
10775 done
10777 # Clean up.
10778 rm -f a.out a.exe
10779 else
10780 echo "libtool.m4: error: problem compiling FC test program"
10783 $RM -f confest.$objext
10785 # PORTME: override above test on systems where it is broken
10788 case " $postdeps_FC " in
10789 *" -lc "*) archive_cmds_need_lc_FC=no ;;
10790 esac
10817 lt_prog_compiler_wl_FC=
10818 lt_prog_compiler_pic_FC=
10819 lt_prog_compiler_static_FC=
10821 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10822 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10824 if test "$GCC" = yes; then
10825 lt_prog_compiler_wl_FC='-Wl,'
10826 lt_prog_compiler_static_FC='-static'
10828 case $host_os in
10829 aix*)
10830 # All AIX code is PIC.
10831 if test "$host_cpu" = ia64; then
10832 # AIX 5 now supports IA64 processor
10833 lt_prog_compiler_static_FC='-Bstatic'
10837 amigaos*)
10838 if test "$host_cpu" = m68k; then
10839 # FIXME: we need at least 68020 code to build shared libraries, but
10840 # adding the `-m68020' flag to GCC prevents building anything better,
10841 # like `-m68040'.
10842 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
10846 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10847 # PIC is the default for these OSes.
10850 mingw* | cygwin* | pw32* | os2*)
10851 # This hack is so that the source file can tell whether it is being
10852 # built for inclusion in a dll (and should export symbols for example).
10853 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10854 # (--disable-auto-import) libraries
10855 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
10858 darwin* | rhapsody*)
10859 # PIC is the default on this platform
10860 # Common symbols not allowed in MH_DYLIB files
10861 lt_prog_compiler_pic_FC='-fno-common'
10864 hpux*)
10865 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10866 # not for PA HP-UX.
10867 case $host_cpu in
10868 hppa*64*|ia64*)
10869 # +Z the default
10872 lt_prog_compiler_pic_FC='-fPIC'
10874 esac
10877 interix[3-9]*)
10878 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10879 # Instead, we relocate shared libraries at runtime.
10882 msdosdjgpp*)
10883 # Just because we use GCC doesn't mean we suddenly get shared libraries
10884 # on systems that don't support them.
10885 lt_prog_compiler_can_build_shared_FC=no
10886 enable_shared=no
10889 *nto* | *qnx*)
10890 # QNX uses GNU C++, but need to define -shared option too, otherwise
10891 # it will coredump.
10892 lt_prog_compiler_pic_FC='-fPIC -shared'
10895 sysv4*MP*)
10896 if test -d /usr/nec; then
10897 lt_prog_compiler_pic_FC=-Kconform_pic
10902 lt_prog_compiler_pic_FC='-fPIC'
10904 esac
10905 else
10906 # PORTME Check for flag to pass linker flags through the system compiler.
10907 case $host_os in
10908 aix*)
10909 lt_prog_compiler_wl_FC='-Wl,'
10910 if test "$host_cpu" = ia64; then
10911 # AIX 5 now supports IA64 processor
10912 lt_prog_compiler_static_FC='-Bstatic'
10913 else
10914 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
10917 darwin*)
10918 # PIC is the default on this platform
10919 # Common symbols not allowed in MH_DYLIB files
10920 case $cc_basename in
10921 xlc*)
10922 lt_prog_compiler_pic_FC='-qnocommon'
10923 lt_prog_compiler_wl_FC='-Wl,'
10925 esac
10928 mingw* | cygwin* | pw32* | os2*)
10929 # This hack is so that the source file can tell whether it is being
10930 # built for inclusion in a dll (and should export symbols for example).
10931 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
10934 hpux9* | hpux10* | hpux11*)
10935 lt_prog_compiler_wl_FC='-Wl,'
10936 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10937 # not for PA HP-UX.
10938 case $host_cpu in
10939 hppa*64*|ia64*)
10940 # +Z the default
10943 lt_prog_compiler_pic_FC='+Z'
10945 esac
10946 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10947 lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
10950 irix5* | irix6* | nonstopux*)
10951 lt_prog_compiler_wl_FC='-Wl,'
10952 # PIC (with -KPIC) is the default.
10953 lt_prog_compiler_static_FC='-non_shared'
10956 linux* | k*bsd*-gnu)
10957 case $cc_basename in
10958 icc* | ecc*)
10959 lt_prog_compiler_wl_FC='-Wl,'
10960 lt_prog_compiler_pic_FC='-KPIC'
10961 lt_prog_compiler_static_FC='-static'
10963 pgcc* | pgf77* | pgf90* | pgf95*)
10964 # Portland Group compilers (*not* the Pentium gcc compiler,
10965 # which looks to be a dead project)
10966 lt_prog_compiler_wl_FC='-Wl,'
10967 lt_prog_compiler_pic_FC='-fpic'
10968 lt_prog_compiler_static_FC='-Bstatic'
10970 ccc*)
10971 lt_prog_compiler_wl_FC='-Wl,'
10972 # All Alpha code is PIC.
10973 lt_prog_compiler_static_FC='-non_shared'
10976 case `$CC -V 2>&1 | sed 5q` in
10977 *Sun\ C*)
10978 # Sun C 5.9
10979 lt_prog_compiler_pic_FC='-KPIC'
10980 lt_prog_compiler_static_FC='-Bstatic'
10981 lt_prog_compiler_wl_FC='-Wl,'
10983 *Sun\ F*)
10984 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10985 lt_prog_compiler_pic_FC='-KPIC'
10986 lt_prog_compiler_static_FC='-Bstatic'
10987 lt_prog_compiler_wl_FC=''
10989 esac
10991 esac
10994 newsos6)
10995 lt_prog_compiler_pic_FC='-KPIC'
10996 lt_prog_compiler_static_FC='-Bstatic'
10999 *nto* | *qnx*)
11000 # QNX uses GNU C++, but need to define -shared option too, otherwise
11001 # it will coredump.
11002 lt_prog_compiler_pic_FC='-fPIC -shared'
11005 osf3* | osf4* | osf5*)
11006 lt_prog_compiler_wl_FC='-Wl,'
11007 # All OSF/1 code is PIC.
11008 lt_prog_compiler_static_FC='-non_shared'
11011 rdos*)
11012 lt_prog_compiler_static_FC='-non_shared'
11015 solaris*)
11016 lt_prog_compiler_pic_FC='-KPIC'
11017 lt_prog_compiler_static_FC='-Bstatic'
11018 case $cc_basename in
11019 f77* | f90* | f95*)
11020 lt_prog_compiler_wl_FC='-Qoption ld ';;
11022 lt_prog_compiler_wl_FC='-Wl,';;
11023 esac
11026 sunos4*)
11027 lt_prog_compiler_wl_FC='-Qoption ld '
11028 lt_prog_compiler_pic_FC='-PIC'
11029 lt_prog_compiler_static_FC='-Bstatic'
11032 sysv4 | sysv4.2uw2* | sysv4.3*)
11033 lt_prog_compiler_wl_FC='-Wl,'
11034 lt_prog_compiler_pic_FC='-KPIC'
11035 lt_prog_compiler_static_FC='-Bstatic'
11038 sysv4*MP*)
11039 if test -d /usr/nec ;then
11040 lt_prog_compiler_pic_FC='-Kconform_pic'
11041 lt_prog_compiler_static_FC='-Bstatic'
11045 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11046 lt_prog_compiler_wl_FC='-Wl,'
11047 lt_prog_compiler_pic_FC='-KPIC'
11048 lt_prog_compiler_static_FC='-Bstatic'
11051 unicos*)
11052 lt_prog_compiler_wl_FC='-Wl,'
11053 lt_prog_compiler_can_build_shared_FC=no
11056 uts4*)
11057 lt_prog_compiler_pic_FC='-pic'
11058 lt_prog_compiler_static_FC='-Bstatic'
11062 lt_prog_compiler_can_build_shared_FC=no
11064 esac
11067 case $host_os in
11068 # For platforms which do not support PIC, -DPIC is meaningless:
11069 *djgpp*)
11070 lt_prog_compiler_pic_FC=
11073 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
11075 esac
11076 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_FC" >&5
11077 echo "${ECHO_T}$lt_prog_compiler_pic_FC" >&6
11082 # Check to make sure the PIC flag actually works.
11084 if test -n "$lt_prog_compiler_pic_FC"; then
11085 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
11086 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... $ECHO_C" >&6
11087 if test "${lt_prog_compiler_pic_works_FC+set}" = set; then
11088 echo $ECHO_N "(cached) $ECHO_C" >&6
11089 else
11090 lt_prog_compiler_pic_works_FC=no
11091 ac_outfile=conftest.$ac_objext
11092 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11093 lt_compiler_flag="$lt_prog_compiler_pic_FC"
11094 # Insert the option either (1) after the last *FLAGS variable, or
11095 # (2) before a word containing "conftest.", or (3) at the end.
11096 # Note that $ac_compile itself does not contain backslashes and begins
11097 # with a dollar sign (not a hyphen), so the echo should work correctly.
11098 # The option is referenced via a variable to avoid confusing sed.
11099 lt_compile=`echo "$ac_compile" | $SED \
11100 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11101 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11102 -e 's:$: $lt_compiler_flag:'`
11103 (eval echo "\"\$as_me:11103: $lt_compile\"" >&5)
11104 (eval "$lt_compile" 2>conftest.err)
11105 ac_status=$?
11106 cat conftest.err >&5
11107 echo "$as_me:11107: \$? = $ac_status" >&5
11108 if (exit $ac_status) && test -s "$ac_outfile"; then
11109 # The compiler can only warn and ignore the option if not recognized
11110 # So say no if there are warnings other than the usual output.
11111 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11112 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11113 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11114 lt_prog_compiler_pic_works_FC=yes
11117 $RM conftest*
11120 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_FC" >&5
11121 echo "${ECHO_T}$lt_prog_compiler_pic_works_FC" >&6
11123 if test x"$lt_prog_compiler_pic_works_FC" = xyes; then
11124 case $lt_prog_compiler_pic_FC in
11125 "" | " "*) ;;
11126 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
11127 esac
11128 else
11129 lt_prog_compiler_pic_FC=
11130 lt_prog_compiler_can_build_shared_FC=no
11138 # Check to make sure the static flag actually works.
11140 wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
11141 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11142 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11143 if test "${lt_prog_compiler_static_works_FC+set}" = set; then
11144 echo $ECHO_N "(cached) $ECHO_C" >&6
11145 else
11146 lt_prog_compiler_static_works_FC=no
11147 save_LDFLAGS="$LDFLAGS"
11148 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11149 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11150 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11151 # The linker can only warn and ignore the option if not recognized
11152 # So say no if there are warnings
11153 if test -s conftest.err; then
11154 # Append any errors to the config.log.
11155 cat conftest.err 1>&5
11156 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11157 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11158 if diff conftest.exp conftest.er2 >/dev/null; then
11159 lt_prog_compiler_static_works_FC=yes
11161 else
11162 lt_prog_compiler_static_works_FC=yes
11165 $RM conftest*
11166 LDFLAGS="$save_LDFLAGS"
11169 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_FC" >&5
11170 echo "${ECHO_T}$lt_prog_compiler_static_works_FC" >&6
11172 if test x"$lt_prog_compiler_static_works_FC" = xyes; then
11174 else
11175 lt_prog_compiler_static_FC=
11181 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11182 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11183 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then
11184 echo $ECHO_N "(cached) $ECHO_C" >&6
11185 else
11186 lt_cv_prog_compiler_c_o_FC=no
11187 $RM -r conftest 2>/dev/null
11188 mkdir conftest
11189 cd conftest
11190 mkdir out
11191 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11193 lt_compiler_flag="-o out/conftest2.$ac_objext"
11194 # Insert the option either (1) after the last *FLAGS variable, or
11195 # (2) before a word containing "conftest.", or (3) at the end.
11196 # Note that $ac_compile itself does not contain backslashes and begins
11197 # with a dollar sign (not a hyphen), so the echo should work correctly.
11198 lt_compile=`echo "$ac_compile" | $SED \
11199 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11200 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11201 -e 's:$: $lt_compiler_flag:'`
11202 (eval echo "\"\$as_me:11202: $lt_compile\"" >&5)
11203 (eval "$lt_compile" 2>out/conftest.err)
11204 ac_status=$?
11205 cat out/conftest.err >&5
11206 echo "$as_me:11206: \$? = $ac_status" >&5
11207 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11208 then
11209 # The compiler can only warn and ignore the option if not recognized
11210 # So say no if there are warnings
11211 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11212 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11213 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11214 lt_cv_prog_compiler_c_o_FC=yes
11217 chmod u+w . 2>&5
11218 $RM conftest*
11219 # SGI C++ compiler will create directory out/ii_files/ for
11220 # template instantiation
11221 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11222 $RM out/* && rmdir out
11223 cd ..
11224 $RM -r conftest
11225 $RM conftest*
11228 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_FC" >&5
11229 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_FC" >&6
11233 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11234 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11235 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then
11236 echo $ECHO_N "(cached) $ECHO_C" >&6
11237 else
11238 lt_cv_prog_compiler_c_o_FC=no
11239 $RM -r conftest 2>/dev/null
11240 mkdir conftest
11241 cd conftest
11242 mkdir out
11243 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11245 lt_compiler_flag="-o out/conftest2.$ac_objext"
11246 # Insert the option either (1) after the last *FLAGS variable, or
11247 # (2) before a word containing "conftest.", or (3) at the end.
11248 # Note that $ac_compile itself does not contain backslashes and begins
11249 # with a dollar sign (not a hyphen), so the echo should work correctly.
11250 lt_compile=`echo "$ac_compile" | $SED \
11251 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11252 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11253 -e 's:$: $lt_compiler_flag:'`
11254 (eval echo "\"\$as_me:11254: $lt_compile\"" >&5)
11255 (eval "$lt_compile" 2>out/conftest.err)
11256 ac_status=$?
11257 cat out/conftest.err >&5
11258 echo "$as_me:11258: \$? = $ac_status" >&5
11259 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11260 then
11261 # The compiler can only warn and ignore the option if not recognized
11262 # So say no if there are warnings
11263 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11264 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11265 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11266 lt_cv_prog_compiler_c_o_FC=yes
11269 chmod u+w . 2>&5
11270 $RM conftest*
11271 # SGI C++ compiler will create directory out/ii_files/ for
11272 # template instantiation
11273 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11274 $RM out/* && rmdir out
11275 cd ..
11276 $RM -r conftest
11277 $RM conftest*
11280 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_FC" >&5
11281 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_FC" >&6
11286 hard_links="nottested"
11287 if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
11288 # do not overwrite the value of need_locks provided by the user
11289 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11290 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11291 hard_links=yes
11292 $RM conftest*
11293 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11294 touch conftest.a
11295 ln conftest.a conftest.b 2>&5 || hard_links=no
11296 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11297 echo "$as_me:$LINENO: result: $hard_links" >&5
11298 echo "${ECHO_T}$hard_links" >&6
11299 if test "$hard_links" = no; then
11300 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11301 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11302 need_locks=warn
11304 else
11305 need_locks=no
11310 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11311 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11313 runpath_var=
11314 allow_undefined_flag_FC=
11315 always_export_symbols_FC=no
11316 archive_cmds_FC=
11317 archive_expsym_cmds_FC=
11318 compiler_needs_object_FC=no
11319 enable_shared_with_static_runtimes_FC=no
11320 export_dynamic_flag_spec_FC=
11321 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11322 hardcode_automatic_FC=no
11323 hardcode_direct_FC=no
11324 hardcode_direct_absolute_FC=no
11325 hardcode_libdir_flag_spec_FC=
11326 hardcode_libdir_flag_spec_ld_FC=
11327 hardcode_libdir_separator_FC=
11328 hardcode_minus_L_FC=no
11329 hardcode_shlibpath_var_FC=unsupported
11330 inherit_rpath_FC=no
11331 link_all_deplibs_FC=unknown
11332 module_cmds_FC=
11333 module_expsym_cmds_FC=
11334 old_archive_from_new_cmds_FC=
11335 old_archive_from_expsyms_cmds_FC=
11336 thread_safe_flag_spec_FC=
11337 whole_archive_flag_spec_FC=
11338 # include_expsyms should be a list of space-separated symbols to be *always*
11339 # included in the symbol list
11340 include_expsyms_FC=
11341 # exclude_expsyms can be an extended regexp of symbols to exclude
11342 # it will be wrapped by ` (' and `)$', so one must not match beginning or
11343 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11344 # as well as any symbol that contains `d'.
11345 exclude_expsyms_FC="_GLOBAL_OFFSET_TABLE_"
11346 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11347 # platforms (ab)use it in PIC code, but their linkers get confused if
11348 # the symbol is explicitly referenced. Since portable code cannot
11349 # rely on this symbol name, it's probably fine to never include it in
11350 # preloaded symbol tables.
11351 extract_expsyms_cmds=
11353 case $host_os in
11354 cygwin* | mingw* | pw32*)
11355 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11356 # When not using gcc, we currently assume that we are using
11357 # Microsoft Visual C++.
11358 if test "$GCC" != yes; then
11359 with_gnu_ld=no
11362 interix*)
11363 # we just hope/assume this is gcc and not c89 (= MSVC++)
11364 with_gnu_ld=yes
11366 openbsd*)
11367 with_gnu_ld=no
11369 esac
11371 ld_shlibs_FC=yes
11372 if test "$with_gnu_ld" = yes; then
11373 # If archive_cmds runs LD, not CC, wlarc should be empty
11374 wlarc='${wl}'
11376 # Set some defaults for GNU ld with shared library support. These
11377 # are reset later if shared libraries are not supported. Putting them
11378 # here allows them to be overridden if necessary.
11379 runpath_var=LD_RUN_PATH
11380 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
11381 export_dynamic_flag_spec_FC='${wl}--export-dynamic'
11382 # ancient GNU ld didn't support --whole-archive et. al.
11383 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11384 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11385 else
11386 whole_archive_flag_spec_FC=
11388 supports_anon_versioning=no
11389 case `$LD -v 2>&1` in
11390 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11391 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11392 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11393 *\ 2.11.*) ;; # other 2.11 versions
11394 *) supports_anon_versioning=yes ;;
11395 esac
11397 # See if GNU ld supports shared libraries.
11398 case $host_os in
11399 aix[3-9]*)
11400 # On AIX/PPC, the GNU linker is very broken
11401 if test "$host_cpu" != ia64; then
11402 ld_shlibs_FC=no
11403 cat <<_LT_EOF 1>&2
11405 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
11406 *** to be unable to reliably create shared libraries on AIX.
11407 *** Therefore, libtool is disabling shared libraries support. If you
11408 *** really care for shared libraries, you may want to modify your PATH
11409 *** so that a non-GNU linker is found, and then restart.
11411 _LT_EOF
11415 amigaos*)
11416 if test "$host_cpu" = m68k; then
11417 archive_cmds_FC='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
11418 hardcode_libdir_flag_spec_FC='-L$libdir'
11419 hardcode_minus_L_FC=yes
11422 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
11423 # that the semantics of dynamic libraries on AmigaOS, at least up
11424 # to version 4, is to share data among multiple programs linked
11425 # with the same dynamic library. Since this doesn't match the
11426 # behavior of shared libraries on other platforms, we can't use
11427 # them.
11428 ld_shlibs_FC=no
11431 beos*)
11432 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11433 allow_undefined_flag_FC=unsupported
11434 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11435 # support --undefined. This deserves some investigation. FIXME
11436 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11437 else
11438 ld_shlibs_FC=no
11442 cygwin* | mingw* | pw32*)
11443 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
11444 # as there is no search path for DLLs.
11445 hardcode_libdir_flag_spec_FC='-L$libdir'
11446 allow_undefined_flag_FC=unsupported
11447 always_export_symbols_FC=no
11448 enable_shared_with_static_runtimes_FC=yes
11449 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11451 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11452 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11453 # If the export-symbols file already is a .def file (1st line
11454 # is EXPORTS), use it as is; otherwise, prepend...
11455 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11456 cp $export_symbols $output_objdir/$soname.def;
11457 else
11458 echo EXPORTS > $output_objdir/$soname.def;
11459 cat $export_symbols >> $output_objdir/$soname.def;
11461 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11462 else
11463 ld_shlibs_FC=no
11467 interix[3-9]*)
11468 hardcode_direct_FC=no
11469 hardcode_shlibpath_var_FC=no
11470 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
11471 export_dynamic_flag_spec_FC='${wl}-E'
11472 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11473 # Instead, shared libraries are loaded at an image base (0x10000000 by
11474 # default) and relocated if they conflict, which is a slow very memory
11475 # consuming and fragmenting process. To avoid this, we pick a random,
11476 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11477 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11478 archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11479 archive_expsym_cmds_FC='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11482 gnu* | linux* | tpf* | k*bsd*-gnu)
11483 tmp_diet=no
11484 if test "$host_os" = linux-dietlibc; then
11485 case $cc_basename in
11486 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11487 esac
11489 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11490 && test "$tmp_diet" = no
11491 then
11492 tmp_addflag=
11493 case $cc_basename,$host_cpu in
11494 pgcc*) # Portland Group C compiler
11495 whole_archive_flag_spec_FC='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
11496 tmp_addflag=' $pic_flag'
11498 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
11499 whole_archive_flag_spec_FC='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
11500 tmp_addflag=' $pic_flag -Mnomain' ;;
11501 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11502 tmp_addflag=' -i_dynamic' ;;
11503 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11504 tmp_addflag=' -i_dynamic -nofor_main' ;;
11505 ifc* | ifort*) # Intel Fortran compiler
11506 tmp_addflag=' -nofor_main' ;;
11507 esac
11508 case `$CC -V 2>&1 | sed 5q` in
11509 *Sun\ C*) # Sun C 5.9
11510 whole_archive_flag_spec_FC='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
11511 compiler_needs_object_FC=yes
11512 tmp_sharedflag='-G' ;;
11513 *Sun\ F*) # Sun Fortran 8.3
11514 tmp_sharedflag='-G' ;;
11516 tmp_sharedflag='-shared' ;;
11517 esac
11518 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11520 if test "x$supports_anon_versioning" = xyes; then
11521 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
11522 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11523 echo "local: *; };" >> $output_objdir/$libname.ver~
11524 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11526 else
11527 ld_shlibs_FC=no
11531 netbsd*)
11532 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11533 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11534 wlarc=
11535 else
11536 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11537 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11541 solaris*)
11542 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11543 ld_shlibs_FC=no
11544 cat <<_LT_EOF 1>&2
11546 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11547 *** create shared libraries on Solaris systems. Therefore, libtool
11548 *** is disabling shared libraries support. We urge you to upgrade GNU
11549 *** binutils to release 2.9.1 or newer. Another option is to modify
11550 *** your PATH or compiler configuration so that the native linker is
11551 *** used, and then restart.
11553 _LT_EOF
11554 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11555 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11556 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11557 else
11558 ld_shlibs_FC=no
11562 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11563 case `$LD -v 2>&1` in
11564 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11565 ld_shlibs_FC=no
11566 cat <<_LT_EOF 1>&2
11568 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11569 *** reliably create shared libraries on SCO systems. Therefore, libtool
11570 *** is disabling shared libraries support. We urge you to upgrade GNU
11571 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11572 *** your PATH or compiler configuration so that the native linker is
11573 *** used, and then restart.
11575 _LT_EOF
11578 # For security reasons, it is highly recommended that you always
11579 # use absolute paths for naming shared libraries, and exclude the
11580 # DT_RUNPATH tag from executables and libraries. But doing so
11581 # requires that you compile everything twice, which is a pain.
11582 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11583 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
11584 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11585 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11586 else
11587 ld_shlibs_FC=no
11590 esac
11593 sunos4*)
11594 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11595 wlarc=
11596 hardcode_direct_FC=yes
11597 hardcode_shlibpath_var_FC=no
11601 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11602 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11603 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11604 else
11605 ld_shlibs_FC=no
11608 esac
11610 if test "$ld_shlibs_FC" = no; then
11611 runpath_var=
11612 hardcode_libdir_flag_spec_FC=
11613 export_dynamic_flag_spec_FC=
11614 whole_archive_flag_spec_FC=
11616 else
11617 # PORTME fill in a description of your system's linker (not GNU ld)
11618 case $host_os in
11619 aix3*)
11620 allow_undefined_flag_FC=unsupported
11621 always_export_symbols_FC=yes
11622 archive_expsym_cmds_FC='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
11623 # Note: this linker hardcodes the directories in LIBPATH if there
11624 # are no directories specified by -L.
11625 hardcode_minus_L_FC=yes
11626 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11627 # Neither direct hardcoding nor static linking is supported with a
11628 # broken collect2.
11629 hardcode_direct_FC=unsupported
11633 aix[4-9]*)
11634 if test "$host_cpu" = ia64; then
11635 # On IA64, the linker does run time linking by default, so we don't
11636 # have to do anything special.
11637 aix_use_runtimelinking=no
11638 exp_sym_flag='-Bexport'
11639 no_entry_flag=""
11640 else
11641 # If we're using GNU nm, then we don't want the "-C" option.
11642 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11643 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11644 export_symbols_cmds_FC='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11645 else
11646 export_symbols_cmds_FC='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11648 aix_use_runtimelinking=no
11650 # Test if we are trying to use run time linking or normal
11651 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11652 # need to do runtime linking.
11653 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11654 for ld_flag in $LDFLAGS; do
11655 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11656 aix_use_runtimelinking=yes
11657 break
11659 done
11661 esac
11663 exp_sym_flag='-bexport'
11664 no_entry_flag='-bnoentry'
11667 # When large executables or shared objects are built, AIX ld can
11668 # have problems creating the table of contents. If linking a library
11669 # or program results in "error TOC overflow" add -mminimal-toc to
11670 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11671 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11673 archive_cmds_FC=''
11674 hardcode_direct_FC=yes
11675 hardcode_direct_absolute_FC=yes
11676 hardcode_libdir_separator_FC=':'
11677 link_all_deplibs_FC=yes
11678 file_list_spec_FC='${wl}-f,'
11680 if test "$GCC" = yes; then
11681 case $host_os in aix4.[012]|aix4.[012].*)
11682 # We only want to do this on AIX 4.2 and lower, the check
11683 # below for broken collect2 doesn't work under 4.3+
11684 collect2name=`${CC} -print-prog-name=collect2`
11685 if test -f "$collect2name" &&
11686 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11687 then
11688 # We have reworked collect2
11690 else
11691 # We have old collect2
11692 hardcode_direct_FC=unsupported
11693 # It fails to find uninstalled libraries when the uninstalled
11694 # path is not listed in the libpath. Setting hardcode_minus_L
11695 # to unsupported forces relinking
11696 hardcode_minus_L_FC=yes
11697 hardcode_libdir_flag_spec_FC='-L$libdir'
11698 hardcode_libdir_separator_FC=
11701 esac
11702 shared_flag='-shared'
11703 if test "$aix_use_runtimelinking" = yes; then
11704 shared_flag="$shared_flag "'${wl}-G'
11706 else
11707 # not using gcc
11708 if test "$host_cpu" = ia64; then
11709 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11710 # chokes on -Wl,-G. The following line is correct:
11711 shared_flag='-G'
11712 else
11713 if test "$aix_use_runtimelinking" = yes; then
11714 shared_flag='${wl}-G'
11715 else
11716 shared_flag='${wl}-bM:SRE'
11721 # It seems that -bexpall does not export symbols beginning with
11722 # underscore (_), so it is better to generate a list of symbols to export.
11723 always_export_symbols_FC=yes
11724 if test "$aix_use_runtimelinking" = yes; then
11725 # Warning - without using the other runtime loading flags (-brtl),
11726 # -berok will link without error, but may produce a broken library.
11727 allow_undefined_flag_FC='-berok'
11728 # Determine the default libpath from the value encoded in an
11729 # empty executable.
11730 cat >conftest.$ac_ext <<_ACEOF
11731 program main
11734 _ACEOF
11735 rm -f conftest.$ac_objext conftest$ac_exeext
11736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11737 (eval $ac_link) 2>conftest.er1
11738 ac_status=$?
11739 grep -v '^ *+' conftest.er1 >conftest.err
11740 rm -f conftest.er1
11741 cat conftest.err >&5
11742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11743 (exit $ac_status); } &&
11744 { ac_try='test -z "$ac_fc_werror_flag"
11745 || test ! -s conftest.err'
11746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11747 (eval $ac_try) 2>&5
11748 ac_status=$?
11749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11750 (exit $ac_status); }; } &&
11751 { ac_try='test -s conftest$ac_exeext'
11752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11753 (eval $ac_try) 2>&5
11754 ac_status=$?
11755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11756 (exit $ac_status); }; }; then
11758 lt_aix_libpath_sed='
11759 /Import File Strings/,/^$/ {
11760 /^0/ {
11761 s/^0 *\(.*\)$/\1/
11765 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11766 # Check for a 64-bit object if we didn't find anything.
11767 if test -z "$aix_libpath"; then
11768 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11770 else
11771 echo "$as_me: failed program was:" >&5
11772 sed 's/^/| /' conftest.$ac_ext >&5
11775 rm -f conftest.err conftest.$ac_objext \
11776 conftest$ac_exeext conftest.$ac_ext
11777 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11779 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
11780 archive_expsym_cmds_FC='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11781 else
11782 if test "$host_cpu" = ia64; then
11783 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
11784 allow_undefined_flag_FC="-z nodefs"
11785 archive_expsym_cmds_FC="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
11786 else
11787 # Determine the default libpath from the value encoded in an
11788 # empty executable.
11789 cat >conftest.$ac_ext <<_ACEOF
11790 program main
11793 _ACEOF
11794 rm -f conftest.$ac_objext conftest$ac_exeext
11795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11796 (eval $ac_link) 2>conftest.er1
11797 ac_status=$?
11798 grep -v '^ *+' conftest.er1 >conftest.err
11799 rm -f conftest.er1
11800 cat conftest.err >&5
11801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11802 (exit $ac_status); } &&
11803 { ac_try='test -z "$ac_fc_werror_flag"
11804 || test ! -s conftest.err'
11805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11806 (eval $ac_try) 2>&5
11807 ac_status=$?
11808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11809 (exit $ac_status); }; } &&
11810 { ac_try='test -s conftest$ac_exeext'
11811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11812 (eval $ac_try) 2>&5
11813 ac_status=$?
11814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815 (exit $ac_status); }; }; then
11817 lt_aix_libpath_sed='
11818 /Import File Strings/,/^$/ {
11819 /^0/ {
11820 s/^0 *\(.*\)$/\1/
11824 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11825 # Check for a 64-bit object if we didn't find anything.
11826 if test -z "$aix_libpath"; then
11827 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11829 else
11830 echo "$as_me: failed program was:" >&5
11831 sed 's/^/| /' conftest.$ac_ext >&5
11834 rm -f conftest.err conftest.$ac_objext \
11835 conftest$ac_exeext conftest.$ac_ext
11836 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11838 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
11839 # Warning - without using the other run time loading flags,
11840 # -berok will link without error, but may produce a broken library.
11841 no_undefined_flag_FC=' ${wl}-bernotok'
11842 allow_undefined_flag_FC=' ${wl}-berok'
11843 # Exported symbols can be pulled into shared objects from archives
11844 whole_archive_flag_spec_FC='$convenience'
11845 archive_cmds_need_lc_FC=yes
11846 # This is similar to how AIX traditionally builds its shared libraries.
11847 archive_expsym_cmds_FC="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11852 amigaos*)
11853 if test "$host_cpu" = m68k; then
11854 archive_cmds_FC='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
11855 hardcode_libdir_flag_spec_FC='-L$libdir'
11856 hardcode_minus_L_FC=yes
11858 # see comment about different semantics on the GNU ld section
11859 ld_shlibs_FC=no
11862 bsdi[45]*)
11863 export_dynamic_flag_spec_FC=-rdynamic
11866 cygwin* | mingw* | pw32*)
11867 # When not using gcc, we currently assume that we are using
11868 # Microsoft Visual C++.
11869 # hardcode_libdir_flag_spec is actually meaningless, as there is
11870 # no search path for DLLs.
11871 hardcode_libdir_flag_spec_FC=' '
11872 allow_undefined_flag_FC=unsupported
11873 # Tell ltmain to make .lib files, not .a files.
11874 libext=lib
11875 # Tell ltmain to make .dll files, not .so files.
11876 shrext_cmds=".dll"
11877 # FIXME: Setting linknames here is a bad hack.
11878 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
11879 # The linker will automatically build a .lib file if we build a DLL.
11880 old_archive_from_new_cmds_FC='true'
11881 # FIXME: Should let the user specify the lib program.
11882 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
11883 fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
11884 enable_shared_with_static_runtimes_FC=yes
11887 darwin* | rhapsody*)
11888 case $host_os in
11889 rhapsody* | darwin1.[012])
11890 allow_undefined_flag_FC='${wl}-undefined ${wl}suppress'
11892 *) # Darwin 1.3 on
11893 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
11894 10.[012])
11895 allow_undefined_flag_FC='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11897 10.*)
11898 allow_undefined_flag_FC='${wl}-undefined ${wl}dynamic_lookup'
11900 esac
11902 esac
11903 archive_cmds_need_lc_FC=no
11904 hardcode_direct_FC=no
11905 hardcode_automatic_FC=yes
11906 hardcode_shlibpath_var_FC=unsupported
11907 whole_archive_flag_spec_FC=''
11908 link_all_deplibs_FC=yes
11909 if test "$GCC" = yes ; then
11910 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
11911 echo $ECHO_N "(cached) $ECHO_C" >&6
11912 else
11913 lt_cv_apple_cc_single_mod=no
11914 if test -z "${LT_MULTI_MODULE}"; then
11915 # By default we will add the -single_module flag. You can override
11916 # by either setting the environment variable LT_MULTI_MODULE
11917 # non-empty at configure time, or by adding -multi-module to the
11918 # link flags.
11919 echo "int foo(void){return 1;}" > conftest.c
11920 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11921 -dynamiclib ${wl}-single_module conftest.c
11922 if test -f libconftest.dylib; then
11923 lt_cv_apple_cc_single_mod=yes
11924 rm libconftest.dylib
11926 rm conftest.$ac_ext
11930 output_verbose_link_cmd=echo
11931 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
11932 archive_cmds_FC='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11933 archive_expsym_cmds_FC='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11934 else
11935 archive_cmds_FC='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11936 archive_expsym_cmds_FC='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11938 module_cmds_FC='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11939 module_expsym_cmds_FC='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11940 else
11941 case $cc_basename in
11942 xlc*)
11943 output_verbose_link_cmd=echo
11944 archive_cmds_FC='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
11945 module_cmds_FC='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11946 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11947 archive_expsym_cmds_FC='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11948 module_expsym_cmds_FC='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11951 ld_shlibs_FC=no
11953 esac
11957 dgux*)
11958 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11959 hardcode_libdir_flag_spec_FC='-L$libdir'
11960 hardcode_shlibpath_var_FC=no
11963 freebsd1*)
11964 ld_shlibs_FC=no
11967 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11968 # support. Future versions do this automatically, but an explicit c++rt0.o
11969 # does not break anything, and helps significantly (at the cost of a little
11970 # extra space).
11971 freebsd2.2*)
11972 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11973 hardcode_libdir_flag_spec_FC='-R$libdir'
11974 hardcode_direct_FC=yes
11975 hardcode_shlibpath_var_FC=no
11978 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11979 freebsd2*)
11980 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11981 hardcode_direct_FC=yes
11982 hardcode_minus_L_FC=yes
11983 hardcode_shlibpath_var_FC=no
11986 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11987 freebsd* | dragonfly*)
11988 archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11989 hardcode_libdir_flag_spec_FC='-R$libdir'
11990 hardcode_direct_FC=yes
11991 hardcode_shlibpath_var_FC=no
11994 hpux9*)
11995 if test "$GCC" = yes; then
11996 archive_cmds_FC='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11997 else
11998 archive_cmds_FC='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12000 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
12001 hardcode_libdir_separator_FC=:
12002 hardcode_direct_FC=yes
12004 # hardcode_minus_L: Not really in the search PATH,
12005 # but as the default location of the library.
12006 hardcode_minus_L_FC=yes
12007 export_dynamic_flag_spec_FC='${wl}-E'
12010 hpux10*)
12011 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12012 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12013 else
12014 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12016 if test "$with_gnu_ld" = no; then
12017 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
12018 hardcode_libdir_flag_spec_ld_FC='+b $libdir'
12019 hardcode_libdir_separator_FC=:
12020 hardcode_direct_FC=yes
12021 hardcode_direct_absolute_FC=yes
12022 export_dynamic_flag_spec_FC='${wl}-E'
12023 # hardcode_minus_L: Not really in the search PATH,
12024 # but as the default location of the library.
12025 hardcode_minus_L_FC=yes
12029 hpux11*)
12030 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12031 case $host_cpu in
12032 hppa*64*)
12033 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12035 ia64*)
12036 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12039 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12041 esac
12042 else
12043 case $host_cpu in
12044 hppa*64*)
12045 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12047 ia64*)
12048 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12051 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12053 esac
12055 if test "$with_gnu_ld" = no; then
12056 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
12057 hardcode_libdir_separator_FC=:
12059 case $host_cpu in
12060 hppa*64*|ia64*)
12061 hardcode_direct_FC=no
12062 hardcode_shlibpath_var_FC=no
12065 hardcode_direct_FC=yes
12066 hardcode_direct_absolute_FC=yes
12067 export_dynamic_flag_spec_FC='${wl}-E'
12069 # hardcode_minus_L: Not really in the search PATH,
12070 # but as the default location of the library.
12071 hardcode_minus_L_FC=yes
12073 esac
12077 irix5* | irix6* | nonstopux*)
12078 if test "$GCC" = yes; then
12079 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12080 # Try to use the -exported_symbol ld option, if it does not
12081 # work, assume that -exports_file does not work either and
12082 # implicitly export all symbols.
12083 save_LDFLAGS="$LDFLAGS"
12084 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12085 cat >conftest.$ac_ext <<_ACEOF
12086 int foo(void) {}
12087 _ACEOF
12088 rm -f conftest.$ac_objext conftest$ac_exeext
12089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12090 (eval $ac_link) 2>conftest.er1
12091 ac_status=$?
12092 grep -v '^ *+' conftest.er1 >conftest.err
12093 rm -f conftest.er1
12094 cat conftest.err >&5
12095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12096 (exit $ac_status); } &&
12097 { ac_try='test -z "$ac_fc_werror_flag"
12098 || test ! -s conftest.err'
12099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12100 (eval $ac_try) 2>&5
12101 ac_status=$?
12102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103 (exit $ac_status); }; } &&
12104 { ac_try='test -s conftest$ac_exeext'
12105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12106 (eval $ac_try) 2>&5
12107 ac_status=$?
12108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12109 (exit $ac_status); }; }; then
12110 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
12112 else
12113 echo "$as_me: failed program was:" >&5
12114 sed 's/^/| /' conftest.$ac_ext >&5
12117 rm -f conftest.err conftest.$ac_objext \
12118 conftest$ac_exeext conftest.$ac_ext
12119 LDFLAGS="$save_LDFLAGS"
12120 else
12121 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12122 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
12124 archive_cmds_need_lc_FC='no'
12125 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12126 hardcode_libdir_separator_FC=:
12127 inherit_rpath_FC=yes
12128 link_all_deplibs_FC=yes
12131 netbsd*)
12132 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12133 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12134 else
12135 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12137 hardcode_libdir_flag_spec_FC='-R$libdir'
12138 hardcode_direct_FC=yes
12139 hardcode_shlibpath_var_FC=no
12142 newsos6)
12143 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12144 hardcode_direct_FC=yes
12145 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12146 hardcode_libdir_separator_FC=:
12147 hardcode_shlibpath_var_FC=no
12150 *nto* | *qnx*)
12153 openbsd*)
12154 hardcode_direct_FC=yes
12155 hardcode_shlibpath_var_FC=no
12156 hardcode_direct_absolute_FC=yes
12157 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12158 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12159 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12160 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
12161 export_dynamic_flag_spec_FC='${wl}-E'
12162 else
12163 case $host_os in
12164 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12165 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12166 hardcode_libdir_flag_spec_FC='-R$libdir'
12169 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12170 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
12172 esac
12176 os2*)
12177 hardcode_libdir_flag_spec_FC='-L$libdir'
12178 hardcode_minus_L_FC=yes
12179 allow_undefined_flag_FC=unsupported
12180 archive_cmds_FC='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
12181 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12184 osf3*)
12185 if test "$GCC" = yes; then
12186 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
12187 archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12188 else
12189 allow_undefined_flag_FC=' -expect_unresolved \*'
12190 archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12192 archive_cmds_need_lc_FC='no'
12193 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12194 hardcode_libdir_separator_FC=:
12197 osf4* | osf5*) # as osf3* with the addition of -msym flag
12198 if test "$GCC" = yes; then
12199 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
12200 archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12201 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12202 else
12203 allow_undefined_flag_FC=' -expect_unresolved \*'
12204 archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12205 archive_expsym_cmds_FC='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
12206 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
12208 # Both c and cxx compiler support -rpath directly
12209 hardcode_libdir_flag_spec_FC='-rpath $libdir'
12211 archive_cmds_need_lc_FC='no'
12212 hardcode_libdir_separator_FC=:
12215 solaris*)
12216 no_undefined_flag_FC=' -z defs'
12217 if test "$GCC" = yes; then
12218 wlarc='${wl}'
12219 archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12220 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12221 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12222 else
12223 case `$CC -V 2>&1` in
12224 *"Compilers 5.0"*)
12225 wlarc=''
12226 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12227 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12228 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12231 wlarc='${wl}'
12232 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12233 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12234 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12236 esac
12238 hardcode_libdir_flag_spec_FC='-R$libdir'
12239 hardcode_shlibpath_var_FC=no
12240 case $host_os in
12241 solaris2.[0-5] | solaris2.[0-5].*) ;;
12243 # The compiler driver will combine and reorder linker options,
12244 # but understands `-z linker_flag'. GCC discards it without `$wl',
12245 # but is careful enough not to reorder.
12246 # Supported since Solaris 2.6 (maybe 2.5.1?)
12247 if test "$GCC" = yes; then
12248 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12249 else
12250 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
12253 esac
12254 link_all_deplibs_FC=yes
12257 sunos4*)
12258 if test "x$host_vendor" = xsequent; then
12259 # Use $CC to link under sequent, because it throws in some extra .o
12260 # files that make .init and .fini sections work.
12261 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12262 else
12263 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12265 hardcode_libdir_flag_spec_FC='-L$libdir'
12266 hardcode_direct_FC=yes
12267 hardcode_minus_L_FC=yes
12268 hardcode_shlibpath_var_FC=no
12271 sysv4)
12272 case $host_vendor in
12273 sni)
12274 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12275 hardcode_direct_FC=yes # is this really true???
12277 siemens)
12278 ## LD is ld it makes a PLAMLIB
12279 ## CC just makes a GrossModule.
12280 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12281 reload_cmds_FC='$CC -r -o $output$reload_objs'
12282 hardcode_direct_FC=no
12284 motorola)
12285 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12286 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
12288 esac
12289 runpath_var='LD_RUN_PATH'
12290 hardcode_shlibpath_var_FC=no
12293 sysv4.3*)
12294 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12295 hardcode_shlibpath_var_FC=no
12296 export_dynamic_flag_spec_FC='-Bexport'
12299 sysv4*MP*)
12300 if test -d /usr/nec; then
12301 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12302 hardcode_shlibpath_var_FC=no
12303 runpath_var=LD_RUN_PATH
12304 hardcode_runpath_var=yes
12305 ld_shlibs_FC=yes
12309 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12310 no_undefined_flag_FC='${wl}-z,text'
12311 archive_cmds_need_lc_FC=no
12312 hardcode_shlibpath_var_FC=no
12313 runpath_var='LD_RUN_PATH'
12315 if test "$GCC" = yes; then
12316 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12317 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12318 else
12319 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12320 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12324 sysv5* | sco3.2v5* | sco5v6*)
12325 # Note: We can NOT use -z defs as we might desire, because we do not
12326 # link with -lc, and that would cause any symbols used from libc to
12327 # always be unresolved, which means just about no library would
12328 # ever link correctly. If we're not using GNU ld we use -z text
12329 # though, which does catch some bad symbols but isn't as heavy-handed
12330 # as -z defs.
12331 no_undefined_flag_FC='${wl}-z,text'
12332 allow_undefined_flag_FC='${wl}-z,nodefs'
12333 archive_cmds_need_lc_FC=no
12334 hardcode_shlibpath_var_FC=no
12335 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
12336 hardcode_libdir_separator_FC=':'
12337 link_all_deplibs_FC=yes
12338 export_dynamic_flag_spec_FC='${wl}-Bexport'
12339 runpath_var='LD_RUN_PATH'
12341 if test "$GCC" = yes; then
12342 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12343 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12344 else
12345 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12346 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12350 uts4*)
12351 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12352 hardcode_libdir_flag_spec_FC='-L$libdir'
12353 hardcode_shlibpath_var_FC=no
12357 ld_shlibs_FC=no
12359 esac
12361 if test x$host_vendor = xsni; then
12362 case $host in
12363 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12364 export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
12366 esac
12370 echo "$as_me:$LINENO: result: $ld_shlibs_FC" >&5
12371 echo "${ECHO_T}$ld_shlibs_FC" >&6
12372 test "$ld_shlibs_FC" = no && can_build_shared=no
12374 with_gnu_ld_FC=$with_gnu_ld
12382 # Do we need to explicitly link libc?
12384 case "x$archive_cmds_need_lc_FC" in
12385 x|xyes)
12386 # Assume -lc should be added
12387 archive_cmds_need_lc_FC=yes
12389 if test "$enable_shared" = yes && test "$GCC" = yes; then
12390 case $archive_cmds_FC in
12391 *'~'*)
12392 # FIXME: we may have to deal with multi-command sequences.
12394 '$CC '*)
12395 # Test whether the compiler implicitly links with -lc since on some
12396 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12397 # to ld, don't add -lc before -lgcc.
12398 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12399 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12400 $RM conftest*
12401 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12404 (eval $ac_compile) 2>&5
12405 ac_status=$?
12406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12407 (exit $ac_status); } 2>conftest.err; then
12408 soname=conftest
12409 lib=conftest
12410 libobjs=conftest.$ac_objext
12411 deplibs=
12412 wl=$lt_prog_compiler_wl_FC
12413 pic_flag=$lt_prog_compiler_pic_FC
12414 compiler_flags=-v
12415 linker_flags=-v
12416 verstring=
12417 output_objdir=.
12418 libname=conftest
12419 lt_save_allow_undefined_flag=$allow_undefined_flag_FC
12420 allow_undefined_flag_FC=
12421 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
12422 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12423 ac_status=$?
12424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12425 (exit $ac_status); }
12426 then
12427 archive_cmds_need_lc_FC=no
12428 else
12429 archive_cmds_need_lc_FC=yes
12431 allow_undefined_flag_FC=$lt_save_allow_undefined_flag
12432 else
12433 cat conftest.err 1>&5
12435 $RM conftest*
12436 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_FC" >&5
12437 echo "${ECHO_T}$archive_cmds_need_lc_FC" >&6
12439 esac
12442 esac
12507 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12508 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12509 withGCC=$ac_cv_fc_compiler_gnu
12510 library_names_spec=
12511 libname_spec='lib$name'
12512 soname_spec=
12513 shrext_cmds=".so"
12514 postinstall_cmds=
12515 postuninstall_cmds=
12516 finish_cmds=
12517 finish_eval=
12518 shlibpath_var=
12519 shlibpath_overrides_runpath=unknown
12520 version_type=none
12521 dynamic_linker="$host_os ld.so"
12522 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12523 need_lib_prefix=unknown
12524 hardcode_into_libs=no
12526 # when you set need_version to no, make sure it does not cause -set_version
12527 # flags to be left without arguments
12528 need_version=unknown
12530 case $host_os in
12531 aix3*)
12532 version_type=linux
12533 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12534 shlibpath_var=LIBPATH
12536 # AIX 3 has no versioning support, so we append a major version to the name.
12537 soname_spec='${libname}${release}${shared_ext}$major'
12540 aix[4-9]*)
12541 version_type=linux
12542 need_lib_prefix=no
12543 need_version=no
12544 hardcode_into_libs=yes
12545 if test "$host_cpu" = ia64; then
12546 # AIX 5 supports IA64
12547 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12548 shlibpath_var=LD_LIBRARY_PATH
12549 else
12550 # With GCC up to 2.95.x, collect2 would create an import file
12551 # for dependence libraries. The import file would start with
12552 # the line `#! .'. This would cause the generated library to
12553 # depend on `.', always an invalid library. This was fixed in
12554 # development snapshots of GCC prior to 3.0.
12555 case $host_os in
12556 aix4 | aix4.[01] | aix4.[01].*)
12557 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12558 echo ' yes '
12559 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12561 else
12562 can_build_shared=no
12565 esac
12566 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12567 # soname into executable. Probably we can add versioning support to
12568 # collect2, so additional links can be useful in future.
12569 if test "$aix_use_runtimelinking" = yes; then
12570 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12571 # instead of lib<name>.a to let people know that these are not
12572 # typical AIX shared libraries.
12573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12574 else
12575 # We preserve .a as extension for shared libraries through AIX4.2
12576 # and later when we are not doing run time linking.
12577 library_names_spec='${libname}${release}.a $libname.a'
12578 soname_spec='${libname}${release}${shared_ext}$major'
12580 shlibpath_var=LIBPATH
12584 amigaos*)
12585 if test "$host_cpu" = m68k; then
12586 library_names_spec='$libname.ixlibrary $libname.a'
12587 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12588 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
12589 else
12590 dynamic_linker=no
12594 beos*)
12595 library_names_spec='${libname}${shared_ext}'
12596 dynamic_linker="$host_os ld.so"
12597 shlibpath_var=LIBRARY_PATH
12600 bsdi[45]*)
12601 version_type=linux
12602 need_version=no
12603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12604 soname_spec='${libname}${release}${shared_ext}$major'
12605 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12606 shlibpath_var=LD_LIBRARY_PATH
12607 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12608 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12609 # the default ld.so.conf also contains /usr/contrib/lib and
12610 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12611 # libtool to hard-code these into programs
12614 cygwin* | mingw* | pw32*)
12615 version_type=windows
12616 shrext_cmds=".dll"
12617 need_version=no
12618 need_lib_prefix=no
12620 case $withGCC,$host_os in
12621 yes,cygwin* | yes,mingw* | yes,pw32*)
12622 library_names_spec='$libname.dll.a'
12623 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12624 postinstall_cmds='base_file=`basename \${file}`~
12625 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12626 dldir=$destdir/`dirname \$dlpath`~
12627 test -d \$dldir || mkdir -p \$dldir~
12628 $install_prog $dir/$dlname \$dldir/$dlname~
12629 chmod a+x \$dldir/$dlname~
12630 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12631 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12633 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12634 dlpath=$dir/\$dldll~
12635 $RM \$dlpath'
12636 shlibpath_overrides_runpath=yes
12638 case $host_os in
12639 cygwin*)
12640 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12641 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12642 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12644 mingw*)
12645 # MinGW DLLs use traditional 'lib' prefix
12646 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12647 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12648 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12649 # It is most probably a Windows format PATH printed by
12650 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12651 # path with ; separators, and with drive letters. We can handle the
12652 # drive letters (cygwin fileutils understands them), so leave them,
12653 # especially as we might pass files found there to a mingw objdump,
12654 # which wouldn't understand a cygwinified path. Ahh.
12655 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12656 else
12657 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12660 pw32*)
12661 # pw32 DLLs use 'pw' prefix rather than 'lib'
12662 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12664 esac
12668 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12670 esac
12671 dynamic_linker='Win32 ld.exe'
12672 # FIXME: first we should search . and the directory the executable is in
12673 shlibpath_var=PATH
12676 darwin* | rhapsody*)
12677 dynamic_linker="$host_os dyld"
12678 version_type=darwin
12679 need_lib_prefix=no
12680 need_version=no
12681 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12682 soname_spec='${libname}${release}${major}$shared_ext'
12683 shlibpath_overrides_runpath=yes
12684 shlibpath_var=DYLD_LIBRARY_PATH
12685 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12687 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12690 dgux*)
12691 version_type=linux
12692 need_lib_prefix=no
12693 need_version=no
12694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12695 soname_spec='${libname}${release}${shared_ext}$major'
12696 shlibpath_var=LD_LIBRARY_PATH
12699 freebsd1*)
12700 dynamic_linker=no
12703 freebsd* | dragonfly*)
12704 # DragonFly does not have aout. When/if they implement a new
12705 # versioning mechanism, adjust this.
12706 if test -x /usr/bin/objformat; then
12707 objformat=`/usr/bin/objformat`
12708 else
12709 case $host_os in
12710 freebsd[123]*) objformat=aout ;;
12711 *) objformat=elf ;;
12712 esac
12714 version_type=freebsd-$objformat
12715 case $version_type in
12716 freebsd-elf*)
12717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12718 need_version=no
12719 need_lib_prefix=no
12721 freebsd-*)
12722 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12723 need_version=yes
12725 esac
12726 shlibpath_var=LD_LIBRARY_PATH
12727 case $host_os in
12728 freebsd2*)
12729 shlibpath_overrides_runpath=yes
12731 freebsd3.[01]* | freebsdelf3.[01]*)
12732 shlibpath_overrides_runpath=yes
12733 hardcode_into_libs=yes
12735 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12736 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12737 shlibpath_overrides_runpath=no
12738 hardcode_into_libs=yes
12740 *) # from 4.6 on, and DragonFly
12741 shlibpath_overrides_runpath=yes
12742 hardcode_into_libs=yes
12744 esac
12747 gnu*)
12748 version_type=linux
12749 need_lib_prefix=no
12750 need_version=no
12751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12752 soname_spec='${libname}${release}${shared_ext}$major'
12753 shlibpath_var=LD_LIBRARY_PATH
12754 hardcode_into_libs=yes
12757 hpux9* | hpux10* | hpux11*)
12758 # Give a soname corresponding to the major version so that dld.sl refuses to
12759 # link against other versions.
12760 version_type=sunos
12761 need_lib_prefix=no
12762 need_version=no
12763 case $host_cpu in
12764 ia64*)
12765 shrext_cmds='.so'
12766 hardcode_into_libs=yes
12767 dynamic_linker="$host_os dld.so"
12768 shlibpath_var=LD_LIBRARY_PATH
12769 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12771 soname_spec='${libname}${release}${shared_ext}$major'
12772 if test "X$HPUX_IA64_MODE" = X32; then
12773 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12774 else
12775 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12777 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12779 hppa*64*)
12780 shrext_cmds='.sl'
12781 hardcode_into_libs=yes
12782 dynamic_linker="$host_os dld.sl"
12783 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12784 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12786 soname_spec='${libname}${release}${shared_ext}$major'
12787 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12788 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12791 shrext_cmds='.sl'
12792 dynamic_linker="$host_os dld.sl"
12793 shlibpath_var=SHLIB_PATH
12794 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12796 soname_spec='${libname}${release}${shared_ext}$major'
12798 esac
12799 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12800 postinstall_cmds='chmod 555 $lib'
12803 interix[3-9]*)
12804 version_type=linux
12805 need_lib_prefix=no
12806 need_version=no
12807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12808 soname_spec='${libname}${release}${shared_ext}$major'
12809 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12810 shlibpath_var=LD_LIBRARY_PATH
12811 shlibpath_overrides_runpath=no
12812 hardcode_into_libs=yes
12815 irix5* | irix6* | nonstopux*)
12816 case $host_os in
12817 nonstopux*) version_type=nonstopux ;;
12819 if test "$lt_cv_prog_gnu_ld" = yes; then
12820 version_type=linux
12821 else
12822 version_type=irix
12823 fi ;;
12824 esac
12825 need_lib_prefix=no
12826 need_version=no
12827 soname_spec='${libname}${release}${shared_ext}$major'
12828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12829 case $host_os in
12830 irix5* | nonstopux*)
12831 libsuff= shlibsuff=
12834 case $LD in # libtool.m4 will add one of these switches to LD
12835 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12836 libsuff= shlibsuff= libmagic=32-bit;;
12837 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12838 libsuff=32 shlibsuff=N32 libmagic=N32;;
12839 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12840 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12841 *) libsuff= shlibsuff= libmagic=never-match;;
12842 esac
12844 esac
12845 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12846 shlibpath_overrides_runpath=no
12847 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12848 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12849 hardcode_into_libs=yes
12852 # No shared lib support for Linux oldld, aout, or coff.
12853 linux*oldld* | linux*aout* | linux*coff*)
12854 dynamic_linker=no
12857 # This must be Linux ELF.
12858 linux* | k*bsd*-gnu)
12859 version_type=linux
12860 need_lib_prefix=no
12861 need_version=no
12862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12863 soname_spec='${libname}${release}${shared_ext}$major'
12864 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12865 shlibpath_var=LD_LIBRARY_PATH
12866 shlibpath_overrides_runpath=no
12867 # Some binutils ld are patched to set DT_RUNPATH
12868 save_LDFLAGS=$LDFLAGS
12869 save_libdir=$libdir
12870 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
12871 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
12872 cat >conftest.$ac_ext <<_ACEOF
12873 program main
12876 _ACEOF
12877 rm -f conftest.$ac_objext conftest$ac_exeext
12878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12879 (eval $ac_link) 2>conftest.er1
12880 ac_status=$?
12881 grep -v '^ *+' conftest.er1 >conftest.err
12882 rm -f conftest.er1
12883 cat conftest.err >&5
12884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12885 (exit $ac_status); } &&
12886 { ac_try='test -z "$ac_fc_werror_flag"
12887 || test ! -s conftest.err'
12888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12889 (eval $ac_try) 2>&5
12890 ac_status=$?
12891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12892 (exit $ac_status); }; } &&
12893 { ac_try='test -s conftest$ac_exeext'
12894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12895 (eval $ac_try) 2>&5
12896 ac_status=$?
12897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12898 (exit $ac_status); }; }; then
12899 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
12900 shlibpath_overrides_runpath=yes
12903 else
12904 echo "$as_me: failed program was:" >&5
12905 sed 's/^/| /' conftest.$ac_ext >&5
12908 rm -f conftest.err conftest.$ac_objext \
12909 conftest$ac_exeext conftest.$ac_ext
12910 LDFLAGS=$save_LDFLAGS
12911 libdir=$save_libdir
12913 # This implies no fast_install, which is unacceptable.
12914 # Some rework will be needed to allow for fast_install
12915 # before this can be enabled.
12916 hardcode_into_libs=yes
12918 # Append ld.so.conf contents to the search path
12919 if test -f /etc/ld.so.conf; then
12920 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12921 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12924 # We used to test for /lib/ld.so.1 and disable shared libraries on
12925 # powerpc, because MkLinux only supported shared libraries with the
12926 # GNU dynamic linker. Since this was broken with cross compilers,
12927 # most powerpc-linux boxes support dynamic linking these days and
12928 # people can always --disable-shared, the test was removed, and we
12929 # assume the GNU/Linux dynamic linker is in use.
12930 dynamic_linker='GNU/Linux ld.so'
12933 netbsd*)
12934 version_type=sunos
12935 need_lib_prefix=no
12936 need_version=no
12937 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12939 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12940 dynamic_linker='NetBSD (a.out) ld.so'
12941 else
12942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12943 soname_spec='${libname}${release}${shared_ext}$major'
12944 dynamic_linker='NetBSD ld.elf_so'
12946 shlibpath_var=LD_LIBRARY_PATH
12947 shlibpath_overrides_runpath=yes
12948 hardcode_into_libs=yes
12951 newsos6)
12952 version_type=linux
12953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12954 shlibpath_var=LD_LIBRARY_PATH
12955 shlibpath_overrides_runpath=yes
12958 *nto* | *qnx*)
12959 version_type=qnx
12960 need_lib_prefix=no
12961 need_version=no
12962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12963 soname_spec='${libname}${release}${shared_ext}$major'
12964 shlibpath_var=LD_LIBRARY_PATH
12965 shlibpath_overrides_runpath=no
12966 hardcode_into_libs=yes
12967 dynamic_linker='ldqnx.so'
12970 openbsd*)
12971 version_type=sunos
12972 sys_lib_dlsearch_path_spec="/usr/lib"
12973 need_lib_prefix=no
12974 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12975 case $host_os in
12976 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12977 *) need_version=no ;;
12978 esac
12979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12980 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12981 shlibpath_var=LD_LIBRARY_PATH
12982 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12983 case $host_os in
12984 openbsd2.[89] | openbsd2.[89].*)
12985 shlibpath_overrides_runpath=no
12988 shlibpath_overrides_runpath=yes
12990 esac
12991 else
12992 shlibpath_overrides_runpath=yes
12996 os2*)
12997 libname_spec='$name'
12998 shrext_cmds=".dll"
12999 need_lib_prefix=no
13000 library_names_spec='$libname${shared_ext} $libname.a'
13001 dynamic_linker='OS/2 ld.exe'
13002 shlibpath_var=LIBPATH
13005 osf3* | osf4* | osf5*)
13006 version_type=osf
13007 need_lib_prefix=no
13008 need_version=no
13009 soname_spec='${libname}${release}${shared_ext}$major'
13010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13011 shlibpath_var=LD_LIBRARY_PATH
13012 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13013 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13016 rdos*)
13017 dynamic_linker=no
13020 solaris*)
13021 version_type=linux
13022 need_lib_prefix=no
13023 need_version=no
13024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13025 soname_spec='${libname}${release}${shared_ext}$major'
13026 shlibpath_var=LD_LIBRARY_PATH
13027 shlibpath_overrides_runpath=yes
13028 hardcode_into_libs=yes
13029 # ldd complains unless libraries are executable
13030 postinstall_cmds='chmod +x $lib'
13033 sunos4*)
13034 version_type=sunos
13035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13036 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13037 shlibpath_var=LD_LIBRARY_PATH
13038 shlibpath_overrides_runpath=yes
13039 if test "$with_gnu_ld" = yes; then
13040 need_lib_prefix=no
13042 need_version=yes
13045 sysv4 | sysv4.3*)
13046 version_type=linux
13047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13048 soname_spec='${libname}${release}${shared_ext}$major'
13049 shlibpath_var=LD_LIBRARY_PATH
13050 case $host_vendor in
13051 sni)
13052 shlibpath_overrides_runpath=no
13053 need_lib_prefix=no
13054 runpath_var=LD_RUN_PATH
13056 siemens)
13057 need_lib_prefix=no
13059 motorola)
13060 need_lib_prefix=no
13061 need_version=no
13062 shlibpath_overrides_runpath=no
13063 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13065 esac
13068 sysv4*MP*)
13069 if test -d /usr/nec ;then
13070 version_type=linux
13071 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13072 soname_spec='$libname${shared_ext}.$major'
13073 shlibpath_var=LD_LIBRARY_PATH
13077 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13078 version_type=freebsd-elf
13079 need_lib_prefix=no
13080 need_version=no
13081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13082 soname_spec='${libname}${release}${shared_ext}$major'
13083 shlibpath_var=LD_LIBRARY_PATH
13084 shlibpath_overrides_runpath=yes
13085 hardcode_into_libs=yes
13086 if test "$with_gnu_ld" = yes; then
13087 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13088 else
13089 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13090 case $host_os in
13091 sco3.2v5*)
13092 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13094 esac
13096 sys_lib_dlsearch_path_spec='/usr/lib'
13099 tpf*)
13100 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13101 version_type=linux
13102 need_lib_prefix=no
13103 need_version=no
13104 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13105 shlibpath_var=LD_LIBRARY_PATH
13106 shlibpath_overrides_runpath=no
13107 hardcode_into_libs=yes
13110 uts4*)
13111 version_type=linux
13112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13113 soname_spec='${libname}${release}${shared_ext}$major'
13114 shlibpath_var=LD_LIBRARY_PATH
13118 dynamic_linker=no
13120 esac
13121 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13122 echo "${ECHO_T}$dynamic_linker" >&6
13123 test "$dynamic_linker" = no && can_build_shared=no
13125 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13126 if test "$GCC" = yes; then
13127 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13165 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13166 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13167 hardcode_action_FC=
13168 if test -n "$hardcode_libdir_flag_spec_FC" ||
13169 test -n "$runpath_var_FC" ||
13170 test "X$hardcode_automatic_FC" = "Xyes" ; then
13172 # We can hardcode non-existent directories.
13173 if test "$hardcode_direct_FC" != no &&
13174 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13175 # have to relink, otherwise we might link with an installed library
13176 # when we should be linking with a yet-to-be-installed one
13177 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
13178 test "$hardcode_minus_L_FC" != no; then
13179 # Linking always hardcodes the temporary library directory.
13180 hardcode_action_FC=relink
13181 else
13182 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13183 hardcode_action_FC=immediate
13185 else
13186 # We cannot hardcode anything, or else we can only hardcode existing
13187 # directories.
13188 hardcode_action_FC=unsupported
13190 echo "$as_me:$LINENO: result: $hardcode_action_FC" >&5
13191 echo "${ECHO_T}$hardcode_action_FC" >&6
13193 if test "$hardcode_action_FC" = relink ||
13194 test "$inherit_rpath_FC" = yes; then
13195 # Fast installation is not supported
13196 enable_fast_install=no
13197 elif test "$shlibpath_overrides_runpath" = yes ||
13198 test "$enable_shared" = no; then
13199 # Fast installation is not necessary
13200 enable_fast_install=needless
13209 fi # test -n "$compiler"
13211 CC="$lt_save_CC"
13212 fi # test "$_lt_disable_FC" != yes
13214 ac_ext=c
13215 ac_cpp='$CPP $CPPFLAGS'
13216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13221 FCFLAGS="$FCFLAGS -Wall"
13223 # For libtool versioning info, format is CURRENT:REVISION:AGE
13224 libtool_VERSION=1:0:0
13227 # Check header files.
13228 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13229 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13230 if test "${ac_cv_header_stdc+set}" = set; then
13231 echo $ECHO_N "(cached) $ECHO_C" >&6
13232 else
13233 cat >conftest.$ac_ext <<_ACEOF
13234 /* confdefs.h. */
13235 _ACEOF
13236 cat confdefs.h >>conftest.$ac_ext
13237 cat >>conftest.$ac_ext <<_ACEOF
13238 /* end confdefs.h. */
13239 #include <stdlib.h>
13240 #include <stdarg.h>
13241 #include <string.h>
13242 #include <float.h>
13245 main ()
13249 return 0;
13251 _ACEOF
13252 rm -f conftest.$ac_objext
13253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13254 (eval $ac_compile) 2>conftest.er1
13255 ac_status=$?
13256 grep -v '^ *+' conftest.er1 >conftest.err
13257 rm -f conftest.er1
13258 cat conftest.err >&5
13259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13260 (exit $ac_status); } &&
13261 { ac_try='test -z "$ac_c_werror_flag"
13262 || test ! -s conftest.err'
13263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13264 (eval $ac_try) 2>&5
13265 ac_status=$?
13266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13267 (exit $ac_status); }; } &&
13268 { ac_try='test -s conftest.$ac_objext'
13269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13270 (eval $ac_try) 2>&5
13271 ac_status=$?
13272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13273 (exit $ac_status); }; }; then
13274 ac_cv_header_stdc=yes
13275 else
13276 echo "$as_me: failed program was:" >&5
13277 sed 's/^/| /' conftest.$ac_ext >&5
13279 ac_cv_header_stdc=no
13281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13283 if test $ac_cv_header_stdc = yes; then
13284 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13285 cat >conftest.$ac_ext <<_ACEOF
13286 /* confdefs.h. */
13287 _ACEOF
13288 cat confdefs.h >>conftest.$ac_ext
13289 cat >>conftest.$ac_ext <<_ACEOF
13290 /* end confdefs.h. */
13291 #include <string.h>
13293 _ACEOF
13294 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13295 $EGREP "memchr" >/dev/null 2>&1; then
13297 else
13298 ac_cv_header_stdc=no
13300 rm -f conftest*
13304 if test $ac_cv_header_stdc = yes; then
13305 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13306 cat >conftest.$ac_ext <<_ACEOF
13307 /* confdefs.h. */
13308 _ACEOF
13309 cat confdefs.h >>conftest.$ac_ext
13310 cat >>conftest.$ac_ext <<_ACEOF
13311 /* end confdefs.h. */
13312 #include <stdlib.h>
13314 _ACEOF
13315 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13316 $EGREP "free" >/dev/null 2>&1; then
13318 else
13319 ac_cv_header_stdc=no
13321 rm -f conftest*
13325 if test $ac_cv_header_stdc = yes; then
13326 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13327 if test "$cross_compiling" = yes; then
13329 else
13330 cat >conftest.$ac_ext <<_ACEOF
13331 /* confdefs.h. */
13332 _ACEOF
13333 cat confdefs.h >>conftest.$ac_ext
13334 cat >>conftest.$ac_ext <<_ACEOF
13335 /* end confdefs.h. */
13336 #include <ctype.h>
13337 #if ((' ' & 0x0FF) == 0x020)
13338 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13339 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13340 #else
13341 # define ISLOWER(c) \
13342 (('a' <= (c) && (c) <= 'i') \
13343 || ('j' <= (c) && (c) <= 'r') \
13344 || ('s' <= (c) && (c) <= 'z'))
13345 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13346 #endif
13348 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13350 main ()
13352 int i;
13353 for (i = 0; i < 256; i++)
13354 if (XOR (islower (i), ISLOWER (i))
13355 || toupper (i) != TOUPPER (i))
13356 exit(2);
13357 exit (0);
13359 _ACEOF
13360 rm -f conftest$ac_exeext
13361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13362 (eval $ac_link) 2>&5
13363 ac_status=$?
13364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13365 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13367 (eval $ac_try) 2>&5
13368 ac_status=$?
13369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13370 (exit $ac_status); }; }; then
13372 else
13373 echo "$as_me: program exited with status $ac_status" >&5
13374 echo "$as_me: failed program was:" >&5
13375 sed 's/^/| /' conftest.$ac_ext >&5
13377 ( exit $ac_status )
13378 ac_cv_header_stdc=no
13380 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13384 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13385 echo "${ECHO_T}$ac_cv_header_stdc" >&6
13386 if test $ac_cv_header_stdc = yes; then
13388 cat >>confdefs.h <<\_ACEOF
13389 #define STDC_HEADERS 1
13390 _ACEOF
13394 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
13395 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
13396 if test "${ac_cv_header_time+set}" = set; then
13397 echo $ECHO_N "(cached) $ECHO_C" >&6
13398 else
13399 cat >conftest.$ac_ext <<_ACEOF
13400 /* confdefs.h. */
13401 _ACEOF
13402 cat confdefs.h >>conftest.$ac_ext
13403 cat >>conftest.$ac_ext <<_ACEOF
13404 /* end confdefs.h. */
13405 #include <sys/types.h>
13406 #include <sys/time.h>
13407 #include <time.h>
13410 main ()
13412 if ((struct tm *) 0)
13413 return 0;
13415 return 0;
13417 _ACEOF
13418 rm -f conftest.$ac_objext
13419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13420 (eval $ac_compile) 2>conftest.er1
13421 ac_status=$?
13422 grep -v '^ *+' conftest.er1 >conftest.err
13423 rm -f conftest.er1
13424 cat conftest.err >&5
13425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13426 (exit $ac_status); } &&
13427 { ac_try='test -z "$ac_c_werror_flag"
13428 || test ! -s conftest.err'
13429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13430 (eval $ac_try) 2>&5
13431 ac_status=$?
13432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13433 (exit $ac_status); }; } &&
13434 { ac_try='test -s conftest.$ac_objext'
13435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13436 (eval $ac_try) 2>&5
13437 ac_status=$?
13438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13439 (exit $ac_status); }; }; then
13440 ac_cv_header_time=yes
13441 else
13442 echo "$as_me: failed program was:" >&5
13443 sed 's/^/| /' conftest.$ac_ext >&5
13445 ac_cv_header_time=no
13447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13449 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
13450 echo "${ECHO_T}$ac_cv_header_time" >&6
13451 if test $ac_cv_header_time = yes; then
13453 cat >>confdefs.h <<\_ACEOF
13454 #define TIME_WITH_SYS_TIME 1
13455 _ACEOF
13459 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
13460 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
13461 if test "${gcc_cv_header_string+set}" = set; then
13462 echo $ECHO_N "(cached) $ECHO_C" >&6
13463 else
13464 cat >conftest.$ac_ext <<_ACEOF
13465 /* confdefs.h. */
13466 _ACEOF
13467 cat confdefs.h >>conftest.$ac_ext
13468 cat >>conftest.$ac_ext <<_ACEOF
13469 /* end confdefs.h. */
13470 #include <string.h>
13471 #include <strings.h>
13473 main ()
13477 return 0;
13479 _ACEOF
13480 rm -f conftest.$ac_objext
13481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13482 (eval $ac_compile) 2>conftest.er1
13483 ac_status=$?
13484 grep -v '^ *+' conftest.er1 >conftest.err
13485 rm -f conftest.er1
13486 cat conftest.err >&5
13487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13488 (exit $ac_status); } &&
13489 { ac_try='test -z "$ac_c_werror_flag"
13490 || test ! -s conftest.err'
13491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13492 (eval $ac_try) 2>&5
13493 ac_status=$?
13494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13495 (exit $ac_status); }; } &&
13496 { ac_try='test -s conftest.$ac_objext'
13497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13498 (eval $ac_try) 2>&5
13499 ac_status=$?
13500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13501 (exit $ac_status); }; }; then
13502 gcc_cv_header_string=yes
13503 else
13504 echo "$as_me: failed program was:" >&5
13505 sed 's/^/| /' conftest.$ac_ext >&5
13507 gcc_cv_header_string=no
13509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13511 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
13512 echo "${ECHO_T}$gcc_cv_header_string" >&6
13513 if test $gcc_cv_header_string = yes; then
13515 cat >>confdefs.h <<\_ACEOF
13516 #define STRING_WITH_STRINGS 1
13517 _ACEOF
13525 for ac_header in unistd.h semaphore.h sys/loadavg.h sys/time.h
13527 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13528 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13529 echo "$as_me:$LINENO: checking for $ac_header" >&5
13530 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13531 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13532 echo $ECHO_N "(cached) $ECHO_C" >&6
13534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13535 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13536 else
13537 # Is the header compilable?
13538 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13539 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13540 cat >conftest.$ac_ext <<_ACEOF
13541 /* confdefs.h. */
13542 _ACEOF
13543 cat confdefs.h >>conftest.$ac_ext
13544 cat >>conftest.$ac_ext <<_ACEOF
13545 /* end confdefs.h. */
13546 $ac_includes_default
13547 #include <$ac_header>
13548 _ACEOF
13549 rm -f conftest.$ac_objext
13550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13551 (eval $ac_compile) 2>conftest.er1
13552 ac_status=$?
13553 grep -v '^ *+' conftest.er1 >conftest.err
13554 rm -f conftest.er1
13555 cat conftest.err >&5
13556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13557 (exit $ac_status); } &&
13558 { ac_try='test -z "$ac_c_werror_flag"
13559 || test ! -s conftest.err'
13560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13561 (eval $ac_try) 2>&5
13562 ac_status=$?
13563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13564 (exit $ac_status); }; } &&
13565 { ac_try='test -s conftest.$ac_objext'
13566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13567 (eval $ac_try) 2>&5
13568 ac_status=$?
13569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13570 (exit $ac_status); }; }; then
13571 ac_header_compiler=yes
13572 else
13573 echo "$as_me: failed program was:" >&5
13574 sed 's/^/| /' conftest.$ac_ext >&5
13576 ac_header_compiler=no
13578 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13579 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13580 echo "${ECHO_T}$ac_header_compiler" >&6
13582 # Is the header present?
13583 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13584 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13585 cat >conftest.$ac_ext <<_ACEOF
13586 /* confdefs.h. */
13587 _ACEOF
13588 cat confdefs.h >>conftest.$ac_ext
13589 cat >>conftest.$ac_ext <<_ACEOF
13590 /* end confdefs.h. */
13591 #include <$ac_header>
13592 _ACEOF
13593 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13594 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13595 ac_status=$?
13596 grep -v '^ *+' conftest.er1 >conftest.err
13597 rm -f conftest.er1
13598 cat conftest.err >&5
13599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13600 (exit $ac_status); } >/dev/null; then
13601 if test -s conftest.err; then
13602 ac_cpp_err=$ac_c_preproc_warn_flag
13603 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13604 else
13605 ac_cpp_err=
13607 else
13608 ac_cpp_err=yes
13610 if test -z "$ac_cpp_err"; then
13611 ac_header_preproc=yes
13612 else
13613 echo "$as_me: failed program was:" >&5
13614 sed 's/^/| /' conftest.$ac_ext >&5
13616 ac_header_preproc=no
13618 rm -f conftest.err conftest.$ac_ext
13619 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13620 echo "${ECHO_T}$ac_header_preproc" >&6
13622 # So? What about this header?
13623 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13624 yes:no: )
13625 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13626 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13627 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13628 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13629 ac_header_preproc=yes
13631 no:yes:* )
13632 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13633 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13634 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13635 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13636 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13637 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13638 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13639 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13640 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13641 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13642 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13643 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13645 cat <<\_ASBOX
13646 ## ----------------------------------------------------- ##
13647 ## Report this to the GNU OpenMP Runtime Library lists. ##
13648 ## ----------------------------------------------------- ##
13649 _ASBOX
13651 sed "s/^/$as_me: WARNING: /" >&2
13653 esac
13654 echo "$as_me:$LINENO: checking for $ac_header" >&5
13655 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13656 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13657 echo $ECHO_N "(cached) $ECHO_C" >&6
13658 else
13659 eval "$as_ac_Header=\$ac_header_preproc"
13661 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13662 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13665 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13666 cat >>confdefs.h <<_ACEOF
13667 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13668 _ACEOF
13672 done
13677 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
13679 acx_cv_header_stdint=stddef.h
13680 acx_cv_header_stdint_kind="(already complete)"
13681 for i in stdint.h $inttype_headers; do
13682 unset ac_cv_type_uintptr_t
13683 unset ac_cv_type_uintmax_t
13684 unset ac_cv_type_int_least32_t
13685 unset ac_cv_type_int_fast32_t
13686 unset ac_cv_type_uint64_t
13687 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
13688 echo "$as_me:$LINENO: checking for uintmax_t" >&5
13689 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
13690 if test "${ac_cv_type_uintmax_t+set}" = set; then
13691 echo $ECHO_N "(cached) $ECHO_C" >&6
13692 else
13693 cat >conftest.$ac_ext <<_ACEOF
13694 /* confdefs.h. */
13695 _ACEOF
13696 cat confdefs.h >>conftest.$ac_ext
13697 cat >>conftest.$ac_ext <<_ACEOF
13698 /* end confdefs.h. */
13699 #include <sys/types.h>
13700 #include <$i>
13703 main ()
13705 if ((uintmax_t *) 0)
13706 return 0;
13707 if (sizeof (uintmax_t))
13708 return 0;
13710 return 0;
13712 _ACEOF
13713 rm -f conftest.$ac_objext
13714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13715 (eval $ac_compile) 2>conftest.er1
13716 ac_status=$?
13717 grep -v '^ *+' conftest.er1 >conftest.err
13718 rm -f conftest.er1
13719 cat conftest.err >&5
13720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13721 (exit $ac_status); } &&
13722 { ac_try='test -z "$ac_c_werror_flag"
13723 || test ! -s conftest.err'
13724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13725 (eval $ac_try) 2>&5
13726 ac_status=$?
13727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728 (exit $ac_status); }; } &&
13729 { ac_try='test -s conftest.$ac_objext'
13730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13731 (eval $ac_try) 2>&5
13732 ac_status=$?
13733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734 (exit $ac_status); }; }; then
13735 ac_cv_type_uintmax_t=yes
13736 else
13737 echo "$as_me: failed program was:" >&5
13738 sed 's/^/| /' conftest.$ac_ext >&5
13740 ac_cv_type_uintmax_t=no
13742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13744 echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
13745 echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
13746 if test $ac_cv_type_uintmax_t = yes; then
13747 acx_cv_header_stdint=$i
13748 else
13749 continue
13752 echo "$as_me:$LINENO: checking for uintptr_t" >&5
13753 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
13754 if test "${ac_cv_type_uintptr_t+set}" = set; then
13755 echo $ECHO_N "(cached) $ECHO_C" >&6
13756 else
13757 cat >conftest.$ac_ext <<_ACEOF
13758 /* confdefs.h. */
13759 _ACEOF
13760 cat confdefs.h >>conftest.$ac_ext
13761 cat >>conftest.$ac_ext <<_ACEOF
13762 /* end confdefs.h. */
13763 #include <sys/types.h>
13764 #include <$i>
13767 main ()
13769 if ((uintptr_t *) 0)
13770 return 0;
13771 if (sizeof (uintptr_t))
13772 return 0;
13774 return 0;
13776 _ACEOF
13777 rm -f conftest.$ac_objext
13778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13779 (eval $ac_compile) 2>conftest.er1
13780 ac_status=$?
13781 grep -v '^ *+' conftest.er1 >conftest.err
13782 rm -f conftest.er1
13783 cat conftest.err >&5
13784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13785 (exit $ac_status); } &&
13786 { ac_try='test -z "$ac_c_werror_flag"
13787 || test ! -s conftest.err'
13788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13789 (eval $ac_try) 2>&5
13790 ac_status=$?
13791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13792 (exit $ac_status); }; } &&
13793 { ac_try='test -s conftest.$ac_objext'
13794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13795 (eval $ac_try) 2>&5
13796 ac_status=$?
13797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798 (exit $ac_status); }; }; then
13799 ac_cv_type_uintptr_t=yes
13800 else
13801 echo "$as_me: failed program was:" >&5
13802 sed 's/^/| /' conftest.$ac_ext >&5
13804 ac_cv_type_uintptr_t=no
13806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13808 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
13809 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
13810 if test $ac_cv_type_uintptr_t = yes; then
13812 else
13813 acx_cv_header_stdint_kind="(mostly complete)"
13816 echo "$as_me:$LINENO: checking for int_least32_t" >&5
13817 echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
13818 if test "${ac_cv_type_int_least32_t+set}" = set; then
13819 echo $ECHO_N "(cached) $ECHO_C" >&6
13820 else
13821 cat >conftest.$ac_ext <<_ACEOF
13822 /* confdefs.h. */
13823 _ACEOF
13824 cat confdefs.h >>conftest.$ac_ext
13825 cat >>conftest.$ac_ext <<_ACEOF
13826 /* end confdefs.h. */
13827 #include <sys/types.h>
13828 #include <$i>
13831 main ()
13833 if ((int_least32_t *) 0)
13834 return 0;
13835 if (sizeof (int_least32_t))
13836 return 0;
13838 return 0;
13840 _ACEOF
13841 rm -f conftest.$ac_objext
13842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13843 (eval $ac_compile) 2>conftest.er1
13844 ac_status=$?
13845 grep -v '^ *+' conftest.er1 >conftest.err
13846 rm -f conftest.er1
13847 cat conftest.err >&5
13848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13849 (exit $ac_status); } &&
13850 { ac_try='test -z "$ac_c_werror_flag"
13851 || test ! -s conftest.err'
13852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13853 (eval $ac_try) 2>&5
13854 ac_status=$?
13855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13856 (exit $ac_status); }; } &&
13857 { ac_try='test -s conftest.$ac_objext'
13858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13859 (eval $ac_try) 2>&5
13860 ac_status=$?
13861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13862 (exit $ac_status); }; }; then
13863 ac_cv_type_int_least32_t=yes
13864 else
13865 echo "$as_me: failed program was:" >&5
13866 sed 's/^/| /' conftest.$ac_ext >&5
13868 ac_cv_type_int_least32_t=no
13870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13872 echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
13873 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
13874 if test $ac_cv_type_int_least32_t = yes; then
13876 else
13877 acx_cv_header_stdint_kind="(mostly complete)"
13880 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
13881 echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
13882 if test "${ac_cv_type_int_fast32_t+set}" = set; then
13883 echo $ECHO_N "(cached) $ECHO_C" >&6
13884 else
13885 cat >conftest.$ac_ext <<_ACEOF
13886 /* confdefs.h. */
13887 _ACEOF
13888 cat confdefs.h >>conftest.$ac_ext
13889 cat >>conftest.$ac_ext <<_ACEOF
13890 /* end confdefs.h. */
13891 #include <sys/types.h>
13892 #include <$i>
13895 main ()
13897 if ((int_fast32_t *) 0)
13898 return 0;
13899 if (sizeof (int_fast32_t))
13900 return 0;
13902 return 0;
13904 _ACEOF
13905 rm -f conftest.$ac_objext
13906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13907 (eval $ac_compile) 2>conftest.er1
13908 ac_status=$?
13909 grep -v '^ *+' conftest.er1 >conftest.err
13910 rm -f conftest.er1
13911 cat conftest.err >&5
13912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13913 (exit $ac_status); } &&
13914 { ac_try='test -z "$ac_c_werror_flag"
13915 || test ! -s conftest.err'
13916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13917 (eval $ac_try) 2>&5
13918 ac_status=$?
13919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13920 (exit $ac_status); }; } &&
13921 { ac_try='test -s conftest.$ac_objext'
13922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13923 (eval $ac_try) 2>&5
13924 ac_status=$?
13925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13926 (exit $ac_status); }; }; then
13927 ac_cv_type_int_fast32_t=yes
13928 else
13929 echo "$as_me: failed program was:" >&5
13930 sed 's/^/| /' conftest.$ac_ext >&5
13932 ac_cv_type_int_fast32_t=no
13934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13936 echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
13937 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
13938 if test $ac_cv_type_int_fast32_t = yes; then
13940 else
13941 acx_cv_header_stdint_kind="(mostly complete)"
13944 echo "$as_me:$LINENO: checking for uint64_t" >&5
13945 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
13946 if test "${ac_cv_type_uint64_t+set}" = set; then
13947 echo $ECHO_N "(cached) $ECHO_C" >&6
13948 else
13949 cat >conftest.$ac_ext <<_ACEOF
13950 /* confdefs.h. */
13951 _ACEOF
13952 cat confdefs.h >>conftest.$ac_ext
13953 cat >>conftest.$ac_ext <<_ACEOF
13954 /* end confdefs.h. */
13955 #include <sys/types.h>
13956 #include <$i>
13959 main ()
13961 if ((uint64_t *) 0)
13962 return 0;
13963 if (sizeof (uint64_t))
13964 return 0;
13966 return 0;
13968 _ACEOF
13969 rm -f conftest.$ac_objext
13970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13971 (eval $ac_compile) 2>conftest.er1
13972 ac_status=$?
13973 grep -v '^ *+' conftest.er1 >conftest.err
13974 rm -f conftest.er1
13975 cat conftest.err >&5
13976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977 (exit $ac_status); } &&
13978 { ac_try='test -z "$ac_c_werror_flag"
13979 || test ! -s conftest.err'
13980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13981 (eval $ac_try) 2>&5
13982 ac_status=$?
13983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13984 (exit $ac_status); }; } &&
13985 { ac_try='test -s conftest.$ac_objext'
13986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13987 (eval $ac_try) 2>&5
13988 ac_status=$?
13989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13990 (exit $ac_status); }; }; then
13991 ac_cv_type_uint64_t=yes
13992 else
13993 echo "$as_me: failed program was:" >&5
13994 sed 's/^/| /' conftest.$ac_ext >&5
13996 ac_cv_type_uint64_t=no
13998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14000 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
14001 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
14002 if test $ac_cv_type_uint64_t = yes; then
14004 else
14005 acx_cv_header_stdint_kind="(lacks uint64_t)"
14008 break
14009 done
14010 if test "$acx_cv_header_stdint" = stddef.h; then
14011 acx_cv_header_stdint_kind="(lacks uintmax_t)"
14012 for i in stdint.h $inttype_headers; do
14013 unset ac_cv_type_uintptr_t
14014 unset ac_cv_type_uint32_t
14015 unset ac_cv_type_uint64_t
14016 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
14017 echo "$as_me:$LINENO: checking for uint32_t" >&5
14018 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
14019 if test "${ac_cv_type_uint32_t+set}" = set; then
14020 echo $ECHO_N "(cached) $ECHO_C" >&6
14021 else
14022 cat >conftest.$ac_ext <<_ACEOF
14023 /* confdefs.h. */
14024 _ACEOF
14025 cat confdefs.h >>conftest.$ac_ext
14026 cat >>conftest.$ac_ext <<_ACEOF
14027 /* end confdefs.h. */
14028 #include <sys/types.h>
14029 #include <$i>
14032 main ()
14034 if ((uint32_t *) 0)
14035 return 0;
14036 if (sizeof (uint32_t))
14037 return 0;
14039 return 0;
14041 _ACEOF
14042 rm -f conftest.$ac_objext
14043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14044 (eval $ac_compile) 2>conftest.er1
14045 ac_status=$?
14046 grep -v '^ *+' conftest.er1 >conftest.err
14047 rm -f conftest.er1
14048 cat conftest.err >&5
14049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050 (exit $ac_status); } &&
14051 { ac_try='test -z "$ac_c_werror_flag"
14052 || test ! -s conftest.err'
14053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14054 (eval $ac_try) 2>&5
14055 ac_status=$?
14056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14057 (exit $ac_status); }; } &&
14058 { ac_try='test -s conftest.$ac_objext'
14059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14060 (eval $ac_try) 2>&5
14061 ac_status=$?
14062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14063 (exit $ac_status); }; }; then
14064 ac_cv_type_uint32_t=yes
14065 else
14066 echo "$as_me: failed program was:" >&5
14067 sed 's/^/| /' conftest.$ac_ext >&5
14069 ac_cv_type_uint32_t=no
14071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14073 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
14074 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
14075 if test $ac_cv_type_uint32_t = yes; then
14076 acx_cv_header_stdint=$i
14077 else
14078 continue
14081 echo "$as_me:$LINENO: checking for uint64_t" >&5
14082 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
14083 if test "${ac_cv_type_uint64_t+set}" = set; then
14084 echo $ECHO_N "(cached) $ECHO_C" >&6
14085 else
14086 cat >conftest.$ac_ext <<_ACEOF
14087 /* confdefs.h. */
14088 _ACEOF
14089 cat confdefs.h >>conftest.$ac_ext
14090 cat >>conftest.$ac_ext <<_ACEOF
14091 /* end confdefs.h. */
14092 #include <sys/types.h>
14093 #include <$i>
14096 main ()
14098 if ((uint64_t *) 0)
14099 return 0;
14100 if (sizeof (uint64_t))
14101 return 0;
14103 return 0;
14105 _ACEOF
14106 rm -f conftest.$ac_objext
14107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14108 (eval $ac_compile) 2>conftest.er1
14109 ac_status=$?
14110 grep -v '^ *+' conftest.er1 >conftest.err
14111 rm -f conftest.er1
14112 cat conftest.err >&5
14113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14114 (exit $ac_status); } &&
14115 { ac_try='test -z "$ac_c_werror_flag"
14116 || test ! -s conftest.err'
14117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14118 (eval $ac_try) 2>&5
14119 ac_status=$?
14120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14121 (exit $ac_status); }; } &&
14122 { ac_try='test -s conftest.$ac_objext'
14123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14124 (eval $ac_try) 2>&5
14125 ac_status=$?
14126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14127 (exit $ac_status); }; }; then
14128 ac_cv_type_uint64_t=yes
14129 else
14130 echo "$as_me: failed program was:" >&5
14131 sed 's/^/| /' conftest.$ac_ext >&5
14133 ac_cv_type_uint64_t=no
14135 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14137 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
14138 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
14140 echo "$as_me:$LINENO: checking for uintptr_t" >&5
14141 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
14142 if test "${ac_cv_type_uintptr_t+set}" = set; then
14143 echo $ECHO_N "(cached) $ECHO_C" >&6
14144 else
14145 cat >conftest.$ac_ext <<_ACEOF
14146 /* confdefs.h. */
14147 _ACEOF
14148 cat confdefs.h >>conftest.$ac_ext
14149 cat >>conftest.$ac_ext <<_ACEOF
14150 /* end confdefs.h. */
14151 #include <sys/types.h>
14152 #include <$i>
14155 main ()
14157 if ((uintptr_t *) 0)
14158 return 0;
14159 if (sizeof (uintptr_t))
14160 return 0;
14162 return 0;
14164 _ACEOF
14165 rm -f conftest.$ac_objext
14166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14167 (eval $ac_compile) 2>conftest.er1
14168 ac_status=$?
14169 grep -v '^ *+' conftest.er1 >conftest.err
14170 rm -f conftest.er1
14171 cat conftest.err >&5
14172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14173 (exit $ac_status); } &&
14174 { ac_try='test -z "$ac_c_werror_flag"
14175 || test ! -s conftest.err'
14176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14177 (eval $ac_try) 2>&5
14178 ac_status=$?
14179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14180 (exit $ac_status); }; } &&
14181 { ac_try='test -s conftest.$ac_objext'
14182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14183 (eval $ac_try) 2>&5
14184 ac_status=$?
14185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186 (exit $ac_status); }; }; then
14187 ac_cv_type_uintptr_t=yes
14188 else
14189 echo "$as_me: failed program was:" >&5
14190 sed 's/^/| /' conftest.$ac_ext >&5
14192 ac_cv_type_uintptr_t=no
14194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14196 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
14197 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
14199 break
14200 done
14202 if test "$acx_cv_header_stdint" = stddef.h; then
14203 acx_cv_header_stdint_kind="(u_intXX_t style)"
14204 for i in sys/types.h $inttype_headers; do
14205 unset ac_cv_type_u_int32_t
14206 unset ac_cv_type_u_int64_t
14207 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
14208 echo "$as_me:$LINENO: checking for u_int32_t" >&5
14209 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
14210 if test "${ac_cv_type_u_int32_t+set}" = set; then
14211 echo $ECHO_N "(cached) $ECHO_C" >&6
14212 else
14213 cat >conftest.$ac_ext <<_ACEOF
14214 /* confdefs.h. */
14215 _ACEOF
14216 cat confdefs.h >>conftest.$ac_ext
14217 cat >>conftest.$ac_ext <<_ACEOF
14218 /* end confdefs.h. */
14219 #include <sys/types.h>
14220 #include <$i>
14223 main ()
14225 if ((u_int32_t *) 0)
14226 return 0;
14227 if (sizeof (u_int32_t))
14228 return 0;
14230 return 0;
14232 _ACEOF
14233 rm -f conftest.$ac_objext
14234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14235 (eval $ac_compile) 2>conftest.er1
14236 ac_status=$?
14237 grep -v '^ *+' conftest.er1 >conftest.err
14238 rm -f conftest.er1
14239 cat conftest.err >&5
14240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14241 (exit $ac_status); } &&
14242 { ac_try='test -z "$ac_c_werror_flag"
14243 || test ! -s conftest.err'
14244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14245 (eval $ac_try) 2>&5
14246 ac_status=$?
14247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14248 (exit $ac_status); }; } &&
14249 { ac_try='test -s conftest.$ac_objext'
14250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14251 (eval $ac_try) 2>&5
14252 ac_status=$?
14253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254 (exit $ac_status); }; }; then
14255 ac_cv_type_u_int32_t=yes
14256 else
14257 echo "$as_me: failed program was:" >&5
14258 sed 's/^/| /' conftest.$ac_ext >&5
14260 ac_cv_type_u_int32_t=no
14262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14264 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
14265 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
14266 if test $ac_cv_type_u_int32_t = yes; then
14267 acx_cv_header_stdint=$i
14268 else
14269 continue
14272 echo "$as_me:$LINENO: checking for u_int64_t" >&5
14273 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
14274 if test "${ac_cv_type_u_int64_t+set}" = set; then
14275 echo $ECHO_N "(cached) $ECHO_C" >&6
14276 else
14277 cat >conftest.$ac_ext <<_ACEOF
14278 /* confdefs.h. */
14279 _ACEOF
14280 cat confdefs.h >>conftest.$ac_ext
14281 cat >>conftest.$ac_ext <<_ACEOF
14282 /* end confdefs.h. */
14283 #include <sys/types.h>
14284 #include <$i>
14287 main ()
14289 if ((u_int64_t *) 0)
14290 return 0;
14291 if (sizeof (u_int64_t))
14292 return 0;
14294 return 0;
14296 _ACEOF
14297 rm -f conftest.$ac_objext
14298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14299 (eval $ac_compile) 2>conftest.er1
14300 ac_status=$?
14301 grep -v '^ *+' conftest.er1 >conftest.err
14302 rm -f conftest.er1
14303 cat conftest.err >&5
14304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14305 (exit $ac_status); } &&
14306 { ac_try='test -z "$ac_c_werror_flag"
14307 || test ! -s conftest.err'
14308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14309 (eval $ac_try) 2>&5
14310 ac_status=$?
14311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14312 (exit $ac_status); }; } &&
14313 { ac_try='test -s conftest.$ac_objext'
14314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14315 (eval $ac_try) 2>&5
14316 ac_status=$?
14317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14318 (exit $ac_status); }; }; then
14319 ac_cv_type_u_int64_t=yes
14320 else
14321 echo "$as_me: failed program was:" >&5
14322 sed 's/^/| /' conftest.$ac_ext >&5
14324 ac_cv_type_u_int64_t=no
14326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14328 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
14329 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
14331 break
14332 done
14334 if test "$acx_cv_header_stdint" = stddef.h; then
14335 acx_cv_header_stdint_kind="(using manual detection)"
14338 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
14339 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
14340 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
14341 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
14342 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
14344 # ----------------- Summarize what we found so far
14346 echo "$as_me:$LINENO: checking what to include in gstdint.h" >&5
14347 echo $ECHO_N "checking what to include in gstdint.h... $ECHO_C" >&6
14349 case `$as_basename gstdint.h ||
14350 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
14351 Xgstdint.h : 'X\(//\)$' \| \
14352 Xgstdint.h : 'X\(/\)$' \| \
14353 . : '\(.\)' 2>/dev/null ||
14354 echo X/gstdint.h |
14355 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14356 /^X\/\(\/\/\)$/{ s//\1/; q; }
14357 /^X\/\(\/\).*/{ s//\1/; q; }
14358 s/.*/./; q'` in
14359 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
14360 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14361 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
14362 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14363 *) ;;
14364 esac
14366 echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
14367 echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
14369 # ----------------- done included file, check C basic types --------
14371 # Lacking an uintptr_t? Test size of void *
14372 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
14373 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
14374 echo $ECHO_N "checking for void *... $ECHO_C" >&6
14375 if test "${ac_cv_type_void_p+set}" = set; then
14376 echo $ECHO_N "(cached) $ECHO_C" >&6
14377 else
14378 cat >conftest.$ac_ext <<_ACEOF
14379 /* confdefs.h. */
14380 _ACEOF
14381 cat confdefs.h >>conftest.$ac_ext
14382 cat >>conftest.$ac_ext <<_ACEOF
14383 /* end confdefs.h. */
14384 $ac_includes_default
14386 main ()
14388 if ((void * *) 0)
14389 return 0;
14390 if (sizeof (void *))
14391 return 0;
14393 return 0;
14395 _ACEOF
14396 rm -f conftest.$ac_objext
14397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14398 (eval $ac_compile) 2>conftest.er1
14399 ac_status=$?
14400 grep -v '^ *+' conftest.er1 >conftest.err
14401 rm -f conftest.er1
14402 cat conftest.err >&5
14403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14404 (exit $ac_status); } &&
14405 { ac_try='test -z "$ac_c_werror_flag"
14406 || test ! -s conftest.err'
14407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14408 (eval $ac_try) 2>&5
14409 ac_status=$?
14410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14411 (exit $ac_status); }; } &&
14412 { ac_try='test -s conftest.$ac_objext'
14413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14414 (eval $ac_try) 2>&5
14415 ac_status=$?
14416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417 (exit $ac_status); }; }; then
14418 ac_cv_type_void_p=yes
14419 else
14420 echo "$as_me: failed program was:" >&5
14421 sed 's/^/| /' conftest.$ac_ext >&5
14423 ac_cv_type_void_p=no
14425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14427 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14428 echo "${ECHO_T}$ac_cv_type_void_p" >&6
14430 echo "$as_me:$LINENO: checking size of void *" >&5
14431 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14432 if test "${ac_cv_sizeof_void_p+set}" = set; then
14433 echo $ECHO_N "(cached) $ECHO_C" >&6
14434 else
14435 if test "$ac_cv_type_void_p" = yes; then
14436 # The cast to unsigned long works around a bug in the HP C Compiler
14437 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14438 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14439 # This bug is HP SR number 8606223364.
14440 if test "$cross_compiling" = yes; then
14441 # Depending upon the size, compute the lo and hi bounds.
14442 cat >conftest.$ac_ext <<_ACEOF
14443 /* confdefs.h. */
14444 _ACEOF
14445 cat confdefs.h >>conftest.$ac_ext
14446 cat >>conftest.$ac_ext <<_ACEOF
14447 /* end confdefs.h. */
14448 $ac_includes_default
14450 main ()
14452 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14453 test_array [0] = 0
14456 return 0;
14458 _ACEOF
14459 rm -f conftest.$ac_objext
14460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14461 (eval $ac_compile) 2>conftest.er1
14462 ac_status=$?
14463 grep -v '^ *+' conftest.er1 >conftest.err
14464 rm -f conftest.er1
14465 cat conftest.err >&5
14466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14467 (exit $ac_status); } &&
14468 { ac_try='test -z "$ac_c_werror_flag"
14469 || test ! -s conftest.err'
14470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14471 (eval $ac_try) 2>&5
14472 ac_status=$?
14473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14474 (exit $ac_status); }; } &&
14475 { ac_try='test -s conftest.$ac_objext'
14476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14477 (eval $ac_try) 2>&5
14478 ac_status=$?
14479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14480 (exit $ac_status); }; }; then
14481 ac_lo=0 ac_mid=0
14482 while :; do
14483 cat >conftest.$ac_ext <<_ACEOF
14484 /* confdefs.h. */
14485 _ACEOF
14486 cat confdefs.h >>conftest.$ac_ext
14487 cat >>conftest.$ac_ext <<_ACEOF
14488 /* end confdefs.h. */
14489 $ac_includes_default
14491 main ()
14493 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14494 test_array [0] = 0
14497 return 0;
14499 _ACEOF
14500 rm -f conftest.$ac_objext
14501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14502 (eval $ac_compile) 2>conftest.er1
14503 ac_status=$?
14504 grep -v '^ *+' conftest.er1 >conftest.err
14505 rm -f conftest.er1
14506 cat conftest.err >&5
14507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14508 (exit $ac_status); } &&
14509 { ac_try='test -z "$ac_c_werror_flag"
14510 || test ! -s conftest.err'
14511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14512 (eval $ac_try) 2>&5
14513 ac_status=$?
14514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14515 (exit $ac_status); }; } &&
14516 { ac_try='test -s conftest.$ac_objext'
14517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14518 (eval $ac_try) 2>&5
14519 ac_status=$?
14520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14521 (exit $ac_status); }; }; then
14522 ac_hi=$ac_mid; break
14523 else
14524 echo "$as_me: failed program was:" >&5
14525 sed 's/^/| /' conftest.$ac_ext >&5
14527 ac_lo=`expr $ac_mid + 1`
14528 if test $ac_lo -le $ac_mid; then
14529 ac_lo= ac_hi=
14530 break
14532 ac_mid=`expr 2 '*' $ac_mid + 1`
14534 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14535 done
14536 else
14537 echo "$as_me: failed program was:" >&5
14538 sed 's/^/| /' conftest.$ac_ext >&5
14540 cat >conftest.$ac_ext <<_ACEOF
14541 /* confdefs.h. */
14542 _ACEOF
14543 cat confdefs.h >>conftest.$ac_ext
14544 cat >>conftest.$ac_ext <<_ACEOF
14545 /* end confdefs.h. */
14546 $ac_includes_default
14548 main ()
14550 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
14551 test_array [0] = 0
14554 return 0;
14556 _ACEOF
14557 rm -f conftest.$ac_objext
14558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14559 (eval $ac_compile) 2>conftest.er1
14560 ac_status=$?
14561 grep -v '^ *+' conftest.er1 >conftest.err
14562 rm -f conftest.er1
14563 cat conftest.err >&5
14564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14565 (exit $ac_status); } &&
14566 { ac_try='test -z "$ac_c_werror_flag"
14567 || test ! -s conftest.err'
14568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14569 (eval $ac_try) 2>&5
14570 ac_status=$?
14571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14572 (exit $ac_status); }; } &&
14573 { ac_try='test -s conftest.$ac_objext'
14574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14575 (eval $ac_try) 2>&5
14576 ac_status=$?
14577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14578 (exit $ac_status); }; }; then
14579 ac_hi=-1 ac_mid=-1
14580 while :; do
14581 cat >conftest.$ac_ext <<_ACEOF
14582 /* confdefs.h. */
14583 _ACEOF
14584 cat confdefs.h >>conftest.$ac_ext
14585 cat >>conftest.$ac_ext <<_ACEOF
14586 /* end confdefs.h. */
14587 $ac_includes_default
14589 main ()
14591 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
14592 test_array [0] = 0
14595 return 0;
14597 _ACEOF
14598 rm -f conftest.$ac_objext
14599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14600 (eval $ac_compile) 2>conftest.er1
14601 ac_status=$?
14602 grep -v '^ *+' conftest.er1 >conftest.err
14603 rm -f conftest.er1
14604 cat conftest.err >&5
14605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14606 (exit $ac_status); } &&
14607 { ac_try='test -z "$ac_c_werror_flag"
14608 || test ! -s conftest.err'
14609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14610 (eval $ac_try) 2>&5
14611 ac_status=$?
14612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14613 (exit $ac_status); }; } &&
14614 { ac_try='test -s conftest.$ac_objext'
14615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14616 (eval $ac_try) 2>&5
14617 ac_status=$?
14618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14619 (exit $ac_status); }; }; then
14620 ac_lo=$ac_mid; break
14621 else
14622 echo "$as_me: failed program was:" >&5
14623 sed 's/^/| /' conftest.$ac_ext >&5
14625 ac_hi=`expr '(' $ac_mid ')' - 1`
14626 if test $ac_mid -le $ac_hi; then
14627 ac_lo= ac_hi=
14628 break
14630 ac_mid=`expr 2 '*' $ac_mid`
14632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14633 done
14634 else
14635 echo "$as_me: failed program was:" >&5
14636 sed 's/^/| /' conftest.$ac_ext >&5
14638 ac_lo= ac_hi=
14640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14643 # Binary search between lo and hi bounds.
14644 while test "x$ac_lo" != "x$ac_hi"; do
14645 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14646 cat >conftest.$ac_ext <<_ACEOF
14647 /* confdefs.h. */
14648 _ACEOF
14649 cat confdefs.h >>conftest.$ac_ext
14650 cat >>conftest.$ac_ext <<_ACEOF
14651 /* end confdefs.h. */
14652 $ac_includes_default
14654 main ()
14656 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14657 test_array [0] = 0
14660 return 0;
14662 _ACEOF
14663 rm -f conftest.$ac_objext
14664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14665 (eval $ac_compile) 2>conftest.er1
14666 ac_status=$?
14667 grep -v '^ *+' conftest.er1 >conftest.err
14668 rm -f conftest.er1
14669 cat conftest.err >&5
14670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14671 (exit $ac_status); } &&
14672 { ac_try='test -z "$ac_c_werror_flag"
14673 || test ! -s conftest.err'
14674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14675 (eval $ac_try) 2>&5
14676 ac_status=$?
14677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14678 (exit $ac_status); }; } &&
14679 { ac_try='test -s conftest.$ac_objext'
14680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14681 (eval $ac_try) 2>&5
14682 ac_status=$?
14683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14684 (exit $ac_status); }; }; then
14685 ac_hi=$ac_mid
14686 else
14687 echo "$as_me: failed program was:" >&5
14688 sed 's/^/| /' conftest.$ac_ext >&5
14690 ac_lo=`expr '(' $ac_mid ')' + 1`
14692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14693 done
14694 case $ac_lo in
14695 ?*) ac_cv_sizeof_void_p=$ac_lo;;
14696 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14697 See \`config.log' for more details." >&5
14698 echo "$as_me: error: cannot compute sizeof (void *), 77
14699 See \`config.log' for more details." >&2;}
14700 { (exit 1); exit 1; }; } ;;
14701 esac
14702 else
14703 if test "$cross_compiling" = yes; then
14704 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14705 See \`config.log' for more details." >&5
14706 echo "$as_me: error: cannot run test program while cross compiling
14707 See \`config.log' for more details." >&2;}
14708 { (exit 1); exit 1; }; }
14709 else
14710 cat >conftest.$ac_ext <<_ACEOF
14711 /* confdefs.h. */
14712 _ACEOF
14713 cat confdefs.h >>conftest.$ac_ext
14714 cat >>conftest.$ac_ext <<_ACEOF
14715 /* end confdefs.h. */
14716 $ac_includes_default
14717 long longval () { return (long) (sizeof (void *)); }
14718 unsigned long ulongval () { return (long) (sizeof (void *)); }
14719 #include <stdio.h>
14720 #include <stdlib.h>
14722 main ()
14725 FILE *f = fopen ("conftest.val", "w");
14726 if (! f)
14727 exit (1);
14728 if (((long) (sizeof (void *))) < 0)
14730 long i = longval ();
14731 if (i != ((long) (sizeof (void *))))
14732 exit (1);
14733 fprintf (f, "%ld\n", i);
14735 else
14737 unsigned long i = ulongval ();
14738 if (i != ((long) (sizeof (void *))))
14739 exit (1);
14740 fprintf (f, "%lu\n", i);
14742 exit (ferror (f) || fclose (f) != 0);
14745 return 0;
14747 _ACEOF
14748 rm -f conftest$ac_exeext
14749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14750 (eval $ac_link) 2>&5
14751 ac_status=$?
14752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14753 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14755 (eval $ac_try) 2>&5
14756 ac_status=$?
14757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14758 (exit $ac_status); }; }; then
14759 ac_cv_sizeof_void_p=`cat conftest.val`
14760 else
14761 echo "$as_me: program exited with status $ac_status" >&5
14762 echo "$as_me: failed program was:" >&5
14763 sed 's/^/| /' conftest.$ac_ext >&5
14765 ( exit $ac_status )
14766 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14767 See \`config.log' for more details." >&5
14768 echo "$as_me: error: cannot compute sizeof (void *), 77
14769 See \`config.log' for more details." >&2;}
14770 { (exit 1); exit 1; }; }
14772 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14775 rm -f conftest.val
14776 else
14777 ac_cv_sizeof_void_p=0
14780 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
14781 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
14782 cat >>confdefs.h <<_ACEOF
14783 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14784 _ACEOF
14787 esac
14789 # Lacking an uint64_t? Test size of long
14790 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
14791 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
14792 echo $ECHO_N "checking for long... $ECHO_C" >&6
14793 if test "${ac_cv_type_long+set}" = set; then
14794 echo $ECHO_N "(cached) $ECHO_C" >&6
14795 else
14796 cat >conftest.$ac_ext <<_ACEOF
14797 /* confdefs.h. */
14798 _ACEOF
14799 cat confdefs.h >>conftest.$ac_ext
14800 cat >>conftest.$ac_ext <<_ACEOF
14801 /* end confdefs.h. */
14802 $ac_includes_default
14804 main ()
14806 if ((long *) 0)
14807 return 0;
14808 if (sizeof (long))
14809 return 0;
14811 return 0;
14813 _ACEOF
14814 rm -f conftest.$ac_objext
14815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14816 (eval $ac_compile) 2>conftest.er1
14817 ac_status=$?
14818 grep -v '^ *+' conftest.er1 >conftest.err
14819 rm -f conftest.er1
14820 cat conftest.err >&5
14821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14822 (exit $ac_status); } &&
14823 { ac_try='test -z "$ac_c_werror_flag"
14824 || test ! -s conftest.err'
14825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14826 (eval $ac_try) 2>&5
14827 ac_status=$?
14828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14829 (exit $ac_status); }; } &&
14830 { ac_try='test -s conftest.$ac_objext'
14831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14832 (eval $ac_try) 2>&5
14833 ac_status=$?
14834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14835 (exit $ac_status); }; }; then
14836 ac_cv_type_long=yes
14837 else
14838 echo "$as_me: failed program was:" >&5
14839 sed 's/^/| /' conftest.$ac_ext >&5
14841 ac_cv_type_long=no
14843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14845 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
14846 echo "${ECHO_T}$ac_cv_type_long" >&6
14848 echo "$as_me:$LINENO: checking size of long" >&5
14849 echo $ECHO_N "checking size of long... $ECHO_C" >&6
14850 if test "${ac_cv_sizeof_long+set}" = set; then
14851 echo $ECHO_N "(cached) $ECHO_C" >&6
14852 else
14853 if test "$ac_cv_type_long" = yes; then
14854 # The cast to unsigned long works around a bug in the HP C Compiler
14855 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14856 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14857 # This bug is HP SR number 8606223364.
14858 if test "$cross_compiling" = yes; then
14859 # Depending upon the size, compute the lo and hi bounds.
14860 cat >conftest.$ac_ext <<_ACEOF
14861 /* confdefs.h. */
14862 _ACEOF
14863 cat confdefs.h >>conftest.$ac_ext
14864 cat >>conftest.$ac_ext <<_ACEOF
14865 /* end confdefs.h. */
14866 $ac_includes_default
14868 main ()
14870 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
14871 test_array [0] = 0
14874 return 0;
14876 _ACEOF
14877 rm -f conftest.$ac_objext
14878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14879 (eval $ac_compile) 2>conftest.er1
14880 ac_status=$?
14881 grep -v '^ *+' conftest.er1 >conftest.err
14882 rm -f conftest.er1
14883 cat conftest.err >&5
14884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885 (exit $ac_status); } &&
14886 { ac_try='test -z "$ac_c_werror_flag"
14887 || test ! -s conftest.err'
14888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14889 (eval $ac_try) 2>&5
14890 ac_status=$?
14891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14892 (exit $ac_status); }; } &&
14893 { ac_try='test -s conftest.$ac_objext'
14894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14895 (eval $ac_try) 2>&5
14896 ac_status=$?
14897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14898 (exit $ac_status); }; }; then
14899 ac_lo=0 ac_mid=0
14900 while :; do
14901 cat >conftest.$ac_ext <<_ACEOF
14902 /* confdefs.h. */
14903 _ACEOF
14904 cat confdefs.h >>conftest.$ac_ext
14905 cat >>conftest.$ac_ext <<_ACEOF
14906 /* end confdefs.h. */
14907 $ac_includes_default
14909 main ()
14911 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
14912 test_array [0] = 0
14915 return 0;
14917 _ACEOF
14918 rm -f conftest.$ac_objext
14919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14920 (eval $ac_compile) 2>conftest.er1
14921 ac_status=$?
14922 grep -v '^ *+' conftest.er1 >conftest.err
14923 rm -f conftest.er1
14924 cat conftest.err >&5
14925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14926 (exit $ac_status); } &&
14927 { ac_try='test -z "$ac_c_werror_flag"
14928 || test ! -s conftest.err'
14929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14930 (eval $ac_try) 2>&5
14931 ac_status=$?
14932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14933 (exit $ac_status); }; } &&
14934 { ac_try='test -s conftest.$ac_objext'
14935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14936 (eval $ac_try) 2>&5
14937 ac_status=$?
14938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14939 (exit $ac_status); }; }; then
14940 ac_hi=$ac_mid; break
14941 else
14942 echo "$as_me: failed program was:" >&5
14943 sed 's/^/| /' conftest.$ac_ext >&5
14945 ac_lo=`expr $ac_mid + 1`
14946 if test $ac_lo -le $ac_mid; then
14947 ac_lo= ac_hi=
14948 break
14950 ac_mid=`expr 2 '*' $ac_mid + 1`
14952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14953 done
14954 else
14955 echo "$as_me: failed program was:" >&5
14956 sed 's/^/| /' conftest.$ac_ext >&5
14958 cat >conftest.$ac_ext <<_ACEOF
14959 /* confdefs.h. */
14960 _ACEOF
14961 cat confdefs.h >>conftest.$ac_ext
14962 cat >>conftest.$ac_ext <<_ACEOF
14963 /* end confdefs.h. */
14964 $ac_includes_default
14966 main ()
14968 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
14969 test_array [0] = 0
14972 return 0;
14974 _ACEOF
14975 rm -f conftest.$ac_objext
14976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14977 (eval $ac_compile) 2>conftest.er1
14978 ac_status=$?
14979 grep -v '^ *+' conftest.er1 >conftest.err
14980 rm -f conftest.er1
14981 cat conftest.err >&5
14982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14983 (exit $ac_status); } &&
14984 { ac_try='test -z "$ac_c_werror_flag"
14985 || test ! -s conftest.err'
14986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14987 (eval $ac_try) 2>&5
14988 ac_status=$?
14989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14990 (exit $ac_status); }; } &&
14991 { ac_try='test -s conftest.$ac_objext'
14992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14993 (eval $ac_try) 2>&5
14994 ac_status=$?
14995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14996 (exit $ac_status); }; }; then
14997 ac_hi=-1 ac_mid=-1
14998 while :; do
14999 cat >conftest.$ac_ext <<_ACEOF
15000 /* confdefs.h. */
15001 _ACEOF
15002 cat confdefs.h >>conftest.$ac_ext
15003 cat >>conftest.$ac_ext <<_ACEOF
15004 /* end confdefs.h. */
15005 $ac_includes_default
15007 main ()
15009 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
15010 test_array [0] = 0
15013 return 0;
15015 _ACEOF
15016 rm -f conftest.$ac_objext
15017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15018 (eval $ac_compile) 2>conftest.er1
15019 ac_status=$?
15020 grep -v '^ *+' conftest.er1 >conftest.err
15021 rm -f conftest.er1
15022 cat conftest.err >&5
15023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15024 (exit $ac_status); } &&
15025 { ac_try='test -z "$ac_c_werror_flag"
15026 || test ! -s conftest.err'
15027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15028 (eval $ac_try) 2>&5
15029 ac_status=$?
15030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15031 (exit $ac_status); }; } &&
15032 { ac_try='test -s conftest.$ac_objext'
15033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15034 (eval $ac_try) 2>&5
15035 ac_status=$?
15036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037 (exit $ac_status); }; }; then
15038 ac_lo=$ac_mid; break
15039 else
15040 echo "$as_me: failed program was:" >&5
15041 sed 's/^/| /' conftest.$ac_ext >&5
15043 ac_hi=`expr '(' $ac_mid ')' - 1`
15044 if test $ac_mid -le $ac_hi; then
15045 ac_lo= ac_hi=
15046 break
15048 ac_mid=`expr 2 '*' $ac_mid`
15050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15051 done
15052 else
15053 echo "$as_me: failed program was:" >&5
15054 sed 's/^/| /' conftest.$ac_ext >&5
15056 ac_lo= ac_hi=
15058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15061 # Binary search between lo and hi bounds.
15062 while test "x$ac_lo" != "x$ac_hi"; do
15063 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15064 cat >conftest.$ac_ext <<_ACEOF
15065 /* confdefs.h. */
15066 _ACEOF
15067 cat confdefs.h >>conftest.$ac_ext
15068 cat >>conftest.$ac_ext <<_ACEOF
15069 /* end confdefs.h. */
15070 $ac_includes_default
15072 main ()
15074 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15075 test_array [0] = 0
15078 return 0;
15080 _ACEOF
15081 rm -f conftest.$ac_objext
15082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15083 (eval $ac_compile) 2>conftest.er1
15084 ac_status=$?
15085 grep -v '^ *+' conftest.er1 >conftest.err
15086 rm -f conftest.er1
15087 cat conftest.err >&5
15088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15089 (exit $ac_status); } &&
15090 { ac_try='test -z "$ac_c_werror_flag"
15091 || test ! -s conftest.err'
15092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15093 (eval $ac_try) 2>&5
15094 ac_status=$?
15095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15096 (exit $ac_status); }; } &&
15097 { ac_try='test -s conftest.$ac_objext'
15098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15099 (eval $ac_try) 2>&5
15100 ac_status=$?
15101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15102 (exit $ac_status); }; }; then
15103 ac_hi=$ac_mid
15104 else
15105 echo "$as_me: failed program was:" >&5
15106 sed 's/^/| /' conftest.$ac_ext >&5
15108 ac_lo=`expr '(' $ac_mid ')' + 1`
15110 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15111 done
15112 case $ac_lo in
15113 ?*) ac_cv_sizeof_long=$ac_lo;;
15114 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15115 See \`config.log' for more details." >&5
15116 echo "$as_me: error: cannot compute sizeof (long), 77
15117 See \`config.log' for more details." >&2;}
15118 { (exit 1); exit 1; }; } ;;
15119 esac
15120 else
15121 if test "$cross_compiling" = yes; then
15122 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15123 See \`config.log' for more details." >&5
15124 echo "$as_me: error: cannot run test program while cross compiling
15125 See \`config.log' for more details." >&2;}
15126 { (exit 1); exit 1; }; }
15127 else
15128 cat >conftest.$ac_ext <<_ACEOF
15129 /* confdefs.h. */
15130 _ACEOF
15131 cat confdefs.h >>conftest.$ac_ext
15132 cat >>conftest.$ac_ext <<_ACEOF
15133 /* end confdefs.h. */
15134 $ac_includes_default
15135 long longval () { return (long) (sizeof (long)); }
15136 unsigned long ulongval () { return (long) (sizeof (long)); }
15137 #include <stdio.h>
15138 #include <stdlib.h>
15140 main ()
15143 FILE *f = fopen ("conftest.val", "w");
15144 if (! f)
15145 exit (1);
15146 if (((long) (sizeof (long))) < 0)
15148 long i = longval ();
15149 if (i != ((long) (sizeof (long))))
15150 exit (1);
15151 fprintf (f, "%ld\n", i);
15153 else
15155 unsigned long i = ulongval ();
15156 if (i != ((long) (sizeof (long))))
15157 exit (1);
15158 fprintf (f, "%lu\n", i);
15160 exit (ferror (f) || fclose (f) != 0);
15163 return 0;
15165 _ACEOF
15166 rm -f conftest$ac_exeext
15167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15168 (eval $ac_link) 2>&5
15169 ac_status=$?
15170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15171 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15173 (eval $ac_try) 2>&5
15174 ac_status=$?
15175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15176 (exit $ac_status); }; }; then
15177 ac_cv_sizeof_long=`cat conftest.val`
15178 else
15179 echo "$as_me: program exited with status $ac_status" >&5
15180 echo "$as_me: failed program was:" >&5
15181 sed 's/^/| /' conftest.$ac_ext >&5
15183 ( exit $ac_status )
15184 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15185 See \`config.log' for more details." >&5
15186 echo "$as_me: error: cannot compute sizeof (long), 77
15187 See \`config.log' for more details." >&2;}
15188 { (exit 1); exit 1; }; }
15190 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15193 rm -f conftest.val
15194 else
15195 ac_cv_sizeof_long=0
15198 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
15199 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
15200 cat >>confdefs.h <<_ACEOF
15201 #define SIZEOF_LONG $ac_cv_sizeof_long
15202 _ACEOF
15205 esac
15207 if test $acx_cv_header_stdint = stddef.h; then
15208 # Lacking a good header? Test size of everything and deduce all types.
15209 echo "$as_me:$LINENO: checking for int" >&5
15210 echo $ECHO_N "checking for int... $ECHO_C" >&6
15211 if test "${ac_cv_type_int+set}" = set; then
15212 echo $ECHO_N "(cached) $ECHO_C" >&6
15213 else
15214 cat >conftest.$ac_ext <<_ACEOF
15215 /* confdefs.h. */
15216 _ACEOF
15217 cat confdefs.h >>conftest.$ac_ext
15218 cat >>conftest.$ac_ext <<_ACEOF
15219 /* end confdefs.h. */
15220 $ac_includes_default
15222 main ()
15224 if ((int *) 0)
15225 return 0;
15226 if (sizeof (int))
15227 return 0;
15229 return 0;
15231 _ACEOF
15232 rm -f conftest.$ac_objext
15233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15234 (eval $ac_compile) 2>conftest.er1
15235 ac_status=$?
15236 grep -v '^ *+' conftest.er1 >conftest.err
15237 rm -f conftest.er1
15238 cat conftest.err >&5
15239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15240 (exit $ac_status); } &&
15241 { ac_try='test -z "$ac_c_werror_flag"
15242 || test ! -s conftest.err'
15243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15244 (eval $ac_try) 2>&5
15245 ac_status=$?
15246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15247 (exit $ac_status); }; } &&
15248 { ac_try='test -s conftest.$ac_objext'
15249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15250 (eval $ac_try) 2>&5
15251 ac_status=$?
15252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15253 (exit $ac_status); }; }; then
15254 ac_cv_type_int=yes
15255 else
15256 echo "$as_me: failed program was:" >&5
15257 sed 's/^/| /' conftest.$ac_ext >&5
15259 ac_cv_type_int=no
15261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15263 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15264 echo "${ECHO_T}$ac_cv_type_int" >&6
15266 echo "$as_me:$LINENO: checking size of int" >&5
15267 echo $ECHO_N "checking size of int... $ECHO_C" >&6
15268 if test "${ac_cv_sizeof_int+set}" = set; then
15269 echo $ECHO_N "(cached) $ECHO_C" >&6
15270 else
15271 if test "$ac_cv_type_int" = yes; then
15272 # The cast to unsigned long works around a bug in the HP C Compiler
15273 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15274 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15275 # This bug is HP SR number 8606223364.
15276 if test "$cross_compiling" = yes; then
15277 # Depending upon the size, compute the lo and hi bounds.
15278 cat >conftest.$ac_ext <<_ACEOF
15279 /* confdefs.h. */
15280 _ACEOF
15281 cat confdefs.h >>conftest.$ac_ext
15282 cat >>conftest.$ac_ext <<_ACEOF
15283 /* end confdefs.h. */
15284 $ac_includes_default
15286 main ()
15288 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15289 test_array [0] = 0
15292 return 0;
15294 _ACEOF
15295 rm -f conftest.$ac_objext
15296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15297 (eval $ac_compile) 2>conftest.er1
15298 ac_status=$?
15299 grep -v '^ *+' conftest.er1 >conftest.err
15300 rm -f conftest.er1
15301 cat conftest.err >&5
15302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15303 (exit $ac_status); } &&
15304 { ac_try='test -z "$ac_c_werror_flag"
15305 || test ! -s conftest.err'
15306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15307 (eval $ac_try) 2>&5
15308 ac_status=$?
15309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15310 (exit $ac_status); }; } &&
15311 { ac_try='test -s conftest.$ac_objext'
15312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15313 (eval $ac_try) 2>&5
15314 ac_status=$?
15315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15316 (exit $ac_status); }; }; then
15317 ac_lo=0 ac_mid=0
15318 while :; do
15319 cat >conftest.$ac_ext <<_ACEOF
15320 /* confdefs.h. */
15321 _ACEOF
15322 cat confdefs.h >>conftest.$ac_ext
15323 cat >>conftest.$ac_ext <<_ACEOF
15324 /* end confdefs.h. */
15325 $ac_includes_default
15327 main ()
15329 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15330 test_array [0] = 0
15333 return 0;
15335 _ACEOF
15336 rm -f conftest.$ac_objext
15337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15338 (eval $ac_compile) 2>conftest.er1
15339 ac_status=$?
15340 grep -v '^ *+' conftest.er1 >conftest.err
15341 rm -f conftest.er1
15342 cat conftest.err >&5
15343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15344 (exit $ac_status); } &&
15345 { ac_try='test -z "$ac_c_werror_flag"
15346 || test ! -s conftest.err'
15347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15348 (eval $ac_try) 2>&5
15349 ac_status=$?
15350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15351 (exit $ac_status); }; } &&
15352 { ac_try='test -s conftest.$ac_objext'
15353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15354 (eval $ac_try) 2>&5
15355 ac_status=$?
15356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15357 (exit $ac_status); }; }; then
15358 ac_hi=$ac_mid; break
15359 else
15360 echo "$as_me: failed program was:" >&5
15361 sed 's/^/| /' conftest.$ac_ext >&5
15363 ac_lo=`expr $ac_mid + 1`
15364 if test $ac_lo -le $ac_mid; then
15365 ac_lo= ac_hi=
15366 break
15368 ac_mid=`expr 2 '*' $ac_mid + 1`
15370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15371 done
15372 else
15373 echo "$as_me: failed program was:" >&5
15374 sed 's/^/| /' conftest.$ac_ext >&5
15376 cat >conftest.$ac_ext <<_ACEOF
15377 /* confdefs.h. */
15378 _ACEOF
15379 cat confdefs.h >>conftest.$ac_ext
15380 cat >>conftest.$ac_ext <<_ACEOF
15381 /* end confdefs.h. */
15382 $ac_includes_default
15384 main ()
15386 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15387 test_array [0] = 0
15390 return 0;
15392 _ACEOF
15393 rm -f conftest.$ac_objext
15394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15395 (eval $ac_compile) 2>conftest.er1
15396 ac_status=$?
15397 grep -v '^ *+' conftest.er1 >conftest.err
15398 rm -f conftest.er1
15399 cat conftest.err >&5
15400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15401 (exit $ac_status); } &&
15402 { ac_try='test -z "$ac_c_werror_flag"
15403 || test ! -s conftest.err'
15404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15405 (eval $ac_try) 2>&5
15406 ac_status=$?
15407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15408 (exit $ac_status); }; } &&
15409 { ac_try='test -s conftest.$ac_objext'
15410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15411 (eval $ac_try) 2>&5
15412 ac_status=$?
15413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15414 (exit $ac_status); }; }; then
15415 ac_hi=-1 ac_mid=-1
15416 while :; do
15417 cat >conftest.$ac_ext <<_ACEOF
15418 /* confdefs.h. */
15419 _ACEOF
15420 cat confdefs.h >>conftest.$ac_ext
15421 cat >>conftest.$ac_ext <<_ACEOF
15422 /* end confdefs.h. */
15423 $ac_includes_default
15425 main ()
15427 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15428 test_array [0] = 0
15431 return 0;
15433 _ACEOF
15434 rm -f conftest.$ac_objext
15435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15436 (eval $ac_compile) 2>conftest.er1
15437 ac_status=$?
15438 grep -v '^ *+' conftest.er1 >conftest.err
15439 rm -f conftest.er1
15440 cat conftest.err >&5
15441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15442 (exit $ac_status); } &&
15443 { ac_try='test -z "$ac_c_werror_flag"
15444 || test ! -s conftest.err'
15445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15446 (eval $ac_try) 2>&5
15447 ac_status=$?
15448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449 (exit $ac_status); }; } &&
15450 { ac_try='test -s conftest.$ac_objext'
15451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15452 (eval $ac_try) 2>&5
15453 ac_status=$?
15454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15455 (exit $ac_status); }; }; then
15456 ac_lo=$ac_mid; break
15457 else
15458 echo "$as_me: failed program was:" >&5
15459 sed 's/^/| /' conftest.$ac_ext >&5
15461 ac_hi=`expr '(' $ac_mid ')' - 1`
15462 if test $ac_mid -le $ac_hi; then
15463 ac_lo= ac_hi=
15464 break
15466 ac_mid=`expr 2 '*' $ac_mid`
15468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15469 done
15470 else
15471 echo "$as_me: failed program was:" >&5
15472 sed 's/^/| /' conftest.$ac_ext >&5
15474 ac_lo= ac_hi=
15476 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15479 # Binary search between lo and hi bounds.
15480 while test "x$ac_lo" != "x$ac_hi"; do
15481 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15482 cat >conftest.$ac_ext <<_ACEOF
15483 /* confdefs.h. */
15484 _ACEOF
15485 cat confdefs.h >>conftest.$ac_ext
15486 cat >>conftest.$ac_ext <<_ACEOF
15487 /* end confdefs.h. */
15488 $ac_includes_default
15490 main ()
15492 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15493 test_array [0] = 0
15496 return 0;
15498 _ACEOF
15499 rm -f conftest.$ac_objext
15500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15501 (eval $ac_compile) 2>conftest.er1
15502 ac_status=$?
15503 grep -v '^ *+' conftest.er1 >conftest.err
15504 rm -f conftest.er1
15505 cat conftest.err >&5
15506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15507 (exit $ac_status); } &&
15508 { ac_try='test -z "$ac_c_werror_flag"
15509 || test ! -s conftest.err'
15510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15511 (eval $ac_try) 2>&5
15512 ac_status=$?
15513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15514 (exit $ac_status); }; } &&
15515 { ac_try='test -s conftest.$ac_objext'
15516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15517 (eval $ac_try) 2>&5
15518 ac_status=$?
15519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15520 (exit $ac_status); }; }; then
15521 ac_hi=$ac_mid
15522 else
15523 echo "$as_me: failed program was:" >&5
15524 sed 's/^/| /' conftest.$ac_ext >&5
15526 ac_lo=`expr '(' $ac_mid ')' + 1`
15528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15529 done
15530 case $ac_lo in
15531 ?*) ac_cv_sizeof_int=$ac_lo;;
15532 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15533 See \`config.log' for more details." >&5
15534 echo "$as_me: error: cannot compute sizeof (int), 77
15535 See \`config.log' for more details." >&2;}
15536 { (exit 1); exit 1; }; } ;;
15537 esac
15538 else
15539 if test "$cross_compiling" = yes; then
15540 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15541 See \`config.log' for more details." >&5
15542 echo "$as_me: error: cannot run test program while cross compiling
15543 See \`config.log' for more details." >&2;}
15544 { (exit 1); exit 1; }; }
15545 else
15546 cat >conftest.$ac_ext <<_ACEOF
15547 /* confdefs.h. */
15548 _ACEOF
15549 cat confdefs.h >>conftest.$ac_ext
15550 cat >>conftest.$ac_ext <<_ACEOF
15551 /* end confdefs.h. */
15552 $ac_includes_default
15553 long longval () { return (long) (sizeof (int)); }
15554 unsigned long ulongval () { return (long) (sizeof (int)); }
15555 #include <stdio.h>
15556 #include <stdlib.h>
15558 main ()
15561 FILE *f = fopen ("conftest.val", "w");
15562 if (! f)
15563 exit (1);
15564 if (((long) (sizeof (int))) < 0)
15566 long i = longval ();
15567 if (i != ((long) (sizeof (int))))
15568 exit (1);
15569 fprintf (f, "%ld\n", i);
15571 else
15573 unsigned long i = ulongval ();
15574 if (i != ((long) (sizeof (int))))
15575 exit (1);
15576 fprintf (f, "%lu\n", i);
15578 exit (ferror (f) || fclose (f) != 0);
15581 return 0;
15583 _ACEOF
15584 rm -f conftest$ac_exeext
15585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15586 (eval $ac_link) 2>&5
15587 ac_status=$?
15588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15589 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15591 (eval $ac_try) 2>&5
15592 ac_status=$?
15593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594 (exit $ac_status); }; }; then
15595 ac_cv_sizeof_int=`cat conftest.val`
15596 else
15597 echo "$as_me: program exited with status $ac_status" >&5
15598 echo "$as_me: failed program was:" >&5
15599 sed 's/^/| /' conftest.$ac_ext >&5
15601 ( exit $ac_status )
15602 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15603 See \`config.log' for more details." >&5
15604 echo "$as_me: error: cannot compute sizeof (int), 77
15605 See \`config.log' for more details." >&2;}
15606 { (exit 1); exit 1; }; }
15608 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15611 rm -f conftest.val
15612 else
15613 ac_cv_sizeof_int=0
15616 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15617 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15618 cat >>confdefs.h <<_ACEOF
15619 #define SIZEOF_INT $ac_cv_sizeof_int
15620 _ACEOF
15623 echo "$as_me:$LINENO: checking for short" >&5
15624 echo $ECHO_N "checking for short... $ECHO_C" >&6
15625 if test "${ac_cv_type_short+set}" = set; then
15626 echo $ECHO_N "(cached) $ECHO_C" >&6
15627 else
15628 cat >conftest.$ac_ext <<_ACEOF
15629 /* confdefs.h. */
15630 _ACEOF
15631 cat confdefs.h >>conftest.$ac_ext
15632 cat >>conftest.$ac_ext <<_ACEOF
15633 /* end confdefs.h. */
15634 $ac_includes_default
15636 main ()
15638 if ((short *) 0)
15639 return 0;
15640 if (sizeof (short))
15641 return 0;
15643 return 0;
15645 _ACEOF
15646 rm -f conftest.$ac_objext
15647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15648 (eval $ac_compile) 2>conftest.er1
15649 ac_status=$?
15650 grep -v '^ *+' conftest.er1 >conftest.err
15651 rm -f conftest.er1
15652 cat conftest.err >&5
15653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15654 (exit $ac_status); } &&
15655 { ac_try='test -z "$ac_c_werror_flag"
15656 || test ! -s conftest.err'
15657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15658 (eval $ac_try) 2>&5
15659 ac_status=$?
15660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15661 (exit $ac_status); }; } &&
15662 { ac_try='test -s conftest.$ac_objext'
15663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15664 (eval $ac_try) 2>&5
15665 ac_status=$?
15666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15667 (exit $ac_status); }; }; then
15668 ac_cv_type_short=yes
15669 else
15670 echo "$as_me: failed program was:" >&5
15671 sed 's/^/| /' conftest.$ac_ext >&5
15673 ac_cv_type_short=no
15675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15677 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
15678 echo "${ECHO_T}$ac_cv_type_short" >&6
15680 echo "$as_me:$LINENO: checking size of short" >&5
15681 echo $ECHO_N "checking size of short... $ECHO_C" >&6
15682 if test "${ac_cv_sizeof_short+set}" = set; then
15683 echo $ECHO_N "(cached) $ECHO_C" >&6
15684 else
15685 if test "$ac_cv_type_short" = yes; then
15686 # The cast to unsigned long works around a bug in the HP C Compiler
15687 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15688 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15689 # This bug is HP SR number 8606223364.
15690 if test "$cross_compiling" = yes; then
15691 # Depending upon the size, compute the lo and hi bounds.
15692 cat >conftest.$ac_ext <<_ACEOF
15693 /* confdefs.h. */
15694 _ACEOF
15695 cat confdefs.h >>conftest.$ac_ext
15696 cat >>conftest.$ac_ext <<_ACEOF
15697 /* end confdefs.h. */
15698 $ac_includes_default
15700 main ()
15702 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
15703 test_array [0] = 0
15706 return 0;
15708 _ACEOF
15709 rm -f conftest.$ac_objext
15710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15711 (eval $ac_compile) 2>conftest.er1
15712 ac_status=$?
15713 grep -v '^ *+' conftest.er1 >conftest.err
15714 rm -f conftest.er1
15715 cat conftest.err >&5
15716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15717 (exit $ac_status); } &&
15718 { ac_try='test -z "$ac_c_werror_flag"
15719 || test ! -s conftest.err'
15720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15721 (eval $ac_try) 2>&5
15722 ac_status=$?
15723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15724 (exit $ac_status); }; } &&
15725 { ac_try='test -s conftest.$ac_objext'
15726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15727 (eval $ac_try) 2>&5
15728 ac_status=$?
15729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15730 (exit $ac_status); }; }; then
15731 ac_lo=0 ac_mid=0
15732 while :; do
15733 cat >conftest.$ac_ext <<_ACEOF
15734 /* confdefs.h. */
15735 _ACEOF
15736 cat confdefs.h >>conftest.$ac_ext
15737 cat >>conftest.$ac_ext <<_ACEOF
15738 /* end confdefs.h. */
15739 $ac_includes_default
15741 main ()
15743 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15744 test_array [0] = 0
15747 return 0;
15749 _ACEOF
15750 rm -f conftest.$ac_objext
15751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15752 (eval $ac_compile) 2>conftest.er1
15753 ac_status=$?
15754 grep -v '^ *+' conftest.er1 >conftest.err
15755 rm -f conftest.er1
15756 cat conftest.err >&5
15757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15758 (exit $ac_status); } &&
15759 { ac_try='test -z "$ac_c_werror_flag"
15760 || test ! -s conftest.err'
15761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15762 (eval $ac_try) 2>&5
15763 ac_status=$?
15764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15765 (exit $ac_status); }; } &&
15766 { ac_try='test -s conftest.$ac_objext'
15767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15768 (eval $ac_try) 2>&5
15769 ac_status=$?
15770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15771 (exit $ac_status); }; }; then
15772 ac_hi=$ac_mid; break
15773 else
15774 echo "$as_me: failed program was:" >&5
15775 sed 's/^/| /' conftest.$ac_ext >&5
15777 ac_lo=`expr $ac_mid + 1`
15778 if test $ac_lo -le $ac_mid; then
15779 ac_lo= ac_hi=
15780 break
15782 ac_mid=`expr 2 '*' $ac_mid + 1`
15784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15785 done
15786 else
15787 echo "$as_me: failed program was:" >&5
15788 sed 's/^/| /' conftest.$ac_ext >&5
15790 cat >conftest.$ac_ext <<_ACEOF
15791 /* confdefs.h. */
15792 _ACEOF
15793 cat confdefs.h >>conftest.$ac_ext
15794 cat >>conftest.$ac_ext <<_ACEOF
15795 /* end confdefs.h. */
15796 $ac_includes_default
15798 main ()
15800 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
15801 test_array [0] = 0
15804 return 0;
15806 _ACEOF
15807 rm -f conftest.$ac_objext
15808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15809 (eval $ac_compile) 2>conftest.er1
15810 ac_status=$?
15811 grep -v '^ *+' conftest.er1 >conftest.err
15812 rm -f conftest.er1
15813 cat conftest.err >&5
15814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15815 (exit $ac_status); } &&
15816 { ac_try='test -z "$ac_c_werror_flag"
15817 || test ! -s conftest.err'
15818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15819 (eval $ac_try) 2>&5
15820 ac_status=$?
15821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15822 (exit $ac_status); }; } &&
15823 { ac_try='test -s conftest.$ac_objext'
15824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15825 (eval $ac_try) 2>&5
15826 ac_status=$?
15827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15828 (exit $ac_status); }; }; then
15829 ac_hi=-1 ac_mid=-1
15830 while :; do
15831 cat >conftest.$ac_ext <<_ACEOF
15832 /* confdefs.h. */
15833 _ACEOF
15834 cat confdefs.h >>conftest.$ac_ext
15835 cat >>conftest.$ac_ext <<_ACEOF
15836 /* end confdefs.h. */
15837 $ac_includes_default
15839 main ()
15841 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
15842 test_array [0] = 0
15845 return 0;
15847 _ACEOF
15848 rm -f conftest.$ac_objext
15849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15850 (eval $ac_compile) 2>conftest.er1
15851 ac_status=$?
15852 grep -v '^ *+' conftest.er1 >conftest.err
15853 rm -f conftest.er1
15854 cat conftest.err >&5
15855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15856 (exit $ac_status); } &&
15857 { ac_try='test -z "$ac_c_werror_flag"
15858 || test ! -s conftest.err'
15859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15860 (eval $ac_try) 2>&5
15861 ac_status=$?
15862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15863 (exit $ac_status); }; } &&
15864 { ac_try='test -s conftest.$ac_objext'
15865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15866 (eval $ac_try) 2>&5
15867 ac_status=$?
15868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15869 (exit $ac_status); }; }; then
15870 ac_lo=$ac_mid; break
15871 else
15872 echo "$as_me: failed program was:" >&5
15873 sed 's/^/| /' conftest.$ac_ext >&5
15875 ac_hi=`expr '(' $ac_mid ')' - 1`
15876 if test $ac_mid -le $ac_hi; then
15877 ac_lo= ac_hi=
15878 break
15880 ac_mid=`expr 2 '*' $ac_mid`
15882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15883 done
15884 else
15885 echo "$as_me: failed program was:" >&5
15886 sed 's/^/| /' conftest.$ac_ext >&5
15888 ac_lo= ac_hi=
15890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15892 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15893 # Binary search between lo and hi bounds.
15894 while test "x$ac_lo" != "x$ac_hi"; do
15895 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15896 cat >conftest.$ac_ext <<_ACEOF
15897 /* confdefs.h. */
15898 _ACEOF
15899 cat confdefs.h >>conftest.$ac_ext
15900 cat >>conftest.$ac_ext <<_ACEOF
15901 /* end confdefs.h. */
15902 $ac_includes_default
15904 main ()
15906 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15907 test_array [0] = 0
15910 return 0;
15912 _ACEOF
15913 rm -f conftest.$ac_objext
15914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15915 (eval $ac_compile) 2>conftest.er1
15916 ac_status=$?
15917 grep -v '^ *+' conftest.er1 >conftest.err
15918 rm -f conftest.er1
15919 cat conftest.err >&5
15920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15921 (exit $ac_status); } &&
15922 { ac_try='test -z "$ac_c_werror_flag"
15923 || test ! -s conftest.err'
15924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15925 (eval $ac_try) 2>&5
15926 ac_status=$?
15927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15928 (exit $ac_status); }; } &&
15929 { ac_try='test -s conftest.$ac_objext'
15930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15931 (eval $ac_try) 2>&5
15932 ac_status=$?
15933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15934 (exit $ac_status); }; }; then
15935 ac_hi=$ac_mid
15936 else
15937 echo "$as_me: failed program was:" >&5
15938 sed 's/^/| /' conftest.$ac_ext >&5
15940 ac_lo=`expr '(' $ac_mid ')' + 1`
15942 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15943 done
15944 case $ac_lo in
15945 ?*) ac_cv_sizeof_short=$ac_lo;;
15946 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15947 See \`config.log' for more details." >&5
15948 echo "$as_me: error: cannot compute sizeof (short), 77
15949 See \`config.log' for more details." >&2;}
15950 { (exit 1); exit 1; }; } ;;
15951 esac
15952 else
15953 if test "$cross_compiling" = yes; then
15954 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15955 See \`config.log' for more details." >&5
15956 echo "$as_me: error: cannot run test program while cross compiling
15957 See \`config.log' for more details." >&2;}
15958 { (exit 1); exit 1; }; }
15959 else
15960 cat >conftest.$ac_ext <<_ACEOF
15961 /* confdefs.h. */
15962 _ACEOF
15963 cat confdefs.h >>conftest.$ac_ext
15964 cat >>conftest.$ac_ext <<_ACEOF
15965 /* end confdefs.h. */
15966 $ac_includes_default
15967 long longval () { return (long) (sizeof (short)); }
15968 unsigned long ulongval () { return (long) (sizeof (short)); }
15969 #include <stdio.h>
15970 #include <stdlib.h>
15972 main ()
15975 FILE *f = fopen ("conftest.val", "w");
15976 if (! f)
15977 exit (1);
15978 if (((long) (sizeof (short))) < 0)
15980 long i = longval ();
15981 if (i != ((long) (sizeof (short))))
15982 exit (1);
15983 fprintf (f, "%ld\n", i);
15985 else
15987 unsigned long i = ulongval ();
15988 if (i != ((long) (sizeof (short))))
15989 exit (1);
15990 fprintf (f, "%lu\n", i);
15992 exit (ferror (f) || fclose (f) != 0);
15995 return 0;
15997 _ACEOF
15998 rm -f conftest$ac_exeext
15999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16000 (eval $ac_link) 2>&5
16001 ac_status=$?
16002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16003 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16005 (eval $ac_try) 2>&5
16006 ac_status=$?
16007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16008 (exit $ac_status); }; }; then
16009 ac_cv_sizeof_short=`cat conftest.val`
16010 else
16011 echo "$as_me: program exited with status $ac_status" >&5
16012 echo "$as_me: failed program was:" >&5
16013 sed 's/^/| /' conftest.$ac_ext >&5
16015 ( exit $ac_status )
16016 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16017 See \`config.log' for more details." >&5
16018 echo "$as_me: error: cannot compute sizeof (short), 77
16019 See \`config.log' for more details." >&2;}
16020 { (exit 1); exit 1; }; }
16022 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16025 rm -f conftest.val
16026 else
16027 ac_cv_sizeof_short=0
16030 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
16031 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
16032 cat >>confdefs.h <<_ACEOF
16033 #define SIZEOF_SHORT $ac_cv_sizeof_short
16034 _ACEOF
16037 echo "$as_me:$LINENO: checking for char" >&5
16038 echo $ECHO_N "checking for char... $ECHO_C" >&6
16039 if test "${ac_cv_type_char+set}" = set; then
16040 echo $ECHO_N "(cached) $ECHO_C" >&6
16041 else
16042 cat >conftest.$ac_ext <<_ACEOF
16043 /* confdefs.h. */
16044 _ACEOF
16045 cat confdefs.h >>conftest.$ac_ext
16046 cat >>conftest.$ac_ext <<_ACEOF
16047 /* end confdefs.h. */
16048 $ac_includes_default
16050 main ()
16052 if ((char *) 0)
16053 return 0;
16054 if (sizeof (char))
16055 return 0;
16057 return 0;
16059 _ACEOF
16060 rm -f conftest.$ac_objext
16061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16062 (eval $ac_compile) 2>conftest.er1
16063 ac_status=$?
16064 grep -v '^ *+' conftest.er1 >conftest.err
16065 rm -f conftest.er1
16066 cat conftest.err >&5
16067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16068 (exit $ac_status); } &&
16069 { ac_try='test -z "$ac_c_werror_flag"
16070 || test ! -s conftest.err'
16071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16072 (eval $ac_try) 2>&5
16073 ac_status=$?
16074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16075 (exit $ac_status); }; } &&
16076 { ac_try='test -s conftest.$ac_objext'
16077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16078 (eval $ac_try) 2>&5
16079 ac_status=$?
16080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16081 (exit $ac_status); }; }; then
16082 ac_cv_type_char=yes
16083 else
16084 echo "$as_me: failed program was:" >&5
16085 sed 's/^/| /' conftest.$ac_ext >&5
16087 ac_cv_type_char=no
16089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16091 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
16092 echo "${ECHO_T}$ac_cv_type_char" >&6
16094 echo "$as_me:$LINENO: checking size of char" >&5
16095 echo $ECHO_N "checking size of char... $ECHO_C" >&6
16096 if test "${ac_cv_sizeof_char+set}" = set; then
16097 echo $ECHO_N "(cached) $ECHO_C" >&6
16098 else
16099 if test "$ac_cv_type_char" = yes; then
16100 # The cast to unsigned long works around a bug in the HP C Compiler
16101 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16102 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16103 # This bug is HP SR number 8606223364.
16104 if test "$cross_compiling" = yes; then
16105 # Depending upon the size, compute the lo and hi bounds.
16106 cat >conftest.$ac_ext <<_ACEOF
16107 /* confdefs.h. */
16108 _ACEOF
16109 cat confdefs.h >>conftest.$ac_ext
16110 cat >>conftest.$ac_ext <<_ACEOF
16111 /* end confdefs.h. */
16112 $ac_includes_default
16114 main ()
16116 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
16117 test_array [0] = 0
16120 return 0;
16122 _ACEOF
16123 rm -f conftest.$ac_objext
16124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16125 (eval $ac_compile) 2>conftest.er1
16126 ac_status=$?
16127 grep -v '^ *+' conftest.er1 >conftest.err
16128 rm -f conftest.er1
16129 cat conftest.err >&5
16130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16131 (exit $ac_status); } &&
16132 { ac_try='test -z "$ac_c_werror_flag"
16133 || test ! -s conftest.err'
16134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16135 (eval $ac_try) 2>&5
16136 ac_status=$?
16137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16138 (exit $ac_status); }; } &&
16139 { ac_try='test -s conftest.$ac_objext'
16140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16141 (eval $ac_try) 2>&5
16142 ac_status=$?
16143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16144 (exit $ac_status); }; }; then
16145 ac_lo=0 ac_mid=0
16146 while :; do
16147 cat >conftest.$ac_ext <<_ACEOF
16148 /* confdefs.h. */
16149 _ACEOF
16150 cat confdefs.h >>conftest.$ac_ext
16151 cat >>conftest.$ac_ext <<_ACEOF
16152 /* end confdefs.h. */
16153 $ac_includes_default
16155 main ()
16157 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16158 test_array [0] = 0
16161 return 0;
16163 _ACEOF
16164 rm -f conftest.$ac_objext
16165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16166 (eval $ac_compile) 2>conftest.er1
16167 ac_status=$?
16168 grep -v '^ *+' conftest.er1 >conftest.err
16169 rm -f conftest.er1
16170 cat conftest.err >&5
16171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16172 (exit $ac_status); } &&
16173 { ac_try='test -z "$ac_c_werror_flag"
16174 || test ! -s conftest.err'
16175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16176 (eval $ac_try) 2>&5
16177 ac_status=$?
16178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16179 (exit $ac_status); }; } &&
16180 { ac_try='test -s conftest.$ac_objext'
16181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16182 (eval $ac_try) 2>&5
16183 ac_status=$?
16184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16185 (exit $ac_status); }; }; then
16186 ac_hi=$ac_mid; break
16187 else
16188 echo "$as_me: failed program was:" >&5
16189 sed 's/^/| /' conftest.$ac_ext >&5
16191 ac_lo=`expr $ac_mid + 1`
16192 if test $ac_lo -le $ac_mid; then
16193 ac_lo= ac_hi=
16194 break
16196 ac_mid=`expr 2 '*' $ac_mid + 1`
16198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16199 done
16200 else
16201 echo "$as_me: failed program was:" >&5
16202 sed 's/^/| /' conftest.$ac_ext >&5
16204 cat >conftest.$ac_ext <<_ACEOF
16205 /* confdefs.h. */
16206 _ACEOF
16207 cat confdefs.h >>conftest.$ac_ext
16208 cat >>conftest.$ac_ext <<_ACEOF
16209 /* end confdefs.h. */
16210 $ac_includes_default
16212 main ()
16214 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
16215 test_array [0] = 0
16218 return 0;
16220 _ACEOF
16221 rm -f conftest.$ac_objext
16222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16223 (eval $ac_compile) 2>conftest.er1
16224 ac_status=$?
16225 grep -v '^ *+' conftest.er1 >conftest.err
16226 rm -f conftest.er1
16227 cat conftest.err >&5
16228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16229 (exit $ac_status); } &&
16230 { ac_try='test -z "$ac_c_werror_flag"
16231 || test ! -s conftest.err'
16232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16233 (eval $ac_try) 2>&5
16234 ac_status=$?
16235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16236 (exit $ac_status); }; } &&
16237 { ac_try='test -s conftest.$ac_objext'
16238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16239 (eval $ac_try) 2>&5
16240 ac_status=$?
16241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16242 (exit $ac_status); }; }; then
16243 ac_hi=-1 ac_mid=-1
16244 while :; do
16245 cat >conftest.$ac_ext <<_ACEOF
16246 /* confdefs.h. */
16247 _ACEOF
16248 cat confdefs.h >>conftest.$ac_ext
16249 cat >>conftest.$ac_ext <<_ACEOF
16250 /* end confdefs.h. */
16251 $ac_includes_default
16253 main ()
16255 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
16256 test_array [0] = 0
16259 return 0;
16261 _ACEOF
16262 rm -f conftest.$ac_objext
16263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16264 (eval $ac_compile) 2>conftest.er1
16265 ac_status=$?
16266 grep -v '^ *+' conftest.er1 >conftest.err
16267 rm -f conftest.er1
16268 cat conftest.err >&5
16269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16270 (exit $ac_status); } &&
16271 { ac_try='test -z "$ac_c_werror_flag"
16272 || test ! -s conftest.err'
16273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16274 (eval $ac_try) 2>&5
16275 ac_status=$?
16276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16277 (exit $ac_status); }; } &&
16278 { ac_try='test -s conftest.$ac_objext'
16279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16280 (eval $ac_try) 2>&5
16281 ac_status=$?
16282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16283 (exit $ac_status); }; }; then
16284 ac_lo=$ac_mid; break
16285 else
16286 echo "$as_me: failed program was:" >&5
16287 sed 's/^/| /' conftest.$ac_ext >&5
16289 ac_hi=`expr '(' $ac_mid ')' - 1`
16290 if test $ac_mid -le $ac_hi; then
16291 ac_lo= ac_hi=
16292 break
16294 ac_mid=`expr 2 '*' $ac_mid`
16296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16297 done
16298 else
16299 echo "$as_me: failed program was:" >&5
16300 sed 's/^/| /' conftest.$ac_ext >&5
16302 ac_lo= ac_hi=
16304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16307 # Binary search between lo and hi bounds.
16308 while test "x$ac_lo" != "x$ac_hi"; do
16309 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16310 cat >conftest.$ac_ext <<_ACEOF
16311 /* confdefs.h. */
16312 _ACEOF
16313 cat confdefs.h >>conftest.$ac_ext
16314 cat >>conftest.$ac_ext <<_ACEOF
16315 /* end confdefs.h. */
16316 $ac_includes_default
16318 main ()
16320 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16321 test_array [0] = 0
16324 return 0;
16326 _ACEOF
16327 rm -f conftest.$ac_objext
16328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16329 (eval $ac_compile) 2>conftest.er1
16330 ac_status=$?
16331 grep -v '^ *+' conftest.er1 >conftest.err
16332 rm -f conftest.er1
16333 cat conftest.err >&5
16334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16335 (exit $ac_status); } &&
16336 { ac_try='test -z "$ac_c_werror_flag"
16337 || test ! -s conftest.err'
16338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16339 (eval $ac_try) 2>&5
16340 ac_status=$?
16341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16342 (exit $ac_status); }; } &&
16343 { ac_try='test -s conftest.$ac_objext'
16344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16345 (eval $ac_try) 2>&5
16346 ac_status=$?
16347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16348 (exit $ac_status); }; }; then
16349 ac_hi=$ac_mid
16350 else
16351 echo "$as_me: failed program was:" >&5
16352 sed 's/^/| /' conftest.$ac_ext >&5
16354 ac_lo=`expr '(' $ac_mid ')' + 1`
16356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16357 done
16358 case $ac_lo in
16359 ?*) ac_cv_sizeof_char=$ac_lo;;
16360 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16361 See \`config.log' for more details." >&5
16362 echo "$as_me: error: cannot compute sizeof (char), 77
16363 See \`config.log' for more details." >&2;}
16364 { (exit 1); exit 1; }; } ;;
16365 esac
16366 else
16367 if test "$cross_compiling" = yes; then
16368 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16369 See \`config.log' for more details." >&5
16370 echo "$as_me: error: cannot run test program while cross compiling
16371 See \`config.log' for more details." >&2;}
16372 { (exit 1); exit 1; }; }
16373 else
16374 cat >conftest.$ac_ext <<_ACEOF
16375 /* confdefs.h. */
16376 _ACEOF
16377 cat confdefs.h >>conftest.$ac_ext
16378 cat >>conftest.$ac_ext <<_ACEOF
16379 /* end confdefs.h. */
16380 $ac_includes_default
16381 long longval () { return (long) (sizeof (char)); }
16382 unsigned long ulongval () { return (long) (sizeof (char)); }
16383 #include <stdio.h>
16384 #include <stdlib.h>
16386 main ()
16389 FILE *f = fopen ("conftest.val", "w");
16390 if (! f)
16391 exit (1);
16392 if (((long) (sizeof (char))) < 0)
16394 long i = longval ();
16395 if (i != ((long) (sizeof (char))))
16396 exit (1);
16397 fprintf (f, "%ld\n", i);
16399 else
16401 unsigned long i = ulongval ();
16402 if (i != ((long) (sizeof (char))))
16403 exit (1);
16404 fprintf (f, "%lu\n", i);
16406 exit (ferror (f) || fclose (f) != 0);
16409 return 0;
16411 _ACEOF
16412 rm -f conftest$ac_exeext
16413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16414 (eval $ac_link) 2>&5
16415 ac_status=$?
16416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16417 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16419 (eval $ac_try) 2>&5
16420 ac_status=$?
16421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16422 (exit $ac_status); }; }; then
16423 ac_cv_sizeof_char=`cat conftest.val`
16424 else
16425 echo "$as_me: program exited with status $ac_status" >&5
16426 echo "$as_me: failed program was:" >&5
16427 sed 's/^/| /' conftest.$ac_ext >&5
16429 ( exit $ac_status )
16430 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16431 See \`config.log' for more details." >&5
16432 echo "$as_me: error: cannot compute sizeof (char), 77
16433 See \`config.log' for more details." >&2;}
16434 { (exit 1); exit 1; }; }
16436 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16439 rm -f conftest.val
16440 else
16441 ac_cv_sizeof_char=0
16444 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
16445 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
16446 cat >>confdefs.h <<_ACEOF
16447 #define SIZEOF_CHAR $ac_cv_sizeof_char
16448 _ACEOF
16452 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
16453 echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
16454 case "$ac_cv_sizeof_char" in
16455 1) acx_cv_type_int8_t=char ;;
16456 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
16457 echo "$as_me: error: no 8-bit type" >&2;}
16458 { (exit please report a bug); exit please report a bug; }; }
16459 esac
16460 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
16461 echo "${ECHO_T}$acx_cv_type_int8_t" >&6
16463 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
16464 echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
16465 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
16466 2:*) acx_cv_type_int16_t=int ;;
16467 *:2) acx_cv_type_int16_t=short ;;
16468 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
16469 echo "$as_me: error: no 16-bit type" >&2;}
16470 { (exit please report a bug); exit please report a bug; }; }
16471 esac
16472 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
16473 echo "${ECHO_T}$acx_cv_type_int16_t" >&6
16475 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
16476 echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
16477 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
16478 4:*) acx_cv_type_int32_t=int ;;
16479 *:4) acx_cv_type_int32_t=long ;;
16480 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
16481 echo "$as_me: error: no 32-bit type" >&2;}
16482 { (exit please report a bug); exit please report a bug; }; }
16483 esac
16484 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
16485 echo "${ECHO_T}$acx_cv_type_int32_t" >&6
16488 # These tests are here to make the output prettier
16490 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
16491 case "$ac_cv_sizeof_long" in
16492 8) acx_cv_type_int64_t=long ;;
16493 esac
16494 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
16495 echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
16496 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
16497 echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
16500 # Now we can use the above types
16502 if test "$ac_cv_type_uintptr_t" != yes; then
16503 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
16504 echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
16505 case $ac_cv_sizeof_void_p in
16506 2) acx_cv_type_intptr_t=int16_t ;;
16507 4) acx_cv_type_intptr_t=int32_t ;;
16508 8) acx_cv_type_intptr_t=int64_t ;;
16509 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
16510 echo "$as_me: error: no equivalent for intptr_t" >&2;}
16511 { (exit please report a bug); exit please report a bug; }; }
16512 esac
16513 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
16514 echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
16517 # ----------------- done all checks, emit header -------------
16518 ac_config_commands="$ac_config_commands gstdint.h"
16523 # Check to see if -pthread or -lpthread is needed. Prefer the former.
16524 # In case the pthread.h system header is not found, this test will fail.
16525 XPCFLAGS=""
16526 CFLAGS="$CFLAGS -pthread"
16527 cat >conftest.$ac_ext <<_ACEOF
16528 /* confdefs.h. */
16529 _ACEOF
16530 cat confdefs.h >>conftest.$ac_ext
16531 cat >>conftest.$ac_ext <<_ACEOF
16532 /* end confdefs.h. */
16533 #include <pthread.h>
16534 void *g(void *d) { return NULL; }
16536 main ()
16538 pthread_t t; pthread_create(&t,NULL,g,NULL);
16540 return 0;
16542 _ACEOF
16543 rm -f conftest.$ac_objext conftest$ac_exeext
16544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16545 (eval $ac_link) 2>conftest.er1
16546 ac_status=$?
16547 grep -v '^ *+' conftest.er1 >conftest.err
16548 rm -f conftest.er1
16549 cat conftest.err >&5
16550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16551 (exit $ac_status); } &&
16552 { ac_try='test -z "$ac_c_werror_flag"
16553 || test ! -s conftest.err'
16554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16555 (eval $ac_try) 2>&5
16556 ac_status=$?
16557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16558 (exit $ac_status); }; } &&
16559 { ac_try='test -s conftest$ac_exeext'
16560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16561 (eval $ac_try) 2>&5
16562 ac_status=$?
16563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16564 (exit $ac_status); }; }; then
16565 XPCFLAGS=" -Wc,-pthread"
16566 else
16567 echo "$as_me: failed program was:" >&5
16568 sed 's/^/| /' conftest.$ac_ext >&5
16570 CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
16571 cat >conftest.$ac_ext <<_ACEOF
16572 /* confdefs.h. */
16573 _ACEOF
16574 cat confdefs.h >>conftest.$ac_ext
16575 cat >>conftest.$ac_ext <<_ACEOF
16576 /* end confdefs.h. */
16577 #include <pthread.h>
16578 void *g(void *d) { return NULL; }
16580 main ()
16582 pthread_t t; pthread_create(&t,NULL,g,NULL);
16584 return 0;
16586 _ACEOF
16587 rm -f conftest.$ac_objext conftest$ac_exeext
16588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16589 (eval $ac_link) 2>conftest.er1
16590 ac_status=$?
16591 grep -v '^ *+' conftest.er1 >conftest.err
16592 rm -f conftest.er1
16593 cat conftest.err >&5
16594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16595 (exit $ac_status); } &&
16596 { ac_try='test -z "$ac_c_werror_flag"
16597 || test ! -s conftest.err'
16598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16599 (eval $ac_try) 2>&5
16600 ac_status=$?
16601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16602 (exit $ac_status); }; } &&
16603 { ac_try='test -s conftest$ac_exeext'
16604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16605 (eval $ac_try) 2>&5
16606 ac_status=$?
16607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16608 (exit $ac_status); }; }; then
16610 else
16611 echo "$as_me: failed program was:" >&5
16612 sed 's/^/| /' conftest.$ac_ext >&5
16614 { { echo "$as_me:$LINENO: error: Pthreads are required to build libgomp" >&5
16615 echo "$as_me: error: Pthreads are required to build libgomp" >&2;}
16616 { (exit 1); exit 1; }; }
16618 rm -f conftest.err conftest.$ac_objext \
16619 conftest$ac_exeext conftest.$ac_ext
16621 rm -f conftest.err conftest.$ac_objext \
16622 conftest$ac_exeext conftest.$ac_ext
16624 # Check for functions needed.
16627 for ac_func in getloadavg clock_gettime
16629 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16630 echo "$as_me:$LINENO: checking for $ac_func" >&5
16631 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16632 if eval "test \"\${$as_ac_var+set}\" = set"; then
16633 echo $ECHO_N "(cached) $ECHO_C" >&6
16634 else
16635 cat >conftest.$ac_ext <<_ACEOF
16636 /* confdefs.h. */
16637 _ACEOF
16638 cat confdefs.h >>conftest.$ac_ext
16639 cat >>conftest.$ac_ext <<_ACEOF
16640 /* end confdefs.h. */
16641 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16642 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16643 #define $ac_func innocuous_$ac_func
16645 /* System header to define __stub macros and hopefully few prototypes,
16646 which can conflict with char $ac_func (); below.
16647 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16648 <limits.h> exists even on freestanding compilers. */
16650 #ifdef __STDC__
16651 # include <limits.h>
16652 #else
16653 # include <assert.h>
16654 #endif
16656 #undef $ac_func
16658 /* Override any gcc2 internal prototype to avoid an error. */
16659 #ifdef __cplusplus
16660 extern "C"
16662 #endif
16663 /* We use char because int might match the return type of a gcc2
16664 builtin and then its argument prototype would still apply. */
16665 char $ac_func ();
16666 /* The GNU C library defines this for functions which it implements
16667 to always fail with ENOSYS. Some functions are actually named
16668 something starting with __ and the normal name is an alias. */
16669 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16670 choke me
16671 #else
16672 char (*f) () = $ac_func;
16673 #endif
16674 #ifdef __cplusplus
16676 #endif
16679 main ()
16681 return f != $ac_func;
16683 return 0;
16685 _ACEOF
16686 rm -f conftest.$ac_objext conftest$ac_exeext
16687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16688 (eval $ac_link) 2>conftest.er1
16689 ac_status=$?
16690 grep -v '^ *+' conftest.er1 >conftest.err
16691 rm -f conftest.er1
16692 cat conftest.err >&5
16693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16694 (exit $ac_status); } &&
16695 { ac_try='test -z "$ac_c_werror_flag"
16696 || test ! -s conftest.err'
16697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16698 (eval $ac_try) 2>&5
16699 ac_status=$?
16700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16701 (exit $ac_status); }; } &&
16702 { ac_try='test -s conftest$ac_exeext'
16703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16704 (eval $ac_try) 2>&5
16705 ac_status=$?
16706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16707 (exit $ac_status); }; }; then
16708 eval "$as_ac_var=yes"
16709 else
16710 echo "$as_me: failed program was:" >&5
16711 sed 's/^/| /' conftest.$ac_ext >&5
16713 eval "$as_ac_var=no"
16715 rm -f conftest.err conftest.$ac_objext \
16716 conftest$ac_exeext conftest.$ac_ext
16718 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16719 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16720 if test `eval echo '${'$as_ac_var'}'` = yes; then
16721 cat >>confdefs.h <<_ACEOF
16722 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16723 _ACEOF
16726 done
16729 # Check for broken semaphore implementation on darwin.
16730 # sem_init returns: sem_init error: Function not implemented.
16731 case "$host" in
16732 *-darwin*)
16734 cat >>confdefs.h <<\_ACEOF
16735 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
16736 _ACEOF
16739 esac
16741 # Check whether --enable-linux-futex or --disable-linux-futex was given.
16742 if test "${enable_linux_futex+set}" = set; then
16743 enableval="$enable_linux_futex"
16745 case "$enableval" in
16746 yes|no|default) ;;
16747 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable linux-futex" >&5
16748 echo "$as_me: error: Unknown argument to enable/disable linux-futex" >&2;}
16749 { (exit 1); exit 1; }; } ;;
16750 esac
16752 else
16753 enable_linux_futex=default
16756 case "$target" in
16757 *-linux*)
16758 case "$enable_linux_futex" in
16759 default)
16760 # If headers don't have gettid/futex syscalls definition, then
16761 # default to no, otherwise there will be compile time failures.
16762 # Otherwise, default to yes. If we don't detect we are
16763 # compiled/linked against NPTL and not cross-compiling, check
16764 # if programs are run by default against NPTL and if not, issue
16765 # a warning.
16766 enable_linux_futex=no
16767 cat >conftest.$ac_ext <<_ACEOF
16768 /* confdefs.h. */
16769 _ACEOF
16770 cat confdefs.h >>conftest.$ac_ext
16771 cat >>conftest.$ac_ext <<_ACEOF
16772 /* end confdefs.h. */
16773 #include <sys/syscall.h>
16774 int lk;
16776 main ()
16778 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
16780 return 0;
16782 _ACEOF
16783 rm -f conftest.$ac_objext conftest$ac_exeext
16784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16785 (eval $ac_link) 2>conftest.er1
16786 ac_status=$?
16787 grep -v '^ *+' conftest.er1 >conftest.err
16788 rm -f conftest.er1
16789 cat conftest.err >&5
16790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16791 (exit $ac_status); } &&
16792 { ac_try='test -z "$ac_c_werror_flag"
16793 || test ! -s conftest.err'
16794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16795 (eval $ac_try) 2>&5
16796 ac_status=$?
16797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16798 (exit $ac_status); }; } &&
16799 { ac_try='test -s conftest$ac_exeext'
16800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16801 (eval $ac_try) 2>&5
16802 ac_status=$?
16803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16804 (exit $ac_status); }; }; then
16805 save_LIBS="$LIBS"
16806 LIBS="-lpthread $LIBS"
16807 cat >conftest.$ac_ext <<_ACEOF
16808 /* confdefs.h. */
16809 _ACEOF
16810 cat confdefs.h >>conftest.$ac_ext
16811 cat >>conftest.$ac_ext <<_ACEOF
16812 /* end confdefs.h. */
16813 #ifndef _GNU_SOURCE
16814 #define _GNU_SOURCE 1
16815 #endif
16816 #include <pthread.h>
16817 pthread_t th; void *status;
16819 main ()
16821 pthread_tryjoin_np (th, &status);
16823 return 0;
16825 _ACEOF
16826 rm -f conftest.$ac_objext conftest$ac_exeext
16827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16828 (eval $ac_link) 2>conftest.er1
16829 ac_status=$?
16830 grep -v '^ *+' conftest.er1 >conftest.err
16831 rm -f conftest.er1
16832 cat conftest.err >&5
16833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834 (exit $ac_status); } &&
16835 { ac_try='test -z "$ac_c_werror_flag"
16836 || test ! -s conftest.err'
16837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16838 (eval $ac_try) 2>&5
16839 ac_status=$?
16840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16841 (exit $ac_status); }; } &&
16842 { ac_try='test -s conftest$ac_exeext'
16843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16844 (eval $ac_try) 2>&5
16845 ac_status=$?
16846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16847 (exit $ac_status); }; }; then
16848 enable_linux_futex=yes
16849 else
16850 echo "$as_me: failed program was:" >&5
16851 sed 's/^/| /' conftest.$ac_ext >&5
16853 if test x$cross_compiling = xno; then
16854 if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
16855 | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else
16856 { echo "$as_me:$LINENO: WARNING: The kernel might not support futex or gettid syscalls.
16857 If so, please configure with --disable-linux-futex" >&5
16858 echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
16859 If so, please configure with --disable-linux-futex" >&2;}
16862 enable_linux_futex=yes
16864 rm -f conftest.err conftest.$ac_objext \
16865 conftest$ac_exeext conftest.$ac_ext
16866 LIBS="$save_LIBS"
16867 else
16868 echo "$as_me: failed program was:" >&5
16869 sed 's/^/| /' conftest.$ac_ext >&5
16872 rm -f conftest.err conftest.$ac_objext \
16873 conftest$ac_exeext conftest.$ac_ext
16875 yes)
16876 cat >conftest.$ac_ext <<_ACEOF
16877 /* confdefs.h. */
16878 _ACEOF
16879 cat confdefs.h >>conftest.$ac_ext
16880 cat >>conftest.$ac_ext <<_ACEOF
16881 /* end confdefs.h. */
16882 #include <sys/syscall.h>
16883 int lk;
16885 main ()
16887 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
16889 return 0;
16891 _ACEOF
16892 rm -f conftest.$ac_objext conftest$ac_exeext
16893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16894 (eval $ac_link) 2>conftest.er1
16895 ac_status=$?
16896 grep -v '^ *+' conftest.er1 >conftest.err
16897 rm -f conftest.er1
16898 cat conftest.err >&5
16899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16900 (exit $ac_status); } &&
16901 { ac_try='test -z "$ac_c_werror_flag"
16902 || test ! -s conftest.err'
16903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16904 (eval $ac_try) 2>&5
16905 ac_status=$?
16906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16907 (exit $ac_status); }; } &&
16908 { ac_try='test -s conftest$ac_exeext'
16909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16910 (eval $ac_try) 2>&5
16911 ac_status=$?
16912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16913 (exit $ac_status); }; }; then
16915 else
16916 echo "$as_me: failed program was:" >&5
16917 sed 's/^/| /' conftest.$ac_ext >&5
16919 { { echo "$as_me:$LINENO: error: SYS_gettid and SYS_futex required for --enable-linux-futex" >&5
16920 echo "$as_me: error: SYS_gettid and SYS_futex required for --enable-linux-futex" >&2;}
16921 { (exit 1); exit 1; }; }
16923 rm -f conftest.err conftest.$ac_objext \
16924 conftest$ac_exeext conftest.$ac_ext
16926 esac
16929 enable_linux_futex=no
16931 esac
16932 if test x$enable_linux_futex = xyes; then
16937 # Check for pthread_{,attr_}[sg]etaffinity_np.
16938 cat >conftest.$ac_ext <<_ACEOF
16939 /* confdefs.h. */
16940 _ACEOF
16941 cat confdefs.h >>conftest.$ac_ext
16942 cat >>conftest.$ac_ext <<_ACEOF
16943 /* end confdefs.h. */
16944 #define _GNU_SOURCE
16945 #include <pthread.h>
16947 main ()
16949 cpu_set_t cpuset;
16950 pthread_attr_t attr;
16951 pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
16952 if (CPU_ISSET (0, &cpuset))
16953 CPU_SET (1, &cpuset);
16954 else
16955 CPU_ZERO (&cpuset);
16956 pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
16957 pthread_attr_init (&attr);
16958 pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
16959 pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
16961 return 0;
16963 _ACEOF
16964 rm -f conftest.$ac_objext conftest$ac_exeext
16965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16966 (eval $ac_link) 2>conftest.er1
16967 ac_status=$?
16968 grep -v '^ *+' conftest.er1 >conftest.err
16969 rm -f conftest.er1
16970 cat conftest.err >&5
16971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16972 (exit $ac_status); } &&
16973 { ac_try='test -z "$ac_c_werror_flag"
16974 || test ! -s conftest.err'
16975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16976 (eval $ac_try) 2>&5
16977 ac_status=$?
16978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16979 (exit $ac_status); }; } &&
16980 { ac_try='test -s conftest$ac_exeext'
16981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16982 (eval $ac_try) 2>&5
16983 ac_status=$?
16984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16985 (exit $ac_status); }; }; then
16987 cat >>confdefs.h <<\_ACEOF
16988 #define HAVE_PTHREAD_AFFINITY_NP 1
16989 _ACEOF
16991 else
16992 echo "$as_me: failed program was:" >&5
16993 sed 's/^/| /' conftest.$ac_ext >&5
16996 rm -f conftest.err conftest.$ac_objext \
16997 conftest$ac_exeext conftest.$ac_ext
16999 # At least for glibc, clock_gettime is in librt. But don't pull that
17000 # in if it still doesn't give us the function we want.
17001 if test $ac_cv_func_clock_gettime = no; then
17002 echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
17003 echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
17004 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
17005 echo $ECHO_N "(cached) $ECHO_C" >&6
17006 else
17007 ac_check_lib_save_LIBS=$LIBS
17008 LIBS="-lrt $LIBS"
17009 cat >conftest.$ac_ext <<_ACEOF
17010 /* confdefs.h. */
17011 _ACEOF
17012 cat confdefs.h >>conftest.$ac_ext
17013 cat >>conftest.$ac_ext <<_ACEOF
17014 /* end confdefs.h. */
17016 /* Override any gcc2 internal prototype to avoid an error. */
17017 #ifdef __cplusplus
17018 extern "C"
17019 #endif
17020 /* We use char because int might match the return type of a gcc2
17021 builtin and then its argument prototype would still apply. */
17022 char clock_gettime ();
17024 main ()
17026 clock_gettime ();
17028 return 0;
17030 _ACEOF
17031 rm -f conftest.$ac_objext conftest$ac_exeext
17032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17033 (eval $ac_link) 2>conftest.er1
17034 ac_status=$?
17035 grep -v '^ *+' conftest.er1 >conftest.err
17036 rm -f conftest.er1
17037 cat conftest.err >&5
17038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17039 (exit $ac_status); } &&
17040 { ac_try='test -z "$ac_c_werror_flag"
17041 || test ! -s conftest.err'
17042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17043 (eval $ac_try) 2>&5
17044 ac_status=$?
17045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046 (exit $ac_status); }; } &&
17047 { ac_try='test -s conftest$ac_exeext'
17048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17049 (eval $ac_try) 2>&5
17050 ac_status=$?
17051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17052 (exit $ac_status); }; }; then
17053 ac_cv_lib_rt_clock_gettime=yes
17054 else
17055 echo "$as_me: failed program was:" >&5
17056 sed 's/^/| /' conftest.$ac_ext >&5
17058 ac_cv_lib_rt_clock_gettime=no
17060 rm -f conftest.err conftest.$ac_objext \
17061 conftest$ac_exeext conftest.$ac_ext
17062 LIBS=$ac_check_lib_save_LIBS
17064 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
17065 echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
17066 if test $ac_cv_lib_rt_clock_gettime = yes; then
17067 LIBS="-lrt $LIBS"
17069 cat >>confdefs.h <<\_ACEOF
17070 #define HAVE_CLOCK_GETTIME 1
17071 _ACEOF
17077 # See if we support thread-local storage.
17079 # Check whether --enable-tls or --disable-tls was given.
17080 if test "${enable_tls+set}" = set; then
17081 enableval="$enable_tls"
17083 case "$enableval" in
17084 yes|no) ;;
17085 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
17086 echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
17087 { (exit 1); exit 1; }; } ;;
17088 esac
17090 else
17091 enable_tls=yes
17094 echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
17095 echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
17096 if test "${gcc_cv_have_tls+set}" = set; then
17097 echo $ECHO_N "(cached) $ECHO_C" >&6
17098 else
17100 if test "$cross_compiling" = yes; then
17101 cat >conftest.$ac_ext <<_ACEOF
17102 __thread int a; int b; int main() { return a = b; }
17103 _ACEOF
17104 rm -f conftest.$ac_objext conftest$ac_exeext
17105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17106 (eval $ac_link) 2>conftest.er1
17107 ac_status=$?
17108 grep -v '^ *+' conftest.er1 >conftest.err
17109 rm -f conftest.er1
17110 cat conftest.err >&5
17111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17112 (exit $ac_status); } &&
17113 { ac_try='test -z "$ac_c_werror_flag"
17114 || test ! -s conftest.err'
17115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17116 (eval $ac_try) 2>&5
17117 ac_status=$?
17118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17119 (exit $ac_status); }; } &&
17120 { ac_try='test -s conftest$ac_exeext'
17121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17122 (eval $ac_try) 2>&5
17123 ac_status=$?
17124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17125 (exit $ac_status); }; }; then
17126 gcc_cv_have_tls=yes
17127 else
17128 echo "$as_me: failed program was:" >&5
17129 sed 's/^/| /' conftest.$ac_ext >&5
17131 gcc_cv_have_tls=no
17133 rm -f conftest.err conftest.$ac_objext \
17134 conftest$ac_exeext conftest.$ac_ext
17137 else
17138 cat >conftest.$ac_ext <<_ACEOF
17139 __thread int a; int b; int main() { return a = b; }
17140 _ACEOF
17141 rm -f conftest$ac_exeext
17142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17143 (eval $ac_link) 2>&5
17144 ac_status=$?
17145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17148 (eval $ac_try) 2>&5
17149 ac_status=$?
17150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17151 (exit $ac_status); }; }; then
17152 chktls_save_LDFLAGS="$LDFLAGS"
17153 LDFLAGS="-static $LDFLAGS"
17154 cat >conftest.$ac_ext <<_ACEOF
17155 int main() { return 0; }
17156 _ACEOF
17157 rm -f conftest.$ac_objext conftest$ac_exeext
17158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17159 (eval $ac_link) 2>conftest.er1
17160 ac_status=$?
17161 grep -v '^ *+' conftest.er1 >conftest.err
17162 rm -f conftest.er1
17163 cat conftest.err >&5
17164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17165 (exit $ac_status); } &&
17166 { ac_try='test -z "$ac_c_werror_flag"
17167 || test ! -s conftest.err'
17168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17169 (eval $ac_try) 2>&5
17170 ac_status=$?
17171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17172 (exit $ac_status); }; } &&
17173 { ac_try='test -s conftest$ac_exeext'
17174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17175 (eval $ac_try) 2>&5
17176 ac_status=$?
17177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17178 (exit $ac_status); }; }; then
17179 if test "$cross_compiling" = yes; then
17180 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17181 See \`config.log' for more details." >&5
17182 echo "$as_me: error: cannot run test program while cross compiling
17183 See \`config.log' for more details." >&2;}
17184 { (exit 1); exit 1; }; }
17185 else
17186 cat >conftest.$ac_ext <<_ACEOF
17187 __thread int a; int b; int main() { return a = b; }
17188 _ACEOF
17189 rm -f conftest$ac_exeext
17190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17191 (eval $ac_link) 2>&5
17192 ac_status=$?
17193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17194 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17196 (eval $ac_try) 2>&5
17197 ac_status=$?
17198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17199 (exit $ac_status); }; }; then
17200 gcc_cv_have_tls=yes
17201 else
17202 echo "$as_me: program exited with status $ac_status" >&5
17203 echo "$as_me: failed program was:" >&5
17204 sed 's/^/| /' conftest.$ac_ext >&5
17206 ( exit $ac_status )
17207 gcc_cv_have_tls=no
17209 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17211 else
17212 echo "$as_me: failed program was:" >&5
17213 sed 's/^/| /' conftest.$ac_ext >&5
17215 gcc_cv_have_tls=yes
17217 rm -f conftest.err conftest.$ac_objext \
17218 conftest$ac_exeext conftest.$ac_ext
17219 LDFLAGS="$chktls_save_LDFLAGS"
17220 if test $gcc_cv_have_tls = yes; then
17221 chktls_save_CFLAGS="$CFLAGS"
17222 thread_CFLAGS=failed
17223 for flag in '' '-pthread' '-lpthread'; do
17224 CFLAGS="$flag $chktls_save_CFLAGS"
17225 cat >conftest.$ac_ext <<_ACEOF
17226 /* confdefs.h. */
17227 _ACEOF
17228 cat confdefs.h >>conftest.$ac_ext
17229 cat >>conftest.$ac_ext <<_ACEOF
17230 /* end confdefs.h. */
17231 #include <pthread.h>
17232 void *g(void *d) { return NULL; }
17234 main ()
17236 pthread_t t; pthread_create(&t,NULL,g,NULL);
17238 return 0;
17240 _ACEOF
17241 rm -f conftest.$ac_objext conftest$ac_exeext
17242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17243 (eval $ac_link) 2>conftest.er1
17244 ac_status=$?
17245 grep -v '^ *+' conftest.er1 >conftest.err
17246 rm -f conftest.er1
17247 cat conftest.err >&5
17248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17249 (exit $ac_status); } &&
17250 { ac_try='test -z "$ac_c_werror_flag"
17251 || test ! -s conftest.err'
17252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17253 (eval $ac_try) 2>&5
17254 ac_status=$?
17255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17256 (exit $ac_status); }; } &&
17257 { ac_try='test -s conftest$ac_exeext'
17258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17259 (eval $ac_try) 2>&5
17260 ac_status=$?
17261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17262 (exit $ac_status); }; }; then
17263 thread_CFLAGS="$flag"
17264 else
17265 echo "$as_me: failed program was:" >&5
17266 sed 's/^/| /' conftest.$ac_ext >&5
17269 rm -f conftest.err conftest.$ac_objext \
17270 conftest$ac_exeext conftest.$ac_ext
17271 if test "X$thread_CFLAGS" != Xfailed; then
17272 break
17274 done
17275 CFLAGS="$chktls_save_CFLAGS"
17276 if test "X$thread_CFLAGS" != Xfailed; then
17277 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
17278 if test "$cross_compiling" = yes; then
17279 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17280 See \`config.log' for more details." >&5
17281 echo "$as_me: error: cannot run test program while cross compiling
17282 See \`config.log' for more details." >&2;}
17283 { (exit 1); exit 1; }; }
17284 else
17285 cat >conftest.$ac_ext <<_ACEOF
17286 /* confdefs.h. */
17287 _ACEOF
17288 cat confdefs.h >>conftest.$ac_ext
17289 cat >>conftest.$ac_ext <<_ACEOF
17290 /* end confdefs.h. */
17291 #include <pthread.h>
17292 __thread int a;
17293 static int *a_in_other_thread;
17294 static void *
17295 thread_func (void *arg)
17297 a_in_other_thread = &a;
17298 return (void *)0;
17301 main ()
17303 pthread_t thread;
17304 void *thread_retval;
17305 int *a_in_main_thread;
17306 if (pthread_create (&thread, (pthread_attr_t *)0,
17307 thread_func, (void *)0))
17308 return 0;
17309 a_in_main_thread = &a;
17310 if (pthread_join (thread, &thread_retval))
17311 return 0;
17312 return (a_in_other_thread == a_in_main_thread);
17314 return 0;
17316 _ACEOF
17317 rm -f conftest$ac_exeext
17318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17319 (eval $ac_link) 2>&5
17320 ac_status=$?
17321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17322 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17324 (eval $ac_try) 2>&5
17325 ac_status=$?
17326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17327 (exit $ac_status); }; }; then
17328 gcc_cv_have_tls=yes
17329 else
17330 echo "$as_me: program exited with status $ac_status" >&5
17331 echo "$as_me: failed program was:" >&5
17332 sed 's/^/| /' conftest.$ac_ext >&5
17334 ( exit $ac_status )
17335 gcc_cv_have_tls=no
17337 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17339 CFLAGS="$chktls_save_CFLAGS"
17342 else
17343 echo "$as_me: program exited with status $ac_status" >&5
17344 echo "$as_me: failed program was:" >&5
17345 sed 's/^/| /' conftest.$ac_ext >&5
17347 ( exit $ac_status )
17348 gcc_cv_have_tls=no
17350 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17353 echo "$as_me:$LINENO: result: $gcc_cv_have_tls" >&5
17354 echo "${ECHO_T}$gcc_cv_have_tls" >&6
17355 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
17357 cat >>confdefs.h <<\_ACEOF
17358 #define HAVE_TLS 1
17359 _ACEOF
17363 # See what sort of export controls are availible.
17365 echo "$as_me:$LINENO: checking whether the target supports hidden visibility" >&5
17366 echo $ECHO_N "checking whether the target supports hidden visibility... $ECHO_C" >&6
17367 if test "${libgomp_cv_have_attribute_visibility+set}" = set; then
17368 echo $ECHO_N "(cached) $ECHO_C" >&6
17369 else
17371 save_CFLAGS="$CFLAGS"
17372 CFLAGS="$CFLAGS -Werror"
17373 cat >conftest.$ac_ext <<_ACEOF
17374 /* confdefs.h. */
17375 _ACEOF
17376 cat confdefs.h >>conftest.$ac_ext
17377 cat >>conftest.$ac_ext <<_ACEOF
17378 /* end confdefs.h. */
17379 void __attribute__((visibility("hidden"))) foo(void) { }
17381 main ()
17385 return 0;
17387 _ACEOF
17388 rm -f conftest.$ac_objext
17389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17390 (eval $ac_compile) 2>conftest.er1
17391 ac_status=$?
17392 grep -v '^ *+' conftest.er1 >conftest.err
17393 rm -f conftest.er1
17394 cat conftest.err >&5
17395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17396 (exit $ac_status); } &&
17397 { ac_try='test -z "$ac_c_werror_flag"
17398 || test ! -s conftest.err'
17399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17400 (eval $ac_try) 2>&5
17401 ac_status=$?
17402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17403 (exit $ac_status); }; } &&
17404 { ac_try='test -s conftest.$ac_objext'
17405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17406 (eval $ac_try) 2>&5
17407 ac_status=$?
17408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17409 (exit $ac_status); }; }; then
17410 libgomp_cv_have_attribute_visibility=yes
17411 else
17412 echo "$as_me: failed program was:" >&5
17413 sed 's/^/| /' conftest.$ac_ext >&5
17415 libgomp_cv_have_attribute_visibility=no
17417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17418 CFLAGS="$save_CFLAGS"
17420 echo "$as_me:$LINENO: result: $libgomp_cv_have_attribute_visibility" >&5
17421 echo "${ECHO_T}$libgomp_cv_have_attribute_visibility" >&6
17422 if test $libgomp_cv_have_attribute_visibility = yes; then
17424 cat >>confdefs.h <<\_ACEOF
17425 #define HAVE_ATTRIBUTE_VISIBILITY 1
17426 _ACEOF
17430 echo "$as_me:$LINENO: checking whether the target supports dllexport" >&5
17431 echo $ECHO_N "checking whether the target supports dllexport... $ECHO_C" >&6
17432 if test "${libgomp_cv_have_attribute_dllexport+set}" = set; then
17433 echo $ECHO_N "(cached) $ECHO_C" >&6
17434 else
17436 save_CFLAGS="$CFLAGS"
17437 CFLAGS="$CFLAGS -Werror"
17438 cat >conftest.$ac_ext <<_ACEOF
17439 /* confdefs.h. */
17440 _ACEOF
17441 cat confdefs.h >>conftest.$ac_ext
17442 cat >>conftest.$ac_ext <<_ACEOF
17443 /* end confdefs.h. */
17444 void __attribute__((dllexport)) foo(void) { }
17446 main ()
17450 return 0;
17452 _ACEOF
17453 rm -f conftest.$ac_objext
17454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17455 (eval $ac_compile) 2>conftest.er1
17456 ac_status=$?
17457 grep -v '^ *+' conftest.er1 >conftest.err
17458 rm -f conftest.er1
17459 cat conftest.err >&5
17460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17461 (exit $ac_status); } &&
17462 { ac_try='test -z "$ac_c_werror_flag"
17463 || test ! -s conftest.err'
17464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17465 (eval $ac_try) 2>&5
17466 ac_status=$?
17467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17468 (exit $ac_status); }; } &&
17469 { ac_try='test -s conftest.$ac_objext'
17470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17471 (eval $ac_try) 2>&5
17472 ac_status=$?
17473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17474 (exit $ac_status); }; }; then
17475 libgomp_cv_have_attribute_dllexport=yes
17476 else
17477 echo "$as_me: failed program was:" >&5
17478 sed 's/^/| /' conftest.$ac_ext >&5
17480 libgomp_cv_have_attribute_dllexport=no
17482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17483 CFLAGS="$save_CFLAGS"
17485 echo "$as_me:$LINENO: result: $libgomp_cv_have_attribute_dllexport" >&5
17486 echo "${ECHO_T}$libgomp_cv_have_attribute_dllexport" >&6
17487 if test $libgomp_cv_have_attribute_dllexport = yes; then
17489 cat >>confdefs.h <<\_ACEOF
17490 #define HAVE_ATTRIBUTE_DLLEXPORT 1
17491 _ACEOF
17495 echo "$as_me:$LINENO: checking whether the target supports symbol aliases" >&5
17496 echo $ECHO_N "checking whether the target supports symbol aliases... $ECHO_C" >&6
17497 if test "${libgomp_cv_have_attribute_alias+set}" = set; then
17498 echo $ECHO_N "(cached) $ECHO_C" >&6
17499 else
17501 cat >conftest.$ac_ext <<_ACEOF
17502 /* confdefs.h. */
17503 _ACEOF
17504 cat confdefs.h >>conftest.$ac_ext
17505 cat >>conftest.$ac_ext <<_ACEOF
17506 /* end confdefs.h. */
17508 void foo(void) { }
17509 extern void bar(void) __attribute__((alias("foo")));
17511 main ()
17513 bar();
17515 return 0;
17517 _ACEOF
17518 rm -f conftest.$ac_objext conftest$ac_exeext
17519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17520 (eval $ac_link) 2>conftest.er1
17521 ac_status=$?
17522 grep -v '^ *+' conftest.er1 >conftest.err
17523 rm -f conftest.er1
17524 cat conftest.err >&5
17525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17526 (exit $ac_status); } &&
17527 { ac_try='test -z "$ac_c_werror_flag"
17528 || test ! -s conftest.err'
17529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17530 (eval $ac_try) 2>&5
17531 ac_status=$?
17532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17533 (exit $ac_status); }; } &&
17534 { ac_try='test -s conftest$ac_exeext'
17535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17536 (eval $ac_try) 2>&5
17537 ac_status=$?
17538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17539 (exit $ac_status); }; }; then
17540 libgomp_cv_have_attribute_alias=yes
17541 else
17542 echo "$as_me: failed program was:" >&5
17543 sed 's/^/| /' conftest.$ac_ext >&5
17545 libgomp_cv_have_attribute_alias=no
17547 rm -f conftest.err conftest.$ac_objext \
17548 conftest$ac_exeext conftest.$ac_ext
17550 echo "$as_me:$LINENO: result: $libgomp_cv_have_attribute_alias" >&5
17551 echo "${ECHO_T}$libgomp_cv_have_attribute_alias" >&6
17552 if test $libgomp_cv_have_attribute_alias = yes; then
17554 cat >>confdefs.h <<\_ACEOF
17555 #define HAVE_ATTRIBUTE_ALIAS 1
17556 _ACEOF
17561 # Check whether --with-gnu-ld or --without-gnu-ld was given.
17562 if test "${with_gnu_ld+set}" = set; then
17563 withval="$with_gnu_ld"
17564 test "$withval" = no || with_gnu_ld=yes
17565 else
17566 with_gnu_ld=no
17568 ac_prog=ld
17569 if test "$GCC" = yes; then
17570 # Check if gcc -print-prog-name=ld gives a path.
17571 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
17572 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
17573 case $host in
17574 *-*-mingw*)
17575 # gcc leaves a trailing carriage return which upsets mingw
17576 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17578 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17579 esac
17580 case $ac_prog in
17581 # Accept absolute paths.
17582 [\\/]* | ?:[\\/]*)
17583 re_direlt='/[^/][^/]*/\.\./'
17584 # Canonicalize the pathname of ld
17585 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17586 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17587 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17588 done
17589 test -z "$LD" && LD="$ac_prog"
17592 # If it fails, then pretend we aren't using GCC.
17593 ac_prog=ld
17596 # If it is relative, then search for the first ld in PATH.
17597 with_gnu_ld=unknown
17599 esac
17600 elif test "$with_gnu_ld" = yes; then
17601 echo "$as_me:$LINENO: checking for GNU ld" >&5
17602 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
17603 else
17604 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
17605 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
17607 if test "${lt_cv_path_LD+set}" = set; then
17608 echo $ECHO_N "(cached) $ECHO_C" >&6
17609 else
17610 if test -z "$LD"; then
17611 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17612 for ac_dir in $PATH; do
17613 IFS="$lt_save_ifs"
17614 test -z "$ac_dir" && ac_dir=.
17615 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17616 lt_cv_path_LD="$ac_dir/$ac_prog"
17617 # Check to see if the program is GNU ld. I'd rather use --version,
17618 # but apparently some variants of GNU ld only accept -v.
17619 # Break only if it was the GNU/non-GNU ld that we prefer.
17620 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17621 *GNU* | *'with BFD'*)
17622 test "$with_gnu_ld" != no && break
17625 test "$with_gnu_ld" != yes && break
17627 esac
17629 done
17630 IFS="$lt_save_ifs"
17631 else
17632 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17636 LD="$lt_cv_path_LD"
17637 if test -n "$LD"; then
17638 echo "$as_me:$LINENO: result: $LD" >&5
17639 echo "${ECHO_T}$LD" >&6
17640 else
17641 echo "$as_me:$LINENO: result: no" >&5
17642 echo "${ECHO_T}no" >&6
17644 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
17645 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
17646 { (exit 1); exit 1; }; }
17647 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
17648 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
17649 if test "${lt_cv_prog_gnu_ld+set}" = set; then
17650 echo $ECHO_N "(cached) $ECHO_C" >&6
17651 else
17652 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17653 case `$LD -v 2>&1 </dev/null` in
17654 *GNU* | *'with BFD'*)
17655 lt_cv_prog_gnu_ld=yes
17658 lt_cv_prog_gnu_ld=no
17660 esac
17662 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
17663 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
17664 with_gnu_ld=$lt_cv_prog_gnu_ld
17672 # If we're not using GNU ld, then there's no point in even trying these
17673 # tests. Check for that first. We should have already tested for gld
17674 # by now (in libtool), but require it now just to be safe...
17675 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
17676 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
17680 # The name set by libtool depends on the version of libtool. Shame on us
17681 # for depending on an impl detail, but c'est la vie. Older versions used
17682 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
17683 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
17684 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
17685 # set (hence we're using an older libtool), then set it.
17686 if test x${with_gnu_ld+set} != xset; then
17687 if test x${ac_cv_prog_gnu_ld+set} != xset; then
17688 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
17689 with_gnu_ld=no
17690 else
17691 with_gnu_ld=$ac_cv_prog_gnu_ld
17695 # Start by getting the version number. I think the libtool test already
17696 # does some of this, but throws away the result.
17698 ldver=`$LD --version 2>/dev/null | head -1 | \
17699 sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
17701 libgomp_gnu_ld_version=`echo $ldver | \
17702 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
17704 # Set --gc-sections.
17705 if test "$with_gnu_ld" = "notbroken"; then
17706 # GNU ld it is! Joy and bunny rabbits!
17708 # All these tests are for C++; save the language and the compiler flags.
17709 # Need to do this so that g++ won't try to link in libstdc++
17710 ac_test_CFLAGS="${CFLAGS+set}"
17711 ac_save_CFLAGS="$CFLAGS"
17712 CFLAGS='-x c++ -Wl,--gc-sections'
17714 # Check for -Wl,--gc-sections
17715 # XXX This test is broken at the moment, as symbols required for linking
17716 # are now in libsupc++ (not built yet). In addition, this test has
17717 # cored on solaris in the past. In addition, --gc-sections doesn't
17718 # really work at the moment (keeps on discarding used sections, first
17719 # .eh_frame and now some of the glibc sections for iconv).
17720 # Bzzzzt. Thanks for playing, maybe next time.
17721 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
17722 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
17723 if test "$cross_compiling" = yes; then
17724 ac_sectionLDflags=yes
17725 else
17726 cat >conftest.$ac_ext <<_ACEOF
17727 /* confdefs.h. */
17728 _ACEOF
17729 cat confdefs.h >>conftest.$ac_ext
17730 cat >>conftest.$ac_ext <<_ACEOF
17731 /* end confdefs.h. */
17733 int main(void)
17735 try { throw 1; }
17736 catch (...) { };
17737 return 0;
17740 _ACEOF
17741 rm -f conftest$ac_exeext
17742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17743 (eval $ac_link) 2>&5
17744 ac_status=$?
17745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17746 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17748 (eval $ac_try) 2>&5
17749 ac_status=$?
17750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17751 (exit $ac_status); }; }; then
17752 ac_sectionLDflags=yes
17753 else
17754 echo "$as_me: program exited with status $ac_status" >&5
17755 echo "$as_me: failed program was:" >&5
17756 sed 's/^/| /' conftest.$ac_ext >&5
17758 ( exit $ac_status )
17759 ac_sectionLDflags=no
17761 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17763 if test "$ac_test_CFLAGS" = set; then
17764 CFLAGS="$ac_save_CFLAGS"
17765 else
17766 # this is the suspicious part
17767 CFLAGS=''
17769 if test "$ac_sectionLDflags" = "yes"; then
17770 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
17772 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
17773 echo "${ECHO_T}$ac_sectionLDflags" >&6
17776 # Set linker optimization flags.
17777 if test x"$with_gnu_ld" = x"yes"; then
17778 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
17786 # Check whether --enable-symvers or --disable-symvers was given.
17787 if test "${enable_symvers+set}" = set; then
17788 enableval="$enable_symvers"
17790 case "$enableval" in
17791 yes|no|gnu) ;;
17792 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable symvers" >&5
17793 echo "$as_me: error: Unknown argument to enable/disable symvers" >&2;}
17794 { (exit 1); exit 1; }; } ;;
17795 esac
17797 else
17798 enable_symvers=yes
17802 # If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
17803 # don't know enough about $LD to do tricks...
17805 # FIXME The following test is too strict, in theory.
17806 if test $enable_shared = no ||
17807 test "x$LD" = x ||
17808 test x$libgomp_gnu_ld_version = x; then
17809 enable_symvers=no
17812 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
17813 if test $enable_symvers != no; then
17814 echo "$as_me:$LINENO: checking for shared libgcc" >&5
17815 echo $ECHO_N "checking for shared libgcc... $ECHO_C" >&6
17816 ac_save_CFLAGS="$CFLAGS"
17817 CFLAGS=' -lgcc_s'
17818 cat >conftest.$ac_ext <<_ACEOF
17819 /* confdefs.h. */
17820 _ACEOF
17821 cat confdefs.h >>conftest.$ac_ext
17822 cat >>conftest.$ac_ext <<_ACEOF
17823 /* end confdefs.h. */
17826 main ()
17828 return 0;
17830 return 0;
17832 _ACEOF
17833 rm -f conftest.$ac_objext conftest$ac_exeext
17834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17835 (eval $ac_link) 2>conftest.er1
17836 ac_status=$?
17837 grep -v '^ *+' conftest.er1 >conftest.err
17838 rm -f conftest.er1
17839 cat conftest.err >&5
17840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17841 (exit $ac_status); } &&
17842 { ac_try='test -z "$ac_c_werror_flag"
17843 || test ! -s conftest.err'
17844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17845 (eval $ac_try) 2>&5
17846 ac_status=$?
17847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17848 (exit $ac_status); }; } &&
17849 { ac_try='test -s conftest$ac_exeext'
17850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17851 (eval $ac_try) 2>&5
17852 ac_status=$?
17853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854 (exit $ac_status); }; }; then
17855 libgomp_shared_libgcc=yes
17856 else
17857 echo "$as_me: failed program was:" >&5
17858 sed 's/^/| /' conftest.$ac_ext >&5
17860 libgomp_shared_libgcc=no
17862 rm -f conftest.err conftest.$ac_objext \
17863 conftest$ac_exeext conftest.$ac_ext
17864 CFLAGS="$ac_save_CFLAGS"
17865 if test $libgomp_shared_libgcc = no; then
17866 cat > conftest.c <<EOF
17867 int main (void) { return 0; }
17869 libgomp_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
17870 -shared -shared-libgcc -o conftest.so \
17871 conftest.c -v 2>&1 >/dev/null \
17872 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
17873 rm -f conftest.c conftest.so
17874 if test x${libgomp_libgcc_s_suffix+set} = xset; then
17875 CFLAGS=" -lgcc_s$libgomp_libgcc_s_suffix"
17876 cat >conftest.$ac_ext <<_ACEOF
17877 /* confdefs.h. */
17878 _ACEOF
17879 cat confdefs.h >>conftest.$ac_ext
17880 cat >>conftest.$ac_ext <<_ACEOF
17881 /* end confdefs.h. */
17884 main ()
17886 return 0;
17888 return 0;
17890 _ACEOF
17891 rm -f conftest.$ac_objext conftest$ac_exeext
17892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17893 (eval $ac_link) 2>conftest.er1
17894 ac_status=$?
17895 grep -v '^ *+' conftest.er1 >conftest.err
17896 rm -f conftest.er1
17897 cat conftest.err >&5
17898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17899 (exit $ac_status); } &&
17900 { ac_try='test -z "$ac_c_werror_flag"
17901 || test ! -s conftest.err'
17902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17903 (eval $ac_try) 2>&5
17904 ac_status=$?
17905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17906 (exit $ac_status); }; } &&
17907 { ac_try='test -s conftest$ac_exeext'
17908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17909 (eval $ac_try) 2>&5
17910 ac_status=$?
17911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17912 (exit $ac_status); }; }; then
17913 libgomp_shared_libgcc=yes
17914 else
17915 echo "$as_me: failed program was:" >&5
17916 sed 's/^/| /' conftest.$ac_ext >&5
17919 rm -f conftest.err conftest.$ac_objext \
17920 conftest$ac_exeext conftest.$ac_ext
17921 CFLAGS="$ac_save_CFLAGS"
17924 echo "$as_me:$LINENO: result: $libgomp_shared_libgcc" >&5
17925 echo "${ECHO_T}$libgomp_shared_libgcc" >&6
17928 # For GNU ld, we need at least this version. The format is described in
17929 # LIBGOMP_CHECK_LINKER_FEATURES above.
17930 libgomp_min_gnu_ld_version=21400
17931 # XXXXXXXXXXX libgomp_gnu_ld_version=21390
17933 # Check to see if unspecified "yes" value can win, given results above.
17934 # Change "yes" into either "no" or a style name.
17935 if test $enable_symvers = yes; then
17936 if test $with_gnu_ld = yes &&
17937 test $libgomp_shared_libgcc = yes;
17938 then
17939 if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
17940 enable_symvers=gnu
17941 else
17942 # The right tools, the right setup, but too old. Fallbacks?
17943 { echo "$as_me:$LINENO: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
17944 echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
17945 { echo "$as_me:$LINENO: WARNING: === full symbol versioning support in this release of GCC." >&5
17946 echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
17947 { echo "$as_me:$LINENO: WARNING: === You would need to upgrade your binutils to version" >&5
17948 echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
17949 { echo "$as_me:$LINENO: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
17950 echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
17951 if test $libgomp_gnu_ld_version -ge 21200 ; then
17952 # Globbing fix is present, proper block support is not.
17953 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
17954 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17955 enable_symvers=no
17956 else
17957 # 2.11 or older.
17958 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
17959 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17960 enable_symvers=no
17963 else
17964 # just fail for now
17965 { echo "$as_me:$LINENO: WARNING: === You have requested some kind of symbol versioning, but" >&5
17966 echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
17967 { echo "$as_me:$LINENO: WARNING: === either you are not using a supported linker, or you are" >&5
17968 echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
17969 { echo "$as_me:$LINENO: WARNING: === not building a shared libgcc_s (which is required)." >&5
17970 echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
17971 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
17972 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17973 enable_symvers=no
17979 if test $enable_symvers != no; then
17980 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE=
17981 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE='#'
17982 else
17983 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='#'
17984 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE=
17987 { echo "$as_me:$LINENO: versioning on shared library symbols is $enable_symvers" >&5
17988 echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
17991 # Get target configury.
17992 . ${srcdir}/configure.tgt
17993 CFLAGS="$save_CFLAGS $XCFLAGS"
17995 # Check for __sync_val_compare_and_swap, but only after the target has
17996 # had a chance to set XCFLAGS.
17998 echo "$as_me:$LINENO: checking whether the target supports __sync_*_compare_and_swap" >&5
17999 echo $ECHO_N "checking whether the target supports __sync_*_compare_and_swap... $ECHO_C" >&6
18000 if test "${libgomp_cv_have_sync_builtins+set}" = set; then
18001 echo $ECHO_N "(cached) $ECHO_C" >&6
18002 else
18004 cat >conftest.$ac_ext <<_ACEOF
18005 /* confdefs.h. */
18006 _ACEOF
18007 cat confdefs.h >>conftest.$ac_ext
18008 cat >>conftest.$ac_ext <<_ACEOF
18009 /* end confdefs.h. */
18012 main ()
18014 int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
18016 return 0;
18018 _ACEOF
18019 rm -f conftest.$ac_objext conftest$ac_exeext
18020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18021 (eval $ac_link) 2>conftest.er1
18022 ac_status=$?
18023 grep -v '^ *+' conftest.er1 >conftest.err
18024 rm -f conftest.er1
18025 cat conftest.err >&5
18026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18027 (exit $ac_status); } &&
18028 { ac_try='test -z "$ac_c_werror_flag"
18029 || test ! -s conftest.err'
18030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18031 (eval $ac_try) 2>&5
18032 ac_status=$?
18033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18034 (exit $ac_status); }; } &&
18035 { ac_try='test -s conftest$ac_exeext'
18036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18037 (eval $ac_try) 2>&5
18038 ac_status=$?
18039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18040 (exit $ac_status); }; }; then
18041 libgomp_cv_have_sync_builtins=yes
18042 else
18043 echo "$as_me: failed program was:" >&5
18044 sed 's/^/| /' conftest.$ac_ext >&5
18046 libgomp_cv_have_sync_builtins=no
18048 rm -f conftest.err conftest.$ac_objext \
18049 conftest$ac_exeext conftest.$ac_ext
18051 echo "$as_me:$LINENO: result: $libgomp_cv_have_sync_builtins" >&5
18052 echo "${ECHO_T}$libgomp_cv_have_sync_builtins" >&6
18053 if test $libgomp_cv_have_sync_builtins = yes; then
18055 cat >>confdefs.h <<\_ACEOF
18056 #define HAVE_SYNC_BUILTINS 1
18057 _ACEOF
18061 XCFLAGS="$XCFLAGS$XPCFLAGS"
18067 # Cleanup and exit.
18068 CFLAGS="$save_CFLAGS"
18069 cat >confcache <<\_ACEOF
18070 # This file is a shell script that caches the results of configure
18071 # tests run on this system so they can be shared between configure
18072 # scripts and configure runs, see configure's option --config-cache.
18073 # It is not useful on other systems. If it contains results you don't
18074 # want to keep, you may remove or edit it.
18076 # config.status only pays attention to the cache file if you give it
18077 # the --recheck option to rerun configure.
18079 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18080 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18081 # following values.
18083 _ACEOF
18085 # The following way of writing the cache mishandles newlines in values,
18086 # but we know of no workaround that is simple, portable, and efficient.
18087 # So, don't put newlines in cache variables' values.
18088 # Ultrix sh set writes to stderr and can't be redirected directly,
18089 # and sets the high bit in the cache file unless we assign to the vars.
18091 (set) 2>&1 |
18092 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18093 *ac_space=\ *)
18094 # `set' does not quote correctly, so add quotes (double-quote
18095 # substitution turns \\\\ into \\, and sed turns \\ into \).
18096 sed -n \
18097 "s/'/'\\\\''/g;
18098 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18101 # `set' quotes correctly as required by POSIX, so do not add quotes.
18102 sed -n \
18103 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18105 esac;
18107 sed '
18108 t clear
18109 : clear
18110 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18111 t end
18112 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18113 : end' >>confcache
18114 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18115 if test -w $cache_file; then
18116 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18117 cat confcache >$cache_file
18118 else
18119 echo "not updating unwritable cache $cache_file"
18122 rm -f confcache
18124 if test ${multilib} = yes; then
18125 multilib_arg="--enable-multilib"
18126 else
18127 multilib_arg=
18130 # Set up the set of libraries that we need to link against for libgomp.
18131 # Note that the GOMP_SELF_SPEC in gcc.c will force -pthread for -fopenmp,
18132 # which will force linkage against -lpthread (or equivalent for the system).
18133 # That's not 100% ideal, but about the best we can do easily.
18134 if test $enable_shared = yes; then
18135 link_gomp="-lgomp %{static: $LIBS}"
18136 else
18137 link_gomp="-lgomp $LIBS"
18143 if test "$ac_cv_fc_compiler_gnu" = yes; then
18144 USE_FORTRAN_TRUE=
18145 USE_FORTRAN_FALSE='#'
18146 else
18147 USE_FORTRAN_TRUE='#'
18148 USE_FORTRAN_FALSE=
18152 # ??? 2006-01-24: Paulo committed to asking autoconf folk to document
18153 # and export AC_COMPUTE_INT. If that happens, then we'll need to remove
18154 # the underscore here and update the PREREQ. If it doesn't, then we'll
18155 # need to copy this macro to our acinclude.m4.
18156 save_CFLAGS="$CFLAGS"
18157 for i in $config_path; do
18158 if test -f $srcdir/config/$i/omp-lock.h; then
18159 CFLAGS="$CFLAGS -include $srcdir/config/$i/omp-lock.h"
18160 break
18162 done
18164 if test "$cross_compiling" = yes; then
18165 # Depending upon the size, compute the lo and hi bounds.
18166 cat >conftest.$ac_ext <<_ACEOF
18167 /* confdefs.h. */
18168 _ACEOF
18169 cat confdefs.h >>conftest.$ac_ext
18170 cat >>conftest.$ac_ext <<_ACEOF
18171 /* end confdefs.h. */
18174 main ()
18176 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) >= 0)];
18177 test_array [0] = 0
18180 return 0;
18182 _ACEOF
18183 rm -f conftest.$ac_objext
18184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18185 (eval $ac_compile) 2>conftest.er1
18186 ac_status=$?
18187 grep -v '^ *+' conftest.er1 >conftest.err
18188 rm -f conftest.er1
18189 cat conftest.err >&5
18190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18191 (exit $ac_status); } &&
18192 { ac_try='test -z "$ac_c_werror_flag"
18193 || test ! -s conftest.err'
18194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18195 (eval $ac_try) 2>&5
18196 ac_status=$?
18197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18198 (exit $ac_status); }; } &&
18199 { ac_try='test -s conftest.$ac_objext'
18200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18201 (eval $ac_try) 2>&5
18202 ac_status=$?
18203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18204 (exit $ac_status); }; }; then
18205 ac_lo=0 ac_mid=0
18206 while :; do
18207 cat >conftest.$ac_ext <<_ACEOF
18208 /* confdefs.h. */
18209 _ACEOF
18210 cat confdefs.h >>conftest.$ac_ext
18211 cat >>conftest.$ac_ext <<_ACEOF
18212 /* end confdefs.h. */
18215 main ()
18217 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) <= $ac_mid)];
18218 test_array [0] = 0
18221 return 0;
18223 _ACEOF
18224 rm -f conftest.$ac_objext
18225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18226 (eval $ac_compile) 2>conftest.er1
18227 ac_status=$?
18228 grep -v '^ *+' conftest.er1 >conftest.err
18229 rm -f conftest.er1
18230 cat conftest.err >&5
18231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18232 (exit $ac_status); } &&
18233 { ac_try='test -z "$ac_c_werror_flag"
18234 || test ! -s conftest.err'
18235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18236 (eval $ac_try) 2>&5
18237 ac_status=$?
18238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18239 (exit $ac_status); }; } &&
18240 { ac_try='test -s conftest.$ac_objext'
18241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18242 (eval $ac_try) 2>&5
18243 ac_status=$?
18244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18245 (exit $ac_status); }; }; then
18246 ac_hi=$ac_mid; break
18247 else
18248 echo "$as_me: failed program was:" >&5
18249 sed 's/^/| /' conftest.$ac_ext >&5
18251 ac_lo=`expr $ac_mid + 1`
18252 if test $ac_lo -le $ac_mid; then
18253 ac_lo= ac_hi=
18254 break
18256 ac_mid=`expr 2 '*' $ac_mid + 1`
18258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18259 done
18260 else
18261 echo "$as_me: failed program was:" >&5
18262 sed 's/^/| /' conftest.$ac_ext >&5
18264 cat >conftest.$ac_ext <<_ACEOF
18265 /* confdefs.h. */
18266 _ACEOF
18267 cat confdefs.h >>conftest.$ac_ext
18268 cat >>conftest.$ac_ext <<_ACEOF
18269 /* end confdefs.h. */
18272 main ()
18274 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) < 0)];
18275 test_array [0] = 0
18278 return 0;
18280 _ACEOF
18281 rm -f conftest.$ac_objext
18282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18283 (eval $ac_compile) 2>conftest.er1
18284 ac_status=$?
18285 grep -v '^ *+' conftest.er1 >conftest.err
18286 rm -f conftest.er1
18287 cat conftest.err >&5
18288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18289 (exit $ac_status); } &&
18290 { ac_try='test -z "$ac_c_werror_flag"
18291 || test ! -s conftest.err'
18292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18293 (eval $ac_try) 2>&5
18294 ac_status=$?
18295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18296 (exit $ac_status); }; } &&
18297 { ac_try='test -s conftest.$ac_objext'
18298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18299 (eval $ac_try) 2>&5
18300 ac_status=$?
18301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18302 (exit $ac_status); }; }; then
18303 ac_hi=-1 ac_mid=-1
18304 while :; do
18305 cat >conftest.$ac_ext <<_ACEOF
18306 /* confdefs.h. */
18307 _ACEOF
18308 cat confdefs.h >>conftest.$ac_ext
18309 cat >>conftest.$ac_ext <<_ACEOF
18310 /* end confdefs.h. */
18313 main ()
18315 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) >= $ac_mid)];
18316 test_array [0] = 0
18319 return 0;
18321 _ACEOF
18322 rm -f conftest.$ac_objext
18323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18324 (eval $ac_compile) 2>conftest.er1
18325 ac_status=$?
18326 grep -v '^ *+' conftest.er1 >conftest.err
18327 rm -f conftest.er1
18328 cat conftest.err >&5
18329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18330 (exit $ac_status); } &&
18331 { ac_try='test -z "$ac_c_werror_flag"
18332 || test ! -s conftest.err'
18333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18334 (eval $ac_try) 2>&5
18335 ac_status=$?
18336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18337 (exit $ac_status); }; } &&
18338 { ac_try='test -s conftest.$ac_objext'
18339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18340 (eval $ac_try) 2>&5
18341 ac_status=$?
18342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18343 (exit $ac_status); }; }; then
18344 ac_lo=$ac_mid; break
18345 else
18346 echo "$as_me: failed program was:" >&5
18347 sed 's/^/| /' conftest.$ac_ext >&5
18349 ac_hi=`expr '(' $ac_mid ')' - 1`
18350 if test $ac_mid -le $ac_hi; then
18351 ac_lo= ac_hi=
18352 break
18354 ac_mid=`expr 2 '*' $ac_mid`
18356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18357 done
18358 else
18359 echo "$as_me: failed program was:" >&5
18360 sed 's/^/| /' conftest.$ac_ext >&5
18362 ac_lo= ac_hi=
18364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18367 # Binary search between lo and hi bounds.
18368 while test "x$ac_lo" != "x$ac_hi"; do
18369 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18370 cat >conftest.$ac_ext <<_ACEOF
18371 /* confdefs.h. */
18372 _ACEOF
18373 cat confdefs.h >>conftest.$ac_ext
18374 cat >>conftest.$ac_ext <<_ACEOF
18375 /* end confdefs.h. */
18378 main ()
18380 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) <= $ac_mid)];
18381 test_array [0] = 0
18384 return 0;
18386 _ACEOF
18387 rm -f conftest.$ac_objext
18388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18389 (eval $ac_compile) 2>conftest.er1
18390 ac_status=$?
18391 grep -v '^ *+' conftest.er1 >conftest.err
18392 rm -f conftest.er1
18393 cat conftest.err >&5
18394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18395 (exit $ac_status); } &&
18396 { ac_try='test -z "$ac_c_werror_flag"
18397 || test ! -s conftest.err'
18398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18399 (eval $ac_try) 2>&5
18400 ac_status=$?
18401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18402 (exit $ac_status); }; } &&
18403 { ac_try='test -s conftest.$ac_objext'
18404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18405 (eval $ac_try) 2>&5
18406 ac_status=$?
18407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18408 (exit $ac_status); }; }; then
18409 ac_hi=$ac_mid
18410 else
18411 echo "$as_me: failed program was:" >&5
18412 sed 's/^/| /' conftest.$ac_ext >&5
18414 ac_lo=`expr '(' $ac_mid ')' + 1`
18416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18417 done
18418 case $ac_lo in
18419 ?*) OMP_LOCK_SIZE=$ac_lo;;
18420 '') { { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_t)" >&5
18421 echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_t)" >&2;}
18422 { (exit 1); exit 1; }; } ;;
18423 esac
18424 else
18425 if test "$cross_compiling" = yes; then
18426 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18427 See \`config.log' for more details." >&5
18428 echo "$as_me: error: cannot run test program while cross compiling
18429 See \`config.log' for more details." >&2;}
18430 { (exit 1); exit 1; }; }
18431 else
18432 cat >conftest.$ac_ext <<_ACEOF
18433 /* confdefs.h. */
18434 _ACEOF
18435 cat confdefs.h >>conftest.$ac_ext
18436 cat >>conftest.$ac_ext <<_ACEOF
18437 /* end confdefs.h. */
18439 long longval () { return sizeof (omp_lock_t); }
18440 unsigned long ulongval () { return sizeof (omp_lock_t); }
18441 #include <stdio.h>
18442 #include <stdlib.h>
18444 main ()
18447 FILE *f = fopen ("conftest.val", "w");
18448 if (! f)
18449 exit (1);
18450 if ((sizeof (omp_lock_t)) < 0)
18452 long i = longval ();
18453 if (i != (sizeof (omp_lock_t)))
18454 exit (1);
18455 fprintf (f, "%ld\n", i);
18457 else
18459 unsigned long i = ulongval ();
18460 if (i != (sizeof (omp_lock_t)))
18461 exit (1);
18462 fprintf (f, "%lu\n", i);
18464 exit (ferror (f) || fclose (f) != 0);
18467 return 0;
18469 _ACEOF
18470 rm -f conftest$ac_exeext
18471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18472 (eval $ac_link) 2>&5
18473 ac_status=$?
18474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18475 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18477 (eval $ac_try) 2>&5
18478 ac_status=$?
18479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18480 (exit $ac_status); }; }; then
18481 OMP_LOCK_SIZE=`cat conftest.val`
18482 else
18483 echo "$as_me: program exited with status $ac_status" >&5
18484 echo "$as_me: failed program was:" >&5
18485 sed 's/^/| /' conftest.$ac_ext >&5
18487 ( exit $ac_status )
18488 { { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_t)" >&5
18489 echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_t)" >&2;}
18490 { (exit 1); exit 1; }; }
18492 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18495 rm -f conftest.val
18496 if test "$cross_compiling" = yes; then
18497 # Depending upon the size, compute the lo and hi bounds.
18498 cat >conftest.$ac_ext <<_ACEOF
18499 /* confdefs.h. */
18500 _ACEOF
18501 cat confdefs.h >>conftest.$ac_ext
18502 cat >>conftest.$ac_ext <<_ACEOF
18503 /* end confdefs.h. */
18506 main ()
18508 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) >= 0)];
18509 test_array [0] = 0
18512 return 0;
18514 _ACEOF
18515 rm -f conftest.$ac_objext
18516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18517 (eval $ac_compile) 2>conftest.er1
18518 ac_status=$?
18519 grep -v '^ *+' conftest.er1 >conftest.err
18520 rm -f conftest.er1
18521 cat conftest.err >&5
18522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18523 (exit $ac_status); } &&
18524 { ac_try='test -z "$ac_c_werror_flag"
18525 || test ! -s conftest.err'
18526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18527 (eval $ac_try) 2>&5
18528 ac_status=$?
18529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18530 (exit $ac_status); }; } &&
18531 { ac_try='test -s conftest.$ac_objext'
18532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18533 (eval $ac_try) 2>&5
18534 ac_status=$?
18535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18536 (exit $ac_status); }; }; then
18537 ac_lo=0 ac_mid=0
18538 while :; do
18539 cat >conftest.$ac_ext <<_ACEOF
18540 /* confdefs.h. */
18541 _ACEOF
18542 cat confdefs.h >>conftest.$ac_ext
18543 cat >>conftest.$ac_ext <<_ACEOF
18544 /* end confdefs.h. */
18547 main ()
18549 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) <= $ac_mid)];
18550 test_array [0] = 0
18553 return 0;
18555 _ACEOF
18556 rm -f conftest.$ac_objext
18557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18558 (eval $ac_compile) 2>conftest.er1
18559 ac_status=$?
18560 grep -v '^ *+' conftest.er1 >conftest.err
18561 rm -f conftest.er1
18562 cat conftest.err >&5
18563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18564 (exit $ac_status); } &&
18565 { ac_try='test -z "$ac_c_werror_flag"
18566 || test ! -s conftest.err'
18567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18568 (eval $ac_try) 2>&5
18569 ac_status=$?
18570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18571 (exit $ac_status); }; } &&
18572 { ac_try='test -s conftest.$ac_objext'
18573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18574 (eval $ac_try) 2>&5
18575 ac_status=$?
18576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18577 (exit $ac_status); }; }; then
18578 ac_hi=$ac_mid; break
18579 else
18580 echo "$as_me: failed program was:" >&5
18581 sed 's/^/| /' conftest.$ac_ext >&5
18583 ac_lo=`expr $ac_mid + 1`
18584 if test $ac_lo -le $ac_mid; then
18585 ac_lo= ac_hi=
18586 break
18588 ac_mid=`expr 2 '*' $ac_mid + 1`
18590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18591 done
18592 else
18593 echo "$as_me: failed program was:" >&5
18594 sed 's/^/| /' conftest.$ac_ext >&5
18596 cat >conftest.$ac_ext <<_ACEOF
18597 /* confdefs.h. */
18598 _ACEOF
18599 cat confdefs.h >>conftest.$ac_ext
18600 cat >>conftest.$ac_ext <<_ACEOF
18601 /* end confdefs.h. */
18604 main ()
18606 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) < 0)];
18607 test_array [0] = 0
18610 return 0;
18612 _ACEOF
18613 rm -f conftest.$ac_objext
18614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18615 (eval $ac_compile) 2>conftest.er1
18616 ac_status=$?
18617 grep -v '^ *+' conftest.er1 >conftest.err
18618 rm -f conftest.er1
18619 cat conftest.err >&5
18620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18621 (exit $ac_status); } &&
18622 { ac_try='test -z "$ac_c_werror_flag"
18623 || test ! -s conftest.err'
18624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18625 (eval $ac_try) 2>&5
18626 ac_status=$?
18627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18628 (exit $ac_status); }; } &&
18629 { ac_try='test -s conftest.$ac_objext'
18630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18631 (eval $ac_try) 2>&5
18632 ac_status=$?
18633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18634 (exit $ac_status); }; }; then
18635 ac_hi=-1 ac_mid=-1
18636 while :; do
18637 cat >conftest.$ac_ext <<_ACEOF
18638 /* confdefs.h. */
18639 _ACEOF
18640 cat confdefs.h >>conftest.$ac_ext
18641 cat >>conftest.$ac_ext <<_ACEOF
18642 /* end confdefs.h. */
18645 main ()
18647 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) >= $ac_mid)];
18648 test_array [0] = 0
18651 return 0;
18653 _ACEOF
18654 rm -f conftest.$ac_objext
18655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18656 (eval $ac_compile) 2>conftest.er1
18657 ac_status=$?
18658 grep -v '^ *+' conftest.er1 >conftest.err
18659 rm -f conftest.er1
18660 cat conftest.err >&5
18661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18662 (exit $ac_status); } &&
18663 { ac_try='test -z "$ac_c_werror_flag"
18664 || test ! -s conftest.err'
18665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18666 (eval $ac_try) 2>&5
18667 ac_status=$?
18668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18669 (exit $ac_status); }; } &&
18670 { ac_try='test -s conftest.$ac_objext'
18671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18672 (eval $ac_try) 2>&5
18673 ac_status=$?
18674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18675 (exit $ac_status); }; }; then
18676 ac_lo=$ac_mid; break
18677 else
18678 echo "$as_me: failed program was:" >&5
18679 sed 's/^/| /' conftest.$ac_ext >&5
18681 ac_hi=`expr '(' $ac_mid ')' - 1`
18682 if test $ac_mid -le $ac_hi; then
18683 ac_lo= ac_hi=
18684 break
18686 ac_mid=`expr 2 '*' $ac_mid`
18688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18689 done
18690 else
18691 echo "$as_me: failed program was:" >&5
18692 sed 's/^/| /' conftest.$ac_ext >&5
18694 ac_lo= ac_hi=
18696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18699 # Binary search between lo and hi bounds.
18700 while test "x$ac_lo" != "x$ac_hi"; do
18701 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18702 cat >conftest.$ac_ext <<_ACEOF
18703 /* confdefs.h. */
18704 _ACEOF
18705 cat confdefs.h >>conftest.$ac_ext
18706 cat >>conftest.$ac_ext <<_ACEOF
18707 /* end confdefs.h. */
18710 main ()
18712 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) <= $ac_mid)];
18713 test_array [0] = 0
18716 return 0;
18718 _ACEOF
18719 rm -f conftest.$ac_objext
18720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18721 (eval $ac_compile) 2>conftest.er1
18722 ac_status=$?
18723 grep -v '^ *+' conftest.er1 >conftest.err
18724 rm -f conftest.er1
18725 cat conftest.err >&5
18726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18727 (exit $ac_status); } &&
18728 { ac_try='test -z "$ac_c_werror_flag"
18729 || test ! -s conftest.err'
18730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18731 (eval $ac_try) 2>&5
18732 ac_status=$?
18733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18734 (exit $ac_status); }; } &&
18735 { ac_try='test -s conftest.$ac_objext'
18736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18737 (eval $ac_try) 2>&5
18738 ac_status=$?
18739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18740 (exit $ac_status); }; }; then
18741 ac_hi=$ac_mid
18742 else
18743 echo "$as_me: failed program was:" >&5
18744 sed 's/^/| /' conftest.$ac_ext >&5
18746 ac_lo=`expr '(' $ac_mid ')' + 1`
18748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18749 done
18750 case $ac_lo in
18751 ?*) OMP_LOCK_ALIGN=$ac_lo;;
18752 '') ;;
18753 esac
18754 else
18755 if test "$cross_compiling" = yes; then
18756 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18757 See \`config.log' for more details." >&5
18758 echo "$as_me: error: cannot run test program while cross compiling
18759 See \`config.log' for more details." >&2;}
18760 { (exit 1); exit 1; }; }
18761 else
18762 cat >conftest.$ac_ext <<_ACEOF
18763 /* confdefs.h. */
18764 _ACEOF
18765 cat confdefs.h >>conftest.$ac_ext
18766 cat >>conftest.$ac_ext <<_ACEOF
18767 /* end confdefs.h. */
18769 long longval () { return __alignof (omp_lock_t); }
18770 unsigned long ulongval () { return __alignof (omp_lock_t); }
18771 #include <stdio.h>
18772 #include <stdlib.h>
18774 main ()
18777 FILE *f = fopen ("conftest.val", "w");
18778 if (! f)
18779 exit (1);
18780 if ((__alignof (omp_lock_t)) < 0)
18782 long i = longval ();
18783 if (i != (__alignof (omp_lock_t)))
18784 exit (1);
18785 fprintf (f, "%ld\n", i);
18787 else
18789 unsigned long i = ulongval ();
18790 if (i != (__alignof (omp_lock_t)))
18791 exit (1);
18792 fprintf (f, "%lu\n", i);
18794 exit (ferror (f) || fclose (f) != 0);
18797 return 0;
18799 _ACEOF
18800 rm -f conftest$ac_exeext
18801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18802 (eval $ac_link) 2>&5
18803 ac_status=$?
18804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18805 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18807 (eval $ac_try) 2>&5
18808 ac_status=$?
18809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18810 (exit $ac_status); }; }; then
18811 OMP_LOCK_ALIGN=`cat conftest.val`
18812 else
18813 echo "$as_me: program exited with status $ac_status" >&5
18814 echo "$as_me: failed program was:" >&5
18815 sed 's/^/| /' conftest.$ac_ext >&5
18818 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18821 rm -f conftest.val
18822 if test "$cross_compiling" = yes; then
18823 # Depending upon the size, compute the lo and hi bounds.
18824 cat >conftest.$ac_ext <<_ACEOF
18825 /* confdefs.h. */
18826 _ACEOF
18827 cat confdefs.h >>conftest.$ac_ext
18828 cat >>conftest.$ac_ext <<_ACEOF
18829 /* end confdefs.h. */
18832 main ()
18834 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) >= 0)];
18835 test_array [0] = 0
18838 return 0;
18840 _ACEOF
18841 rm -f conftest.$ac_objext
18842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18843 (eval $ac_compile) 2>conftest.er1
18844 ac_status=$?
18845 grep -v '^ *+' conftest.er1 >conftest.err
18846 rm -f conftest.er1
18847 cat conftest.err >&5
18848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18849 (exit $ac_status); } &&
18850 { ac_try='test -z "$ac_c_werror_flag"
18851 || test ! -s conftest.err'
18852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18853 (eval $ac_try) 2>&5
18854 ac_status=$?
18855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18856 (exit $ac_status); }; } &&
18857 { ac_try='test -s conftest.$ac_objext'
18858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18859 (eval $ac_try) 2>&5
18860 ac_status=$?
18861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18862 (exit $ac_status); }; }; then
18863 ac_lo=0 ac_mid=0
18864 while :; do
18865 cat >conftest.$ac_ext <<_ACEOF
18866 /* confdefs.h. */
18867 _ACEOF
18868 cat confdefs.h >>conftest.$ac_ext
18869 cat >>conftest.$ac_ext <<_ACEOF
18870 /* end confdefs.h. */
18873 main ()
18875 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) <= $ac_mid)];
18876 test_array [0] = 0
18879 return 0;
18881 _ACEOF
18882 rm -f conftest.$ac_objext
18883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18884 (eval $ac_compile) 2>conftest.er1
18885 ac_status=$?
18886 grep -v '^ *+' conftest.er1 >conftest.err
18887 rm -f conftest.er1
18888 cat conftest.err >&5
18889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18890 (exit $ac_status); } &&
18891 { ac_try='test -z "$ac_c_werror_flag"
18892 || test ! -s conftest.err'
18893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18894 (eval $ac_try) 2>&5
18895 ac_status=$?
18896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18897 (exit $ac_status); }; } &&
18898 { ac_try='test -s conftest.$ac_objext'
18899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18900 (eval $ac_try) 2>&5
18901 ac_status=$?
18902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18903 (exit $ac_status); }; }; then
18904 ac_hi=$ac_mid; break
18905 else
18906 echo "$as_me: failed program was:" >&5
18907 sed 's/^/| /' conftest.$ac_ext >&5
18909 ac_lo=`expr $ac_mid + 1`
18910 if test $ac_lo -le $ac_mid; then
18911 ac_lo= ac_hi=
18912 break
18914 ac_mid=`expr 2 '*' $ac_mid + 1`
18916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18917 done
18918 else
18919 echo "$as_me: failed program was:" >&5
18920 sed 's/^/| /' conftest.$ac_ext >&5
18922 cat >conftest.$ac_ext <<_ACEOF
18923 /* confdefs.h. */
18924 _ACEOF
18925 cat confdefs.h >>conftest.$ac_ext
18926 cat >>conftest.$ac_ext <<_ACEOF
18927 /* end confdefs.h. */
18930 main ()
18932 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) < 0)];
18933 test_array [0] = 0
18936 return 0;
18938 _ACEOF
18939 rm -f conftest.$ac_objext
18940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18941 (eval $ac_compile) 2>conftest.er1
18942 ac_status=$?
18943 grep -v '^ *+' conftest.er1 >conftest.err
18944 rm -f conftest.er1
18945 cat conftest.err >&5
18946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18947 (exit $ac_status); } &&
18948 { ac_try='test -z "$ac_c_werror_flag"
18949 || test ! -s conftest.err'
18950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18951 (eval $ac_try) 2>&5
18952 ac_status=$?
18953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18954 (exit $ac_status); }; } &&
18955 { ac_try='test -s conftest.$ac_objext'
18956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18957 (eval $ac_try) 2>&5
18958 ac_status=$?
18959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18960 (exit $ac_status); }; }; then
18961 ac_hi=-1 ac_mid=-1
18962 while :; do
18963 cat >conftest.$ac_ext <<_ACEOF
18964 /* confdefs.h. */
18965 _ACEOF
18966 cat confdefs.h >>conftest.$ac_ext
18967 cat >>conftest.$ac_ext <<_ACEOF
18968 /* end confdefs.h. */
18971 main ()
18973 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) >= $ac_mid)];
18974 test_array [0] = 0
18977 return 0;
18979 _ACEOF
18980 rm -f conftest.$ac_objext
18981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18982 (eval $ac_compile) 2>conftest.er1
18983 ac_status=$?
18984 grep -v '^ *+' conftest.er1 >conftest.err
18985 rm -f conftest.er1
18986 cat conftest.err >&5
18987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18988 (exit $ac_status); } &&
18989 { ac_try='test -z "$ac_c_werror_flag"
18990 || test ! -s conftest.err'
18991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18992 (eval $ac_try) 2>&5
18993 ac_status=$?
18994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18995 (exit $ac_status); }; } &&
18996 { ac_try='test -s conftest.$ac_objext'
18997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18998 (eval $ac_try) 2>&5
18999 ac_status=$?
19000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19001 (exit $ac_status); }; }; then
19002 ac_lo=$ac_mid; break
19003 else
19004 echo "$as_me: failed program was:" >&5
19005 sed 's/^/| /' conftest.$ac_ext >&5
19007 ac_hi=`expr '(' $ac_mid ')' - 1`
19008 if test $ac_mid -le $ac_hi; then
19009 ac_lo= ac_hi=
19010 break
19012 ac_mid=`expr 2 '*' $ac_mid`
19014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19015 done
19016 else
19017 echo "$as_me: failed program was:" >&5
19018 sed 's/^/| /' conftest.$ac_ext >&5
19020 ac_lo= ac_hi=
19022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19025 # Binary search between lo and hi bounds.
19026 while test "x$ac_lo" != "x$ac_hi"; do
19027 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19028 cat >conftest.$ac_ext <<_ACEOF
19029 /* confdefs.h. */
19030 _ACEOF
19031 cat confdefs.h >>conftest.$ac_ext
19032 cat >>conftest.$ac_ext <<_ACEOF
19033 /* end confdefs.h. */
19036 main ()
19038 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) <= $ac_mid)];
19039 test_array [0] = 0
19042 return 0;
19044 _ACEOF
19045 rm -f conftest.$ac_objext
19046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19047 (eval $ac_compile) 2>conftest.er1
19048 ac_status=$?
19049 grep -v '^ *+' conftest.er1 >conftest.err
19050 rm -f conftest.er1
19051 cat conftest.err >&5
19052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19053 (exit $ac_status); } &&
19054 { ac_try='test -z "$ac_c_werror_flag"
19055 || test ! -s conftest.err'
19056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19057 (eval $ac_try) 2>&5
19058 ac_status=$?
19059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19060 (exit $ac_status); }; } &&
19061 { ac_try='test -s conftest.$ac_objext'
19062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19063 (eval $ac_try) 2>&5
19064 ac_status=$?
19065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19066 (exit $ac_status); }; }; then
19067 ac_hi=$ac_mid
19068 else
19069 echo "$as_me: failed program was:" >&5
19070 sed 's/^/| /' conftest.$ac_ext >&5
19072 ac_lo=`expr '(' $ac_mid ')' + 1`
19074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19075 done
19076 case $ac_lo in
19077 ?*) OMP_NEST_LOCK_SIZE=$ac_lo;;
19078 '') ;;
19079 esac
19080 else
19081 if test "$cross_compiling" = yes; then
19082 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19083 See \`config.log' for more details." >&5
19084 echo "$as_me: error: cannot run test program while cross compiling
19085 See \`config.log' for more details." >&2;}
19086 { (exit 1); exit 1; }; }
19087 else
19088 cat >conftest.$ac_ext <<_ACEOF
19089 /* confdefs.h. */
19090 _ACEOF
19091 cat confdefs.h >>conftest.$ac_ext
19092 cat >>conftest.$ac_ext <<_ACEOF
19093 /* end confdefs.h. */
19095 long longval () { return sizeof (omp_nest_lock_t); }
19096 unsigned long ulongval () { return sizeof (omp_nest_lock_t); }
19097 #include <stdio.h>
19098 #include <stdlib.h>
19100 main ()
19103 FILE *f = fopen ("conftest.val", "w");
19104 if (! f)
19105 exit (1);
19106 if ((sizeof (omp_nest_lock_t)) < 0)
19108 long i = longval ();
19109 if (i != (sizeof (omp_nest_lock_t)))
19110 exit (1);
19111 fprintf (f, "%ld\n", i);
19113 else
19115 unsigned long i = ulongval ();
19116 if (i != (sizeof (omp_nest_lock_t)))
19117 exit (1);
19118 fprintf (f, "%lu\n", i);
19120 exit (ferror (f) || fclose (f) != 0);
19123 return 0;
19125 _ACEOF
19126 rm -f conftest$ac_exeext
19127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19128 (eval $ac_link) 2>&5
19129 ac_status=$?
19130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19131 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19133 (eval $ac_try) 2>&5
19134 ac_status=$?
19135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19136 (exit $ac_status); }; }; then
19137 OMP_NEST_LOCK_SIZE=`cat conftest.val`
19138 else
19139 echo "$as_me: program exited with status $ac_status" >&5
19140 echo "$as_me: failed program was:" >&5
19141 sed 's/^/| /' conftest.$ac_ext >&5
19144 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19147 rm -f conftest.val
19148 if test "$cross_compiling" = yes; then
19149 # Depending upon the size, compute the lo and hi bounds.
19150 cat >conftest.$ac_ext <<_ACEOF
19151 /* confdefs.h. */
19152 _ACEOF
19153 cat confdefs.h >>conftest.$ac_ext
19154 cat >>conftest.$ac_ext <<_ACEOF
19155 /* end confdefs.h. */
19158 main ()
19160 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) >= 0)];
19161 test_array [0] = 0
19164 return 0;
19166 _ACEOF
19167 rm -f conftest.$ac_objext
19168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19169 (eval $ac_compile) 2>conftest.er1
19170 ac_status=$?
19171 grep -v '^ *+' conftest.er1 >conftest.err
19172 rm -f conftest.er1
19173 cat conftest.err >&5
19174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19175 (exit $ac_status); } &&
19176 { ac_try='test -z "$ac_c_werror_flag"
19177 || test ! -s conftest.err'
19178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19179 (eval $ac_try) 2>&5
19180 ac_status=$?
19181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19182 (exit $ac_status); }; } &&
19183 { ac_try='test -s conftest.$ac_objext'
19184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19185 (eval $ac_try) 2>&5
19186 ac_status=$?
19187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19188 (exit $ac_status); }; }; then
19189 ac_lo=0 ac_mid=0
19190 while :; do
19191 cat >conftest.$ac_ext <<_ACEOF
19192 /* confdefs.h. */
19193 _ACEOF
19194 cat confdefs.h >>conftest.$ac_ext
19195 cat >>conftest.$ac_ext <<_ACEOF
19196 /* end confdefs.h. */
19199 main ()
19201 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) <= $ac_mid)];
19202 test_array [0] = 0
19205 return 0;
19207 _ACEOF
19208 rm -f conftest.$ac_objext
19209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19210 (eval $ac_compile) 2>conftest.er1
19211 ac_status=$?
19212 grep -v '^ *+' conftest.er1 >conftest.err
19213 rm -f conftest.er1
19214 cat conftest.err >&5
19215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19216 (exit $ac_status); } &&
19217 { ac_try='test -z "$ac_c_werror_flag"
19218 || test ! -s conftest.err'
19219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19220 (eval $ac_try) 2>&5
19221 ac_status=$?
19222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19223 (exit $ac_status); }; } &&
19224 { ac_try='test -s conftest.$ac_objext'
19225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19226 (eval $ac_try) 2>&5
19227 ac_status=$?
19228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19229 (exit $ac_status); }; }; then
19230 ac_hi=$ac_mid; break
19231 else
19232 echo "$as_me: failed program was:" >&5
19233 sed 's/^/| /' conftest.$ac_ext >&5
19235 ac_lo=`expr $ac_mid + 1`
19236 if test $ac_lo -le $ac_mid; then
19237 ac_lo= ac_hi=
19238 break
19240 ac_mid=`expr 2 '*' $ac_mid + 1`
19242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19243 done
19244 else
19245 echo "$as_me: failed program was:" >&5
19246 sed 's/^/| /' conftest.$ac_ext >&5
19248 cat >conftest.$ac_ext <<_ACEOF
19249 /* confdefs.h. */
19250 _ACEOF
19251 cat confdefs.h >>conftest.$ac_ext
19252 cat >>conftest.$ac_ext <<_ACEOF
19253 /* end confdefs.h. */
19256 main ()
19258 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) < 0)];
19259 test_array [0] = 0
19262 return 0;
19264 _ACEOF
19265 rm -f conftest.$ac_objext
19266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19267 (eval $ac_compile) 2>conftest.er1
19268 ac_status=$?
19269 grep -v '^ *+' conftest.er1 >conftest.err
19270 rm -f conftest.er1
19271 cat conftest.err >&5
19272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19273 (exit $ac_status); } &&
19274 { ac_try='test -z "$ac_c_werror_flag"
19275 || test ! -s conftest.err'
19276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19277 (eval $ac_try) 2>&5
19278 ac_status=$?
19279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19280 (exit $ac_status); }; } &&
19281 { ac_try='test -s conftest.$ac_objext'
19282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19283 (eval $ac_try) 2>&5
19284 ac_status=$?
19285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19286 (exit $ac_status); }; }; then
19287 ac_hi=-1 ac_mid=-1
19288 while :; do
19289 cat >conftest.$ac_ext <<_ACEOF
19290 /* confdefs.h. */
19291 _ACEOF
19292 cat confdefs.h >>conftest.$ac_ext
19293 cat >>conftest.$ac_ext <<_ACEOF
19294 /* end confdefs.h. */
19297 main ()
19299 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) >= $ac_mid)];
19300 test_array [0] = 0
19303 return 0;
19305 _ACEOF
19306 rm -f conftest.$ac_objext
19307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19308 (eval $ac_compile) 2>conftest.er1
19309 ac_status=$?
19310 grep -v '^ *+' conftest.er1 >conftest.err
19311 rm -f conftest.er1
19312 cat conftest.err >&5
19313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19314 (exit $ac_status); } &&
19315 { ac_try='test -z "$ac_c_werror_flag"
19316 || test ! -s conftest.err'
19317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19318 (eval $ac_try) 2>&5
19319 ac_status=$?
19320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19321 (exit $ac_status); }; } &&
19322 { ac_try='test -s conftest.$ac_objext'
19323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19324 (eval $ac_try) 2>&5
19325 ac_status=$?
19326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19327 (exit $ac_status); }; }; then
19328 ac_lo=$ac_mid; break
19329 else
19330 echo "$as_me: failed program was:" >&5
19331 sed 's/^/| /' conftest.$ac_ext >&5
19333 ac_hi=`expr '(' $ac_mid ')' - 1`
19334 if test $ac_mid -le $ac_hi; then
19335 ac_lo= ac_hi=
19336 break
19338 ac_mid=`expr 2 '*' $ac_mid`
19340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19341 done
19342 else
19343 echo "$as_me: failed program was:" >&5
19344 sed 's/^/| /' conftest.$ac_ext >&5
19346 ac_lo= ac_hi=
19348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19350 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19351 # Binary search between lo and hi bounds.
19352 while test "x$ac_lo" != "x$ac_hi"; do
19353 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19354 cat >conftest.$ac_ext <<_ACEOF
19355 /* confdefs.h. */
19356 _ACEOF
19357 cat confdefs.h >>conftest.$ac_ext
19358 cat >>conftest.$ac_ext <<_ACEOF
19359 /* end confdefs.h. */
19362 main ()
19364 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) <= $ac_mid)];
19365 test_array [0] = 0
19368 return 0;
19370 _ACEOF
19371 rm -f conftest.$ac_objext
19372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19373 (eval $ac_compile) 2>conftest.er1
19374 ac_status=$?
19375 grep -v '^ *+' conftest.er1 >conftest.err
19376 rm -f conftest.er1
19377 cat conftest.err >&5
19378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19379 (exit $ac_status); } &&
19380 { ac_try='test -z "$ac_c_werror_flag"
19381 || test ! -s conftest.err'
19382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19383 (eval $ac_try) 2>&5
19384 ac_status=$?
19385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19386 (exit $ac_status); }; } &&
19387 { ac_try='test -s conftest.$ac_objext'
19388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19389 (eval $ac_try) 2>&5
19390 ac_status=$?
19391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19392 (exit $ac_status); }; }; then
19393 ac_hi=$ac_mid
19394 else
19395 echo "$as_me: failed program was:" >&5
19396 sed 's/^/| /' conftest.$ac_ext >&5
19398 ac_lo=`expr '(' $ac_mid ')' + 1`
19400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19401 done
19402 case $ac_lo in
19403 ?*) OMP_NEST_LOCK_ALIGN=$ac_lo;;
19404 '') ;;
19405 esac
19406 else
19407 if test "$cross_compiling" = yes; then
19408 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19409 See \`config.log' for more details." >&5
19410 echo "$as_me: error: cannot run test program while cross compiling
19411 See \`config.log' for more details." >&2;}
19412 { (exit 1); exit 1; }; }
19413 else
19414 cat >conftest.$ac_ext <<_ACEOF
19415 /* confdefs.h. */
19416 _ACEOF
19417 cat confdefs.h >>conftest.$ac_ext
19418 cat >>conftest.$ac_ext <<_ACEOF
19419 /* end confdefs.h. */
19421 long longval () { return __alignof (omp_nest_lock_t); }
19422 unsigned long ulongval () { return __alignof (omp_nest_lock_t); }
19423 #include <stdio.h>
19424 #include <stdlib.h>
19426 main ()
19429 FILE *f = fopen ("conftest.val", "w");
19430 if (! f)
19431 exit (1);
19432 if ((__alignof (omp_nest_lock_t)) < 0)
19434 long i = longval ();
19435 if (i != (__alignof (omp_nest_lock_t)))
19436 exit (1);
19437 fprintf (f, "%ld\n", i);
19439 else
19441 unsigned long i = ulongval ();
19442 if (i != (__alignof (omp_nest_lock_t)))
19443 exit (1);
19444 fprintf (f, "%lu\n", i);
19446 exit (ferror (f) || fclose (f) != 0);
19449 return 0;
19451 _ACEOF
19452 rm -f conftest$ac_exeext
19453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19454 (eval $ac_link) 2>&5
19455 ac_status=$?
19456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19457 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19459 (eval $ac_try) 2>&5
19460 ac_status=$?
19461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19462 (exit $ac_status); }; }; then
19463 OMP_NEST_LOCK_ALIGN=`cat conftest.val`
19464 else
19465 echo "$as_me: program exited with status $ac_status" >&5
19466 echo "$as_me: failed program was:" >&5
19467 sed 's/^/| /' conftest.$ac_ext >&5
19470 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19473 rm -f conftest.val
19475 # If the lock fits in an integer, then arrange for Fortran to use that
19476 # integer. If it doesn't, then arrange for Fortran to use a pointer.
19477 # Except that we don't have a way at present to multi-lib the installed
19478 # Fortran modules, so we assume 8 bytes for pointers, regardless of the
19479 # actual target.
19480 OMP_LOCK_KIND=$OMP_LOCK_SIZE
19481 OMP_NEST_LOCK_KIND=$OMP_NEST_LOCK_SIZE
19482 if test $OMP_LOCK_SIZE -gt 8 || test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then
19483 OMP_LOCK_KIND=8
19485 if test $OMP_NEST_LOCK_SIZE -gt 8 || test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then
19486 OMP_NEST_LOCK_KIND=8
19495 CFLAGS="$save_CFLAGS"
19497 ac_config_files="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h"
19499 ac_config_files="$ac_config_files Makefile testsuite/Makefile libgomp.spec"
19501 cat >confcache <<\_ACEOF
19502 # This file is a shell script that caches the results of configure
19503 # tests run on this system so they can be shared between configure
19504 # scripts and configure runs, see configure's option --config-cache.
19505 # It is not useful on other systems. If it contains results you don't
19506 # want to keep, you may remove or edit it.
19508 # config.status only pays attention to the cache file if you give it
19509 # the --recheck option to rerun configure.
19511 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19512 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19513 # following values.
19515 _ACEOF
19517 # The following way of writing the cache mishandles newlines in values,
19518 # but we know of no workaround that is simple, portable, and efficient.
19519 # So, don't put newlines in cache variables' values.
19520 # Ultrix sh set writes to stderr and can't be redirected directly,
19521 # and sets the high bit in the cache file unless we assign to the vars.
19523 (set) 2>&1 |
19524 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19525 *ac_space=\ *)
19526 # `set' does not quote correctly, so add quotes (double-quote
19527 # substitution turns \\\\ into \\, and sed turns \\ into \).
19528 sed -n \
19529 "s/'/'\\\\''/g;
19530 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19533 # `set' quotes correctly as required by POSIX, so do not add quotes.
19534 sed -n \
19535 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19537 esac;
19539 sed '
19540 t clear
19541 : clear
19542 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19543 t end
19544 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19545 : end' >>confcache
19546 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19547 if test -w $cache_file; then
19548 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19549 cat confcache >$cache_file
19550 else
19551 echo "not updating unwritable cache $cache_file"
19554 rm -f confcache
19556 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19557 # Let make expand exec_prefix.
19558 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19560 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19561 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19562 # trailing colons and then remove the whole line if VPATH becomes empty
19563 # (actually we leave an empty line to preserve line numbers).
19564 if test "x$srcdir" = x.; then
19565 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19566 s/:*\$(srcdir):*/:/;
19567 s/:*\${srcdir}:*/:/;
19568 s/:*@srcdir@:*/:/;
19569 s/^\([^=]*=[ ]*\):*/\1/;
19570 s/:*$//;
19571 s/^[^=]*=[ ]*$//;
19575 DEFS=-DHAVE_CONFIG_H
19577 ac_libobjs=
19578 ac_ltlibobjs=
19579 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19580 # 1. Remove the extension, and $U if already installed.
19581 ac_i=`echo "$ac_i" |
19582 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19583 # 2. Add them.
19584 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19585 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19586 done
19587 LIBOBJS=$ac_libobjs
19589 LTLIBOBJS=$ac_ltlibobjs
19592 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
19593 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC\" was never defined.
19594 Usually this means the macro was only invoked conditionally." >&5
19595 echo "$as_me: error: conditional \"GENINSRC\" was never defined.
19596 Usually this means the macro was only invoked conditionally." >&2;}
19597 { (exit 1); exit 1; }; }
19599 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19600 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19601 Usually this means the macro was only invoked conditionally." >&5
19602 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19603 Usually this means the macro was only invoked conditionally." >&2;}
19604 { (exit 1); exit 1; }; }
19606 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19607 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19608 Usually this means the macro was only invoked conditionally." >&5
19609 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19610 Usually this means the macro was only invoked conditionally." >&2;}
19611 { (exit 1); exit 1; }; }
19613 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
19614 { { echo "$as_me:$LINENO: error: conditional \"BUILD_INFO\" was never defined.
19615 Usually this means the macro was only invoked conditionally." >&5
19616 echo "$as_me: error: conditional \"BUILD_INFO\" was never defined.
19617 Usually this means the macro was only invoked conditionally." >&2;}
19618 { (exit 1); exit 1; }; }
19620 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19621 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
19622 Usually this means the macro was only invoked conditionally." >&5
19623 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
19624 Usually this means the macro was only invoked conditionally." >&2;}
19625 { (exit 1); exit 1; }; }
19627 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
19628 { { echo "$as_me:$LINENO: error: conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
19629 Usually this means the macro was only invoked conditionally." >&5
19630 echo "$as_me: error: conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
19631 Usually this means the macro was only invoked conditionally." >&2;}
19632 { (exit 1); exit 1; }; }
19634 if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
19635 { { echo "$as_me:$LINENO: error: conditional \"USE_FORTRAN\" was never defined.
19636 Usually this means the macro was only invoked conditionally." >&5
19637 echo "$as_me: error: conditional \"USE_FORTRAN\" was never defined.
19638 Usually this means the macro was only invoked conditionally." >&2;}
19639 { (exit 1); exit 1; }; }
19642 : ${CONFIG_STATUS=./config.status}
19643 ac_clean_files_save=$ac_clean_files
19644 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19645 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19646 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19647 cat >$CONFIG_STATUS <<_ACEOF
19648 #! $SHELL
19649 # Generated by $as_me.
19650 # Run this file to recreate the current configuration.
19651 # Compiler output produced by configure, useful for debugging
19652 # configure, is in config.log if it exists.
19654 debug=false
19655 ac_cs_recheck=false
19656 ac_cs_silent=false
19657 SHELL=\${CONFIG_SHELL-$SHELL}
19658 _ACEOF
19660 cat >>$CONFIG_STATUS <<\_ACEOF
19661 ## --------------------- ##
19662 ## M4sh Initialization. ##
19663 ## --------------------- ##
19665 # Be Bourne compatible
19666 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19667 emulate sh
19668 NULLCMD=:
19669 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19670 # is contrary to our usage. Disable this feature.
19671 alias -g '${1+"$@"}'='"$@"'
19672 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19673 set -o posix
19675 DUALCASE=1; export DUALCASE # for MKS sh
19677 # Support unset when possible.
19678 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19679 as_unset=unset
19680 else
19681 as_unset=false
19685 # Work around bugs in pre-3.0 UWIN ksh.
19686 $as_unset ENV MAIL MAILPATH
19687 PS1='$ '
19688 PS2='> '
19689 PS4='+ '
19691 # NLS nuisances.
19692 for as_var in \
19693 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19694 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19695 LC_TELEPHONE LC_TIME
19697 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19698 eval $as_var=C; export $as_var
19699 else
19700 $as_unset $as_var
19702 done
19704 # Required to use basename.
19705 if expr a : '\(a\)' >/dev/null 2>&1; then
19706 as_expr=expr
19707 else
19708 as_expr=false
19711 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19712 as_basename=basename
19713 else
19714 as_basename=false
19718 # Name of the executable.
19719 as_me=`$as_basename "$0" ||
19720 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19721 X"$0" : 'X\(//\)$' \| \
19722 X"$0" : 'X\(/\)$' \| \
19723 . : '\(.\)' 2>/dev/null ||
19724 echo X/"$0" |
19725 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19726 /^X\/\(\/\/\)$/{ s//\1/; q; }
19727 /^X\/\(\/\).*/{ s//\1/; q; }
19728 s/.*/./; q'`
19731 # PATH needs CR, and LINENO needs CR and PATH.
19732 # Avoid depending upon Character Ranges.
19733 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19734 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19735 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19736 as_cr_digits='0123456789'
19737 as_cr_alnum=$as_cr_Letters$as_cr_digits
19739 # The user is always right.
19740 if test "${PATH_SEPARATOR+set}" != set; then
19741 echo "#! /bin/sh" >conf$$.sh
19742 echo "exit 0" >>conf$$.sh
19743 chmod +x conf$$.sh
19744 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19745 PATH_SEPARATOR=';'
19746 else
19747 PATH_SEPARATOR=:
19749 rm -f conf$$.sh
19753 as_lineno_1=$LINENO
19754 as_lineno_2=$LINENO
19755 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19756 test "x$as_lineno_1" != "x$as_lineno_2" &&
19757 test "x$as_lineno_3" = "x$as_lineno_2" || {
19758 # Find who we are. Look in the path if we contain no path at all
19759 # relative or not.
19760 case $0 in
19761 *[\\/]* ) as_myself=$0 ;;
19762 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19763 for as_dir in $PATH
19765 IFS=$as_save_IFS
19766 test -z "$as_dir" && as_dir=.
19767 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19768 done
19771 esac
19772 # We did not find ourselves, most probably we were run as `sh COMMAND'
19773 # in which case we are not to be found in the path.
19774 if test "x$as_myself" = x; then
19775 as_myself=$0
19777 if test ! -f "$as_myself"; then
19778 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19779 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19780 { (exit 1); exit 1; }; }
19782 case $CONFIG_SHELL in
19784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19785 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19787 IFS=$as_save_IFS
19788 test -z "$as_dir" && as_dir=.
19789 for as_base in sh bash ksh sh5; do
19790 case $as_dir in
19792 if ("$as_dir/$as_base" -c '
19793 as_lineno_1=$LINENO
19794 as_lineno_2=$LINENO
19795 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19796 test "x$as_lineno_1" != "x$as_lineno_2" &&
19797 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19798 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19799 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19800 CONFIG_SHELL=$as_dir/$as_base
19801 export CONFIG_SHELL
19802 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19803 fi;;
19804 esac
19805 done
19806 done
19808 esac
19810 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19811 # uniformly replaced by the line number. The first 'sed' inserts a
19812 # line-number line before each line; the second 'sed' does the real
19813 # work. The second script uses 'N' to pair each line-number line
19814 # with the numbered line, and appends trailing '-' during
19815 # substitution so that $LINENO is not a special case at line end.
19816 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19817 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19818 sed '=' <$as_myself |
19819 sed '
19821 s,$,-,
19822 : loop
19823 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19824 t loop
19825 s,-$,,
19826 s,^['$as_cr_digits']*\n,,
19827 ' >$as_me.lineno &&
19828 chmod +x $as_me.lineno ||
19829 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19830 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19831 { (exit 1); exit 1; }; }
19833 # Don't try to exec as it changes $[0], causing all sort of problems
19834 # (the dirname of $[0] is not the place where we might find the
19835 # original and so on. Autoconf is especially sensible to this).
19836 . ./$as_me.lineno
19837 # Exit status is that of the last command.
19838 exit
19842 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19843 *c*,-n*) ECHO_N= ECHO_C='
19844 ' ECHO_T=' ' ;;
19845 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19846 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19847 esac
19849 if expr a : '\(a\)' >/dev/null 2>&1; then
19850 as_expr=expr
19851 else
19852 as_expr=false
19855 rm -f conf$$ conf$$.exe conf$$.file
19856 echo >conf$$.file
19857 if ln -s conf$$.file conf$$ 2>/dev/null; then
19858 # We could just check for DJGPP; but this test a) works b) is more generic
19859 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19860 if test -f conf$$.exe; then
19861 # Don't use ln at all; we don't have any links
19862 as_ln_s='cp -p'
19863 else
19864 as_ln_s='ln -s'
19866 elif ln conf$$.file conf$$ 2>/dev/null; then
19867 as_ln_s=ln
19868 else
19869 as_ln_s='cp -p'
19871 rm -f conf$$ conf$$.exe conf$$.file
19873 if mkdir -p . 2>/dev/null; then
19874 as_mkdir_p=:
19875 else
19876 test -d ./-p && rmdir ./-p
19877 as_mkdir_p=false
19880 as_executable_p="test -f"
19882 # Sed expression to map a string onto a valid CPP name.
19883 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19885 # Sed expression to map a string onto a valid variable name.
19886 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19889 # IFS
19890 # We need space, tab and new line, in precisely that order.
19891 as_nl='
19893 IFS=" $as_nl"
19895 # CDPATH.
19896 $as_unset CDPATH
19898 exec 6>&1
19900 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19901 # report actual input values of CONFIG_FILES etc. instead of their
19902 # values after options handling. Logging --version etc. is OK.
19903 exec 5>>config.log
19905 echo
19906 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19907 ## Running $as_me. ##
19908 _ASBOX
19909 } >&5
19910 cat >&5 <<_CSEOF
19912 This file was extended by GNU OpenMP Runtime Library $as_me 1.0, which was
19913 generated by GNU Autoconf 2.59. Invocation command line was
19915 CONFIG_FILES = $CONFIG_FILES
19916 CONFIG_HEADERS = $CONFIG_HEADERS
19917 CONFIG_LINKS = $CONFIG_LINKS
19918 CONFIG_COMMANDS = $CONFIG_COMMANDS
19919 $ $0 $@
19921 _CSEOF
19922 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19923 echo >&5
19924 _ACEOF
19926 # Files that config.status was made for.
19927 if test -n "$ac_config_files"; then
19928 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19931 if test -n "$ac_config_headers"; then
19932 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19935 if test -n "$ac_config_links"; then
19936 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19939 if test -n "$ac_config_commands"; then
19940 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19943 cat >>$CONFIG_STATUS <<\_ACEOF
19945 ac_cs_usage="\
19946 \`$as_me' instantiates files from templates according to the
19947 current configuration.
19949 Usage: $0 [OPTIONS] [FILE]...
19951 -h, --help print this help, then exit
19952 -V, --version print version number, then exit
19953 -q, --quiet do not print progress messages
19954 -d, --debug don't remove temporary files
19955 --recheck update $as_me by reconfiguring in the same conditions
19956 --file=FILE[:TEMPLATE]
19957 instantiate the configuration file FILE
19958 --header=FILE[:TEMPLATE]
19959 instantiate the configuration header FILE
19961 Configuration files:
19962 $config_files
19964 Configuration headers:
19965 $config_headers
19967 Configuration commands:
19968 $config_commands
19970 Report bugs to <bug-autoconf@gnu.org>."
19971 _ACEOF
19973 cat >>$CONFIG_STATUS <<_ACEOF
19974 ac_cs_version="\\
19975 GNU OpenMP Runtime Library config.status 1.0
19976 configured by $0, generated by GNU Autoconf 2.59,
19977 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19979 Copyright (C) 2003 Free Software Foundation, Inc.
19980 This config.status script is free software; the Free Software Foundation
19981 gives unlimited permission to copy, distribute and modify it."
19982 srcdir=$srcdir
19983 INSTALL="$INSTALL"
19984 _ACEOF
19986 cat >>$CONFIG_STATUS <<\_ACEOF
19987 # If no file are specified by the user, then we need to provide default
19988 # value. By we need to know if files were specified by the user.
19989 ac_need_defaults=:
19990 while test $# != 0
19992 case $1 in
19993 --*=*)
19994 ac_option=`expr "x$1" : 'x\([^=]*\)='`
19995 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19996 ac_shift=:
19999 ac_option=$1
20000 ac_optarg=$2
20001 ac_shift=shift
20003 *) # This is not an option, so the user has probably given explicit
20004 # arguments.
20005 ac_option=$1
20006 ac_need_defaults=false;;
20007 esac
20009 case $ac_option in
20010 # Handling of the options.
20011 _ACEOF
20012 cat >>$CONFIG_STATUS <<\_ACEOF
20013 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20014 ac_cs_recheck=: ;;
20015 --version | --vers* | -V )
20016 echo "$ac_cs_version"; exit 0 ;;
20017 --he | --h)
20018 # Conflict between --help and --header
20019 { { echo "$as_me:$LINENO: error: ambiguous option: $1
20020 Try \`$0 --help' for more information." >&5
20021 echo "$as_me: error: ambiguous option: $1
20022 Try \`$0 --help' for more information." >&2;}
20023 { (exit 1); exit 1; }; };;
20024 --help | --hel | -h )
20025 echo "$ac_cs_usage"; exit 0 ;;
20026 --debug | --d* | -d )
20027 debug=: ;;
20028 --file | --fil | --fi | --f )
20029 $ac_shift
20030 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20031 ac_need_defaults=false;;
20032 --header | --heade | --head | --hea )
20033 $ac_shift
20034 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20035 ac_need_defaults=false;;
20036 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20037 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20038 ac_cs_silent=: ;;
20040 # This is an error.
20041 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20042 Try \`$0 --help' for more information." >&5
20043 echo "$as_me: error: unrecognized option: $1
20044 Try \`$0 --help' for more information." >&2;}
20045 { (exit 1); exit 1; }; } ;;
20047 *) ac_config_targets="$ac_config_targets $1" ;;
20049 esac
20050 shift
20051 done
20053 ac_configure_extra_args=
20055 if $ac_cs_silent; then
20056 exec 6>/dev/null
20057 ac_configure_extra_args="$ac_configure_extra_args --silent"
20060 _ACEOF
20061 cat >>$CONFIG_STATUS <<_ACEOF
20062 if \$ac_cs_recheck; then
20063 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20064 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20067 _ACEOF
20069 cat >>$CONFIG_STATUS <<_ACEOF
20071 # INIT-COMMANDS section.
20075 srcdir="$srcdir"
20076 host="$host"
20077 target="$target"
20078 with_multisubdir="$with_multisubdir"
20079 with_multisrctop="$with_multisrctop"
20080 with_target_subdir="$with_target_subdir"
20081 ac_configure_args="${multilib_arg} ${ac_configure_args}"
20082 multi_basedir="$multi_basedir"
20083 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
20084 CC="$CC"
20085 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20088 # The HP-UX ksh and POSIX shell print the target directory to stdout
20089 # if CDPATH is set.
20090 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20092 sed_quote_subst='$sed_quote_subst'
20093 double_quote_subst='$double_quote_subst'
20094 delay_variable_subst='$delay_variable_subst'
20095 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
20096 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
20097 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
20098 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
20099 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
20100 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
20101 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
20102 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
20103 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
20104 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
20105 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
20106 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
20107 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
20108 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
20109 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
20110 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
20111 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
20112 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
20113 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
20114 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
20115 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
20116 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
20117 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
20118 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
20119 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
20120 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
20121 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
20122 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20123 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
20124 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
20125 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
20126 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20127 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
20128 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
20129 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20130 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20131 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20132 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
20133 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20134 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
20135 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
20136 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
20137 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
20138 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
20139 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
20140 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
20141 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
20142 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
20143 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
20144 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
20145 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
20146 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
20147 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
20148 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
20149 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
20150 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20151 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20152 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
20153 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
20154 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20155 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20156 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
20157 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20158 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20159 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20160 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20161 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20162 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20163 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
20164 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20165 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20166 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20167 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
20168 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
20169 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
20170 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
20171 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
20172 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20173 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
20174 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
20175 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
20176 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
20177 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
20178 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20179 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20180 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20181 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20182 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
20183 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
20184 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
20185 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
20186 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
20187 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20188 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20189 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
20190 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20191 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
20192 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20193 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20194 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20195 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20196 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
20197 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
20198 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20199 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20200 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
20201 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
20202 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
20203 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
20204 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
20205 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
20206 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
20207 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
20208 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
20209 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
20210 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
20211 LD_FC='`$ECHO "X$LD_FC" | $Xsed -e "$delay_single_quote_subst"`'
20212 old_archive_cmds_FC='`$ECHO "X$old_archive_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20213 compiler_FC='`$ECHO "X$compiler_FC" | $Xsed -e "$delay_single_quote_subst"`'
20214 GCC_FC='`$ECHO "X$GCC_FC" | $Xsed -e "$delay_single_quote_subst"`'
20215 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "X$lt_prog_compiler_no_builtin_flag_FC" | $Xsed -e "$delay_single_quote_subst"`'
20216 lt_prog_compiler_wl_FC='`$ECHO "X$lt_prog_compiler_wl_FC" | $Xsed -e "$delay_single_quote_subst"`'
20217 lt_prog_compiler_pic_FC='`$ECHO "X$lt_prog_compiler_pic_FC" | $Xsed -e "$delay_single_quote_subst"`'
20218 lt_prog_compiler_static_FC='`$ECHO "X$lt_prog_compiler_static_FC" | $Xsed -e "$delay_single_quote_subst"`'
20219 lt_cv_prog_compiler_c_o_FC='`$ECHO "X$lt_cv_prog_compiler_c_o_FC" | $Xsed -e "$delay_single_quote_subst"`'
20220 archive_cmds_need_lc_FC='`$ECHO "X$archive_cmds_need_lc_FC" | $Xsed -e "$delay_single_quote_subst"`'
20221 enable_shared_with_static_runtimes_FC='`$ECHO "X$enable_shared_with_static_runtimes_FC" | $Xsed -e "$delay_single_quote_subst"`'
20222 export_dynamic_flag_spec_FC='`$ECHO "X$export_dynamic_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
20223 whole_archive_flag_spec_FC='`$ECHO "X$whole_archive_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
20224 compiler_needs_object_FC='`$ECHO "X$compiler_needs_object_FC" | $Xsed -e "$delay_single_quote_subst"`'
20225 old_archive_from_new_cmds_FC='`$ECHO "X$old_archive_from_new_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20226 old_archive_from_expsyms_cmds_FC='`$ECHO "X$old_archive_from_expsyms_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20227 archive_cmds_FC='`$ECHO "X$archive_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20228 archive_expsym_cmds_FC='`$ECHO "X$archive_expsym_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20229 module_cmds_FC='`$ECHO "X$module_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20230 module_expsym_cmds_FC='`$ECHO "X$module_expsym_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20231 with_gnu_ld_FC='`$ECHO "X$with_gnu_ld_FC" | $Xsed -e "$delay_single_quote_subst"`'
20232 allow_undefined_flag_FC='`$ECHO "X$allow_undefined_flag_FC" | $Xsed -e "$delay_single_quote_subst"`'
20233 no_undefined_flag_FC='`$ECHO "X$no_undefined_flag_FC" | $Xsed -e "$delay_single_quote_subst"`'
20234 hardcode_libdir_flag_spec_FC='`$ECHO "X$hardcode_libdir_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
20235 hardcode_libdir_flag_spec_ld_FC='`$ECHO "X$hardcode_libdir_flag_spec_ld_FC" | $Xsed -e "$delay_single_quote_subst"`'
20236 hardcode_libdir_separator_FC='`$ECHO "X$hardcode_libdir_separator_FC" | $Xsed -e "$delay_single_quote_subst"`'
20237 hardcode_direct_FC='`$ECHO "X$hardcode_direct_FC" | $Xsed -e "$delay_single_quote_subst"`'
20238 hardcode_direct_absolute_FC='`$ECHO "X$hardcode_direct_absolute_FC" | $Xsed -e "$delay_single_quote_subst"`'
20239 hardcode_minus_L_FC='`$ECHO "X$hardcode_minus_L_FC" | $Xsed -e "$delay_single_quote_subst"`'
20240 hardcode_shlibpath_var_FC='`$ECHO "X$hardcode_shlibpath_var_FC" | $Xsed -e "$delay_single_quote_subst"`'
20241 hardcode_automatic_FC='`$ECHO "X$hardcode_automatic_FC" | $Xsed -e "$delay_single_quote_subst"`'
20242 inherit_rpath_FC='`$ECHO "X$inherit_rpath_FC" | $Xsed -e "$delay_single_quote_subst"`'
20243 link_all_deplibs_FC='`$ECHO "X$link_all_deplibs_FC" | $Xsed -e "$delay_single_quote_subst"`'
20244 fix_srcfile_path_FC='`$ECHO "X$fix_srcfile_path_FC" | $Xsed -e "$delay_single_quote_subst"`'
20245 always_export_symbols_FC='`$ECHO "X$always_export_symbols_FC" | $Xsed -e "$delay_single_quote_subst"`'
20246 export_symbols_cmds_FC='`$ECHO "X$export_symbols_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20247 exclude_expsyms_FC='`$ECHO "X$exclude_expsyms_FC" | $Xsed -e "$delay_single_quote_subst"`'
20248 include_expsyms_FC='`$ECHO "X$include_expsyms_FC" | $Xsed -e "$delay_single_quote_subst"`'
20249 prelink_cmds_FC='`$ECHO "X$prelink_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20250 file_list_spec_FC='`$ECHO "X$file_list_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
20251 hardcode_action_FC='`$ECHO "X$hardcode_action_FC" | $Xsed -e "$delay_single_quote_subst"`'
20252 predep_objects_FC='`$ECHO "X$predep_objects_FC" | $Xsed -e "$delay_single_quote_subst"`'
20253 postdep_objects_FC='`$ECHO "X$postdep_objects_FC" | $Xsed -e "$delay_single_quote_subst"`'
20254 predeps_FC='`$ECHO "X$predeps_FC" | $Xsed -e "$delay_single_quote_subst"`'
20255 postdeps_FC='`$ECHO "X$postdeps_FC" | $Xsed -e "$delay_single_quote_subst"`'
20256 compiler_lib_search_path_FC='`$ECHO "X$compiler_lib_search_path_FC" | $Xsed -e "$delay_single_quote_subst"`'
20258 LTCC='$LTCC'
20259 LTCFLAGS='$LTCFLAGS'
20260 compiler='$compiler_DEFAULT'
20262 # Quote evaled strings.
20263 for var in SED \
20264 GREP \
20265 EGREP \
20266 FGREP \
20267 LD \
20268 NM \
20269 LN_S \
20270 lt_SP2NL \
20271 lt_NL2SP \
20272 reload_flag \
20273 deplibs_check_method \
20274 file_magic_cmd \
20275 AR \
20276 AR_FLAGS \
20277 STRIP \
20278 RANLIB \
20279 CC \
20280 CFLAGS \
20281 compiler \
20282 lt_cv_sys_global_symbol_pipe \
20283 lt_cv_sys_global_symbol_to_cdecl \
20284 lt_cv_sys_global_symbol_to_c_name_address \
20285 SHELL \
20286 ECHO \
20287 lt_prog_compiler_no_builtin_flag \
20288 lt_prog_compiler_wl \
20289 lt_prog_compiler_pic \
20290 lt_prog_compiler_static \
20291 lt_cv_prog_compiler_c_o \
20292 need_locks \
20293 shrext_cmds \
20294 export_dynamic_flag_spec \
20295 whole_archive_flag_spec \
20296 compiler_needs_object \
20297 with_gnu_ld \
20298 allow_undefined_flag \
20299 no_undefined_flag \
20300 hardcode_libdir_flag_spec \
20301 hardcode_libdir_flag_spec_ld \
20302 hardcode_libdir_separator \
20303 fix_srcfile_path \
20304 exclude_expsyms \
20305 include_expsyms \
20306 file_list_spec \
20307 variables_saved_for_relink \
20308 libname_spec \
20309 library_names_spec \
20310 soname_spec \
20311 finish_eval \
20312 old_striplib \
20313 striplib \
20314 predep_objects \
20315 postdep_objects \
20316 predeps \
20317 postdeps \
20318 compiler_lib_search_path \
20319 LD_FC \
20320 compiler_FC \
20321 lt_prog_compiler_no_builtin_flag_FC \
20322 lt_prog_compiler_wl_FC \
20323 lt_prog_compiler_pic_FC \
20324 lt_prog_compiler_static_FC \
20325 lt_cv_prog_compiler_c_o_FC \
20326 export_dynamic_flag_spec_FC \
20327 whole_archive_flag_spec_FC \
20328 compiler_needs_object_FC \
20329 with_gnu_ld_FC \
20330 allow_undefined_flag_FC \
20331 no_undefined_flag_FC \
20332 hardcode_libdir_flag_spec_FC \
20333 hardcode_libdir_flag_spec_ld_FC \
20334 hardcode_libdir_separator_FC \
20335 fix_srcfile_path_FC \
20336 exclude_expsyms_FC \
20337 include_expsyms_FC \
20338 file_list_spec_FC \
20339 predep_objects_FC \
20340 postdep_objects_FC \
20341 predeps_FC \
20342 postdeps_FC \
20343 compiler_lib_search_path_FC; do
20344 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
20345 *[\\\\\\\`\\"\\\$]*)
20346 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20349 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20351 esac
20352 done
20354 # Double-quote double-evaled strings.
20355 for var in reload_cmds \
20356 old_postinstall_cmds \
20357 old_postuninstall_cmds \
20358 old_archive_cmds \
20359 extract_expsyms_cmds \
20360 old_archive_from_new_cmds \
20361 old_archive_from_expsyms_cmds \
20362 archive_cmds \
20363 archive_expsym_cmds \
20364 module_cmds \
20365 module_expsym_cmds \
20366 export_symbols_cmds \
20367 prelink_cmds \
20368 postinstall_cmds \
20369 postuninstall_cmds \
20370 finish_cmds \
20371 sys_lib_search_path_spec \
20372 sys_lib_dlsearch_path_spec \
20373 old_archive_cmds_FC \
20374 old_archive_from_new_cmds_FC \
20375 old_archive_from_expsyms_cmds_FC \
20376 archive_cmds_FC \
20377 archive_expsym_cmds_FC \
20378 module_cmds_FC \
20379 module_expsym_cmds_FC \
20380 export_symbols_cmds_FC \
20381 prelink_cmds_FC; do
20382 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
20383 *[\\\\\\\`\\"\\\$]*)
20384 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20387 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20389 esac
20390 done
20392 # Fix-up fallback echo if it was mangled by the above quoting rules.
20393 case \$lt_ECHO in
20394 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
20396 esac
20398 ac_aux_dir='$ac_aux_dir'
20399 xsi_shell='$xsi_shell'
20400 lt_shell_append='$lt_shell_append'
20402 # See if we are running on zsh, and set the options which allow our
20403 # commands through without removal of \ escapes INIT.
20404 if test -n "\${ZSH_VERSION+set}" ; then
20405 setopt NO_GLOB_SUBST
20409 PACKAGE='$PACKAGE'
20410 VERSION='$VERSION'
20411 TIMESTAMP='$TIMESTAMP'
20412 RM='$RM'
20413 ofile='$ofile'
20420 GCC="$GCC"
20421 CC="$CC"
20422 acx_cv_header_stdint="$acx_cv_header_stdint"
20423 acx_cv_type_int8_t="$acx_cv_type_int8_t"
20424 acx_cv_type_int16_t="$acx_cv_type_int16_t"
20425 acx_cv_type_int32_t="$acx_cv_type_int32_t"
20426 acx_cv_type_int64_t="$acx_cv_type_int64_t"
20427 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
20428 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
20429 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
20430 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
20431 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
20432 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
20433 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
20434 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
20435 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
20438 _ACEOF
20442 cat >>$CONFIG_STATUS <<\_ACEOF
20443 for ac_config_target in $ac_config_targets
20445 case "$ac_config_target" in
20446 # Handling of arguments.
20447 "omp.h" ) CONFIG_FILES="$CONFIG_FILES omp.h" ;;
20448 "omp_lib.h" ) CONFIG_FILES="$CONFIG_FILES omp_lib.h" ;;
20449 "omp_lib.f90" ) CONFIG_FILES="$CONFIG_FILES omp_lib.f90" ;;
20450 "libgomp_f.h" ) CONFIG_FILES="$CONFIG_FILES libgomp_f.h" ;;
20451 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20452 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
20453 "libgomp.spec" ) CONFIG_FILES="$CONFIG_FILES libgomp.spec" ;;
20454 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
20455 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20456 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20457 "gstdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
20458 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20459 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20460 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20461 { (exit 1); exit 1; }; };;
20462 esac
20463 done
20465 # If the user did not use the arguments to specify the items to instantiate,
20466 # then the envvar interface is used. Set only those that are not.
20467 # We use the long form for the default assignment because of an extremely
20468 # bizarre bug on SunOS 4.1.3.
20469 if $ac_need_defaults; then
20470 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20471 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20472 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20475 # Have a temporary directory for convenience. Make it in the build tree
20476 # simply because there is no reason to put it here, and in addition,
20477 # creating and moving files from /tmp can sometimes cause problems.
20478 # Create a temporary directory, and hook for its removal unless debugging.
20479 $debug ||
20481 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20482 trap '{ (exit 1); exit 1; }' 1 2 13 15
20485 # Create a (secure) tmp directory for tmp files.
20488 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20489 test -n "$tmp" && test -d "$tmp"
20490 } ||
20492 tmp=./confstat$$-$RANDOM
20493 (umask 077 && mkdir $tmp)
20494 } ||
20496 echo "$me: cannot create a temporary directory in ." >&2
20497 { (exit 1); exit 1; }
20500 _ACEOF
20502 cat >>$CONFIG_STATUS <<_ACEOF
20505 # CONFIG_FILES section.
20508 # No need to generate the scripts if there are no CONFIG_FILES.
20509 # This happens for instance when ./config.status config.h
20510 if test -n "\$CONFIG_FILES"; then
20511 # Protect against being on the right side of a sed subst in config.status.
20512 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20513 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20514 s,@SHELL@,$SHELL,;t t
20515 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20516 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20517 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20518 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20519 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20520 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20521 s,@exec_prefix@,$exec_prefix,;t t
20522 s,@prefix@,$prefix,;t t
20523 s,@program_transform_name@,$program_transform_name,;t t
20524 s,@bindir@,$bindir,;t t
20525 s,@sbindir@,$sbindir,;t t
20526 s,@libexecdir@,$libexecdir,;t t
20527 s,@datadir@,$datadir,;t t
20528 s,@sysconfdir@,$sysconfdir,;t t
20529 s,@sharedstatedir@,$sharedstatedir,;t t
20530 s,@localstatedir@,$localstatedir,;t t
20531 s,@libdir@,$libdir,;t t
20532 s,@includedir@,$includedir,;t t
20533 s,@oldincludedir@,$oldincludedir,;t t
20534 s,@infodir@,$infodir,;t t
20535 s,@mandir@,$mandir,;t t
20536 s,@build_alias@,$build_alias,;t t
20537 s,@host_alias@,$host_alias,;t t
20538 s,@target_alias@,$target_alias,;t t
20539 s,@DEFS@,$DEFS,;t t
20540 s,@ECHO_C@,$ECHO_C,;t t
20541 s,@ECHO_N@,$ECHO_N,;t t
20542 s,@ECHO_T@,$ECHO_T,;t t
20543 s,@LIBS@,$LIBS,;t t
20544 s,@GENINSRC_TRUE@,$GENINSRC_TRUE,;t t
20545 s,@GENINSRC_FALSE@,$GENINSRC_FALSE,;t t
20546 s,@build@,$build,;t t
20547 s,@build_cpu@,$build_cpu,;t t
20548 s,@build_vendor@,$build_vendor,;t t
20549 s,@build_os@,$build_os,;t t
20550 s,@host@,$host,;t t
20551 s,@host_cpu@,$host_cpu,;t t
20552 s,@host_vendor@,$host_vendor,;t t
20553 s,@host_os@,$host_os,;t t
20554 s,@target@,$target,;t t
20555 s,@target_cpu@,$target_cpu,;t t
20556 s,@target_vendor@,$target_vendor,;t t
20557 s,@target_os@,$target_os,;t t
20558 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20559 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20560 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20561 s,@CYGPATH_W@,$CYGPATH_W,;t t
20562 s,@PACKAGE@,$PACKAGE,;t t
20563 s,@VERSION@,$VERSION,;t t
20564 s,@ACLOCAL@,$ACLOCAL,;t t
20565 s,@AUTOCONF@,$AUTOCONF,;t t
20566 s,@AUTOMAKE@,$AUTOMAKE,;t t
20567 s,@AUTOHEADER@,$AUTOHEADER,;t t
20568 s,@MAKEINFO@,$MAKEINFO,;t t
20569 s,@install_sh@,$install_sh,;t t
20570 s,@STRIP@,$STRIP,;t t
20571 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20572 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20573 s,@mkdir_p@,$mkdir_p,;t t
20574 s,@AWK@,$AWK,;t t
20575 s,@SET_MAKE@,$SET_MAKE,;t t
20576 s,@am__leading_dot@,$am__leading_dot,;t t
20577 s,@AMTAR@,$AMTAR,;t t
20578 s,@am__tar@,$am__tar,;t t
20579 s,@am__untar@,$am__untar,;t t
20580 s,@multi_basedir@,$multi_basedir,;t t
20581 s,@toolexecdir@,$toolexecdir,;t t
20582 s,@toolexeclibdir@,$toolexeclibdir,;t t
20583 s,@CC@,$CC,;t t
20584 s,@ac_ct_CC@,$ac_ct_CC,;t t
20585 s,@EXEEXT@,$EXEEXT,;t t
20586 s,@OBJEXT@,$OBJEXT,;t t
20587 s,@DEPDIR@,$DEPDIR,;t t
20588 s,@am__include@,$am__include,;t t
20589 s,@am__quote@,$am__quote,;t t
20590 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20591 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20592 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20593 s,@CCDEPMODE@,$CCDEPMODE,;t t
20594 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20595 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20596 s,@CFLAGS@,$CFLAGS,;t t
20597 s,@AR@,$AR,;t t
20598 s,@ac_ct_AR@,$ac_ct_AR,;t t
20599 s,@RANLIB@,$RANLIB,;t t
20600 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20601 s,@PERL@,$PERL,;t t
20602 s,@BUILD_INFO_TRUE@,$BUILD_INFO_TRUE,;t t
20603 s,@BUILD_INFO_FALSE@,$BUILD_INFO_FALSE,;t t
20604 s,@LIBTOOL@,$LIBTOOL,;t t
20605 s,@SED@,$SED,;t t
20606 s,@EGREP@,$EGREP,;t t
20607 s,@FGREP@,$FGREP,;t t
20608 s,@GREP@,$GREP,;t t
20609 s,@LD@,$LD,;t t
20610 s,@DUMPBIN@,$DUMPBIN,;t t
20611 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
20612 s,@NM@,$NM,;t t
20613 s,@LN_S@,$LN_S,;t t
20614 s,@lt_ECHO@,$lt_ECHO,;t t
20615 s,@CPP@,$CPP,;t t
20616 s,@CPPFLAGS@,$CPPFLAGS,;t t
20617 s,@enable_shared@,$enable_shared,;t t
20618 s,@enable_static@,$enable_static,;t t
20619 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
20620 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
20621 s,@MAINT@,$MAINT,;t t
20622 s,@FC@,$FC,;t t
20623 s,@FCFLAGS@,$FCFLAGS,;t t
20624 s,@LDFLAGS@,$LDFLAGS,;t t
20625 s,@ac_ct_FC@,$ac_ct_FC,;t t
20626 s,@libtool_VERSION@,$libtool_VERSION,;t t
20627 s,@SECTION_LDFLAGS@,$SECTION_LDFLAGS,;t t
20628 s,@OPT_LDFLAGS@,$OPT_LDFLAGS,;t t
20629 s,@LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE@,$LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE,;t t
20630 s,@LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE@,$LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE,;t t
20631 s,@config_path@,$config_path,;t t
20632 s,@XCFLAGS@,$XCFLAGS,;t t
20633 s,@XLDFLAGS@,$XLDFLAGS,;t t
20634 s,@link_gomp@,$link_gomp,;t t
20635 s,@USE_FORTRAN_TRUE@,$USE_FORTRAN_TRUE,;t t
20636 s,@USE_FORTRAN_FALSE@,$USE_FORTRAN_FALSE,;t t
20637 s,@OMP_LOCK_SIZE@,$OMP_LOCK_SIZE,;t t
20638 s,@OMP_LOCK_ALIGN@,$OMP_LOCK_ALIGN,;t t
20639 s,@OMP_NEST_LOCK_SIZE@,$OMP_NEST_LOCK_SIZE,;t t
20640 s,@OMP_NEST_LOCK_ALIGN@,$OMP_NEST_LOCK_ALIGN,;t t
20641 s,@OMP_LOCK_KIND@,$OMP_LOCK_KIND,;t t
20642 s,@OMP_NEST_LOCK_KIND@,$OMP_NEST_LOCK_KIND,;t t
20643 s,@LIBOBJS@,$LIBOBJS,;t t
20644 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20645 CEOF
20647 _ACEOF
20649 cat >>$CONFIG_STATUS <<\_ACEOF
20650 # Split the substitutions into bite-sized pieces for seds with
20651 # small command number limits, like on Digital OSF/1 and HP-UX.
20652 ac_max_sed_lines=48
20653 ac_sed_frag=1 # Number of current file.
20654 ac_beg=1 # First line for current file.
20655 ac_end=$ac_max_sed_lines # Line after last line for current file.
20656 ac_more_lines=:
20657 ac_sed_cmds=
20658 while $ac_more_lines; do
20659 if test $ac_beg -gt 1; then
20660 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20661 else
20662 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20664 if test ! -s $tmp/subs.frag; then
20665 ac_more_lines=false
20666 else
20667 # The purpose of the label and of the branching condition is to
20668 # speed up the sed processing (if there are no `@' at all, there
20669 # is no need to browse any of the substitutions).
20670 # These are the two extra sed commands mentioned above.
20671 (echo ':t
20672 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20673 if test -z "$ac_sed_cmds"; then
20674 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20675 else
20676 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20678 ac_sed_frag=`expr $ac_sed_frag + 1`
20679 ac_beg=$ac_end
20680 ac_end=`expr $ac_end + $ac_max_sed_lines`
20682 done
20683 if test -z "$ac_sed_cmds"; then
20684 ac_sed_cmds=cat
20686 fi # test -n "$CONFIG_FILES"
20688 _ACEOF
20689 cat >>$CONFIG_STATUS <<\_ACEOF
20690 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20691 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20692 case $ac_file in
20693 - | *:- | *:-:* ) # input from stdin
20694 cat >$tmp/stdin
20695 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20696 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20697 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20698 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20699 * ) ac_file_in=$ac_file.in ;;
20700 esac
20702 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20703 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20704 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20705 X"$ac_file" : 'X\(//\)[^/]' \| \
20706 X"$ac_file" : 'X\(//\)$' \| \
20707 X"$ac_file" : 'X\(/\)' \| \
20708 . : '\(.\)' 2>/dev/null ||
20709 echo X"$ac_file" |
20710 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20711 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20712 /^X\(\/\/\)$/{ s//\1/; q; }
20713 /^X\(\/\).*/{ s//\1/; q; }
20714 s/.*/./; q'`
20715 { if $as_mkdir_p; then
20716 mkdir -p "$ac_dir"
20717 else
20718 as_dir="$ac_dir"
20719 as_dirs=
20720 while test ! -d "$as_dir"; do
20721 as_dirs="$as_dir $as_dirs"
20722 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20723 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20724 X"$as_dir" : 'X\(//\)[^/]' \| \
20725 X"$as_dir" : 'X\(//\)$' \| \
20726 X"$as_dir" : 'X\(/\)' \| \
20727 . : '\(.\)' 2>/dev/null ||
20728 echo X"$as_dir" |
20729 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20730 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20731 /^X\(\/\/\)$/{ s//\1/; q; }
20732 /^X\(\/\).*/{ s//\1/; q; }
20733 s/.*/./; q'`
20734 done
20735 test ! -n "$as_dirs" || mkdir $as_dirs
20736 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20737 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20738 { (exit 1); exit 1; }; }; }
20740 ac_builddir=.
20742 if test "$ac_dir" != .; then
20743 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20744 # A "../" for each directory in $ac_dir_suffix.
20745 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20746 else
20747 ac_dir_suffix= ac_top_builddir=
20750 case $srcdir in
20751 .) # No --srcdir option. We are building in place.
20752 ac_srcdir=.
20753 if test -z "$ac_top_builddir"; then
20754 ac_top_srcdir=.
20755 else
20756 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20757 fi ;;
20758 [\\/]* | ?:[\\/]* ) # Absolute path.
20759 ac_srcdir=$srcdir$ac_dir_suffix;
20760 ac_top_srcdir=$srcdir ;;
20761 *) # Relative path.
20762 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20763 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20764 esac
20766 # Do not use `cd foo && pwd` to compute absolute paths, because
20767 # the directories may not exist.
20768 case `pwd` in
20769 .) ac_abs_builddir="$ac_dir";;
20771 case "$ac_dir" in
20772 .) ac_abs_builddir=`pwd`;;
20773 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20774 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20775 esac;;
20776 esac
20777 case $ac_abs_builddir in
20778 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20780 case ${ac_top_builddir}. in
20781 .) ac_abs_top_builddir=$ac_abs_builddir;;
20782 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20783 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20784 esac;;
20785 esac
20786 case $ac_abs_builddir in
20787 .) ac_abs_srcdir=$ac_srcdir;;
20789 case $ac_srcdir in
20790 .) ac_abs_srcdir=$ac_abs_builddir;;
20791 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20792 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20793 esac;;
20794 esac
20795 case $ac_abs_builddir in
20796 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20798 case $ac_top_srcdir in
20799 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20800 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20801 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20802 esac;;
20803 esac
20806 case $INSTALL in
20807 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20808 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20809 esac
20811 if test x"$ac_file" != x-; then
20812 { echo "$as_me:$LINENO: creating $ac_file" >&5
20813 echo "$as_me: creating $ac_file" >&6;}
20814 rm -f "$ac_file"
20816 # Let's still pretend it is `configure' which instantiates (i.e., don't
20817 # use $as_me), people would be surprised to read:
20818 # /* config.h. Generated by config.status. */
20819 if test x"$ac_file" = x-; then
20820 configure_input=
20821 else
20822 configure_input="$ac_file. "
20824 configure_input=$configure_input"Generated from `echo $ac_file_in |
20825 sed 's,.*/,,'` by configure."
20827 # First look for the input files in the build tree, otherwise in the
20828 # src tree.
20829 ac_file_inputs=`IFS=:
20830 for f in $ac_file_in; do
20831 case $f in
20832 -) echo $tmp/stdin ;;
20833 [\\/$]*)
20834 # Absolute (can't be DOS-style, as IFS=:)
20835 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20836 echo "$as_me: error: cannot find input file: $f" >&2;}
20837 { (exit 1); exit 1; }; }
20838 echo "$f";;
20839 *) # Relative
20840 if test -f "$f"; then
20841 # Build tree
20842 echo "$f"
20843 elif test -f "$srcdir/$f"; then
20844 # Source tree
20845 echo "$srcdir/$f"
20846 else
20847 # /dev/null tree
20848 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20849 echo "$as_me: error: cannot find input file: $f" >&2;}
20850 { (exit 1); exit 1; }; }
20851 fi;;
20852 esac
20853 done` || { (exit 1); exit 1; }
20854 _ACEOF
20855 cat >>$CONFIG_STATUS <<_ACEOF
20856 sed "$ac_vpsub
20857 $extrasub
20858 _ACEOF
20859 cat >>$CONFIG_STATUS <<\_ACEOF
20861 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20862 s,@configure_input@,$configure_input,;t t
20863 s,@srcdir@,$ac_srcdir,;t t
20864 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20865 s,@top_srcdir@,$ac_top_srcdir,;t t
20866 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20867 s,@builddir@,$ac_builddir,;t t
20868 s,@abs_builddir@,$ac_abs_builddir,;t t
20869 s,@top_builddir@,$ac_top_builddir,;t t
20870 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20871 s,@INSTALL@,$ac_INSTALL,;t t
20872 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20873 rm -f $tmp/stdin
20874 if test x"$ac_file" != x-; then
20875 mv $tmp/out $ac_file
20876 else
20877 cat $tmp/out
20878 rm -f $tmp/out
20881 done
20882 _ACEOF
20883 cat >>$CONFIG_STATUS <<\_ACEOF
20886 # CONFIG_HEADER section.
20889 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20890 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20892 # ac_d sets the value in "#define NAME VALUE" lines.
20893 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20894 ac_dB='[ ].*$,\1#\2'
20895 ac_dC=' '
20896 ac_dD=',;t'
20897 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20898 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20899 ac_uB='$,\1#\2define\3'
20900 ac_uC=' '
20901 ac_uD=',;t'
20903 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20904 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20905 case $ac_file in
20906 - | *:- | *:-:* ) # input from stdin
20907 cat >$tmp/stdin
20908 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20909 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20910 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20911 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20912 * ) ac_file_in=$ac_file.in ;;
20913 esac
20915 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20916 echo "$as_me: creating $ac_file" >&6;}
20918 # First look for the input files in the build tree, otherwise in the
20919 # src tree.
20920 ac_file_inputs=`IFS=:
20921 for f in $ac_file_in; do
20922 case $f in
20923 -) echo $tmp/stdin ;;
20924 [\\/$]*)
20925 # Absolute (can't be DOS-style, as IFS=:)
20926 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20927 echo "$as_me: error: cannot find input file: $f" >&2;}
20928 { (exit 1); exit 1; }; }
20929 # Do quote $f, to prevent DOS paths from being IFS'd.
20930 echo "$f";;
20931 *) # Relative
20932 if test -f "$f"; then
20933 # Build tree
20934 echo "$f"
20935 elif test -f "$srcdir/$f"; then
20936 # Source tree
20937 echo "$srcdir/$f"
20938 else
20939 # /dev/null tree
20940 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20941 echo "$as_me: error: cannot find input file: $f" >&2;}
20942 { (exit 1); exit 1; }; }
20943 fi;;
20944 esac
20945 done` || { (exit 1); exit 1; }
20946 # Remove the trailing spaces.
20947 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20949 _ACEOF
20951 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20952 # `conftest.undefs', that substitutes the proper values into
20953 # config.h.in to produce config.h. The first handles `#define'
20954 # templates, and the second `#undef' templates.
20955 # And first: Protect against being on the right side of a sed subst in
20956 # config.status. Protect against being in an unquoted here document
20957 # in config.status.
20958 rm -f conftest.defines conftest.undefs
20959 # Using a here document instead of a string reduces the quoting nightmare.
20960 # Putting comments in sed scripts is not portable.
20962 # `end' is used to avoid that the second main sed command (meant for
20963 # 0-ary CPP macros) applies to n-ary macro definitions.
20964 # See the Autoconf documentation for `clear'.
20965 cat >confdef2sed.sed <<\_ACEOF
20966 s/[\\&,]/\\&/g
20967 s,[\\$`],\\&,g
20968 t clear
20969 : clear
20970 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20971 t end
20972 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20973 : end
20974 _ACEOF
20975 # If some macros were called several times there might be several times
20976 # the same #defines, which is useless. Nevertheless, we may not want to
20977 # sort them, since we want the *last* AC-DEFINE to be honored.
20978 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20979 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20980 rm -f confdef2sed.sed
20982 # This sed command replaces #undef with comments. This is necessary, for
20983 # example, in the case of _POSIX_SOURCE, which is predefined and required
20984 # on some systems where configure will not decide to define it.
20985 cat >>conftest.undefs <<\_ACEOF
20986 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20987 _ACEOF
20989 # Break up conftest.defines because some shells have a limit on the size
20990 # of here documents, and old seds have small limits too (100 cmds).
20991 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20992 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20993 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20994 echo ' :' >>$CONFIG_STATUS
20995 rm -f conftest.tail
20996 while grep . conftest.defines >/dev/null
20998 # Write a limited-size here document to $tmp/defines.sed.
20999 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21000 # Speed up: don't consider the non `#define' lines.
21001 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
21002 # Work around the forget-to-reset-the-flag bug.
21003 echo 't clr' >>$CONFIG_STATUS
21004 echo ': clr' >>$CONFIG_STATUS
21005 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21006 echo 'CEOF
21007 sed -f $tmp/defines.sed $tmp/in >$tmp/out
21008 rm -f $tmp/in
21009 mv $tmp/out $tmp/in
21010 ' >>$CONFIG_STATUS
21011 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21012 rm -f conftest.defines
21013 mv conftest.tail conftest.defines
21014 done
21015 rm -f conftest.defines
21016 echo ' fi # grep' >>$CONFIG_STATUS
21017 echo >>$CONFIG_STATUS
21019 # Break up conftest.undefs because some shells have a limit on the size
21020 # of here documents, and old seds have small limits too (100 cmds).
21021 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
21022 rm -f conftest.tail
21023 while grep . conftest.undefs >/dev/null
21025 # Write a limited-size here document to $tmp/undefs.sed.
21026 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21027 # Speed up: don't consider the non `#undef'
21028 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
21029 # Work around the forget-to-reset-the-flag bug.
21030 echo 't clr' >>$CONFIG_STATUS
21031 echo ': clr' >>$CONFIG_STATUS
21032 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21033 echo 'CEOF
21034 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21035 rm -f $tmp/in
21036 mv $tmp/out $tmp/in
21037 ' >>$CONFIG_STATUS
21038 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21039 rm -f conftest.undefs
21040 mv conftest.tail conftest.undefs
21041 done
21042 rm -f conftest.undefs
21044 cat >>$CONFIG_STATUS <<\_ACEOF
21045 # Let's still pretend it is `configure' which instantiates (i.e., don't
21046 # use $as_me), people would be surprised to read:
21047 # /* config.h. Generated by config.status. */
21048 if test x"$ac_file" = x-; then
21049 echo "/* Generated by configure. */" >$tmp/config.h
21050 else
21051 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
21053 cat $tmp/in >>$tmp/config.h
21054 rm -f $tmp/in
21055 if test x"$ac_file" != x-; then
21056 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21057 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21058 echo "$as_me: $ac_file is unchanged" >&6;}
21059 else
21060 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21061 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21062 X"$ac_file" : 'X\(//\)[^/]' \| \
21063 X"$ac_file" : 'X\(//\)$' \| \
21064 X"$ac_file" : 'X\(/\)' \| \
21065 . : '\(.\)' 2>/dev/null ||
21066 echo X"$ac_file" |
21067 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21068 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21069 /^X\(\/\/\)$/{ s//\1/; q; }
21070 /^X\(\/\).*/{ s//\1/; q; }
21071 s/.*/./; q'`
21072 { if $as_mkdir_p; then
21073 mkdir -p "$ac_dir"
21074 else
21075 as_dir="$ac_dir"
21076 as_dirs=
21077 while test ! -d "$as_dir"; do
21078 as_dirs="$as_dir $as_dirs"
21079 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21080 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21081 X"$as_dir" : 'X\(//\)[^/]' \| \
21082 X"$as_dir" : 'X\(//\)$' \| \
21083 X"$as_dir" : 'X\(/\)' \| \
21084 . : '\(.\)' 2>/dev/null ||
21085 echo X"$as_dir" |
21086 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21087 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21088 /^X\(\/\/\)$/{ s//\1/; q; }
21089 /^X\(\/\).*/{ s//\1/; q; }
21090 s/.*/./; q'`
21091 done
21092 test ! -n "$as_dirs" || mkdir $as_dirs
21093 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21094 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21095 { (exit 1); exit 1; }; }; }
21097 rm -f $ac_file
21098 mv $tmp/config.h $ac_file
21100 else
21101 cat $tmp/config.h
21102 rm -f $tmp/config.h
21104 # Compute $ac_file's index in $config_headers.
21105 _am_stamp_count=1
21106 for _am_header in $config_headers :; do
21107 case $_am_header in
21108 $ac_file | $ac_file:* )
21109 break ;;
21111 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21112 esac
21113 done
21114 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21115 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21116 X$ac_file : 'X\(//\)[^/]' \| \
21117 X$ac_file : 'X\(//\)$' \| \
21118 X$ac_file : 'X\(/\)' \| \
21119 . : '\(.\)' 2>/dev/null ||
21120 echo X$ac_file |
21121 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21122 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21123 /^X\(\/\/\)$/{ s//\1/; q; }
21124 /^X\(\/\).*/{ s//\1/; q; }
21125 s/.*/./; q'`/stamp-h$_am_stamp_count
21126 done
21127 _ACEOF
21128 cat >>$CONFIG_STATUS <<\_ACEOF
21131 # CONFIG_COMMANDS section.
21133 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21134 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21135 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21136 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21137 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21138 X"$ac_dest" : 'X\(//\)[^/]' \| \
21139 X"$ac_dest" : 'X\(//\)$' \| \
21140 X"$ac_dest" : 'X\(/\)' \| \
21141 . : '\(.\)' 2>/dev/null ||
21142 echo X"$ac_dest" |
21143 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21144 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21145 /^X\(\/\/\)$/{ s//\1/; q; }
21146 /^X\(\/\).*/{ s//\1/; q; }
21147 s/.*/./; q'`
21148 { if $as_mkdir_p; then
21149 mkdir -p "$ac_dir"
21150 else
21151 as_dir="$ac_dir"
21152 as_dirs=
21153 while test ! -d "$as_dir"; do
21154 as_dirs="$as_dir $as_dirs"
21155 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21156 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21157 X"$as_dir" : 'X\(//\)[^/]' \| \
21158 X"$as_dir" : 'X\(//\)$' \| \
21159 X"$as_dir" : 'X\(/\)' \| \
21160 . : '\(.\)' 2>/dev/null ||
21161 echo X"$as_dir" |
21162 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21163 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21164 /^X\(\/\/\)$/{ s//\1/; q; }
21165 /^X\(\/\).*/{ s//\1/; q; }
21166 s/.*/./; q'`
21167 done
21168 test ! -n "$as_dirs" || mkdir $as_dirs
21169 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21170 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21171 { (exit 1); exit 1; }; }; }
21173 ac_builddir=.
21175 if test "$ac_dir" != .; then
21176 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21177 # A "../" for each directory in $ac_dir_suffix.
21178 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21179 else
21180 ac_dir_suffix= ac_top_builddir=
21183 case $srcdir in
21184 .) # No --srcdir option. We are building in place.
21185 ac_srcdir=.
21186 if test -z "$ac_top_builddir"; then
21187 ac_top_srcdir=.
21188 else
21189 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21190 fi ;;
21191 [\\/]* | ?:[\\/]* ) # Absolute path.
21192 ac_srcdir=$srcdir$ac_dir_suffix;
21193 ac_top_srcdir=$srcdir ;;
21194 *) # Relative path.
21195 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21196 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21197 esac
21199 # Do not use `cd foo && pwd` to compute absolute paths, because
21200 # the directories may not exist.
21201 case `pwd` in
21202 .) ac_abs_builddir="$ac_dir";;
21204 case "$ac_dir" in
21205 .) ac_abs_builddir=`pwd`;;
21206 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21207 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21208 esac;;
21209 esac
21210 case $ac_abs_builddir in
21211 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21213 case ${ac_top_builddir}. in
21214 .) ac_abs_top_builddir=$ac_abs_builddir;;
21215 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21216 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21217 esac;;
21218 esac
21219 case $ac_abs_builddir in
21220 .) ac_abs_srcdir=$ac_srcdir;;
21222 case $ac_srcdir in
21223 .) ac_abs_srcdir=$ac_abs_builddir;;
21224 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21225 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21226 esac;;
21227 esac
21228 case $ac_abs_builddir in
21229 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21231 case $ac_top_srcdir in
21232 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21233 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21234 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21235 esac;;
21236 esac
21239 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21240 echo "$as_me: executing $ac_dest commands" >&6;}
21241 case $ac_dest in
21242 default-1 )
21243 # Only add multilib support code if we just rebuilt the top-level
21244 # Makefile.
21245 case " $CONFIG_FILES " in
21246 *" Makefile "*)
21247 ac_file=Makefile . ${multi_basedir}/config-ml.in
21249 esac ;;
21250 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21251 # Strip MF so we end up with the name of the file.
21252 mf=`echo "$mf" | sed -e 's/:.*$//'`
21253 # Check whether this is an Automake generated Makefile or not.
21254 # We used to match only the files named `Makefile.in', but
21255 # some people rename them; so instead we look at the file content.
21256 # Grep'ing the first line is not enough: some people post-process
21257 # each Makefile.in and add a new line on top of each file to say so.
21258 # So let's grep whole file.
21259 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21260 dirpart=`(dirname "$mf") 2>/dev/null ||
21261 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21262 X"$mf" : 'X\(//\)[^/]' \| \
21263 X"$mf" : 'X\(//\)$' \| \
21264 X"$mf" : 'X\(/\)' \| \
21265 . : '\(.\)' 2>/dev/null ||
21266 echo X"$mf" |
21267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21268 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21269 /^X\(\/\/\)$/{ s//\1/; q; }
21270 /^X\(\/\).*/{ s//\1/; q; }
21271 s/.*/./; q'`
21272 else
21273 continue
21275 # Extract the definition of DEPDIR, am__include, and am__quote
21276 # from the Makefile without running `make'.
21277 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21278 test -z "$DEPDIR" && continue
21279 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21280 test -z "am__include" && continue
21281 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21282 # When using ansi2knr, U may be empty or an underscore; expand it
21283 U=`sed -n 's/^U = //p' < "$mf"`
21284 # Find all dependency output files, they are included files with
21285 # $(DEPDIR) in their names. We invoke sed twice because it is the
21286 # simplest approach to changing $(DEPDIR) to its actual value in the
21287 # expansion.
21288 for file in `sed -n "
21289 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21290 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21291 # Make sure the directory exists.
21292 test -f "$dirpart/$file" && continue
21293 fdir=`(dirname "$file") 2>/dev/null ||
21294 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21295 X"$file" : 'X\(//\)[^/]' \| \
21296 X"$file" : 'X\(//\)$' \| \
21297 X"$file" : 'X\(/\)' \| \
21298 . : '\(.\)' 2>/dev/null ||
21299 echo X"$file" |
21300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21301 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21302 /^X\(\/\/\)$/{ s//\1/; q; }
21303 /^X\(\/\).*/{ s//\1/; q; }
21304 s/.*/./; q'`
21305 { if $as_mkdir_p; then
21306 mkdir -p $dirpart/$fdir
21307 else
21308 as_dir=$dirpart/$fdir
21309 as_dirs=
21310 while test ! -d "$as_dir"; do
21311 as_dirs="$as_dir $as_dirs"
21312 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21314 X"$as_dir" : 'X\(//\)[^/]' \| \
21315 X"$as_dir" : 'X\(//\)$' \| \
21316 X"$as_dir" : 'X\(/\)' \| \
21317 . : '\(.\)' 2>/dev/null ||
21318 echo X"$as_dir" |
21319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21320 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21321 /^X\(\/\/\)$/{ s//\1/; q; }
21322 /^X\(\/\).*/{ s//\1/; q; }
21323 s/.*/./; q'`
21324 done
21325 test ! -n "$as_dirs" || mkdir $as_dirs
21326 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21327 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21328 { (exit 1); exit 1; }; }; }
21330 # echo "creating $dirpart/$file"
21331 echo '# dummy' > "$dirpart/$file"
21332 done
21333 done
21335 libtool )
21337 # See if we are running on zsh, and set the options which allow our
21338 # commands through without removal of \ escapes.
21339 if test -n "${ZSH_VERSION+set}" ; then
21340 setopt NO_GLOB_SUBST
21343 cfgfile="${ofile}T"
21344 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21345 $RM "$cfgfile"
21347 cat <<_LT_EOF >> "$cfgfile"
21348 #! $SHELL
21350 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21351 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
21352 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21353 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21355 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21356 # 2006, 2007 Free Software Foundation, Inc.
21358 # This file is part of GNU Libtool:
21359 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
21361 # This program is free software; you can redistribute it and/or modify
21362 # it under the terms of the GNU General Public License as published by
21363 # the Free Software Foundation; either version 2 of the License, or
21364 # (at your option) any later version.
21366 # This program is distributed in the hope that it will be useful, but
21367 # WITHOUT ANY WARRANTY; without even the implied warranty of
21368 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21369 # General Public License for more details.
21371 # You should have received a copy of the GNU General Public License
21372 # along with this program; if not, a copy can be downloaded from
21373 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
21374 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
21375 # MA 02110-1301, USA.
21377 # As a special exception to the GNU General Public License, if you
21378 # distribute this file as part of a program that contains a
21379 # configuration script generated by Autoconf, you may include it under
21380 # the same distribution terms that you use for the rest of that program.
21383 # The names of the tagged configurations supported by this script.
21384 available_tags="FC "
21386 # ### BEGIN LIBTOOL CONFIG
21388 # Which release of libtool.m4 was used?
21389 macro_version=$macro_version
21390 macro_revision=$macro_revision
21392 # Whether or not to build shared libraries.
21393 build_libtool_libs=$enable_shared
21395 # Whether or not to build static libraries.
21396 build_old_libs=$enable_static
21398 # What type of objects to build.
21399 pic_mode=$pic_mode
21401 # Whether or not to optimize for fast installation.
21402 fast_install=$enable_fast_install
21404 # The host system.
21405 host_alias=$host_alias
21406 host=$host
21407 host_os=$host_os
21409 # The build system.
21410 build_alias=$build_alias
21411 build=$build
21412 build_os=$build_os
21414 # A sed program that does not truncate output.
21415 SED=$lt_SED
21417 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21418 Xsed="\$SED -e 1s/^X//"
21420 # A grep program that handles long lines.
21421 GREP=$lt_GREP
21423 # An ERE matcher.
21424 EGREP=$lt_EGREP
21426 # A literal string matcher.
21427 FGREP=$lt_FGREP
21429 # A BSD- or MS-compatible name lister.
21430 NM=$lt_NM
21432 # Whether we need soft or hard links.
21433 LN_S=$lt_LN_S
21435 # What is the maximum length of a command?
21436 max_cmd_len=$max_cmd_len
21438 # Object file suffix (normally "o").
21439 objext=$ac_objext
21441 # Executable file suffix (normally "").
21442 exeext=$exeext
21444 # whether the shell understands "unset".
21445 lt_unset=$lt_unset
21447 # turn spaces into newlines.
21448 SP2NL=$lt_lt_SP2NL
21450 # turn newlines into spaces.
21451 NL2SP=$lt_lt_NL2SP
21453 # How to create reloadable object files.
21454 reload_flag=$lt_reload_flag
21455 reload_cmds=$lt_reload_cmds
21457 # Method to check whether dependent libraries are shared objects.
21458 deplibs_check_method=$lt_deplibs_check_method
21460 # Command to use when deplibs_check_method == "file_magic".
21461 file_magic_cmd=$lt_file_magic_cmd
21463 # The archiver.
21464 AR=$lt_AR
21465 AR_FLAGS=$lt_AR_FLAGS
21467 # A symbol stripping program.
21468 STRIP=$lt_STRIP
21470 # Commands used to install an old-style archive.
21471 RANLIB=$lt_RANLIB
21472 old_postinstall_cmds=$lt_old_postinstall_cmds
21473 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21475 # A C compiler.
21476 LTCC=$lt_CC
21478 # LTCC compiler flags.
21479 LTCFLAGS=$lt_CFLAGS
21481 # Take the output of nm and produce a listing of raw symbols and C names.
21482 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21484 # Transform the output of nm in a proper C declaration.
21485 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21487 # Transform the output of nm in a C name address pair.
21488 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21490 # The name of the directory that contains temporary libtool files.
21491 objdir=$objdir
21493 # Shell to use when invoking shell scripts.
21494 SHELL=$lt_SHELL
21496 # An echo program that does not interpret backslashes.
21497 ECHO=$lt_ECHO
21499 # Used to examine libraries when file_magic_cmd begins with "file".
21500 MAGIC_CMD=$MAGIC_CMD
21502 # Must we lock files when doing compilation?
21503 need_locks=$lt_need_locks
21505 # Old archive suffix (normally "a").
21506 libext=$libext
21508 # Shared library suffix (normally ".so").
21509 shrext_cmds=$lt_shrext_cmds
21511 # The commands to extract the exported symbol list from a shared archive.
21512 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21514 # Variables whose values should be saved in libtool wrapper scripts and
21515 # restored at link time.
21516 variables_saved_for_relink=$lt_variables_saved_for_relink
21518 # Do we need the "lib" prefix for modules?
21519 need_lib_prefix=$need_lib_prefix
21521 # Do we need a version for libraries?
21522 need_version=$need_version
21524 # Library versioning type.
21525 version_type=$version_type
21527 # Shared library runtime path variable.
21528 runpath_var=$runpath_var
21530 # Shared library path variable.
21531 shlibpath_var=$shlibpath_var
21533 # Is shlibpath searched before the hard-coded library search path?
21534 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21536 # Format of library name prefix.
21537 libname_spec=$lt_libname_spec
21539 # List of archive names. First name is the real one, the rest are links.
21540 # The last name is the one that the linker finds with -lNAME
21541 library_names_spec=$lt_library_names_spec
21543 # The coded name of the library, if different from the real name.
21544 soname_spec=$lt_soname_spec
21546 # Command to use after installation of a shared archive.
21547 postinstall_cmds=$lt_postinstall_cmds
21549 # Command to use after uninstallation of a shared archive.
21550 postuninstall_cmds=$lt_postuninstall_cmds
21552 # Commands used to finish a libtool library installation in a directory.
21553 finish_cmds=$lt_finish_cmds
21555 # As "finish_cmds", except a single script fragment to be evaled but
21556 # not shown.
21557 finish_eval=$lt_finish_eval
21559 # Whether we should hardcode library paths into libraries.
21560 hardcode_into_libs=$hardcode_into_libs
21562 # Compile-time system search path for libraries.
21563 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21565 # Run-time system search path for libraries.
21566 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21568 # Whether dlopen is supported.
21569 dlopen_support=$enable_dlopen
21571 # Whether dlopen of programs is supported.
21572 dlopen_self=$enable_dlopen_self
21574 # Whether dlopen of statically linked programs is supported.
21575 dlopen_self_static=$enable_dlopen_self_static
21577 # Commands to strip libraries.
21578 old_striplib=$lt_old_striplib
21579 striplib=$lt_striplib
21582 # The linker used to build libraries.
21583 LD=$lt_LD
21585 # Commands used to build an old-style archive.
21586 old_archive_cmds=$lt_old_archive_cmds
21588 # A language specific compiler.
21589 CC=$lt_compiler
21591 # Is the compiler the GNU compiler?
21592 with_gcc=$GCC
21594 # Compiler flag to turn off builtin functions.
21595 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21597 # How to pass a linker flag through the compiler.
21598 wl=$lt_lt_prog_compiler_wl
21600 # Additional compiler flags for building library objects.
21601 pic_flag=$lt_lt_prog_compiler_pic
21603 # Compiler flag to prevent dynamic linking.
21604 link_static_flag=$lt_lt_prog_compiler_static
21606 # Does compiler simultaneously support -c and -o options?
21607 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21609 # Whether or not to add -lc for building shared libraries.
21610 build_libtool_need_lc=$archive_cmds_need_lc
21612 # Whether or not to disallow shared libs when runtime libs are static.
21613 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21615 # Compiler flag to allow reflexive dlopens.
21616 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21618 # Compiler flag to generate shared objects directly from archives.
21619 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21621 # Whether the compiler copes with passing no objects directly.
21622 compiler_needs_object=$lt_compiler_needs_object
21624 # Create an old-style archive from a shared archive.
21625 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21627 # Create a temporary old-style archive to link instead of a shared archive.
21628 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21630 # Commands used to build a shared archive.
21631 archive_cmds=$lt_archive_cmds
21632 archive_expsym_cmds=$lt_archive_expsym_cmds
21634 # Commands used to build a loadable module if different from building
21635 # a shared archive.
21636 module_cmds=$lt_module_cmds
21637 module_expsym_cmds=$lt_module_expsym_cmds
21639 # Whether we are building with GNU ld or not.
21640 with_gnu_ld=$lt_with_gnu_ld
21642 # Flag that allows shared libraries with undefined symbols to be built.
21643 allow_undefined_flag=$lt_allow_undefined_flag
21645 # Flag that enforces no undefined symbols.
21646 no_undefined_flag=$lt_no_undefined_flag
21648 # Flag to hardcode \$libdir into a binary during linking.
21649 # This must work even if \$libdir does not exist
21650 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21652 # If ld is used when linking, flag to hardcode \$libdir into a binary
21653 # during linking. This must work even if \$libdir does not exist.
21654 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
21656 # Whether we need a single "-rpath" flag with a separated argument.
21657 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21659 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21660 # DIR into the resulting binary.
21661 hardcode_direct=$hardcode_direct
21663 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21664 # DIR into the resulting binary and the resulting library dependency is
21665 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21666 # library is relocated.
21667 hardcode_direct_absolute=$hardcode_direct_absolute
21669 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21670 # into the resulting binary.
21671 hardcode_minus_L=$hardcode_minus_L
21673 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21674 # into the resulting binary.
21675 hardcode_shlibpath_var=$hardcode_shlibpath_var
21677 # Set to "yes" if building a shared library automatically hardcodes DIR
21678 # into the library and all subsequent libraries and executables linked
21679 # against it.
21680 hardcode_automatic=$hardcode_automatic
21682 # Set to yes if linker adds runtime paths of dependent libraries
21683 # to runtime path list.
21684 inherit_rpath=$inherit_rpath
21686 # Whether libtool must link a program against all its dependency libraries.
21687 link_all_deplibs=$link_all_deplibs
21689 # Fix the shell variable \$srcfile for the compiler.
21690 fix_srcfile_path=$lt_fix_srcfile_path
21692 # Set to "yes" if exported symbols are required.
21693 always_export_symbols=$always_export_symbols
21695 # The commands to list exported symbols.
21696 export_symbols_cmds=$lt_export_symbols_cmds
21698 # Symbols that should not be listed in the preloaded symbols.
21699 exclude_expsyms=$lt_exclude_expsyms
21701 # Symbols that must always be exported.
21702 include_expsyms=$lt_include_expsyms
21704 # Commands necessary for linking programs (against libraries) with templates.
21705 prelink_cmds=$lt_prelink_cmds
21707 # Specify filename containing input files.
21708 file_list_spec=$lt_file_list_spec
21710 # How to hardcode a shared library path into an executable.
21711 hardcode_action=$hardcode_action
21713 # Dependencies to place before and after the objects being linked to
21714 # create a shared library.
21715 predep_objects=$lt_predep_objects
21716 postdep_objects=$lt_postdep_objects
21717 predeps=$lt_predeps
21718 postdeps=$lt_postdeps
21720 # The library search path used internally by the compiler when linking
21721 # a shared library.
21722 compiler_lib_search_path=$lt_compiler_lib_search_path
21724 # ### END LIBTOOL CONFIG
21726 _LT_EOF
21728 case $host_os in
21729 aix3*)
21730 cat <<\_LT_EOF >> "$cfgfile"
21731 # AIX sometimes has problems with the GCC collect2 program. For some
21732 # reason, if we set the COLLECT_NAMES environment variable, the problems
21733 # vanish in a puff of smoke.
21734 if test "X${COLLECT_NAMES+set}" != Xset; then
21735 COLLECT_NAMES=
21736 export COLLECT_NAMES
21738 _LT_EOF
21740 esac
21743 ltmain="$ac_aux_dir/ltmain.sh"
21746 # We use sed instead of cat because bash on DJGPP gets confused if
21747 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21748 # text mode, it properly converts lines to CR/LF. This bash problem
21749 # is reportedly fixed, but why not run on old versions too?
21750 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
21751 || (rm -f "$cfgfile"; exit 1)
21753 case $xsi_shell in
21754 yes)
21755 cat << \_LT_EOF >> "$cfgfile"
21756 # func_dirname file append nondir_replacement
21757 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
21758 # otherwise set result to NONDIR_REPLACEMENT.
21759 func_dirname ()
21761 case ${1} in
21762 */*) func_dirname_result="${1%/*}${2}" ;;
21763 * ) func_dirname_result="${3}" ;;
21764 esac
21767 # func_basename file
21768 func_basename ()
21770 func_basename_result="${1##*/}"
21773 # func_stripname prefix suffix name
21774 # strip PREFIX and SUFFIX off of NAME.
21775 # PREFIX and SUFFIX must not contain globbing or regex special
21776 # characters, hashes, percent signs, but SUFFIX may contain a leading
21777 # dot (in which case that matches only a dot).
21778 func_stripname ()
21780 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
21781 # positional parameters, so assign one to ordinary parameter first.
21782 func_stripname_result=${3}
21783 func_stripname_result=${func_stripname_result#"${1}"}
21784 func_stripname_result=${func_stripname_result%"${2}"}
21787 # func_opt_split
21788 func_opt_split ()
21790 func_opt_split_opt=${1%%=*}
21791 func_opt_split_arg=${1#*=}
21794 # func_lo2o object
21795 func_lo2o ()
21797 case ${1} in
21798 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
21799 *) func_lo2o_result=${1} ;;
21800 esac
21802 _LT_EOF
21804 *) # Bourne compatible functions.
21805 cat << \_LT_EOF >> "$cfgfile"
21806 # func_dirname file append nondir_replacement
21807 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
21808 # otherwise set result to NONDIR_REPLACEMENT.
21809 func_dirname ()
21811 # Extract subdirectory from the argument.
21812 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
21813 if test "X$func_dirname_result" = "X${1}"; then
21814 func_dirname_result="${3}"
21815 else
21816 func_dirname_result="$func_dirname_result${2}"
21820 # func_basename file
21821 func_basename ()
21823 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
21826 # func_stripname prefix suffix name
21827 # strip PREFIX and SUFFIX off of NAME.
21828 # PREFIX and SUFFIX must not contain globbing or regex special
21829 # characters, hashes, percent signs, but SUFFIX may contain a leading
21830 # dot (in which case that matches only a dot).
21831 # func_strip_suffix prefix name
21832 func_stripname ()
21834 case ${2} in
21835 .*) func_stripname_result=`$ECHO "X${3}" \
21836 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
21837 *) func_stripname_result=`$ECHO "X${3}" \
21838 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
21839 esac
21842 # sed scripts:
21843 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
21844 my_sed_long_arg='1s/^-[^=]*=//'
21846 # func_opt_split
21847 func_opt_split ()
21849 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
21850 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
21853 # func_lo2o object
21854 func_lo2o ()
21856 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
21858 _LT_EOF
21859 esac
21861 case $lt_shell_append in
21862 yes)
21863 cat << \_LT_EOF >> "$cfgfile"
21865 # func_append var value
21866 # Append VALUE to the end of shell variable VAR.
21867 func_append ()
21869 eval "$1+=\$2"
21871 _LT_EOF
21874 cat << \_LT_EOF >> "$cfgfile"
21876 # func_append var value
21877 # Append VALUE to the end of shell variable VAR.
21878 func_append ()
21880 eval "$1=\$$1\$2"
21882 _LT_EOF
21884 esac
21887 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
21888 || (rm -f "$cfgfile"; exit 1)
21890 mv -f "$cfgfile" "$ofile" ||
21891 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21892 chmod +x "$ofile"
21895 cat <<_LT_EOF >> "$ofile"
21897 # ### BEGIN LIBTOOL TAG CONFIG: FC
21899 # The linker used to build libraries.
21900 LD=$lt_LD_FC
21902 # Commands used to build an old-style archive.
21903 old_archive_cmds=$lt_old_archive_cmds_FC
21905 # A language specific compiler.
21906 CC=$lt_compiler_FC
21908 # Is the compiler the GNU compiler?
21909 with_gcc=$GCC_FC
21911 # Compiler flag to turn off builtin functions.
21912 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
21914 # How to pass a linker flag through the compiler.
21915 wl=$lt_lt_prog_compiler_wl_FC
21917 # Additional compiler flags for building library objects.
21918 pic_flag=$lt_lt_prog_compiler_pic_FC
21920 # Compiler flag to prevent dynamic linking.
21921 link_static_flag=$lt_lt_prog_compiler_static_FC
21923 # Does compiler simultaneously support -c and -o options?
21924 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
21926 # Whether or not to add -lc for building shared libraries.
21927 build_libtool_need_lc=$archive_cmds_need_lc_FC
21929 # Whether or not to disallow shared libs when runtime libs are static.
21930 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
21932 # Compiler flag to allow reflexive dlopens.
21933 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
21935 # Compiler flag to generate shared objects directly from archives.
21936 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
21938 # Whether the compiler copes with passing no objects directly.
21939 compiler_needs_object=$lt_compiler_needs_object_FC
21941 # Create an old-style archive from a shared archive.
21942 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
21944 # Create a temporary old-style archive to link instead of a shared archive.
21945 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
21947 # Commands used to build a shared archive.
21948 archive_cmds=$lt_archive_cmds_FC
21949 archive_expsym_cmds=$lt_archive_expsym_cmds_FC
21951 # Commands used to build a loadable module if different from building
21952 # a shared archive.
21953 module_cmds=$lt_module_cmds_FC
21954 module_expsym_cmds=$lt_module_expsym_cmds_FC
21956 # Whether we are building with GNU ld or not.
21957 with_gnu_ld=$lt_with_gnu_ld_FC
21959 # Flag that allows shared libraries with undefined symbols to be built.
21960 allow_undefined_flag=$lt_allow_undefined_flag_FC
21962 # Flag that enforces no undefined symbols.
21963 no_undefined_flag=$lt_no_undefined_flag_FC
21965 # Flag to hardcode \$libdir into a binary during linking.
21966 # This must work even if \$libdir does not exist
21967 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
21969 # If ld is used when linking, flag to hardcode \$libdir into a binary
21970 # during linking. This must work even if \$libdir does not exist.
21971 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
21973 # Whether we need a single "-rpath" flag with a separated argument.
21974 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
21976 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21977 # DIR into the resulting binary.
21978 hardcode_direct=$hardcode_direct_FC
21980 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21981 # DIR into the resulting binary and the resulting library dependency is
21982 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21983 # library is relocated.
21984 hardcode_direct_absolute=$hardcode_direct_absolute_FC
21986 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21987 # into the resulting binary.
21988 hardcode_minus_L=$hardcode_minus_L_FC
21990 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21991 # into the resulting binary.
21992 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
21994 # Set to "yes" if building a shared library automatically hardcodes DIR
21995 # into the library and all subsequent libraries and executables linked
21996 # against it.
21997 hardcode_automatic=$hardcode_automatic_FC
21999 # Set to yes if linker adds runtime paths of dependent libraries
22000 # to runtime path list.
22001 inherit_rpath=$inherit_rpath_FC
22003 # Whether libtool must link a program against all its dependency libraries.
22004 link_all_deplibs=$link_all_deplibs_FC
22006 # Fix the shell variable \$srcfile for the compiler.
22007 fix_srcfile_path=$lt_fix_srcfile_path_FC
22009 # Set to "yes" if exported symbols are required.
22010 always_export_symbols=$always_export_symbols_FC
22012 # The commands to list exported symbols.
22013 export_symbols_cmds=$lt_export_symbols_cmds_FC
22015 # Symbols that should not be listed in the preloaded symbols.
22016 exclude_expsyms=$lt_exclude_expsyms_FC
22018 # Symbols that must always be exported.
22019 include_expsyms=$lt_include_expsyms_FC
22021 # Commands necessary for linking programs (against libraries) with templates.
22022 prelink_cmds=$lt_prelink_cmds_FC
22024 # Specify filename containing input files.
22025 file_list_spec=$lt_file_list_spec_FC
22027 # How to hardcode a shared library path into an executable.
22028 hardcode_action=$hardcode_action_FC
22030 # Dependencies to place before and after the objects being linked to
22031 # create a shared library.
22032 predep_objects=$lt_predep_objects_FC
22033 postdep_objects=$lt_postdep_objects_FC
22034 predeps=$lt_predeps_FC
22035 postdeps=$lt_postdeps_FC
22037 # The library search path used internally by the compiler when linking
22038 # a shared library.
22039 compiler_lib_search_path=$lt_compiler_lib_search_path_FC
22041 # ### END LIBTOOL TAG CONFIG: FC
22042 _LT_EOF
22045 gstdint.h )
22046 if test "$GCC" = yes; then
22047 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
22048 else
22049 echo "/* generated for $CC */" > tmp-stdint.h
22052 sed 's/^ *//' >> tmp-stdint.h <<EOF
22054 #ifndef GCC_GENERATED_STDINT_H
22055 #define GCC_GENERATED_STDINT_H 1
22057 #include <sys/types.h>
22060 if test "$acx_cv_header_stdint" != stdint.h; then
22061 echo "#include <stddef.h>" >> tmp-stdint.h
22063 if test "$acx_cv_header_stdint" != stddef.h; then
22064 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
22067 sed 's/^ *//' >> tmp-stdint.h <<EOF
22068 /* glibc uses these symbols as guards to prevent redefinitions. */
22069 #ifdef __int8_t_defined
22070 #define _INT8_T
22071 #define _INT16_T
22072 #define _INT32_T
22073 #endif
22074 #ifdef __uint32_t_defined
22075 #define _UINT32_T
22076 #endif
22080 # ----------------- done header, emit basic int types -------------
22081 if test "$acx_cv_header_stdint" = stddef.h; then
22082 sed 's/^ *//' >> tmp-stdint.h <<EOF
22084 #ifndef _UINT8_T
22085 #define _UINT8_T
22086 #ifndef __uint8_t_defined
22087 #define __uint8_t_defined
22088 typedef unsigned $acx_cv_type_int8_t uint8_t;
22089 #endif
22090 #endif
22092 #ifndef _UINT16_T
22093 #define _UINT16_T
22094 #ifndef __uint16_t_defined
22095 #define __uint16_t_defined
22096 typedef unsigned $acx_cv_type_int16_t uint16_t;
22097 #endif
22098 #endif
22100 #ifndef _UINT32_T
22101 #define _UINT32_T
22102 #ifndef __uint32_t_defined
22103 #define __uint32_t_defined
22104 typedef unsigned $acx_cv_type_int32_t uint32_t;
22105 #endif
22106 #endif
22108 #ifndef _INT8_T
22109 #define _INT8_T
22110 #ifndef __int8_t_defined
22111 #define __int8_t_defined
22112 typedef $acx_cv_type_int8_t int8_t;
22113 #endif
22114 #endif
22116 #ifndef _INT16_T
22117 #define _INT16_T
22118 #ifndef __int16_t_defined
22119 #define __int16_t_defined
22120 typedef $acx_cv_type_int16_t int16_t;
22121 #endif
22122 #endif
22124 #ifndef _INT32_T
22125 #define _INT32_T
22126 #ifndef __int32_t_defined
22127 #define __int32_t_defined
22128 typedef $acx_cv_type_int32_t int32_t;
22129 #endif
22130 #endif
22132 elif test "$ac_cv_type_u_int32_t" = yes; then
22133 sed 's/^ *//' >> tmp-stdint.h <<EOF
22135 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
22136 #ifndef _INT8_T
22137 #define _INT8_T
22138 #endif
22139 #ifndef _INT16_T
22140 #define _INT16_T
22141 #endif
22142 #ifndef _INT32_T
22143 #define _INT32_T
22144 #endif
22146 #ifndef _UINT8_T
22147 #define _UINT8_T
22148 #ifndef __uint8_t_defined
22149 #define __uint8_t_defined
22150 typedef u_int8_t uint8_t;
22151 #endif
22152 #endif
22154 #ifndef _UINT16_T
22155 #define _UINT16_T
22156 #ifndef __uint16_t_defined
22157 #define __uint16_t_defined
22158 typedef u_int16_t uint16_t;
22159 #endif
22160 #endif
22162 #ifndef _UINT32_T
22163 #define _UINT32_T
22164 #ifndef __uint32_t_defined
22165 #define __uint32_t_defined
22166 typedef u_int32_t uint32_t;
22167 #endif
22168 #endif
22170 else
22171 sed 's/^ *//' >> tmp-stdint.h <<EOF
22173 /* Some systems have guard macros to prevent redefinitions, define them. */
22174 #ifndef _INT8_T
22175 #define _INT8_T
22176 #endif
22177 #ifndef _INT16_T
22178 #define _INT16_T
22179 #endif
22180 #ifndef _INT32_T
22181 #define _INT32_T
22182 #endif
22183 #ifndef _UINT8_T
22184 #define _UINT8_T
22185 #endif
22186 #ifndef _UINT16_T
22187 #define _UINT16_T
22188 #endif
22189 #ifndef _UINT32_T
22190 #define _UINT32_T
22191 #endif
22195 # ------------- done basic int types, emit int64_t types ------------
22196 if test "$ac_cv_type_uint64_t" = yes; then
22197 sed 's/^ *//' >> tmp-stdint.h <<EOF
22199 /* system headers have good uint64_t and int64_t */
22200 #ifndef _INT64_T
22201 #define _INT64_T
22202 #endif
22203 #ifndef _UINT64_T
22204 #define _UINT64_T
22205 #endif
22207 elif test "$ac_cv_type_u_int64_t" = yes; then
22208 sed 's/^ *//' >> tmp-stdint.h <<EOF
22210 /* system headers have an u_int64_t (and int64_t) */
22211 #ifndef _INT64_T
22212 #define _INT64_T
22213 #endif
22214 #ifndef _UINT64_T
22215 #define _UINT64_T
22216 #ifndef __uint64_t_defined
22217 #define __uint64_t_defined
22218 typedef u_int64_t uint64_t;
22219 #endif
22220 #endif
22222 elif test -n "$acx_cv_type_int64_t"; then
22223 sed 's/^ *//' >> tmp-stdint.h <<EOF
22225 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
22226 #ifndef _INT64_T
22227 #define _INT64_T
22228 typedef $acx_cv_type_int64_t int64_t;
22229 #endif
22230 #ifndef _UINT64_T
22231 #define _UINT64_T
22232 #ifndef __uint64_t_defined
22233 #define __uint64_t_defined
22234 typedef unsigned $acx_cv_type_int64_t uint64_t;
22235 #endif
22236 #endif
22238 else
22239 sed 's/^ *//' >> tmp-stdint.h <<EOF
22241 /* some common heuristics for int64_t, using compiler-specific tests */
22242 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
22243 #ifndef _INT64_T
22244 #define _INT64_T
22245 #ifndef __int64_t_defined
22246 typedef long long int64_t;
22247 #endif
22248 #endif
22249 #ifndef _UINT64_T
22250 #define _UINT64_T
22251 typedef unsigned long long uint64_t;
22252 #endif
22254 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
22255 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
22256 does not implement __extension__. But that compiler doesn't define
22257 __GNUC_MINOR__. */
22258 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
22259 # define __extension__
22260 # endif
22262 # ifndef _INT64_T
22263 # define _INT64_T
22264 __extension__ typedef long long int64_t;
22265 # endif
22266 # ifndef _UINT64_T
22267 # define _UINT64_T
22268 __extension__ typedef unsigned long long uint64_t;
22269 # endif
22271 #elif !defined __STRICT_ANSI__
22272 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
22274 # ifndef _INT64_T
22275 # define _INT64_T
22276 typedef __int64 int64_t;
22277 # endif
22278 # ifndef _UINT64_T
22279 # define _UINT64_T
22280 typedef unsigned __int64 uint64_t;
22281 # endif
22282 # endif /* compiler */
22284 #endif /* ANSI version */
22288 # ------------- done int64_t types, emit intptr types ------------
22289 if test "$ac_cv_type_uintptr_t" != yes; then
22290 sed 's/^ *//' >> tmp-stdint.h <<EOF
22292 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
22293 #ifndef __uintptr_t_defined
22294 typedef u$acx_cv_type_intptr_t uintptr_t;
22295 #endif
22296 #ifndef __intptr_t_defined
22297 typedef $acx_cv_type_intptr_t intptr_t;
22298 #endif
22302 # ------------- done intptr types, emit int_least types ------------
22303 if test "$ac_cv_type_int_least32_t" != yes; then
22304 sed 's/^ *//' >> tmp-stdint.h <<EOF
22306 /* Define int_least types */
22307 typedef int8_t int_least8_t;
22308 typedef int16_t int_least16_t;
22309 typedef int32_t int_least32_t;
22310 #ifdef _INT64_T
22311 typedef int64_t int_least64_t;
22312 #endif
22314 typedef uint8_t uint_least8_t;
22315 typedef uint16_t uint_least16_t;
22316 typedef uint32_t uint_least32_t;
22317 #ifdef _UINT64_T
22318 typedef uint64_t uint_least64_t;
22319 #endif
22323 # ------------- done intptr types, emit int_fast types ------------
22324 if test "$ac_cv_type_int_fast32_t" != yes; then
22325 sed 's/^ *//' >> tmp-stdint.h <<EOF
22327 /* Define int_fast types. short is often slow */
22328 typedef int8_t int_fast8_t;
22329 typedef int int_fast16_t;
22330 typedef int32_t int_fast32_t;
22331 #ifdef _INT64_T
22332 typedef int64_t int_fast64_t;
22333 #endif
22335 typedef uint8_t uint_fast8_t;
22336 typedef unsigned int uint_fast16_t;
22337 typedef uint32_t uint_fast32_t;
22338 #ifdef _UINT64_T
22339 typedef uint64_t uint_fast64_t;
22340 #endif
22344 if test "$ac_cv_type_uintmax_t" != yes; then
22345 sed 's/^ *//' >> tmp-stdint.h <<EOF
22347 /* Define intmax based on what we found */
22348 #ifdef _INT64_T
22349 typedef int64_t intmax_t;
22350 #else
22351 typedef long intmax_t;
22352 #endif
22353 #ifdef _UINT64_T
22354 typedef uint64_t uintmax_t;
22355 #else
22356 typedef unsigned long uintmax_t;
22357 #endif
22361 sed 's/^ *//' >> tmp-stdint.h <<EOF
22363 #endif /* GCC_GENERATED_STDINT_H */
22366 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
22367 rm -f tmp-stdint.h
22368 else
22369 mv -f tmp-stdint.h gstdint.h
22373 esac
22374 done
22375 _ACEOF
22377 cat >>$CONFIG_STATUS <<\_ACEOF
22379 { (exit 0); exit 0; }
22380 _ACEOF
22381 chmod +x $CONFIG_STATUS
22382 ac_clean_files=$ac_clean_files_save
22385 # configure is writing to config.log, and then calls config.status.
22386 # config.status does its own redirection, appending to config.log.
22387 # Unfortunately, on DOS this fails, as config.log is still kept open
22388 # by configure, so config.status won't be able to write to it; its
22389 # output is simply discarded. So we exec the FD to /dev/null,
22390 # effectively closing config.log, so it can be properly (re)opened and
22391 # appended to by config.status. When coming back to configure, we
22392 # need to make the FD available again.
22393 if test "$no_create" != yes; then
22394 ac_cs_success=:
22395 ac_config_status_args=
22396 test "$silent" = yes &&
22397 ac_config_status_args="$ac_config_status_args --quiet"
22398 exec 5>/dev/null
22399 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22400 exec 5>>config.log
22401 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22402 # would make configure fail if this is the last instruction.
22403 $ac_cs_success || { (exit 1); exit 1; }