2008-12-14 Paul Thomas <pault@gcc.gnu.org>
[official-gcc.git] / libgomp / configure
blobe5b6275633e48533abc0db5dede4b198d907e320
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 OBJDUMP ac_ct_OBJDUMP lt_ECHO DSYMUTIL ac_ct_DSYMUTIL NMEDIT ac_ct_NMEDIT LIPO ac_ct_LIPO OTOOL ac_ct_OTOOL OTOOL64 ac_ct_OTOOL64 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 OMP_LOCK_25_SIZE OMP_LOCK_25_ALIGN OMP_NEST_LOCK_25_SIZE OMP_NEST_LOCK_25_ALIGN OMP_LOCK_25_KIND OMP_NEST_LOCK_25_KIND LIBOBJS LTLIBOBJS'
461 ac_subst_files=''
462 ac_pwd=`pwd`
464 # Initialize some variables set by options.
465 ac_init_help=
466 ac_init_version=false
467 # The variables have the same names as the options, with
468 # dashes changed to underlines.
469 cache_file=/dev/null
470 exec_prefix=NONE
471 no_create=
472 no_recursion=
473 prefix=NONE
474 program_prefix=NONE
475 program_suffix=NONE
476 program_transform_name=s,x,x,
477 silent=
478 site=
479 srcdir=
480 verbose=
481 x_includes=NONE
482 x_libraries=NONE
484 # Installation directory options.
485 # These are left unexpanded so users can "make install exec_prefix=/foo"
486 # and all the variables that are supposed to be based on exec_prefix
487 # by default will actually change.
488 # Use braces instead of parens because sh, perl, etc. also accept them.
489 bindir='${exec_prefix}/bin'
490 sbindir='${exec_prefix}/sbin'
491 libexecdir='${exec_prefix}/libexec'
492 datadir='${prefix}/share'
493 sysconfdir='${prefix}/etc'
494 sharedstatedir='${prefix}/com'
495 localstatedir='${prefix}/var'
496 libdir='${exec_prefix}/lib'
497 includedir='${prefix}/include'
498 oldincludedir='/usr/include'
499 infodir='${prefix}/info'
500 mandir='${prefix}/man'
502 ac_prev=
503 for ac_option
505 # If the previous option needs an argument, assign it.
506 if test -n "$ac_prev"; then
507 eval "$ac_prev=\$ac_option"
508 ac_prev=
509 continue
512 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
514 # Accept the important Cygnus configure options, so we can diagnose typos.
516 case $ac_option in
518 -bindir | --bindir | --bindi | --bind | --bin | --bi)
519 ac_prev=bindir ;;
520 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
521 bindir=$ac_optarg ;;
523 -build | --build | --buil | --bui | --bu)
524 ac_prev=build_alias ;;
525 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
526 build_alias=$ac_optarg ;;
528 -cache-file | --cache-file | --cache-fil | --cache-fi \
529 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
530 ac_prev=cache_file ;;
531 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
532 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
533 cache_file=$ac_optarg ;;
535 --config-cache | -C)
536 cache_file=config.cache ;;
538 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
539 ac_prev=datadir ;;
540 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
541 | --da=*)
542 datadir=$ac_optarg ;;
544 -disable-* | --disable-*)
545 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
546 # Reject names that are not valid shell variable names.
547 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
548 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
549 { (exit 1); exit 1; }; }
550 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
551 eval "enable_$ac_feature=no" ;;
553 -enable-* | --enable-*)
554 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
555 # Reject names that are not valid shell variable names.
556 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558 { (exit 1); exit 1; }; }
559 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560 case $ac_option in
561 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
562 *) ac_optarg=yes ;;
563 esac
564 eval "enable_$ac_feature='$ac_optarg'" ;;
566 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
567 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
568 | --exec | --exe | --ex)
569 ac_prev=exec_prefix ;;
570 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
571 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
572 | --exec=* | --exe=* | --ex=*)
573 exec_prefix=$ac_optarg ;;
575 -gas | --gas | --ga | --g)
576 # Obsolete; use --with-gas.
577 with_gas=yes ;;
579 -help | --help | --hel | --he | -h)
580 ac_init_help=long ;;
581 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
582 ac_init_help=recursive ;;
583 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
584 ac_init_help=short ;;
586 -host | --host | --hos | --ho)
587 ac_prev=host_alias ;;
588 -host=* | --host=* | --hos=* | --ho=*)
589 host_alias=$ac_optarg ;;
591 -includedir | --includedir | --includedi | --included | --include \
592 | --includ | --inclu | --incl | --inc)
593 ac_prev=includedir ;;
594 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
595 | --includ=* | --inclu=* | --incl=* | --inc=*)
596 includedir=$ac_optarg ;;
598 -infodir | --infodir | --infodi | --infod | --info | --inf)
599 ac_prev=infodir ;;
600 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
601 infodir=$ac_optarg ;;
603 -libdir | --libdir | --libdi | --libd)
604 ac_prev=libdir ;;
605 -libdir=* | --libdir=* | --libdi=* | --libd=*)
606 libdir=$ac_optarg ;;
608 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
609 | --libexe | --libex | --libe)
610 ac_prev=libexecdir ;;
611 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
612 | --libexe=* | --libex=* | --libe=*)
613 libexecdir=$ac_optarg ;;
615 -localstatedir | --localstatedir | --localstatedi | --localstated \
616 | --localstate | --localstat | --localsta | --localst \
617 | --locals | --local | --loca | --loc | --lo)
618 ac_prev=localstatedir ;;
619 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
620 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
621 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
622 localstatedir=$ac_optarg ;;
624 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
625 ac_prev=mandir ;;
626 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
627 mandir=$ac_optarg ;;
629 -nfp | --nfp | --nf)
630 # Obsolete; use --without-fp.
631 with_fp=no ;;
633 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
634 | --no-cr | --no-c | -n)
635 no_create=yes ;;
637 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
638 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
639 no_recursion=yes ;;
641 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
642 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
643 | --oldin | --oldi | --old | --ol | --o)
644 ac_prev=oldincludedir ;;
645 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
646 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
647 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
648 oldincludedir=$ac_optarg ;;
650 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
651 ac_prev=prefix ;;
652 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
653 prefix=$ac_optarg ;;
655 -program-prefix | --program-prefix | --program-prefi | --program-pref \
656 | --program-pre | --program-pr | --program-p)
657 ac_prev=program_prefix ;;
658 -program-prefix=* | --program-prefix=* | --program-prefi=* \
659 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
660 program_prefix=$ac_optarg ;;
662 -program-suffix | --program-suffix | --program-suffi | --program-suff \
663 | --program-suf | --program-su | --program-s)
664 ac_prev=program_suffix ;;
665 -program-suffix=* | --program-suffix=* | --program-suffi=* \
666 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
667 program_suffix=$ac_optarg ;;
669 -program-transform-name | --program-transform-name \
670 | --program-transform-nam | --program-transform-na \
671 | --program-transform-n | --program-transform- \
672 | --program-transform | --program-transfor \
673 | --program-transfo | --program-transf \
674 | --program-trans | --program-tran \
675 | --progr-tra | --program-tr | --program-t)
676 ac_prev=program_transform_name ;;
677 -program-transform-name=* | --program-transform-name=* \
678 | --program-transform-nam=* | --program-transform-na=* \
679 | --program-transform-n=* | --program-transform-=* \
680 | --program-transform=* | --program-transfor=* \
681 | --program-transfo=* | --program-transf=* \
682 | --program-trans=* | --program-tran=* \
683 | --progr-tra=* | --program-tr=* | --program-t=*)
684 program_transform_name=$ac_optarg ;;
686 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
687 | -silent | --silent | --silen | --sile | --sil)
688 silent=yes ;;
690 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
691 ac_prev=sbindir ;;
692 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
693 | --sbi=* | --sb=*)
694 sbindir=$ac_optarg ;;
696 -sharedstatedir | --sharedstatedir | --sharedstatedi \
697 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
698 | --sharedst | --shareds | --shared | --share | --shar \
699 | --sha | --sh)
700 ac_prev=sharedstatedir ;;
701 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
702 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
703 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
704 | --sha=* | --sh=*)
705 sharedstatedir=$ac_optarg ;;
707 -site | --site | --sit)
708 ac_prev=site ;;
709 -site=* | --site=* | --sit=*)
710 site=$ac_optarg ;;
712 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
713 ac_prev=srcdir ;;
714 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
715 srcdir=$ac_optarg ;;
717 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
718 | --syscon | --sysco | --sysc | --sys | --sy)
719 ac_prev=sysconfdir ;;
720 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
721 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
722 sysconfdir=$ac_optarg ;;
724 -target | --target | --targe | --targ | --tar | --ta | --t)
725 ac_prev=target_alias ;;
726 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
727 target_alias=$ac_optarg ;;
729 -v | -verbose | --verbose | --verbos | --verbo | --verb)
730 verbose=yes ;;
732 -version | --version | --versio | --versi | --vers | -V)
733 ac_init_version=: ;;
735 -with-* | --with-*)
736 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
737 # Reject names that are not valid shell variable names.
738 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
739 { echo "$as_me: error: invalid package name: $ac_package" >&2
740 { (exit 1); exit 1; }; }
741 ac_package=`echo $ac_package| sed 's/-/_/g'`
742 case $ac_option in
743 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
744 *) ac_optarg=yes ;;
745 esac
746 eval "with_$ac_package='$ac_optarg'" ;;
748 -without-* | --without-*)
749 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
750 # Reject names that are not valid shell variable names.
751 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
752 { echo "$as_me: error: invalid package name: $ac_package" >&2
753 { (exit 1); exit 1; }; }
754 ac_package=`echo $ac_package | sed 's/-/_/g'`
755 eval "with_$ac_package=no" ;;
757 --x)
758 # Obsolete; use --with-x.
759 with_x=yes ;;
761 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
762 | --x-incl | --x-inc | --x-in | --x-i)
763 ac_prev=x_includes ;;
764 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
765 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
766 x_includes=$ac_optarg ;;
768 -x-libraries | --x-libraries | --x-librarie | --x-librari \
769 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
770 ac_prev=x_libraries ;;
771 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
772 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
773 x_libraries=$ac_optarg ;;
775 -*) { echo "$as_me: error: unrecognized option: $ac_option
776 Try \`$0 --help' for more information." >&2
777 { (exit 1); exit 1; }; }
780 *=*)
781 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
782 # Reject names that are not valid shell variable names.
783 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
784 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
785 { (exit 1); exit 1; }; }
786 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
787 eval "$ac_envvar='$ac_optarg'"
788 export $ac_envvar ;;
791 # FIXME: should be removed in autoconf 3.0.
792 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
793 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
794 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
795 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
798 esac
799 done
801 if test -n "$ac_prev"; then
802 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
803 { echo "$as_me: error: missing argument to $ac_option" >&2
804 { (exit 1); exit 1; }; }
807 # Be sure to have absolute paths.
808 for ac_var in exec_prefix prefix
810 eval ac_val=$`echo $ac_var`
811 case $ac_val in
812 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
813 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
814 { (exit 1); exit 1; }; };;
815 esac
816 done
818 # Be sure to have absolute paths.
819 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
820 localstatedir libdir includedir oldincludedir infodir mandir
822 eval ac_val=$`echo $ac_var`
823 case $ac_val in
824 [\\/$]* | ?:[\\/]* ) ;;
825 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
826 { (exit 1); exit 1; }; };;
827 esac
828 done
830 # There might be people who depend on the old broken behavior: `$host'
831 # used to hold the argument of --host etc.
832 # FIXME: To remove some day.
833 build=$build_alias
834 host=$host_alias
835 target=$target_alias
837 # FIXME: To remove some day.
838 if test "x$host_alias" != x; then
839 if test "x$build_alias" = x; then
840 cross_compiling=maybe
841 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
842 If a cross compiler is detected then cross compile mode will be used." >&2
843 elif test "x$build_alias" != "x$host_alias"; then
844 cross_compiling=yes
848 ac_tool_prefix=
849 test -n "$host_alias" && ac_tool_prefix=$host_alias-
851 test "$silent" = yes && exec 6>/dev/null
854 # Find the source files, if location was not specified.
855 if test -z "$srcdir"; then
856 ac_srcdir_defaulted=yes
857 # Try the directory containing this script, then its parent.
858 ac_confdir=`(dirname "$0") 2>/dev/null ||
859 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
860 X"$0" : 'X\(//\)[^/]' \| \
861 X"$0" : 'X\(//\)$' \| \
862 X"$0" : 'X\(/\)' \| \
863 . : '\(.\)' 2>/dev/null ||
864 echo X"$0" |
865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
866 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
867 /^X\(\/\/\)$/{ s//\1/; q; }
868 /^X\(\/\).*/{ s//\1/; q; }
869 s/.*/./; q'`
870 srcdir=$ac_confdir
871 if test ! -r $srcdir/$ac_unique_file; then
872 srcdir=..
874 else
875 ac_srcdir_defaulted=no
877 if test ! -r $srcdir/$ac_unique_file; then
878 if test "$ac_srcdir_defaulted" = yes; then
879 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
880 { (exit 1); exit 1; }; }
881 else
882 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
883 { (exit 1); exit 1; }; }
886 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
887 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
888 { (exit 1); exit 1; }; }
889 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
890 ac_env_build_alias_set=${build_alias+set}
891 ac_env_build_alias_value=$build_alias
892 ac_cv_env_build_alias_set=${build_alias+set}
893 ac_cv_env_build_alias_value=$build_alias
894 ac_env_host_alias_set=${host_alias+set}
895 ac_env_host_alias_value=$host_alias
896 ac_cv_env_host_alias_set=${host_alias+set}
897 ac_cv_env_host_alias_value=$host_alias
898 ac_env_target_alias_set=${target_alias+set}
899 ac_env_target_alias_value=$target_alias
900 ac_cv_env_target_alias_set=${target_alias+set}
901 ac_cv_env_target_alias_value=$target_alias
902 ac_env_CPP_set=${CPP+set}
903 ac_env_CPP_value=$CPP
904 ac_cv_env_CPP_set=${CPP+set}
905 ac_cv_env_CPP_value=$CPP
906 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
907 ac_env_CPPFLAGS_value=$CPPFLAGS
908 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
909 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
910 ac_env_FC_set=${FC+set}
911 ac_env_FC_value=$FC
912 ac_cv_env_FC_set=${FC+set}
913 ac_cv_env_FC_value=$FC
914 ac_env_FCFLAGS_set=${FCFLAGS+set}
915 ac_env_FCFLAGS_value=$FCFLAGS
916 ac_cv_env_FCFLAGS_set=${FCFLAGS+set}
917 ac_cv_env_FCFLAGS_value=$FCFLAGS
918 ac_env_LDFLAGS_set=${LDFLAGS+set}
919 ac_env_LDFLAGS_value=$LDFLAGS
920 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
921 ac_cv_env_LDFLAGS_value=$LDFLAGS
924 # Report the --help message.
926 if test "$ac_init_help" = "long"; then
927 # Omit some internal or obsolete options to make the list less imposing.
928 # This message is too long to be a string in the A/UX 3.1 sh.
929 cat <<_ACEOF
930 \`configure' configures GNU OpenMP Runtime Library 1.0 to adapt to many kinds of systems.
932 Usage: $0 [OPTION]... [VAR=VALUE]...
934 To assign environment variables (e.g., CC, CFLAGS...), specify them as
935 VAR=VALUE. See below for descriptions of some of the useful variables.
937 Defaults for the options are specified in brackets.
939 Configuration:
940 -h, --help display this help and exit
941 --help=short display options specific to this package
942 --help=recursive display the short help of all the included packages
943 -V, --version display version information and exit
944 -q, --quiet, --silent do not print \`checking...' messages
945 --cache-file=FILE cache test results in FILE [disabled]
946 -C, --config-cache alias for \`--cache-file=config.cache'
947 -n, --no-create do not create output files
948 --srcdir=DIR find the sources in DIR [configure dir or \`..']
950 _ACEOF
952 cat <<_ACEOF
953 Installation directories:
954 --prefix=PREFIX install architecture-independent files in PREFIX
955 [$ac_default_prefix]
956 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
957 [PREFIX]
959 By default, \`make install' will install all the files in
960 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
961 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
962 for instance \`--prefix=\$HOME'.
964 For better control, use the options below.
966 Fine tuning of the installation directories:
967 --bindir=DIR user executables [EPREFIX/bin]
968 --sbindir=DIR system admin executables [EPREFIX/sbin]
969 --libexecdir=DIR program executables [EPREFIX/libexec]
970 --datadir=DIR read-only architecture-independent data [PREFIX/share]
971 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
972 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
973 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
974 --libdir=DIR object code libraries [EPREFIX/lib]
975 --includedir=DIR C header files [PREFIX/include]
976 --oldincludedir=DIR C header files for non-gcc [/usr/include]
977 --infodir=DIR info documentation [PREFIX/info]
978 --mandir=DIR man documentation [PREFIX/man]
979 _ACEOF
981 cat <<\_ACEOF
983 Program names:
984 --program-prefix=PREFIX prepend PREFIX to installed program names
985 --program-suffix=SUFFIX append SUFFIX to installed program names
986 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
988 System types:
989 --build=BUILD configure for building on BUILD [guessed]
990 --host=HOST cross-compile to build programs to run on HOST [BUILD]
991 --target=TARGET configure for building compilers for TARGET [HOST]
992 _ACEOF
995 if test -n "$ac_init_help"; then
996 case $ac_init_help in
997 short | recursive ) echo "Configuration of GNU OpenMP Runtime Library 1.0:";;
998 esac
999 cat <<\_ACEOF
1001 Optional Features:
1002 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1003 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1004 --enable-version-specific-runtime-libs
1005 Specify that runtime libraries should be installed
1006 in a compiler-specific directory [default=no]
1007 --enable-generated-files-in-srcdir
1008 put copies of generated files in source dir intended
1009 for creating source tarballs for users without
1010 texinfo bison or flex. [default=no]
1011 --enable-multilib build many library versions (default)
1012 --disable-dependency-tracking speeds up one-time build
1013 --enable-dependency-tracking do not reject slow dependency extractors
1014 --enable-shared[=PKGS]
1015 build shared libraries [default=yes]
1016 --enable-static[=PKGS]
1017 build static libraries [default=yes]
1018 --enable-fast-install[=PKGS]
1019 optimize for fast installation [default=yes]
1020 --disable-libtool-lock avoid locking (might break parallel builds)
1021 --enable-maintainer-mode enable make rules and dependencies not useful
1022 (and sometimes confusing) to the casual installer
1023 --enable-linux-futex use the Linux futex system call
1024 [default=default]
1025 --enable-tls Use thread-local storage [default=yes]
1026 --enable-symvers=STYLE enables symbol versioning of the shared library
1027 [default=yes]
1029 Optional Packages:
1030 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1031 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1032 --with-pic try to use only PIC/non-PIC objects [default=use
1033 both]
1034 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1036 Some influential environment variables:
1037 CC C compiler command
1038 CFLAGS C compiler flags
1039 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1040 nonstandard directory <lib dir>
1041 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1042 headers in a nonstandard directory <include dir>
1043 CPP C preprocessor
1044 FC Fortran compiler command
1045 FCFLAGS Fortran compiler flags
1047 Use these variables to override the choices made by `configure' or to help
1048 it to find libraries and programs with nonstandard names/locations.
1050 _ACEOF
1053 if test "$ac_init_help" = "recursive"; then
1054 # If there are subdirs, report their specific --help.
1055 ac_popdir=`pwd`
1056 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1057 test -d $ac_dir || continue
1058 ac_builddir=.
1060 if test "$ac_dir" != .; then
1061 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1062 # A "../" for each directory in $ac_dir_suffix.
1063 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1064 else
1065 ac_dir_suffix= ac_top_builddir=
1068 case $srcdir in
1069 .) # No --srcdir option. We are building in place.
1070 ac_srcdir=.
1071 if test -z "$ac_top_builddir"; then
1072 ac_top_srcdir=.
1073 else
1074 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1075 fi ;;
1076 [\\/]* | ?:[\\/]* ) # Absolute path.
1077 ac_srcdir=$srcdir$ac_dir_suffix;
1078 ac_top_srcdir=$srcdir ;;
1079 *) # Relative path.
1080 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1081 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1082 esac
1084 # Do not use `cd foo && pwd` to compute absolute paths, because
1085 # the directories may not exist.
1086 case `pwd` in
1087 .) ac_abs_builddir="$ac_dir";;
1089 case "$ac_dir" in
1090 .) ac_abs_builddir=`pwd`;;
1091 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1092 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1093 esac;;
1094 esac
1095 case $ac_abs_builddir in
1096 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1098 case ${ac_top_builddir}. in
1099 .) ac_abs_top_builddir=$ac_abs_builddir;;
1100 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1101 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1102 esac;;
1103 esac
1104 case $ac_abs_builddir in
1105 .) ac_abs_srcdir=$ac_srcdir;;
1107 case $ac_srcdir in
1108 .) ac_abs_srcdir=$ac_abs_builddir;;
1109 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1110 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1111 esac;;
1112 esac
1113 case $ac_abs_builddir in
1114 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1116 case $ac_top_srcdir in
1117 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1118 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1119 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1120 esac;;
1121 esac
1123 cd $ac_dir
1124 # Check for guested configure; otherwise get Cygnus style configure.
1125 if test -f $ac_srcdir/configure.gnu; then
1126 echo
1127 $SHELL $ac_srcdir/configure.gnu --help=recursive
1128 elif test -f $ac_srcdir/configure; then
1129 echo
1130 $SHELL $ac_srcdir/configure --help=recursive
1131 elif test -f $ac_srcdir/configure.ac ||
1132 test -f $ac_srcdir/configure.in; then
1133 echo
1134 $ac_configure --help
1135 else
1136 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1138 cd $ac_popdir
1139 done
1142 test -n "$ac_init_help" && exit 0
1143 if $ac_init_version; then
1144 cat <<\_ACEOF
1145 GNU OpenMP Runtime Library configure 1.0
1146 generated by GNU Autoconf 2.59
1148 Copyright (C) 2003 Free Software Foundation, Inc.
1149 This configure script is free software; the Free Software Foundation
1150 gives unlimited permission to copy, distribute and modify it.
1151 _ACEOF
1152 exit 0
1154 exec 5>config.log
1155 cat >&5 <<_ACEOF
1156 This file contains any messages produced by compilers while
1157 running configure, to aid debugging if configure makes a mistake.
1159 It was created by GNU OpenMP Runtime Library $as_me 1.0, which was
1160 generated by GNU Autoconf 2.59. Invocation command line was
1162 $ $0 $@
1164 _ACEOF
1166 cat <<_ASUNAME
1167 ## --------- ##
1168 ## Platform. ##
1169 ## --------- ##
1171 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1172 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1173 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1174 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1175 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1177 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1178 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1180 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1181 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1182 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1183 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1184 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1185 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1186 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1188 _ASUNAME
1190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1191 for as_dir in $PATH
1193 IFS=$as_save_IFS
1194 test -z "$as_dir" && as_dir=.
1195 echo "PATH: $as_dir"
1196 done
1198 } >&5
1200 cat >&5 <<_ACEOF
1203 ## ----------- ##
1204 ## Core tests. ##
1205 ## ----------- ##
1207 _ACEOF
1210 # Keep a trace of the command line.
1211 # Strip out --no-create and --no-recursion so they do not pile up.
1212 # Strip out --silent because we don't want to record it for future runs.
1213 # Also quote any args containing shell meta-characters.
1214 # Make two passes to allow for proper duplicate-argument suppression.
1215 ac_configure_args=
1216 ac_configure_args0=
1217 ac_configure_args1=
1218 ac_sep=
1219 ac_must_keep_next=false
1220 for ac_pass in 1 2
1222 for ac_arg
1224 case $ac_arg in
1225 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1226 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1227 | -silent | --silent | --silen | --sile | --sil)
1228 continue ;;
1229 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1230 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1231 esac
1232 case $ac_pass in
1233 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1235 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1236 if test $ac_must_keep_next = true; then
1237 ac_must_keep_next=false # Got value, back to normal.
1238 else
1239 case $ac_arg in
1240 *=* | --config-cache | -C | -disable-* | --disable-* \
1241 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1242 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1243 | -with-* | --with-* | -without-* | --without-* | --x)
1244 case "$ac_configure_args0 " in
1245 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1246 esac
1248 -* ) ac_must_keep_next=true ;;
1249 esac
1251 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1252 # Get rid of the leading space.
1253 ac_sep=" "
1255 esac
1256 done
1257 done
1258 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1259 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1261 # When interrupted or exit'd, cleanup temporary files, and complete
1262 # config.log. We remove comments because anyway the quotes in there
1263 # would cause problems or look ugly.
1264 # WARNING: Be sure not to use single quotes in there, as some shells,
1265 # such as our DU 5.0 friend, will then `close' the trap.
1266 trap 'exit_status=$?
1267 # Save into config.log some information that might help in debugging.
1269 echo
1271 cat <<\_ASBOX
1272 ## ---------------- ##
1273 ## Cache variables. ##
1274 ## ---------------- ##
1275 _ASBOX
1276 echo
1277 # The following way of writing the cache mishandles newlines in values,
1279 (set) 2>&1 |
1280 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1281 *ac_space=\ *)
1282 sed -n \
1283 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1284 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1287 sed -n \
1288 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1290 esac;
1292 echo
1294 cat <<\_ASBOX
1295 ## ----------------- ##
1296 ## Output variables. ##
1297 ## ----------------- ##
1298 _ASBOX
1299 echo
1300 for ac_var in $ac_subst_vars
1302 eval ac_val=$`echo $ac_var`
1303 echo "$ac_var='"'"'$ac_val'"'"'"
1304 done | sort
1305 echo
1307 if test -n "$ac_subst_files"; then
1308 cat <<\_ASBOX
1309 ## ------------- ##
1310 ## Output files. ##
1311 ## ------------- ##
1312 _ASBOX
1313 echo
1314 for ac_var in $ac_subst_files
1316 eval ac_val=$`echo $ac_var`
1317 echo "$ac_var='"'"'$ac_val'"'"'"
1318 done | sort
1319 echo
1322 if test -s confdefs.h; then
1323 cat <<\_ASBOX
1324 ## ----------- ##
1325 ## confdefs.h. ##
1326 ## ----------- ##
1327 _ASBOX
1328 echo
1329 sed "/^$/d" confdefs.h | sort
1330 echo
1332 test "$ac_signal" != 0 &&
1333 echo "$as_me: caught signal $ac_signal"
1334 echo "$as_me: exit $exit_status"
1335 } >&5
1336 rm -f core *.core &&
1337 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1338 exit $exit_status
1340 for ac_signal in 1 2 13 15; do
1341 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1342 done
1343 ac_signal=0
1345 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1346 rm -rf conftest* confdefs.h
1347 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1348 echo >confdefs.h
1350 # Predefined preprocessor variables.
1352 cat >>confdefs.h <<_ACEOF
1353 #define PACKAGE_NAME "$PACKAGE_NAME"
1354 _ACEOF
1357 cat >>confdefs.h <<_ACEOF
1358 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1359 _ACEOF
1362 cat >>confdefs.h <<_ACEOF
1363 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1364 _ACEOF
1367 cat >>confdefs.h <<_ACEOF
1368 #define PACKAGE_STRING "$PACKAGE_STRING"
1369 _ACEOF
1372 cat >>confdefs.h <<_ACEOF
1373 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1374 _ACEOF
1377 # Let the site file select an alternate cache file if it wants to.
1378 # Prefer explicitly selected file to automatically selected ones.
1379 if test -z "$CONFIG_SITE"; then
1380 if test "x$prefix" != xNONE; then
1381 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1382 else
1383 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1386 for ac_site_file in $CONFIG_SITE; do
1387 if test -r "$ac_site_file"; then
1388 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1389 echo "$as_me: loading site script $ac_site_file" >&6;}
1390 sed 's/^/| /' "$ac_site_file" >&5
1391 . "$ac_site_file"
1393 done
1395 if test -r "$cache_file"; then
1396 # Some versions of bash will fail to source /dev/null (special
1397 # files actually), so we avoid doing that.
1398 if test -f "$cache_file"; then
1399 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1400 echo "$as_me: loading cache $cache_file" >&6;}
1401 case $cache_file in
1402 [\\/]* | ?:[\\/]* ) . $cache_file;;
1403 *) . ./$cache_file;;
1404 esac
1406 else
1407 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1408 echo "$as_me: creating cache $cache_file" >&6;}
1409 >$cache_file
1412 # Check that the precious variables saved in the cache have kept the same
1413 # value.
1414 ac_cache_corrupted=false
1415 for ac_var in `(set) 2>&1 |
1416 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1417 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1418 eval ac_new_set=\$ac_env_${ac_var}_set
1419 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1420 eval ac_new_val="\$ac_env_${ac_var}_value"
1421 case $ac_old_set,$ac_new_set in
1422 set,)
1423 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1424 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1425 ac_cache_corrupted=: ;;
1426 ,set)
1427 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1428 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1429 ac_cache_corrupted=: ;;
1430 ,);;
1432 if test "x$ac_old_val" != "x$ac_new_val"; then
1433 # differences in whitespace do not lead to failure.
1434 ac_old_val_w=`echo x $ac_old_val`
1435 ac_new_val_w=`echo x $ac_new_val`
1436 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1437 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1438 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1439 ac_cache_corrupted=:
1440 else
1441 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1442 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1443 eval $ac_var=\$ac_old_val
1445 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1446 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1447 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1448 echo "$as_me: current value: \`$ac_new_val'" >&2;}
1449 fi;;
1450 esac
1451 # Pass precious variables to config.status.
1452 if test "$ac_new_set" = set; then
1453 case $ac_new_val in
1454 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1455 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1456 *) ac_arg=$ac_var=$ac_new_val ;;
1457 esac
1458 case " $ac_configure_args " in
1459 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1460 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1461 esac
1463 done
1464 if $ac_cache_corrupted; then
1465 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1466 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1467 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1468 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1469 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1470 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1471 { (exit 1); exit 1; }; }
1474 ac_ext=c
1475 ac_cpp='$CPP $CPPFLAGS'
1476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1509 ac_config_headers="$ac_config_headers config.h"
1512 # -------
1513 # Options
1514 # -------
1516 echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
1517 echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6
1518 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1519 if test "${enable_version_specific_runtime_libs+set}" = set; then
1520 enableval="$enable_version_specific_runtime_libs"
1522 case "$enableval" in
1523 yes|no) ;;
1524 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific-runtime-libs" >&5
1525 echo "$as_me: error: Unknown argument to enable/disable version-specific-runtime-libs" >&2;}
1526 { (exit 1); exit 1; }; } ;;
1527 esac
1529 else
1530 enable_version_specific_runtime_libs=no
1533 echo "$as_me:$LINENO: result: $enable_version_specific_runtime_libs" >&5
1534 echo "${ECHO_T}$enable_version_specific_runtime_libs" >&6
1536 # We would like our source tree to be readonly. However when releases or
1537 # pre-releases are generated, the flex/bison generated files as well as the
1538 # various formats of manuals need to be included along with the rest of the
1539 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1540 # just that.
1541 echo "$as_me:$LINENO: checking for --enable-generated-files-in-srcdir" >&5
1542 echo $ECHO_N "checking for --enable-generated-files-in-srcdir... $ECHO_C" >&6
1543 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1544 if test "${enable_generated_files_in_srcdir+set}" = set; then
1545 enableval="$enable_generated_files_in_srcdir"
1547 case "$enableval" in
1548 yes|no) ;;
1549 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable generated-files-in-srcdir" >&5
1550 echo "$as_me: error: Unknown argument to enable/disable generated-files-in-srcdir" >&2;}
1551 { (exit 1); exit 1; }; } ;;
1552 esac
1554 else
1555 enable_generated_files_in_srcdir=no
1558 echo "$as_me:$LINENO: result: $enable_generated_files_in_srcdir" >&5
1559 echo "${ECHO_T}$enable_generated_files_in_srcdir" >&6
1562 if test "$enable_generated_files_in_srcdir" = yes; then
1563 GENINSRC_TRUE=
1564 GENINSRC_FALSE='#'
1565 else
1566 GENINSRC_TRUE='#'
1567 GENINSRC_FALSE=
1572 # -------
1573 # -------
1575 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
1577 # You will slowly go insane if you do not grok the following fact: when
1578 # building this library, the top-level /target/ becomes the library's /host/.
1580 # configure then causes --target to default to --host, exactly like any
1581 # other package using autoconf. Therefore, 'target' and 'host' will
1582 # always be the same. This makes sense both for native and cross compilers
1583 # just think about it for a little while. :-)
1585 # Also, if this library is being configured as part of a cross compiler, the
1586 # top-level configure script will pass the "real" host as $with_cross_host.
1588 # Do not delete or change the following two lines. For why, see
1589 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
1590 ac_aux_dir=
1591 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1592 if test -f $ac_dir/install-sh; then
1593 ac_aux_dir=$ac_dir
1594 ac_install_sh="$ac_aux_dir/install-sh -c"
1595 break
1596 elif test -f $ac_dir/install.sh; then
1597 ac_aux_dir=$ac_dir
1598 ac_install_sh="$ac_aux_dir/install.sh -c"
1599 break
1600 elif test -f $ac_dir/shtool; then
1601 ac_aux_dir=$ac_dir
1602 ac_install_sh="$ac_aux_dir/shtool install -c"
1603 break
1605 done
1606 if test -z "$ac_aux_dir"; then
1607 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1608 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1609 { (exit 1); exit 1; }; }
1611 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1612 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1613 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1615 # Make sure we can run config.sub.
1616 $ac_config_sub sun4 >/dev/null 2>&1 ||
1617 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1618 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1619 { (exit 1); exit 1; }; }
1621 echo "$as_me:$LINENO: checking build system type" >&5
1622 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1623 if test "${ac_cv_build+set}" = set; then
1624 echo $ECHO_N "(cached) $ECHO_C" >&6
1625 else
1626 ac_cv_build_alias=$build_alias
1627 test -z "$ac_cv_build_alias" &&
1628 ac_cv_build_alias=`$ac_config_guess`
1629 test -z "$ac_cv_build_alias" &&
1630 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1631 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1632 { (exit 1); exit 1; }; }
1633 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1634 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1635 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1636 { (exit 1); exit 1; }; }
1639 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1640 echo "${ECHO_T}$ac_cv_build" >&6
1641 build=$ac_cv_build
1642 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1643 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1644 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1647 echo "$as_me:$LINENO: checking host system type" >&5
1648 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1649 if test "${ac_cv_host+set}" = set; then
1650 echo $ECHO_N "(cached) $ECHO_C" >&6
1651 else
1652 ac_cv_host_alias=$host_alias
1653 test -z "$ac_cv_host_alias" &&
1654 ac_cv_host_alias=$ac_cv_build_alias
1655 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1656 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1657 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1658 { (exit 1); exit 1; }; }
1661 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1662 echo "${ECHO_T}$ac_cv_host" >&6
1663 host=$ac_cv_host
1664 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1665 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1666 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1669 echo "$as_me:$LINENO: checking target system type" >&5
1670 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1671 if test "${ac_cv_target+set}" = set; then
1672 echo $ECHO_N "(cached) $ECHO_C" >&6
1673 else
1674 ac_cv_target_alias=$target_alias
1675 test "x$ac_cv_target_alias" = "x" &&
1676 ac_cv_target_alias=$ac_cv_host_alias
1677 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1678 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1679 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1680 { (exit 1); exit 1; }; }
1683 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1684 echo "${ECHO_T}$ac_cv_target" >&6
1685 target=$ac_cv_target
1686 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1687 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1688 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1691 # The aliases save the names the user supplied, while $host etc.
1692 # will get canonicalized.
1693 test -n "$target_alias" &&
1694 test "$program_prefix$program_suffix$program_transform_name" = \
1695 NONENONEs,x,x, &&
1696 program_prefix=${target_alias}-
1697 target_alias=${target_alias-$host_alias}
1699 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
1700 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
1701 # 1.9.0: minimum required version
1702 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
1703 # of other PACKAGE_* variables will, however, and there's nothing
1704 # we can do about that; they come from AC_INIT).
1705 # foreign: we don't follow the normal rules for GNU packages (no COPYING
1706 # file in the top srcdir, etc, etc), so stop complaining.
1707 # -Wall: turns on all automake warnings...
1708 # -Wno-portability: ...except this one, since GNU make is required.
1709 # -Wno-override: ... and this one, since we do want this in testsuite.
1710 am__api_version="1.9"
1711 # Find a good install program. We prefer a C program (faster),
1712 # so one script is as good as another. But avoid the broken or
1713 # incompatible versions:
1714 # SysV /etc/install, /usr/sbin/install
1715 # SunOS /usr/etc/install
1716 # IRIX /sbin/install
1717 # AIX /bin/install
1718 # AmigaOS /C/install, which installs bootblocks on floppy discs
1719 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1720 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1721 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1722 # OS/2's system install, which has a completely different semantic
1723 # ./install, which can be erroneously created by make from ./install.sh.
1724 # Reject install programs that cannot install multiple files.
1725 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1726 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1727 if test -z "$INSTALL"; then
1728 if test "${ac_cv_path_install+set}" = set; then
1729 echo $ECHO_N "(cached) $ECHO_C" >&6
1730 else
1731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1732 for as_dir in $PATH
1734 IFS=$as_save_IFS
1735 test -z "$as_dir" && as_dir=.
1736 # Account for people who put trailing slashes in PATH elements.
1737 case $as_dir/ in
1738 ./ | .// | /cC/* | \
1739 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1740 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1741 /usr/ucb/* ) ;;
1743 # OSF1 and SCO ODT 3.0 have their own names for install.
1744 # Don't use installbsd from OSF since it installs stuff as root
1745 # by default.
1746 for ac_prog in ginstall scoinst install; do
1747 for ac_exec_ext in '' $ac_executable_extensions; do
1748 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1749 if test $ac_prog = install &&
1750 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1751 # AIX install. It has an incompatible calling convention.
1753 elif test $ac_prog = install &&
1754 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1755 # program-specific install script used by HP pwplus--don't use.
1757 else
1758 rm -rf conftest.one conftest.two conftest.dir
1759 echo one > conftest.one
1760 echo two > conftest.two
1761 mkdir conftest.dir
1762 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1763 test -s conftest.one && test -s conftest.two &&
1764 test -s conftest.dir/conftest.one &&
1765 test -s conftest.dir/conftest.two
1766 then
1767 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1768 break 3
1772 done
1773 done
1775 esac
1776 done
1778 rm -rf conftest.one conftest.two conftest.dir
1781 if test "${ac_cv_path_install+set}" = set; then
1782 INSTALL=$ac_cv_path_install
1783 else
1784 # As a last resort, use the slow shell script. Don't cache a
1785 # value for INSTALL within a source directory, because that will
1786 # break other packages using the cache if that directory is
1787 # removed, or if the value is a relative name.
1788 INSTALL=$ac_install_sh
1791 echo "$as_me:$LINENO: result: $INSTALL" >&5
1792 echo "${ECHO_T}$INSTALL" >&6
1794 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1795 # It thinks the first close brace ends the variable substitution.
1796 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1798 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1800 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1802 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1803 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1804 # Just in case
1805 sleep 1
1806 echo timestamp > conftest.file
1807 # Do `set' in a subshell so we don't clobber the current shell's
1808 # arguments. Must try -L first in case configure is actually a
1809 # symlink; some systems play weird games with the mod time of symlinks
1810 # (eg FreeBSD returns the mod time of the symlink's containing
1811 # directory).
1812 if (
1813 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1814 if test "$*" = "X"; then
1815 # -L didn't work.
1816 set X `ls -t $srcdir/configure conftest.file`
1818 rm -f conftest.file
1819 if test "$*" != "X $srcdir/configure conftest.file" \
1820 && test "$*" != "X conftest.file $srcdir/configure"; then
1822 # If neither matched, then we have a broken ls. This can happen
1823 # if, for instance, CONFIG_SHELL is bash and it inherits a
1824 # broken ls alias from the environment. This has actually
1825 # happened. Such a system could not be considered "sane".
1826 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1827 alias in your environment" >&5
1828 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1829 alias in your environment" >&2;}
1830 { (exit 1); exit 1; }; }
1833 test "$2" = conftest.file
1835 then
1836 # Ok.
1838 else
1839 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1840 Check your system clock" >&5
1841 echo "$as_me: error: newly created file is older than distributed files!
1842 Check your system clock" >&2;}
1843 { (exit 1); exit 1; }; }
1845 echo "$as_me:$LINENO: result: yes" >&5
1846 echo "${ECHO_T}yes" >&6
1847 test "$program_prefix" != NONE &&
1848 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1849 # Use a double $ so make ignores it.
1850 test "$program_suffix" != NONE &&
1851 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1852 # Double any \ or $. echo might interpret backslashes.
1853 # By default was `s,x,x', remove it if useless.
1854 cat <<\_ACEOF >conftest.sed
1855 s/[\\$]/&&/g;s/;s,x,x,$//
1856 _ACEOF
1857 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1858 rm conftest.sed
1860 # expand $ac_aux_dir to an absolute path
1861 am_aux_dir=`cd $ac_aux_dir && pwd`
1863 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1864 # Use eval to expand $SHELL
1865 if eval "$MISSING --run true"; then
1866 am_missing_run="$MISSING --run "
1867 else
1868 am_missing_run=
1869 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1870 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1873 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1874 # We used to keeping the `.' as first argument, in order to
1875 # allow $(mkdir_p) to be used without argument. As in
1876 # $(mkdir_p) $(somedir)
1877 # where $(somedir) is conditionally defined. However this is wrong
1878 # for two reasons:
1879 # 1. if the package is installed by a user who cannot write `.'
1880 # make install will fail,
1881 # 2. the above comment should most certainly read
1882 # $(mkdir_p) $(DESTDIR)$(somedir)
1883 # so it does not work when $(somedir) is undefined and
1884 # $(DESTDIR) is not.
1885 # To support the latter case, we have to write
1886 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1887 # so the `.' trick is pointless.
1888 mkdir_p='mkdir -p --'
1889 else
1890 # On NextStep and OpenStep, the `mkdir' command does not
1891 # recognize any option. It will interpret all options as
1892 # directories to create, and then abort because `.' already
1893 # exists.
1894 for d in ./-p ./--version;
1896 test -d $d && rmdir $d
1897 done
1898 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1899 if test -f "$ac_aux_dir/mkinstalldirs"; then
1900 mkdir_p='$(mkinstalldirs)'
1901 else
1902 mkdir_p='$(install_sh) -d'
1906 for ac_prog in gawk mawk nawk awk
1908 # Extract the first word of "$ac_prog", so it can be a program name with args.
1909 set dummy $ac_prog; ac_word=$2
1910 echo "$as_me:$LINENO: checking for $ac_word" >&5
1911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1912 if test "${ac_cv_prog_AWK+set}" = set; then
1913 echo $ECHO_N "(cached) $ECHO_C" >&6
1914 else
1915 if test -n "$AWK"; then
1916 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1917 else
1918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1919 for as_dir in $PATH
1921 IFS=$as_save_IFS
1922 test -z "$as_dir" && as_dir=.
1923 for ac_exec_ext in '' $ac_executable_extensions; do
1924 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1925 ac_cv_prog_AWK="$ac_prog"
1926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1927 break 2
1929 done
1930 done
1934 AWK=$ac_cv_prog_AWK
1935 if test -n "$AWK"; then
1936 echo "$as_me:$LINENO: result: $AWK" >&5
1937 echo "${ECHO_T}$AWK" >&6
1938 else
1939 echo "$as_me:$LINENO: result: no" >&5
1940 echo "${ECHO_T}no" >&6
1943 test -n "$AWK" && break
1944 done
1946 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1947 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1948 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1949 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1950 echo $ECHO_N "(cached) $ECHO_C" >&6
1951 else
1952 cat >conftest.make <<\_ACEOF
1953 all:
1954 @echo 'ac_maketemp="$(MAKE)"'
1955 _ACEOF
1956 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1957 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1958 if test -n "$ac_maketemp"; then
1959 eval ac_cv_prog_make_${ac_make}_set=yes
1960 else
1961 eval ac_cv_prog_make_${ac_make}_set=no
1963 rm -f conftest.make
1965 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1966 echo "$as_me:$LINENO: result: yes" >&5
1967 echo "${ECHO_T}yes" >&6
1968 SET_MAKE=
1969 else
1970 echo "$as_me:$LINENO: result: no" >&5
1971 echo "${ECHO_T}no" >&6
1972 SET_MAKE="MAKE=${MAKE-make}"
1975 rm -rf .tst 2>/dev/null
1976 mkdir .tst 2>/dev/null
1977 if test -d .tst; then
1978 am__leading_dot=.
1979 else
1980 am__leading_dot=_
1982 rmdir .tst 2>/dev/null
1984 # test to see if srcdir already configured
1985 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1986 test -f $srcdir/config.status; then
1987 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1988 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1989 { (exit 1); exit 1; }; }
1992 # test whether we have cygpath
1993 if test -z "$CYGPATH_W"; then
1994 if (cygpath --version) >/dev/null 2>/dev/null; then
1995 CYGPATH_W='cygpath -w'
1996 else
1997 CYGPATH_W=echo
2002 # Define the identity of the package.
2003 PACKAGE='libgomp'
2004 VERSION='1.0'
2007 cat >>confdefs.h <<_ACEOF
2008 #define PACKAGE "$PACKAGE"
2009 _ACEOF
2012 cat >>confdefs.h <<_ACEOF
2013 #define VERSION "$VERSION"
2014 _ACEOF
2016 # Some tools Automake needs.
2018 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2021 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2024 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2027 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2030 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2032 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2034 # Installed binaries are usually stripped using `strip' when the user
2035 # run `make install-strip'. However `strip' might not be the right
2036 # tool to use in cross-compilation environments, therefore Automake
2037 # will honor the `STRIP' environment variable to overrule this program.
2038 if test "$cross_compiling" != no; then
2039 if test -n "$ac_tool_prefix"; then
2040 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2041 set dummy ${ac_tool_prefix}strip; ac_word=$2
2042 echo "$as_me:$LINENO: checking for $ac_word" >&5
2043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2044 if test "${ac_cv_prog_STRIP+set}" = set; then
2045 echo $ECHO_N "(cached) $ECHO_C" >&6
2046 else
2047 if test -n "$STRIP"; then
2048 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2049 else
2050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2051 for as_dir in $PATH
2053 IFS=$as_save_IFS
2054 test -z "$as_dir" && as_dir=.
2055 for ac_exec_ext in '' $ac_executable_extensions; do
2056 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2057 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2059 break 2
2061 done
2062 done
2066 STRIP=$ac_cv_prog_STRIP
2067 if test -n "$STRIP"; then
2068 echo "$as_me:$LINENO: result: $STRIP" >&5
2069 echo "${ECHO_T}$STRIP" >&6
2070 else
2071 echo "$as_me:$LINENO: result: no" >&5
2072 echo "${ECHO_T}no" >&6
2076 if test -z "$ac_cv_prog_STRIP"; then
2077 ac_ct_STRIP=$STRIP
2078 # Extract the first word of "strip", so it can be a program name with args.
2079 set dummy strip; ac_word=$2
2080 echo "$as_me:$LINENO: checking for $ac_word" >&5
2081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2082 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2083 echo $ECHO_N "(cached) $ECHO_C" >&6
2084 else
2085 if test -n "$ac_ct_STRIP"; then
2086 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2087 else
2088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2089 for as_dir in $PATH
2091 IFS=$as_save_IFS
2092 test -z "$as_dir" && as_dir=.
2093 for ac_exec_ext in '' $ac_executable_extensions; do
2094 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2095 ac_cv_prog_ac_ct_STRIP="strip"
2096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2097 break 2
2099 done
2100 done
2102 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2105 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2106 if test -n "$ac_ct_STRIP"; then
2107 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2108 echo "${ECHO_T}$ac_ct_STRIP" >&6
2109 else
2110 echo "$as_me:$LINENO: result: no" >&5
2111 echo "${ECHO_T}no" >&6
2114 STRIP=$ac_ct_STRIP
2115 else
2116 STRIP="$ac_cv_prog_STRIP"
2120 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2122 # We need awk for the "check" target. The system "awk" is bad on
2123 # some platforms.
2124 # Always define AMTAR for backward compatibility.
2126 AMTAR=${AMTAR-"${am_missing_run}tar"}
2128 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2134 # Default to --enable-multilib
2135 # Check whether --enable-multilib or --disable-multilib was given.
2136 if test "${enable_multilib+set}" = set; then
2137 enableval="$enable_multilib"
2138 case "$enableval" in
2139 yes) multilib=yes ;;
2140 no) multilib=no ;;
2141 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
2142 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
2143 { (exit 1); exit 1; }; } ;;
2144 esac
2145 else
2146 multilib=yes
2149 # We may get other options which we leave undocumented:
2150 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2151 # See config-ml.in if you want the gory details.
2153 if test "$srcdir" = "."; then
2154 if test "$with_target_subdir" != "."; then
2155 multi_basedir="$srcdir/$with_multisrctop../.."
2156 else
2157 multi_basedir="$srcdir/$with_multisrctop.."
2159 else
2160 multi_basedir="$srcdir/.."
2164 # Even if the default multilib is not a cross compilation,
2165 # it may be that some of the other multilibs are.
2166 if test $cross_compiling = no && test $multilib = yes \
2167 && test "x${with_multisubdir}" != x ; then
2168 cross_compiling=maybe
2171 ac_config_commands="$ac_config_commands default-1"
2174 # Calculate toolexeclibdir
2175 # Also toolexecdir, though it's only used in toolexeclibdir
2176 case ${enable_version_specific_runtime_libs} in
2177 yes)
2178 # Need the gcc compiler version to know where to install libraries
2179 # and header files if --enable-version-specific-runtime-libs option
2180 # is selected.
2181 toolexecdir='$(libdir)/gcc/$(target_alias)'
2182 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
2185 if test -n "$with_cross_host" &&
2186 test x"$with_cross_host" != x"no"; then
2187 # Install a library built with a cross compiler in tooldir, not libdir.
2188 toolexecdir='$(exec_prefix)/$(target_alias)'
2189 toolexeclibdir='$(toolexecdir)/lib'
2190 else
2191 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
2192 toolexeclibdir='$(libdir)'
2194 multi_os_directory=`$CC -print-multi-os-directory`
2195 case $multi_os_directory in
2196 .) ;; # Avoid trailing /.
2197 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
2198 esac
2200 esac
2204 # Check the compiler.
2205 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
2206 # We must force CC to /not/ be precious variables; otherwise
2207 # the wrong, non-multilib-adjusted value will be used in multilibs.
2208 # As a side effect, we have to subst CFLAGS ourselves.
2212 ac_ext=c
2213 ac_cpp='$CPP $CPPFLAGS'
2214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2217 if test -n "$ac_tool_prefix"; then
2218 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2219 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2220 echo "$as_me:$LINENO: checking for $ac_word" >&5
2221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2222 if test "${ac_cv_prog_CC+set}" = set; then
2223 echo $ECHO_N "(cached) $ECHO_C" >&6
2224 else
2225 if test -n "$CC"; then
2226 ac_cv_prog_CC="$CC" # Let the user override the test.
2227 else
2228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2229 for as_dir in $PATH
2231 IFS=$as_save_IFS
2232 test -z "$as_dir" && as_dir=.
2233 for ac_exec_ext in '' $ac_executable_extensions; do
2234 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2235 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2237 break 2
2239 done
2240 done
2244 CC=$ac_cv_prog_CC
2245 if test -n "$CC"; then
2246 echo "$as_me:$LINENO: result: $CC" >&5
2247 echo "${ECHO_T}$CC" >&6
2248 else
2249 echo "$as_me:$LINENO: result: no" >&5
2250 echo "${ECHO_T}no" >&6
2254 if test -z "$ac_cv_prog_CC"; then
2255 ac_ct_CC=$CC
2256 # Extract the first word of "gcc", so it can be a program name with args.
2257 set dummy gcc; ac_word=$2
2258 echo "$as_me:$LINENO: checking for $ac_word" >&5
2259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2260 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2261 echo $ECHO_N "(cached) $ECHO_C" >&6
2262 else
2263 if test -n "$ac_ct_CC"; then
2264 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2265 else
2266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2267 for as_dir in $PATH
2269 IFS=$as_save_IFS
2270 test -z "$as_dir" && as_dir=.
2271 for ac_exec_ext in '' $ac_executable_extensions; do
2272 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2273 ac_cv_prog_ac_ct_CC="gcc"
2274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2275 break 2
2277 done
2278 done
2282 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2283 if test -n "$ac_ct_CC"; then
2284 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2285 echo "${ECHO_T}$ac_ct_CC" >&6
2286 else
2287 echo "$as_me:$LINENO: result: no" >&5
2288 echo "${ECHO_T}no" >&6
2291 CC=$ac_ct_CC
2292 else
2293 CC="$ac_cv_prog_CC"
2296 if test -z "$CC"; then
2297 if test -n "$ac_tool_prefix"; then
2298 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2299 set dummy ${ac_tool_prefix}cc; ac_word=$2
2300 echo "$as_me:$LINENO: checking for $ac_word" >&5
2301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2302 if test "${ac_cv_prog_CC+set}" = set; then
2303 echo $ECHO_N "(cached) $ECHO_C" >&6
2304 else
2305 if test -n "$CC"; then
2306 ac_cv_prog_CC="$CC" # Let the user override the test.
2307 else
2308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2309 for as_dir in $PATH
2311 IFS=$as_save_IFS
2312 test -z "$as_dir" && as_dir=.
2313 for ac_exec_ext in '' $ac_executable_extensions; do
2314 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2315 ac_cv_prog_CC="${ac_tool_prefix}cc"
2316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2317 break 2
2319 done
2320 done
2324 CC=$ac_cv_prog_CC
2325 if test -n "$CC"; then
2326 echo "$as_me:$LINENO: result: $CC" >&5
2327 echo "${ECHO_T}$CC" >&6
2328 else
2329 echo "$as_me:$LINENO: result: no" >&5
2330 echo "${ECHO_T}no" >&6
2334 if test -z "$ac_cv_prog_CC"; then
2335 ac_ct_CC=$CC
2336 # Extract the first word of "cc", so it can be a program name with args.
2337 set dummy cc; ac_word=$2
2338 echo "$as_me:$LINENO: checking for $ac_word" >&5
2339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2340 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2341 echo $ECHO_N "(cached) $ECHO_C" >&6
2342 else
2343 if test -n "$ac_ct_CC"; then
2344 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2345 else
2346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2347 for as_dir in $PATH
2349 IFS=$as_save_IFS
2350 test -z "$as_dir" && as_dir=.
2351 for ac_exec_ext in '' $ac_executable_extensions; do
2352 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2353 ac_cv_prog_ac_ct_CC="cc"
2354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2355 break 2
2357 done
2358 done
2362 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2363 if test -n "$ac_ct_CC"; then
2364 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2365 echo "${ECHO_T}$ac_ct_CC" >&6
2366 else
2367 echo "$as_me:$LINENO: result: no" >&5
2368 echo "${ECHO_T}no" >&6
2371 CC=$ac_ct_CC
2372 else
2373 CC="$ac_cv_prog_CC"
2377 if test -z "$CC"; then
2378 # Extract the first word of "cc", so it can be a program name with args.
2379 set dummy cc; ac_word=$2
2380 echo "$as_me:$LINENO: checking for $ac_word" >&5
2381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2382 if test "${ac_cv_prog_CC+set}" = set; then
2383 echo $ECHO_N "(cached) $ECHO_C" >&6
2384 else
2385 if test -n "$CC"; then
2386 ac_cv_prog_CC="$CC" # Let the user override the test.
2387 else
2388 ac_prog_rejected=no
2389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2390 for as_dir in $PATH
2392 IFS=$as_save_IFS
2393 test -z "$as_dir" && as_dir=.
2394 for ac_exec_ext in '' $ac_executable_extensions; do
2395 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2396 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2397 ac_prog_rejected=yes
2398 continue
2400 ac_cv_prog_CC="cc"
2401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2402 break 2
2404 done
2405 done
2407 if test $ac_prog_rejected = yes; then
2408 # We found a bogon in the path, so make sure we never use it.
2409 set dummy $ac_cv_prog_CC
2410 shift
2411 if test $# != 0; then
2412 # We chose a different compiler from the bogus one.
2413 # However, it has the same basename, so the bogon will be chosen
2414 # first if we set CC to just the basename; use the full file name.
2415 shift
2416 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2421 CC=$ac_cv_prog_CC
2422 if test -n "$CC"; then
2423 echo "$as_me:$LINENO: result: $CC" >&5
2424 echo "${ECHO_T}$CC" >&6
2425 else
2426 echo "$as_me:$LINENO: result: no" >&5
2427 echo "${ECHO_T}no" >&6
2431 if test -z "$CC"; then
2432 if test -n "$ac_tool_prefix"; then
2433 for ac_prog in cl
2435 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2436 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2437 echo "$as_me:$LINENO: checking for $ac_word" >&5
2438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2439 if test "${ac_cv_prog_CC+set}" = set; then
2440 echo $ECHO_N "(cached) $ECHO_C" >&6
2441 else
2442 if test -n "$CC"; then
2443 ac_cv_prog_CC="$CC" # Let the user override the test.
2444 else
2445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2446 for as_dir in $PATH
2448 IFS=$as_save_IFS
2449 test -z "$as_dir" && as_dir=.
2450 for ac_exec_ext in '' $ac_executable_extensions; do
2451 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2452 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2454 break 2
2456 done
2457 done
2461 CC=$ac_cv_prog_CC
2462 if test -n "$CC"; then
2463 echo "$as_me:$LINENO: result: $CC" >&5
2464 echo "${ECHO_T}$CC" >&6
2465 else
2466 echo "$as_me:$LINENO: result: no" >&5
2467 echo "${ECHO_T}no" >&6
2470 test -n "$CC" && break
2471 done
2473 if test -z "$CC"; then
2474 ac_ct_CC=$CC
2475 for ac_prog in cl
2477 # Extract the first word of "$ac_prog", so it can be a program name with args.
2478 set dummy $ac_prog; ac_word=$2
2479 echo "$as_me:$LINENO: checking for $ac_word" >&5
2480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2481 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2482 echo $ECHO_N "(cached) $ECHO_C" >&6
2483 else
2484 if test -n "$ac_ct_CC"; then
2485 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2486 else
2487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2488 for as_dir in $PATH
2490 IFS=$as_save_IFS
2491 test -z "$as_dir" && as_dir=.
2492 for ac_exec_ext in '' $ac_executable_extensions; do
2493 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2494 ac_cv_prog_ac_ct_CC="$ac_prog"
2495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2496 break 2
2498 done
2499 done
2503 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2504 if test -n "$ac_ct_CC"; then
2505 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2506 echo "${ECHO_T}$ac_ct_CC" >&6
2507 else
2508 echo "$as_me:$LINENO: result: no" >&5
2509 echo "${ECHO_T}no" >&6
2512 test -n "$ac_ct_CC" && break
2513 done
2515 CC=$ac_ct_CC
2521 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2522 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2523 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2524 See \`config.log' for more details." >&5
2525 echo "$as_me: error: no acceptable C compiler found in \$PATH
2526 See \`config.log' for more details." >&2;}
2527 { (exit 1); exit 1; }; }; }
2529 # Provide some information about the compiler.
2530 echo "$as_me:$LINENO:" \
2531 "checking for C compiler version" >&5
2532 ac_compiler=`set X $ac_compile; echo $2`
2533 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2534 (eval $ac_compiler --version </dev/null >&5) 2>&5
2535 ac_status=$?
2536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537 (exit $ac_status); }
2538 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2539 (eval $ac_compiler -v </dev/null >&5) 2>&5
2540 ac_status=$?
2541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542 (exit $ac_status); }
2543 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2544 (eval $ac_compiler -V </dev/null >&5) 2>&5
2545 ac_status=$?
2546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547 (exit $ac_status); }
2549 cat >conftest.$ac_ext <<_ACEOF
2550 /* confdefs.h. */
2551 _ACEOF
2552 cat confdefs.h >>conftest.$ac_ext
2553 cat >>conftest.$ac_ext <<_ACEOF
2554 /* end confdefs.h. */
2557 main ()
2561 return 0;
2563 _ACEOF
2564 ac_clean_files_save=$ac_clean_files
2565 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2566 # Try to create an executable without -o first, disregard a.out.
2567 # It will help us diagnose broken compilers, and finding out an intuition
2568 # of exeext.
2569 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2570 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2571 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2572 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2573 (eval $ac_link_default) 2>&5
2574 ac_status=$?
2575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576 (exit $ac_status); }; then
2577 # Find the output, starting from the most likely. This scheme is
2578 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2579 # resort.
2581 # Be careful to initialize this variable, since it used to be cached.
2582 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2583 ac_cv_exeext=
2584 # b.out is created by i960 compilers.
2585 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2587 test -f "$ac_file" || continue
2588 case $ac_file in
2589 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2591 conftest.$ac_ext )
2592 # This is the source file.
2594 [ab].out )
2595 # We found the default executable, but exeext='' is most
2596 # certainly right.
2597 break;;
2598 *.* )
2599 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2600 # FIXME: I believe we export ac_cv_exeext for Libtool,
2601 # but it would be cool to find out if it's true. Does anybody
2602 # maintain Libtool? --akim.
2603 export ac_cv_exeext
2604 break;;
2606 break;;
2607 esac
2608 done
2609 else
2610 echo "$as_me: failed program was:" >&5
2611 sed 's/^/| /' conftest.$ac_ext >&5
2613 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2614 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2615 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2616 See \`config.log' for more details." >&5
2617 echo "$as_me: error: C compiler cannot create executables
2618 See \`config.log' for more details." >&2;}
2619 { (exit 77); exit 77; }; }; }
2622 ac_exeext=$ac_cv_exeext
2623 echo "$as_me:$LINENO: result: $ac_file" >&5
2624 echo "${ECHO_T}$ac_file" >&6
2626 # Check the compiler produces executables we can run. If not, either
2627 # the compiler is broken, or we cross compile.
2628 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2629 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2630 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2631 # If not cross compiling, check that we can run a simple program.
2632 if test "$cross_compiling" != yes; then
2633 if { ac_try='./$ac_file'
2634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2635 (eval $ac_try) 2>&5
2636 ac_status=$?
2637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638 (exit $ac_status); }; }; then
2639 cross_compiling=no
2640 else
2641 if test "$cross_compiling" = maybe; then
2642 cross_compiling=yes
2643 else
2644 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2645 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2646 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2647 If you meant to cross compile, use \`--host'.
2648 See \`config.log' for more details." >&5
2649 echo "$as_me: error: cannot run C compiled programs.
2650 If you meant to cross compile, use \`--host'.
2651 See \`config.log' for more details." >&2;}
2652 { (exit 1); exit 1; }; }; }
2656 echo "$as_me:$LINENO: result: yes" >&5
2657 echo "${ECHO_T}yes" >&6
2659 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2660 ac_clean_files=$ac_clean_files_save
2661 # Check the compiler produces executables we can run. If not, either
2662 # the compiler is broken, or we cross compile.
2663 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2664 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2665 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2666 echo "${ECHO_T}$cross_compiling" >&6
2668 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2669 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2671 (eval $ac_link) 2>&5
2672 ac_status=$?
2673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674 (exit $ac_status); }; then
2675 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2676 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2677 # work properly (i.e., refer to `conftest.exe'), while it won't with
2678 # `rm'.
2679 for ac_file in conftest.exe conftest conftest.*; do
2680 test -f "$ac_file" || continue
2681 case $ac_file in
2682 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2683 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2684 export ac_cv_exeext
2685 break;;
2686 * ) break;;
2687 esac
2688 done
2689 else
2690 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2691 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2692 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2693 See \`config.log' for more details." >&5
2694 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2695 See \`config.log' for more details." >&2;}
2696 { (exit 1); exit 1; }; }; }
2699 rm -f conftest$ac_cv_exeext
2700 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2701 echo "${ECHO_T}$ac_cv_exeext" >&6
2703 rm -f conftest.$ac_ext
2704 EXEEXT=$ac_cv_exeext
2705 ac_exeext=$EXEEXT
2706 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2707 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2708 if test "${ac_cv_objext+set}" = set; then
2709 echo $ECHO_N "(cached) $ECHO_C" >&6
2710 else
2711 cat >conftest.$ac_ext <<_ACEOF
2712 /* confdefs.h. */
2713 _ACEOF
2714 cat confdefs.h >>conftest.$ac_ext
2715 cat >>conftest.$ac_ext <<_ACEOF
2716 /* end confdefs.h. */
2719 main ()
2723 return 0;
2725 _ACEOF
2726 rm -f conftest.o conftest.obj
2727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2728 (eval $ac_compile) 2>&5
2729 ac_status=$?
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); }; then
2732 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2733 case $ac_file in
2734 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2735 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2736 break;;
2737 esac
2738 done
2739 else
2740 echo "$as_me: failed program was:" >&5
2741 sed 's/^/| /' conftest.$ac_ext >&5
2743 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2744 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2745 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2746 See \`config.log' for more details." >&5
2747 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2748 See \`config.log' for more details." >&2;}
2749 { (exit 1); exit 1; }; }; }
2752 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2754 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2755 echo "${ECHO_T}$ac_cv_objext" >&6
2756 OBJEXT=$ac_cv_objext
2757 ac_objext=$OBJEXT
2758 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2759 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2760 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2761 echo $ECHO_N "(cached) $ECHO_C" >&6
2762 else
2763 cat >conftest.$ac_ext <<_ACEOF
2764 /* confdefs.h. */
2765 _ACEOF
2766 cat confdefs.h >>conftest.$ac_ext
2767 cat >>conftest.$ac_ext <<_ACEOF
2768 /* end confdefs.h. */
2771 main ()
2773 #ifndef __GNUC__
2774 choke me
2775 #endif
2778 return 0;
2780 _ACEOF
2781 rm -f conftest.$ac_objext
2782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2783 (eval $ac_compile) 2>conftest.er1
2784 ac_status=$?
2785 grep -v '^ *+' conftest.er1 >conftest.err
2786 rm -f conftest.er1
2787 cat conftest.err >&5
2788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789 (exit $ac_status); } &&
2790 { ac_try='test -z "$ac_c_werror_flag"
2791 || test ! -s conftest.err'
2792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2793 (eval $ac_try) 2>&5
2794 ac_status=$?
2795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796 (exit $ac_status); }; } &&
2797 { ac_try='test -s conftest.$ac_objext'
2798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2799 (eval $ac_try) 2>&5
2800 ac_status=$?
2801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802 (exit $ac_status); }; }; then
2803 ac_compiler_gnu=yes
2804 else
2805 echo "$as_me: failed program was:" >&5
2806 sed 's/^/| /' conftest.$ac_ext >&5
2808 ac_compiler_gnu=no
2810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2811 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2814 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2815 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2816 GCC=`test $ac_compiler_gnu = yes && echo yes`
2817 ac_test_CFLAGS=${CFLAGS+set}
2818 ac_save_CFLAGS=$CFLAGS
2819 CFLAGS="-g"
2820 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2821 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2822 if test "${ac_cv_prog_cc_g+set}" = set; then
2823 echo $ECHO_N "(cached) $ECHO_C" >&6
2824 else
2825 cat >conftest.$ac_ext <<_ACEOF
2826 /* confdefs.h. */
2827 _ACEOF
2828 cat confdefs.h >>conftest.$ac_ext
2829 cat >>conftest.$ac_ext <<_ACEOF
2830 /* end confdefs.h. */
2833 main ()
2837 return 0;
2839 _ACEOF
2840 rm -f conftest.$ac_objext
2841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2842 (eval $ac_compile) 2>conftest.er1
2843 ac_status=$?
2844 grep -v '^ *+' conftest.er1 >conftest.err
2845 rm -f conftest.er1
2846 cat conftest.err >&5
2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848 (exit $ac_status); } &&
2849 { ac_try='test -z "$ac_c_werror_flag"
2850 || test ! -s conftest.err'
2851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2852 (eval $ac_try) 2>&5
2853 ac_status=$?
2854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855 (exit $ac_status); }; } &&
2856 { ac_try='test -s conftest.$ac_objext'
2857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2858 (eval $ac_try) 2>&5
2859 ac_status=$?
2860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861 (exit $ac_status); }; }; then
2862 ac_cv_prog_cc_g=yes
2863 else
2864 echo "$as_me: failed program was:" >&5
2865 sed 's/^/| /' conftest.$ac_ext >&5
2867 ac_cv_prog_cc_g=no
2869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2871 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2872 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2873 if test "$ac_test_CFLAGS" = set; then
2874 CFLAGS=$ac_save_CFLAGS
2875 elif test $ac_cv_prog_cc_g = yes; then
2876 if test "$GCC" = yes; then
2877 CFLAGS="-g -O2"
2878 else
2879 CFLAGS="-g"
2881 else
2882 if test "$GCC" = yes; then
2883 CFLAGS="-O2"
2884 else
2885 CFLAGS=
2888 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2889 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2890 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2891 echo $ECHO_N "(cached) $ECHO_C" >&6
2892 else
2893 ac_cv_prog_cc_stdc=no
2894 ac_save_CC=$CC
2895 cat >conftest.$ac_ext <<_ACEOF
2896 /* confdefs.h. */
2897 _ACEOF
2898 cat confdefs.h >>conftest.$ac_ext
2899 cat >>conftest.$ac_ext <<_ACEOF
2900 /* end confdefs.h. */
2901 #include <stdarg.h>
2902 #include <stdio.h>
2903 #include <sys/types.h>
2904 #include <sys/stat.h>
2905 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2906 struct buf { int x; };
2907 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2908 static char *e (p, i)
2909 char **p;
2910 int i;
2912 return p[i];
2914 static char *f (char * (*g) (char **, int), char **p, ...)
2916 char *s;
2917 va_list v;
2918 va_start (v,p);
2919 s = g (p, va_arg (v,int));
2920 va_end (v);
2921 return s;
2924 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2925 function prototypes and stuff, but not '\xHH' hex character constants.
2926 These don't provoke an error unfortunately, instead are silently treated
2927 as 'x'. The following induces an error, until -std1 is added to get
2928 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2929 array size at least. It's necessary to write '\x00'==0 to get something
2930 that's true only with -std1. */
2931 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2933 int test (int i, double x);
2934 struct s1 {int (*f) (int a);};
2935 struct s2 {int (*f) (double a);};
2936 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2937 int argc;
2938 char **argv;
2940 main ()
2942 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2944 return 0;
2946 _ACEOF
2947 # Don't try gcc -ansi; that turns off useful extensions and
2948 # breaks some systems' header files.
2949 # AIX -qlanglvl=ansi
2950 # Ultrix and OSF/1 -std1
2951 # HP-UX 10.20 and later -Ae
2952 # HP-UX older versions -Aa -D_HPUX_SOURCE
2953 # SVR4 -Xc -D__EXTENSIONS__
2954 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2956 CC="$ac_save_CC $ac_arg"
2957 rm -f conftest.$ac_objext
2958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2959 (eval $ac_compile) 2>conftest.er1
2960 ac_status=$?
2961 grep -v '^ *+' conftest.er1 >conftest.err
2962 rm -f conftest.er1
2963 cat conftest.err >&5
2964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965 (exit $ac_status); } &&
2966 { ac_try='test -z "$ac_c_werror_flag"
2967 || test ! -s conftest.err'
2968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2969 (eval $ac_try) 2>&5
2970 ac_status=$?
2971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972 (exit $ac_status); }; } &&
2973 { ac_try='test -s conftest.$ac_objext'
2974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2975 (eval $ac_try) 2>&5
2976 ac_status=$?
2977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978 (exit $ac_status); }; }; then
2979 ac_cv_prog_cc_stdc=$ac_arg
2980 break
2981 else
2982 echo "$as_me: failed program was:" >&5
2983 sed 's/^/| /' conftest.$ac_ext >&5
2986 rm -f conftest.err conftest.$ac_objext
2987 done
2988 rm -f conftest.$ac_ext conftest.$ac_objext
2989 CC=$ac_save_CC
2993 case "x$ac_cv_prog_cc_stdc" in
2994 x|xno)
2995 echo "$as_me:$LINENO: result: none needed" >&5
2996 echo "${ECHO_T}none needed" >&6 ;;
2998 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2999 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3000 CC="$CC $ac_cv_prog_cc_stdc" ;;
3001 esac
3003 # Some people use a C++ compiler to compile C. Since we use `exit',
3004 # in C++ we need to declare it. In case someone uses the same compiler
3005 # for both compiling C and C++ we need to have the C++ compiler decide
3006 # the declaration of exit, since it's the most demanding environment.
3007 cat >conftest.$ac_ext <<_ACEOF
3008 #ifndef __cplusplus
3009 choke me
3010 #endif
3011 _ACEOF
3012 rm -f conftest.$ac_objext
3013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3014 (eval $ac_compile) 2>conftest.er1
3015 ac_status=$?
3016 grep -v '^ *+' conftest.er1 >conftest.err
3017 rm -f conftest.er1
3018 cat conftest.err >&5
3019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020 (exit $ac_status); } &&
3021 { ac_try='test -z "$ac_c_werror_flag"
3022 || test ! -s conftest.err'
3023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3024 (eval $ac_try) 2>&5
3025 ac_status=$?
3026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027 (exit $ac_status); }; } &&
3028 { ac_try='test -s conftest.$ac_objext'
3029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3030 (eval $ac_try) 2>&5
3031 ac_status=$?
3032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033 (exit $ac_status); }; }; then
3034 for ac_declaration in \
3035 '' \
3036 'extern "C" void std::exit (int) throw (); using std::exit;' \
3037 'extern "C" void std::exit (int); using std::exit;' \
3038 'extern "C" void exit (int) throw ();' \
3039 'extern "C" void exit (int);' \
3040 'void exit (int);'
3042 cat >conftest.$ac_ext <<_ACEOF
3043 /* confdefs.h. */
3044 _ACEOF
3045 cat confdefs.h >>conftest.$ac_ext
3046 cat >>conftest.$ac_ext <<_ACEOF
3047 /* end confdefs.h. */
3048 $ac_declaration
3049 #include <stdlib.h>
3051 main ()
3053 exit (42);
3055 return 0;
3057 _ACEOF
3058 rm -f conftest.$ac_objext
3059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3060 (eval $ac_compile) 2>conftest.er1
3061 ac_status=$?
3062 grep -v '^ *+' conftest.er1 >conftest.err
3063 rm -f conftest.er1
3064 cat conftest.err >&5
3065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066 (exit $ac_status); } &&
3067 { ac_try='test -z "$ac_c_werror_flag"
3068 || test ! -s conftest.err'
3069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3070 (eval $ac_try) 2>&5
3071 ac_status=$?
3072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073 (exit $ac_status); }; } &&
3074 { ac_try='test -s conftest.$ac_objext'
3075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3076 (eval $ac_try) 2>&5
3077 ac_status=$?
3078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079 (exit $ac_status); }; }; then
3081 else
3082 echo "$as_me: failed program was:" >&5
3083 sed 's/^/| /' conftest.$ac_ext >&5
3085 continue
3087 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3088 cat >conftest.$ac_ext <<_ACEOF
3089 /* confdefs.h. */
3090 _ACEOF
3091 cat confdefs.h >>conftest.$ac_ext
3092 cat >>conftest.$ac_ext <<_ACEOF
3093 /* end confdefs.h. */
3094 $ac_declaration
3096 main ()
3098 exit (42);
3100 return 0;
3102 _ACEOF
3103 rm -f conftest.$ac_objext
3104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3105 (eval $ac_compile) 2>conftest.er1
3106 ac_status=$?
3107 grep -v '^ *+' conftest.er1 >conftest.err
3108 rm -f conftest.er1
3109 cat conftest.err >&5
3110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111 (exit $ac_status); } &&
3112 { ac_try='test -z "$ac_c_werror_flag"
3113 || test ! -s conftest.err'
3114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3115 (eval $ac_try) 2>&5
3116 ac_status=$?
3117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118 (exit $ac_status); }; } &&
3119 { ac_try='test -s conftest.$ac_objext'
3120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3121 (eval $ac_try) 2>&5
3122 ac_status=$?
3123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124 (exit $ac_status); }; }; then
3125 break
3126 else
3127 echo "$as_me: failed program was:" >&5
3128 sed 's/^/| /' conftest.$ac_ext >&5
3131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3132 done
3133 rm -f conftest*
3134 if test -n "$ac_declaration"; then
3135 echo '#ifdef __cplusplus' >>confdefs.h
3136 echo $ac_declaration >>confdefs.h
3137 echo '#endif' >>confdefs.h
3140 else
3141 echo "$as_me: failed program was:" >&5
3142 sed 's/^/| /' conftest.$ac_ext >&5
3145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3146 ac_ext=c
3147 ac_cpp='$CPP $CPPFLAGS'
3148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3151 DEPDIR="${am__leading_dot}deps"
3153 ac_config_commands="$ac_config_commands depfiles"
3156 am_make=${MAKE-make}
3157 cat > confinc << 'END'
3158 am__doit:
3159 @echo done
3160 .PHONY: am__doit
3162 # If we don't find an include directive, just comment out the code.
3163 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3164 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3165 am__include="#"
3166 am__quote=
3167 _am_result=none
3168 # First try GNU make style include.
3169 echo "include confinc" > confmf
3170 # We grep out `Entering directory' and `Leaving directory'
3171 # messages which can occur if `w' ends up in MAKEFLAGS.
3172 # In particular we don't look at `^make:' because GNU make might
3173 # be invoked under some other name (usually "gmake"), in which
3174 # case it prints its new name instead of `make'.
3175 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3176 am__include=include
3177 am__quote=
3178 _am_result=GNU
3180 # Now try BSD make style include.
3181 if test "$am__include" = "#"; then
3182 echo '.include "confinc"' > confmf
3183 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3184 am__include=.include
3185 am__quote="\""
3186 _am_result=BSD
3191 echo "$as_me:$LINENO: result: $_am_result" >&5
3192 echo "${ECHO_T}$_am_result" >&6
3193 rm -f confinc confmf
3195 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3196 if test "${enable_dependency_tracking+set}" = set; then
3197 enableval="$enable_dependency_tracking"
3200 if test "x$enable_dependency_tracking" != xno; then
3201 am_depcomp="$ac_aux_dir/depcomp"
3202 AMDEPBACKSLASH='\'
3206 if test "x$enable_dependency_tracking" != xno; then
3207 AMDEP_TRUE=
3208 AMDEP_FALSE='#'
3209 else
3210 AMDEP_TRUE='#'
3211 AMDEP_FALSE=
3217 depcc="$CC" am_compiler_list=
3219 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3220 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3221 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3222 echo $ECHO_N "(cached) $ECHO_C" >&6
3223 else
3224 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3225 # We make a subdir and do the tests there. Otherwise we can end up
3226 # making bogus files that we don't know about and never remove. For
3227 # instance it was reported that on HP-UX the gcc test will end up
3228 # making a dummy file named `D' -- because `-MD' means `put the output
3229 # in D'.
3230 mkdir conftest.dir
3231 # Copy depcomp to subdir because otherwise we won't find it if we're
3232 # using a relative directory.
3233 cp "$am_depcomp" conftest.dir
3234 cd conftest.dir
3235 # We will build objects and dependencies in a subdirectory because
3236 # it helps to detect inapplicable dependency modes. For instance
3237 # both Tru64's cc and ICC support -MD to output dependencies as a
3238 # side effect of compilation, but ICC will put the dependencies in
3239 # the current directory while Tru64 will put them in the object
3240 # directory.
3241 mkdir sub
3243 am_cv_CC_dependencies_compiler_type=none
3244 if test "$am_compiler_list" = ""; then
3245 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3247 for depmode in $am_compiler_list; do
3248 # Setup a source with many dependencies, because some compilers
3249 # like to wrap large dependency lists on column 80 (with \), and
3250 # we should not choose a depcomp mode which is confused by this.
3252 # We need to recreate these files for each test, as the compiler may
3253 # overwrite some of them when testing with obscure command lines.
3254 # This happens at least with the AIX C compiler.
3255 : > sub/conftest.c
3256 for i in 1 2 3 4 5 6; do
3257 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3258 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3259 # Solaris 8's {/usr,}/bin/sh.
3260 touch sub/conftst$i.h
3261 done
3262 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3264 case $depmode in
3265 nosideeffect)
3266 # after this tag, mechanisms are not by side-effect, so they'll
3267 # only be used when explicitly requested
3268 if test "x$enable_dependency_tracking" = xyes; then
3269 continue
3270 else
3271 break
3274 none) break ;;
3275 esac
3276 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3277 # mode. It turns out that the SunPro C++ compiler does not properly
3278 # handle `-M -o', and we need to detect this.
3279 if depmode=$depmode \
3280 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3281 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3282 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3283 >/dev/null 2>conftest.err &&
3284 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3285 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3286 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3287 # icc doesn't choke on unknown options, it will just issue warnings
3288 # or remarks (even with -Werror). So we grep stderr for any message
3289 # that says an option was ignored or not supported.
3290 # When given -MP, icc 7.0 and 7.1 complain thusly:
3291 # icc: Command line warning: ignoring option '-M'; no argument required
3292 # The diagnosis changed in icc 8.0:
3293 # icc: Command line remark: option '-MP' not supported
3294 if (grep 'ignoring option' conftest.err ||
3295 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3296 am_cv_CC_dependencies_compiler_type=$depmode
3297 break
3300 done
3302 cd ..
3303 rm -rf conftest.dir
3304 else
3305 am_cv_CC_dependencies_compiler_type=none
3309 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3310 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3311 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3316 test "x$enable_dependency_tracking" != xno \
3317 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3318 am__fastdepCC_TRUE=
3319 am__fastdepCC_FALSE='#'
3320 else
3321 am__fastdepCC_TRUE='#'
3322 am__fastdepCC_FALSE=
3330 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
3331 # in XCFLAGS. But we need them in CFLAGS during configury. So put them
3332 # in both places for now and restore CFLAGS at the end of config.
3333 save_CFLAGS="$CFLAGS"
3335 # Add -Wall -Werror if we are using GCC.
3336 if test "x$GCC" = "xyes"; then
3337 XCFLAGS="$XCFLAGS -Wall -Werror"
3340 # Find other programs we need.
3341 if test -n "$ac_tool_prefix"; then
3342 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3343 set dummy ${ac_tool_prefix}ar; ac_word=$2
3344 echo "$as_me:$LINENO: checking for $ac_word" >&5
3345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3346 if test "${ac_cv_prog_AR+set}" = set; then
3347 echo $ECHO_N "(cached) $ECHO_C" >&6
3348 else
3349 if test -n "$AR"; then
3350 ac_cv_prog_AR="$AR" # Let the user override the test.
3351 else
3352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3353 for as_dir in $PATH
3355 IFS=$as_save_IFS
3356 test -z "$as_dir" && as_dir=.
3357 for ac_exec_ext in '' $ac_executable_extensions; do
3358 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3359 ac_cv_prog_AR="${ac_tool_prefix}ar"
3360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3361 break 2
3363 done
3364 done
3368 AR=$ac_cv_prog_AR
3369 if test -n "$AR"; then
3370 echo "$as_me:$LINENO: result: $AR" >&5
3371 echo "${ECHO_T}$AR" >&6
3372 else
3373 echo "$as_me:$LINENO: result: no" >&5
3374 echo "${ECHO_T}no" >&6
3378 if test -z "$ac_cv_prog_AR"; then
3379 ac_ct_AR=$AR
3380 # Extract the first word of "ar", so it can be a program name with args.
3381 set dummy ar; ac_word=$2
3382 echo "$as_me:$LINENO: checking for $ac_word" >&5
3383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3384 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3385 echo $ECHO_N "(cached) $ECHO_C" >&6
3386 else
3387 if test -n "$ac_ct_AR"; then
3388 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3389 else
3390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3391 for as_dir in $PATH
3393 IFS=$as_save_IFS
3394 test -z "$as_dir" && as_dir=.
3395 for ac_exec_ext in '' $ac_executable_extensions; do
3396 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3397 ac_cv_prog_ac_ct_AR="ar"
3398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3399 break 2
3401 done
3402 done
3406 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3407 if test -n "$ac_ct_AR"; then
3408 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3409 echo "${ECHO_T}$ac_ct_AR" >&6
3410 else
3411 echo "$as_me:$LINENO: result: no" >&5
3412 echo "${ECHO_T}no" >&6
3415 AR=$ac_ct_AR
3416 else
3417 AR="$ac_cv_prog_AR"
3420 if test -n "$ac_tool_prefix"; then
3421 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3422 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3423 echo "$as_me:$LINENO: checking for $ac_word" >&5
3424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3425 if test "${ac_cv_prog_RANLIB+set}" = set; then
3426 echo $ECHO_N "(cached) $ECHO_C" >&6
3427 else
3428 if test -n "$RANLIB"; then
3429 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3430 else
3431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3432 for as_dir in $PATH
3434 IFS=$as_save_IFS
3435 test -z "$as_dir" && as_dir=.
3436 for ac_exec_ext in '' $ac_executable_extensions; do
3437 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3438 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3440 break 2
3442 done
3443 done
3447 RANLIB=$ac_cv_prog_RANLIB
3448 if test -n "$RANLIB"; then
3449 echo "$as_me:$LINENO: result: $RANLIB" >&5
3450 echo "${ECHO_T}$RANLIB" >&6
3451 else
3452 echo "$as_me:$LINENO: result: no" >&5
3453 echo "${ECHO_T}no" >&6
3457 if test -z "$ac_cv_prog_RANLIB"; then
3458 ac_ct_RANLIB=$RANLIB
3459 # Extract the first word of "ranlib", so it can be a program name with args.
3460 set dummy ranlib; ac_word=$2
3461 echo "$as_me:$LINENO: checking for $ac_word" >&5
3462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3463 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3464 echo $ECHO_N "(cached) $ECHO_C" >&6
3465 else
3466 if test -n "$ac_ct_RANLIB"; then
3467 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3468 else
3469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3470 for as_dir in $PATH
3472 IFS=$as_save_IFS
3473 test -z "$as_dir" && as_dir=.
3474 for ac_exec_ext in '' $ac_executable_extensions; do
3475 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3476 ac_cv_prog_ac_ct_RANLIB="ranlib"
3477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3478 break 2
3480 done
3481 done
3483 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error"
3486 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3487 if test -n "$ac_ct_RANLIB"; then
3488 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3489 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3490 else
3491 echo "$as_me:$LINENO: result: no" >&5
3492 echo "${ECHO_T}no" >&6
3495 RANLIB=$ac_ct_RANLIB
3496 else
3497 RANLIB="$ac_cv_prog_RANLIB"
3500 # Extract the first word of "perl", so it can be a program name with args.
3501 set dummy perl; ac_word=$2
3502 echo "$as_me:$LINENO: checking for $ac_word" >&5
3503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3504 if test "${ac_cv_path_PERL+set}" = set; then
3505 echo $ECHO_N "(cached) $ECHO_C" >&6
3506 else
3507 case $PERL in
3508 [\\/]* | ?:[\\/]*)
3509 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3513 for as_dir in $PATH
3515 IFS=$as_save_IFS
3516 test -z "$as_dir" && as_dir=.
3517 for ac_exec_ext in '' $ac_executable_extensions; do
3518 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3519 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
3520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3521 break 2
3523 done
3524 done
3526 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
3528 esac
3530 PERL=$ac_cv_path_PERL
3532 if test -n "$PERL"; then
3533 echo "$as_me:$LINENO: result: $PERL" >&5
3534 echo "${ECHO_T}$PERL" >&6
3535 else
3536 echo "$as_me:$LINENO: result: no" >&5
3537 echo "${ECHO_T}no" >&6
3540 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3541 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3542 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3543 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3544 echo $ECHO_N "(cached) $ECHO_C" >&6
3545 else
3546 cat >conftest.make <<\_ACEOF
3547 all:
3548 @echo 'ac_maketemp="$(MAKE)"'
3549 _ACEOF
3550 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3551 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3552 if test -n "$ac_maketemp"; then
3553 eval ac_cv_prog_make_${ac_make}_set=yes
3554 else
3555 eval ac_cv_prog_make_${ac_make}_set=no
3557 rm -f conftest.make
3559 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3560 echo "$as_me:$LINENO: result: yes" >&5
3561 echo "${ECHO_T}yes" >&6
3562 SET_MAKE=
3563 else
3564 echo "$as_me:$LINENO: result: no" >&5
3565 echo "${ECHO_T}no" >&6
3566 SET_MAKE="MAKE=${MAKE-make}"
3569 # Find a good install program. We prefer a C program (faster),
3570 # so one script is as good as another. But avoid the broken or
3571 # incompatible versions:
3572 # SysV /etc/install, /usr/sbin/install
3573 # SunOS /usr/etc/install
3574 # IRIX /sbin/install
3575 # AIX /bin/install
3576 # AmigaOS /C/install, which installs bootblocks on floppy discs
3577 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3578 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3579 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3580 # OS/2's system install, which has a completely different semantic
3581 # ./install, which can be erroneously created by make from ./install.sh.
3582 # Reject install programs that cannot install multiple files.
3583 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3584 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3585 if test -z "$INSTALL"; then
3586 if test "${ac_cv_path_install+set}" = set; then
3587 echo $ECHO_N "(cached) $ECHO_C" >&6
3588 else
3589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3590 for as_dir in $PATH
3592 IFS=$as_save_IFS
3593 test -z "$as_dir" && as_dir=.
3594 # Account for people who put trailing slashes in PATH elements.
3595 case $as_dir/ in
3596 ./ | .// | /cC/* | \
3597 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3598 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3599 /usr/ucb/* ) ;;
3601 # OSF1 and SCO ODT 3.0 have their own names for install.
3602 # Don't use installbsd from OSF since it installs stuff as root
3603 # by default.
3604 for ac_prog in ginstall scoinst install; do
3605 for ac_exec_ext in '' $ac_executable_extensions; do
3606 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3607 if test $ac_prog = install &&
3608 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3609 # AIX install. It has an incompatible calling convention.
3611 elif test $ac_prog = install &&
3612 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3613 # program-specific install script used by HP pwplus--don't use.
3615 else
3616 rm -rf conftest.one conftest.two conftest.dir
3617 echo one > conftest.one
3618 echo two > conftest.two
3619 mkdir conftest.dir
3620 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3621 test -s conftest.one && test -s conftest.two &&
3622 test -s conftest.dir/conftest.one &&
3623 test -s conftest.dir/conftest.two
3624 then
3625 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3626 break 3
3630 done
3631 done
3633 esac
3634 done
3636 rm -rf conftest.one conftest.two conftest.dir
3639 if test "${ac_cv_path_install+set}" = set; then
3640 INSTALL=$ac_cv_path_install
3641 else
3642 # As a last resort, use the slow shell script. Don't cache a
3643 # value for INSTALL within a source directory, because that will
3644 # break other packages using the cache if that directory is
3645 # removed, or if the value is a relative name.
3646 INSTALL=$ac_install_sh
3649 echo "$as_me:$LINENO: result: $INSTALL" >&5
3650 echo "${ECHO_T}$INSTALL" >&6
3652 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3653 # It thinks the first close brace ends the variable substitution.
3654 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3656 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3658 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3661 # See if makeinfo has been installed and is modern enough
3662 # that we can use it.
3664 # Extract the first word of "makeinfo", so it can be a program name with args.
3665 set dummy makeinfo; ac_word=$2
3666 echo "$as_me:$LINENO: checking for $ac_word" >&5
3667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3668 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
3669 echo $ECHO_N "(cached) $ECHO_C" >&6
3670 else
3671 if test -n "$MAKEINFO"; then
3672 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3673 else
3674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3675 for as_dir in $PATH
3677 IFS=$as_save_IFS
3678 test -z "$as_dir" && as_dir=.
3679 for ac_exec_ext in '' $ac_executable_extensions; do
3680 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3681 ac_cv_prog_MAKEINFO="makeinfo"
3682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3683 break 2
3685 done
3686 done
3690 MAKEINFO=$ac_cv_prog_MAKEINFO
3691 if test -n "$MAKEINFO"; then
3692 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
3693 echo "${ECHO_T}$MAKEINFO" >&6
3694 else
3695 echo "$as_me:$LINENO: result: no" >&5
3696 echo "${ECHO_T}no" >&6
3699 if test -n "$MAKEINFO"; then
3700 # Found it, now check the version.
3701 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
3702 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
3703 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
3704 echo $ECHO_N "(cached) $ECHO_C" >&6
3705 else
3706 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
3707 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
3709 case $ac_prog_version in
3710 '') gcc_cv_prog_makeinfo_modern=no;;
3711 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
3712 *) gcc_cv_prog_makeinfo_modern=no;;
3713 esac
3716 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
3717 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
3718 else
3719 gcc_cv_prog_makeinfo_modern=no
3721 if test $gcc_cv_prog_makeinfo_modern = no; then
3722 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
3727 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
3728 BUILD_INFO_TRUE=
3729 BUILD_INFO_FALSE='#'
3730 else
3731 BUILD_INFO_TRUE='#'
3732 BUILD_INFO_FALSE=
3737 # Configure libtool
3738 case `pwd` in
3739 *\ * | *\ *)
3740 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3741 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3742 esac
3746 macro_version='2.2.6'
3747 macro_revision='1.3012'
3761 ltmain="$ac_aux_dir/ltmain.sh"
3763 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3764 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3765 if test "${lt_cv_path_SED+set}" = set; then
3766 echo $ECHO_N "(cached) $ECHO_C" >&6
3767 else
3768 # Loop through the user's path and test for sed and gsed.
3769 # Then use that list of sed's as ones to test for truncation.
3770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3771 for as_dir in $PATH
3773 IFS=$as_save_IFS
3774 test -z "$as_dir" && as_dir=.
3775 for lt_ac_prog in sed gsed; do
3776 for ac_exec_ext in '' $ac_executable_extensions; do
3777 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3778 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3780 done
3781 done
3782 done
3783 IFS=$as_save_IFS
3784 lt_ac_max=0
3785 lt_ac_count=0
3786 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3787 # along with /bin/sed that truncates output.
3788 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3789 test ! -f $lt_ac_sed && continue
3790 cat /dev/null > conftest.in
3791 lt_ac_count=0
3792 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3793 # Check for GNU sed and select it if it is found.
3794 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3795 lt_cv_path_SED=$lt_ac_sed
3796 break
3798 while true; do
3799 cat conftest.in conftest.in >conftest.tmp
3800 mv conftest.tmp conftest.in
3801 cp conftest.in conftest.nl
3802 echo >>conftest.nl
3803 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3804 cmp -s conftest.out conftest.nl || break
3805 # 10000 chars as input seems more than enough
3806 test $lt_ac_count -gt 10 && break
3807 lt_ac_count=`expr $lt_ac_count + 1`
3808 if test $lt_ac_count -gt $lt_ac_max; then
3809 lt_ac_max=$lt_ac_count
3810 lt_cv_path_SED=$lt_ac_sed
3812 done
3813 done
3817 SED=$lt_cv_path_SED
3819 echo "$as_me:$LINENO: result: $SED" >&5
3820 echo "${ECHO_T}$SED" >&6
3822 test -z "$SED" && SED=sed
3823 Xsed="$SED -e 1s/^X//"
3835 echo "$as_me:$LINENO: checking for egrep" >&5
3836 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3837 if test "${ac_cv_prog_egrep+set}" = set; then
3838 echo $ECHO_N "(cached) $ECHO_C" >&6
3839 else
3840 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3841 then ac_cv_prog_egrep='grep -E'
3842 else ac_cv_prog_egrep='egrep'
3845 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3846 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3847 EGREP=$ac_cv_prog_egrep
3850 echo "$as_me:$LINENO: checking for fgrep" >&5
3851 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
3852 if test "${ac_cv_prog_fgrep+set}" = set; then
3853 echo $ECHO_N "(cached) $ECHO_C" >&6
3854 else
3855 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
3856 then ac_cv_prog_fgrep='grep -F'
3857 else ac_cv_prog_fgrep='fgrep'
3860 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
3861 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
3862 FGREP=$ac_cv_prog_fgrep
3865 test -z "$GREP" && GREP=grep
3885 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3886 if test "${with_gnu_ld+set}" = set; then
3887 withval="$with_gnu_ld"
3888 test "$withval" = no || with_gnu_ld=yes
3889 else
3890 with_gnu_ld=no
3892 ac_prog=ld
3893 if test "$GCC" = yes; then
3894 # Check if gcc -print-prog-name=ld gives a path.
3895 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3896 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3897 case $host in
3898 *-*-mingw*)
3899 # gcc leaves a trailing carriage return which upsets mingw
3900 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3902 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3903 esac
3904 case $ac_prog in
3905 # Accept absolute paths.
3906 [\\/]* | ?:[\\/]*)
3907 re_direlt='/[^/][^/]*/\.\./'
3908 # Canonicalize the pathname of ld
3909 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3910 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3911 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3912 done
3913 test -z "$LD" && LD="$ac_prog"
3916 # If it fails, then pretend we aren't using GCC.
3917 ac_prog=ld
3920 # If it is relative, then search for the first ld in PATH.
3921 with_gnu_ld=unknown
3923 esac
3924 elif test "$with_gnu_ld" = yes; then
3925 echo "$as_me:$LINENO: checking for GNU ld" >&5
3926 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3927 else
3928 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3929 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3931 if test "${lt_cv_path_LD+set}" = set; then
3932 echo $ECHO_N "(cached) $ECHO_C" >&6
3933 else
3934 if test -z "$LD"; then
3935 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3936 for ac_dir in $PATH; do
3937 IFS="$lt_save_ifs"
3938 test -z "$ac_dir" && ac_dir=.
3939 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3940 lt_cv_path_LD="$ac_dir/$ac_prog"
3941 # Check to see if the program is GNU ld. I'd rather use --version,
3942 # but apparently some variants of GNU ld only accept -v.
3943 # Break only if it was the GNU/non-GNU ld that we prefer.
3944 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3945 *GNU* | *'with BFD'*)
3946 test "$with_gnu_ld" != no && break
3949 test "$with_gnu_ld" != yes && break
3951 esac
3953 done
3954 IFS="$lt_save_ifs"
3955 else
3956 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3960 LD="$lt_cv_path_LD"
3961 if test -n "$LD"; then
3962 echo "$as_me:$LINENO: result: $LD" >&5
3963 echo "${ECHO_T}$LD" >&6
3964 else
3965 echo "$as_me:$LINENO: result: no" >&5
3966 echo "${ECHO_T}no" >&6
3968 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3969 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3970 { (exit 1); exit 1; }; }
3971 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3972 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3973 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3974 echo $ECHO_N "(cached) $ECHO_C" >&6
3975 else
3976 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3977 case `$LD -v 2>&1 </dev/null` in
3978 *GNU* | *'with BFD'*)
3979 lt_cv_prog_gnu_ld=yes
3982 lt_cv_prog_gnu_ld=no
3984 esac
3986 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3987 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3988 with_gnu_ld=$lt_cv_prog_gnu_ld
3998 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
3999 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
4000 if test "${lt_cv_path_NM+set}" = set; then
4001 echo $ECHO_N "(cached) $ECHO_C" >&6
4002 else
4003 if test -n "$NM"; then
4004 # Let the user override the test.
4005 lt_cv_path_NM="$NM"
4006 else
4007 lt_nm_to_check="${ac_tool_prefix}nm"
4008 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4009 lt_nm_to_check="$lt_nm_to_check nm"
4011 for lt_tmp_nm in $lt_nm_to_check; do
4012 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4013 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4014 IFS="$lt_save_ifs"
4015 test -z "$ac_dir" && ac_dir=.
4016 tmp_nm="$ac_dir/$lt_tmp_nm"
4017 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4018 # Check to see if the nm accepts a BSD-compat flag.
4019 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4020 # nm: unknown option "B" ignored
4021 # Tru64's nm complains that /dev/null is an invalid object file
4022 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4023 */dev/null* | *'Invalid file or object type'*)
4024 lt_cv_path_NM="$tmp_nm -B"
4025 break
4028 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4029 */dev/null*)
4030 lt_cv_path_NM="$tmp_nm -p"
4031 break
4034 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4035 continue # so that we can try to find one that supports BSD flags
4037 esac
4039 esac
4041 done
4042 IFS="$lt_save_ifs"
4043 done
4044 : ${lt_cv_path_NM=no}
4047 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4048 echo "${ECHO_T}$lt_cv_path_NM" >&6
4049 if test "$lt_cv_path_NM" != "no"; then
4050 NM="$lt_cv_path_NM"
4051 else
4052 # Didn't find any BSD compatible name lister, look for dumpbin.
4053 if test -n "$ac_tool_prefix"; then
4054 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4056 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4057 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4058 echo "$as_me:$LINENO: checking for $ac_word" >&5
4059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4060 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4061 echo $ECHO_N "(cached) $ECHO_C" >&6
4062 else
4063 if test -n "$DUMPBIN"; then
4064 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4065 else
4066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4067 for as_dir in $PATH
4069 IFS=$as_save_IFS
4070 test -z "$as_dir" && as_dir=.
4071 for ac_exec_ext in '' $ac_executable_extensions; do
4072 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4073 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4075 break 2
4077 done
4078 done
4082 DUMPBIN=$ac_cv_prog_DUMPBIN
4083 if test -n "$DUMPBIN"; then
4084 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4085 echo "${ECHO_T}$DUMPBIN" >&6
4086 else
4087 echo "$as_me:$LINENO: result: no" >&5
4088 echo "${ECHO_T}no" >&6
4091 test -n "$DUMPBIN" && break
4092 done
4094 if test -z "$DUMPBIN"; then
4095 ac_ct_DUMPBIN=$DUMPBIN
4096 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4098 # Extract the first word of "$ac_prog", so it can be a program name with args.
4099 set dummy $ac_prog; ac_word=$2
4100 echo "$as_me:$LINENO: checking for $ac_word" >&5
4101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4102 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4103 echo $ECHO_N "(cached) $ECHO_C" >&6
4104 else
4105 if test -n "$ac_ct_DUMPBIN"; then
4106 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4107 else
4108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4109 for as_dir in $PATH
4111 IFS=$as_save_IFS
4112 test -z "$as_dir" && as_dir=.
4113 for ac_exec_ext in '' $ac_executable_extensions; do
4114 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4115 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4117 break 2
4119 done
4120 done
4124 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4125 if test -n "$ac_ct_DUMPBIN"; then
4126 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4127 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4128 else
4129 echo "$as_me:$LINENO: result: no" >&5
4130 echo "${ECHO_T}no" >&6
4133 test -n "$ac_ct_DUMPBIN" && break
4134 done
4135 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
4137 DUMPBIN=$ac_ct_DUMPBIN
4141 if test "$DUMPBIN" != ":"; then
4142 NM="$DUMPBIN"
4145 test -z "$NM" && NM=nm
4152 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4153 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4154 if test "${lt_cv_nm_interface+set}" = set; then
4155 echo $ECHO_N "(cached) $ECHO_C" >&6
4156 else
4157 lt_cv_nm_interface="BSD nm"
4158 echo "int some_variable = 0;" > conftest.$ac_ext
4159 (eval echo "\"\$as_me:4159: $ac_compile\"" >&5)
4160 (eval "$ac_compile" 2>conftest.err)
4161 cat conftest.err >&5
4162 (eval echo "\"\$as_me:4162: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4163 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4164 cat conftest.err >&5
4165 (eval echo "\"\$as_me:4165: output\"" >&5)
4166 cat conftest.out >&5
4167 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4168 lt_cv_nm_interface="MS dumpbin"
4170 rm -f conftest*
4172 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4173 echo "${ECHO_T}$lt_cv_nm_interface" >&6
4175 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4176 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4177 LN_S=$as_ln_s
4178 if test "$LN_S" = "ln -s"; then
4179 echo "$as_me:$LINENO: result: yes" >&5
4180 echo "${ECHO_T}yes" >&6
4181 else
4182 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4183 echo "${ECHO_T}no, using $LN_S" >&6
4186 # find the maximum length of command line arguments
4187 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4188 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4189 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4190 echo $ECHO_N "(cached) $ECHO_C" >&6
4191 else
4193 teststring="ABCD"
4195 case $build_os in
4196 msdosdjgpp*)
4197 # On DJGPP, this test can blow up pretty badly due to problems in libc
4198 # (any single argument exceeding 2000 bytes causes a buffer overrun
4199 # during glob expansion). Even if it were fixed, the result of this
4200 # check would be larger than it should be.
4201 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4204 gnu*)
4205 # Under GNU Hurd, this test is not required because there is
4206 # no limit to the length of command line arguments.
4207 # Libtool will interpret -1 as no limit whatsoever
4208 lt_cv_sys_max_cmd_len=-1;
4211 cygwin* | mingw* | cegcc*)
4212 # On Win9x/ME, this test blows up -- it succeeds, but takes
4213 # about 5 minutes as the teststring grows exponentially.
4214 # Worse, since 9x/ME are not pre-emptively multitasking,
4215 # you end up with a "frozen" computer, even though with patience
4216 # the test eventually succeeds (with a max line length of 256k).
4217 # Instead, let's just punt: use the minimum linelength reported by
4218 # all of the supported platforms: 8192 (on NT/2K/XP).
4219 lt_cv_sys_max_cmd_len=8192;
4222 amigaos*)
4223 # On AmigaOS with pdksh, this test takes hours, literally.
4224 # So we just punt and use a minimum line length of 8192.
4225 lt_cv_sys_max_cmd_len=8192;
4228 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4229 # This has been around since 386BSD, at least. Likely further.
4230 if test -x /sbin/sysctl; then
4231 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4232 elif test -x /usr/sbin/sysctl; then
4233 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4234 else
4235 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4237 # And add a safety zone
4238 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4239 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4242 interix*)
4243 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4244 lt_cv_sys_max_cmd_len=196608
4247 osf*)
4248 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4249 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4250 # nice to cause kernel panics so lets avoid the loop below.
4251 # First set a reasonable default.
4252 lt_cv_sys_max_cmd_len=16384
4254 if test -x /sbin/sysconfig; then
4255 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4256 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4257 esac
4260 sco3.2v5*)
4261 lt_cv_sys_max_cmd_len=102400
4263 sysv5* | sco5v6* | sysv4.2uw2*)
4264 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4265 if test -n "$kargmax"; then
4266 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4267 else
4268 lt_cv_sys_max_cmd_len=32768
4272 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4273 if test -n "$lt_cv_sys_max_cmd_len"; then
4274 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4275 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4276 else
4277 # Make teststring a little bigger before we do anything with it.
4278 # a 1K string should be a reasonable start.
4279 for i in 1 2 3 4 5 6 7 8 ; do
4280 teststring=$teststring$teststring
4281 done
4282 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4283 # If test is not a shell built-in, we'll probably end up computing a
4284 # maximum length that is only half of the actual maximum length, but
4285 # we can't tell.
4286 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4287 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4288 test $i != 17 # 1/2 MB should be enough
4290 i=`expr $i + 1`
4291 teststring=$teststring$teststring
4292 done
4293 # Only check the string length outside the loop.
4294 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4295 teststring=
4296 # Add a significant safety factor because C++ compilers can tack on
4297 # massive amounts of additional arguments before passing them to the
4298 # linker. It appears as though 1/2 is a usable value.
4299 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4302 esac
4306 if test -n $lt_cv_sys_max_cmd_len ; then
4307 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4308 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4309 else
4310 echo "$as_me:$LINENO: result: none" >&5
4311 echo "${ECHO_T}none" >&6
4313 max_cmd_len=$lt_cv_sys_max_cmd_len
4320 : ${CP="cp -f"}
4321 : ${MV="mv -f"}
4322 : ${RM="rm -f"}
4324 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4325 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4326 # Try some XSI features
4327 xsi_shell=no
4328 ( _lt_dummy="a/b/c"
4329 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4330 = c,a/b,, \
4331 && eval 'test $(( 1 + 1 )) -eq 2 \
4332 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4333 && xsi_shell=yes
4334 echo "$as_me:$LINENO: result: $xsi_shell" >&5
4335 echo "${ECHO_T}$xsi_shell" >&6
4338 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4339 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4340 lt_shell_append=no
4341 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4342 >/dev/null 2>&1 \
4343 && lt_shell_append=yes
4344 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4345 echo "${ECHO_T}$lt_shell_append" >&6
4348 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4349 lt_unset=unset
4350 else
4351 lt_unset=false
4358 # test EBCDIC or ASCII
4359 case `echo X|tr X '\101'` in
4360 A) # ASCII based system
4361 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4362 lt_SP2NL='tr \040 \012'
4363 lt_NL2SP='tr \015\012 \040\040'
4365 *) # EBCDIC based system
4366 lt_SP2NL='tr \100 \n'
4367 lt_NL2SP='tr \r\n \100\100'
4369 esac
4379 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4380 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4381 if test "${lt_cv_ld_reload_flag+set}" = set; then
4382 echo $ECHO_N "(cached) $ECHO_C" >&6
4383 else
4384 lt_cv_ld_reload_flag='-r'
4386 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4387 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4388 reload_flag=$lt_cv_ld_reload_flag
4389 case $reload_flag in
4390 "" | " "*) ;;
4391 *) reload_flag=" $reload_flag" ;;
4392 esac
4393 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4394 case $host_os in
4395 darwin*)
4396 if test "$GCC" = yes; then
4397 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4398 else
4399 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4402 esac
4412 if test -n "$ac_tool_prefix"; then
4413 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4414 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4415 echo "$as_me:$LINENO: checking for $ac_word" >&5
4416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4417 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4418 echo $ECHO_N "(cached) $ECHO_C" >&6
4419 else
4420 if test -n "$OBJDUMP"; then
4421 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4422 else
4423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4424 for as_dir in $PATH
4426 IFS=$as_save_IFS
4427 test -z "$as_dir" && as_dir=.
4428 for ac_exec_ext in '' $ac_executable_extensions; do
4429 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4430 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4432 break 2
4434 done
4435 done
4439 OBJDUMP=$ac_cv_prog_OBJDUMP
4440 if test -n "$OBJDUMP"; then
4441 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4442 echo "${ECHO_T}$OBJDUMP" >&6
4443 else
4444 echo "$as_me:$LINENO: result: no" >&5
4445 echo "${ECHO_T}no" >&6
4449 if test -z "$ac_cv_prog_OBJDUMP"; then
4450 ac_ct_OBJDUMP=$OBJDUMP
4451 # Extract the first word of "objdump", so it can be a program name with args.
4452 set dummy objdump; ac_word=$2
4453 echo "$as_me:$LINENO: checking for $ac_word" >&5
4454 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4455 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4456 echo $ECHO_N "(cached) $ECHO_C" >&6
4457 else
4458 if test -n "$ac_ct_OBJDUMP"; then
4459 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4460 else
4461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4462 for as_dir in $PATH
4464 IFS=$as_save_IFS
4465 test -z "$as_dir" && as_dir=.
4466 for ac_exec_ext in '' $ac_executable_extensions; do
4467 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4468 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4470 break 2
4472 done
4473 done
4475 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
4478 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4479 if test -n "$ac_ct_OBJDUMP"; then
4480 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4481 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
4482 else
4483 echo "$as_me:$LINENO: result: no" >&5
4484 echo "${ECHO_T}no" >&6
4487 OBJDUMP=$ac_ct_OBJDUMP
4488 else
4489 OBJDUMP="$ac_cv_prog_OBJDUMP"
4492 test -z "$OBJDUMP" && OBJDUMP=objdump
4502 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4503 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4504 if test "${lt_cv_deplibs_check_method+set}" = set; then
4505 echo $ECHO_N "(cached) $ECHO_C" >&6
4506 else
4507 lt_cv_file_magic_cmd='$MAGIC_CMD'
4508 lt_cv_file_magic_test_file=
4509 lt_cv_deplibs_check_method='unknown'
4510 # Need to set the preceding variable on all platforms that support
4511 # interlibrary dependencies.
4512 # 'none' -- dependencies not supported.
4513 # `unknown' -- same as none, but documents that we really don't know.
4514 # 'pass_all' -- all dependencies passed with no checks.
4515 # 'test_compile' -- check by making test program.
4516 # 'file_magic [[regex]]' -- check by looking for files in library path
4517 # which responds to the $file_magic_cmd with a given extended regex.
4518 # If you have `file' or equivalent on your system and you're not sure
4519 # whether `pass_all' will *always* work, you probably want this one.
4521 case $host_os in
4522 aix[4-9]*)
4523 lt_cv_deplibs_check_method=pass_all
4526 beos*)
4527 lt_cv_deplibs_check_method=pass_all
4530 bsdi[45]*)
4531 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4532 lt_cv_file_magic_cmd='/usr/bin/file -L'
4533 lt_cv_file_magic_test_file=/shlib/libc.so
4536 cygwin*)
4537 # func_win32_libid is a shell function defined in ltmain.sh
4538 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4539 lt_cv_file_magic_cmd='func_win32_libid'
4542 mingw* | pw32*)
4543 # Base MSYS/MinGW do not provide the 'file' command needed by
4544 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4545 # unless we find 'file', for example because we are cross-compiling.
4546 if ( file / ) >/dev/null 2>&1; then
4547 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4548 lt_cv_file_magic_cmd='func_win32_libid'
4549 else
4550 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4551 lt_cv_file_magic_cmd='$OBJDUMP -f'
4555 cegcc)
4556 # use the weaker test based on 'objdump'. See mingw*.
4557 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4558 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'
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* | cegcc*)
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'"
5107 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
5109 # Handle CRLF in mingw tool chain
5110 opt_cr=
5111 case $build_os in
5112 mingw*)
5113 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5115 esac
5117 # Try without a prefix underscore, then with it.
5118 for ac_symprfx in "" "_"; do
5120 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5121 symxfrm="\\1 $ac_symprfx\\2 \\2"
5123 # Write the raw and C identifiers.
5124 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5125 # Fake it for dumpbin and say T for any non-static function
5126 # and D for any global variable.
5127 # Also find C++ and __fastcall symbols from MSVC++,
5128 # which start with @ or ?.
5129 lt_cv_sys_global_symbol_pipe="$AWK '"\
5130 " {last_section=section; section=\$ 3};"\
5131 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5132 " \$ 0!~/External *\|/{next};"\
5133 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5134 " {if(hide[section]) next};"\
5135 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5136 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5137 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5138 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5139 " ' prfx=^$ac_symprfx"
5140 else
5141 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5144 # Check to see that the pipe works correctly.
5145 pipe_works=no
5147 rm -f conftest*
5148 cat > conftest.$ac_ext <<_LT_EOF
5149 #ifdef __cplusplus
5150 extern "C" {
5151 #endif
5152 char nm_test_var;
5153 void nm_test_func(void);
5154 void nm_test_func(void){}
5155 #ifdef __cplusplus
5157 #endif
5158 int main(){nm_test_var='a';nm_test_func();return(0);}
5159 _LT_EOF
5161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5162 (eval $ac_compile) 2>&5
5163 ac_status=$?
5164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165 (exit $ac_status); }; then
5166 # Now try to grab the symbols.
5167 nlist=conftest.nm
5168 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5169 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5170 ac_status=$?
5171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172 (exit $ac_status); } && test -s "$nlist"; then
5173 # Try sorting and uniquifying the output.
5174 if sort "$nlist" | uniq > "$nlist"T; then
5175 mv -f "$nlist"T "$nlist"
5176 else
5177 rm -f "$nlist"T
5180 # Make sure that we snagged all the symbols we need.
5181 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5182 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5183 cat <<_LT_EOF > conftest.$ac_ext
5184 #ifdef __cplusplus
5185 extern "C" {
5186 #endif
5188 _LT_EOF
5189 # Now generate the symbol file.
5190 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5192 cat <<_LT_EOF >> conftest.$ac_ext
5194 /* The mapping between symbol names and symbols. */
5195 const struct {
5196 const char *name;
5197 void *address;
5199 lt__PROGRAM__LTX_preloaded_symbols[] =
5201 { "@PROGRAM@", (void *) 0 },
5202 _LT_EOF
5203 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5204 cat <<\_LT_EOF >> conftest.$ac_ext
5205 {0, (void *) 0}
5208 /* This works around a problem in FreeBSD linker */
5209 #ifdef FREEBSD_WORKAROUND
5210 static const void *lt_preloaded_setup() {
5211 return lt__PROGRAM__LTX_preloaded_symbols;
5213 #endif
5215 #ifdef __cplusplus
5217 #endif
5218 _LT_EOF
5219 # Now try linking the two files.
5220 mv conftest.$ac_objext conftstm.$ac_objext
5221 lt_save_LIBS="$LIBS"
5222 lt_save_CFLAGS="$CFLAGS"
5223 LIBS="conftstm.$ac_objext"
5224 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5226 (eval $ac_link) 2>&5
5227 ac_status=$?
5228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5230 pipe_works=yes
5232 LIBS="$lt_save_LIBS"
5233 CFLAGS="$lt_save_CFLAGS"
5234 else
5235 echo "cannot find nm_test_func in $nlist" >&5
5237 else
5238 echo "cannot find nm_test_var in $nlist" >&5
5240 else
5241 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5243 else
5244 echo "$progname: failed program was:" >&5
5245 cat conftest.$ac_ext >&5
5247 rm -rf conftest* conftst*
5249 # Do not use the global_symbol_pipe unless it works.
5250 if test "$pipe_works" = yes; then
5251 break
5252 else
5253 lt_cv_sys_global_symbol_pipe=
5255 done
5259 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5260 lt_cv_sys_global_symbol_to_cdecl=
5262 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5263 echo "$as_me:$LINENO: result: failed" >&5
5264 echo "${ECHO_T}failed" >&6
5265 else
5266 echo "$as_me:$LINENO: result: ok" >&5
5267 echo "${ECHO_T}ok" >&6
5292 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5293 if test "${enable_libtool_lock+set}" = set; then
5294 enableval="$enable_libtool_lock"
5297 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5299 # Some flags need to be propagated to the compiler or linker for good
5300 # libtool support.
5301 case $host in
5302 ia64-*-hpux*)
5303 # Find out which ABI we are using.
5304 echo 'int i;' > conftest.$ac_ext
5305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5306 (eval $ac_compile) 2>&5
5307 ac_status=$?
5308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309 (exit $ac_status); }; then
5310 case `/usr/bin/file conftest.$ac_objext` in
5311 *ELF-32*)
5312 HPUX_IA64_MODE="32"
5314 *ELF-64*)
5315 HPUX_IA64_MODE="64"
5317 esac
5319 rm -rf conftest*
5321 *-*-irix6*)
5322 # Find out which ABI we are using.
5323 echo '#line 5323 "configure"' > conftest.$ac_ext
5324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5325 (eval $ac_compile) 2>&5
5326 ac_status=$?
5327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328 (exit $ac_status); }; then
5329 if test "$lt_cv_prog_gnu_ld" = yes; then
5330 case `/usr/bin/file conftest.$ac_objext` in
5331 *32-bit*)
5332 LD="${LD-ld} -melf32bsmip"
5334 *N32*)
5335 LD="${LD-ld} -melf32bmipn32"
5337 *64-bit*)
5338 LD="${LD-ld} -melf64bmip"
5340 esac
5341 else
5342 case `/usr/bin/file conftest.$ac_objext` in
5343 *32-bit*)
5344 LD="${LD-ld} -32"
5346 *N32*)
5347 LD="${LD-ld} -n32"
5349 *64-bit*)
5350 LD="${LD-ld} -64"
5352 esac
5355 rm -rf conftest*
5358 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5359 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5360 # Find out which ABI we are using.
5361 echo 'int i;' > conftest.$ac_ext
5362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5363 (eval $ac_compile) 2>&5
5364 ac_status=$?
5365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366 (exit $ac_status); }; then
5367 case `/usr/bin/file conftest.o` in
5368 *32-bit*)
5369 case $host in
5370 x86_64-*kfreebsd*-gnu)
5371 LD="${LD-ld} -m elf_i386_fbsd"
5373 x86_64-*linux*)
5374 LD="${LD-ld} -m elf_i386"
5376 ppc64-*linux*|powerpc64-*linux*)
5377 LD="${LD-ld} -m elf32ppclinux"
5379 s390x-*linux*)
5380 LD="${LD-ld} -m elf_s390"
5382 sparc64-*linux*)
5383 LD="${LD-ld} -m elf32_sparc"
5385 esac
5387 *64-bit*)
5388 case $host in
5389 x86_64-*kfreebsd*-gnu)
5390 LD="${LD-ld} -m elf_x86_64_fbsd"
5392 x86_64-*linux*)
5393 LD="${LD-ld} -m elf_x86_64"
5395 ppc*-*linux*|powerpc*-*linux*)
5396 LD="${LD-ld} -m elf64ppc"
5398 s390*-*linux*|s390*-*tpf*)
5399 LD="${LD-ld} -m elf64_s390"
5401 sparc*-*linux*)
5402 LD="${LD-ld} -m elf64_sparc"
5404 esac
5406 esac
5408 rm -rf conftest*
5411 *-*-sco3.2v5*)
5412 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5413 SAVE_CFLAGS="$CFLAGS"
5414 CFLAGS="$CFLAGS -belf"
5415 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5416 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5417 if test "${lt_cv_cc_needs_belf+set}" = set; then
5418 echo $ECHO_N "(cached) $ECHO_C" >&6
5419 else
5420 ac_ext=c
5421 ac_cpp='$CPP $CPPFLAGS'
5422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5426 cat >conftest.$ac_ext <<_ACEOF
5427 /* confdefs.h. */
5428 _ACEOF
5429 cat confdefs.h >>conftest.$ac_ext
5430 cat >>conftest.$ac_ext <<_ACEOF
5431 /* end confdefs.h. */
5434 main ()
5438 return 0;
5440 _ACEOF
5441 rm -f conftest.$ac_objext conftest$ac_exeext
5442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5443 (eval $ac_link) 2>conftest.er1
5444 ac_status=$?
5445 grep -v '^ *+' conftest.er1 >conftest.err
5446 rm -f conftest.er1
5447 cat conftest.err >&5
5448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449 (exit $ac_status); } &&
5450 { ac_try='test -z "$ac_c_werror_flag"
5451 || test ! -s conftest.err'
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); }; } &&
5457 { ac_try='test -s conftest$ac_exeext'
5458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5459 (eval $ac_try) 2>&5
5460 ac_status=$?
5461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462 (exit $ac_status); }; }; then
5463 lt_cv_cc_needs_belf=yes
5464 else
5465 echo "$as_me: failed program was:" >&5
5466 sed 's/^/| /' conftest.$ac_ext >&5
5468 lt_cv_cc_needs_belf=no
5470 rm -f conftest.err conftest.$ac_objext \
5471 conftest$ac_exeext conftest.$ac_ext
5472 ac_ext=c
5473 ac_cpp='$CPP $CPPFLAGS'
5474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5479 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5480 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5481 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5482 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5483 CFLAGS="$SAVE_CFLAGS"
5486 sparc*-*solaris*)
5487 # Find out which ABI we are using.
5488 echo 'int i;' > conftest.$ac_ext
5489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5490 (eval $ac_compile) 2>&5
5491 ac_status=$?
5492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5493 (exit $ac_status); }; then
5494 case `/usr/bin/file conftest.o` in
5495 *64-bit*)
5496 case $lt_cv_prog_gnu_ld in
5497 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5499 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5500 LD="${LD-ld} -64"
5503 esac
5505 esac
5507 rm -rf conftest*
5509 esac
5511 need_locks="$enable_libtool_lock"
5514 case $host_os in
5515 rhapsody* | darwin*)
5516 if test -n "$ac_tool_prefix"; then
5517 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5518 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5519 echo "$as_me:$LINENO: checking for $ac_word" >&5
5520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5521 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5522 echo $ECHO_N "(cached) $ECHO_C" >&6
5523 else
5524 if test -n "$DSYMUTIL"; then
5525 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5526 else
5527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5528 for as_dir in $PATH
5530 IFS=$as_save_IFS
5531 test -z "$as_dir" && as_dir=.
5532 for ac_exec_ext in '' $ac_executable_extensions; do
5533 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5534 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5536 break 2
5538 done
5539 done
5543 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5544 if test -n "$DSYMUTIL"; then
5545 echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5546 echo "${ECHO_T}$DSYMUTIL" >&6
5547 else
5548 echo "$as_me:$LINENO: result: no" >&5
5549 echo "${ECHO_T}no" >&6
5553 if test -z "$ac_cv_prog_DSYMUTIL"; then
5554 ac_ct_DSYMUTIL=$DSYMUTIL
5555 # Extract the first word of "dsymutil", so it can be a program name with args.
5556 set dummy dsymutil; ac_word=$2
5557 echo "$as_me:$LINENO: checking for $ac_word" >&5
5558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5559 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5560 echo $ECHO_N "(cached) $ECHO_C" >&6
5561 else
5562 if test -n "$ac_ct_DSYMUTIL"; then
5563 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5564 else
5565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5566 for as_dir in $PATH
5568 IFS=$as_save_IFS
5569 test -z "$as_dir" && as_dir=.
5570 for ac_exec_ext in '' $ac_executable_extensions; do
5571 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5572 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5574 break 2
5576 done
5577 done
5579 test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
5582 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5583 if test -n "$ac_ct_DSYMUTIL"; then
5584 echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5585 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
5586 else
5587 echo "$as_me:$LINENO: result: no" >&5
5588 echo "${ECHO_T}no" >&6
5591 DSYMUTIL=$ac_ct_DSYMUTIL
5592 else
5593 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5596 if test -n "$ac_tool_prefix"; then
5597 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5598 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5599 echo "$as_me:$LINENO: checking for $ac_word" >&5
5600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5601 if test "${ac_cv_prog_NMEDIT+set}" = set; then
5602 echo $ECHO_N "(cached) $ECHO_C" >&6
5603 else
5604 if test -n "$NMEDIT"; then
5605 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5606 else
5607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5608 for as_dir in $PATH
5610 IFS=$as_save_IFS
5611 test -z "$as_dir" && as_dir=.
5612 for ac_exec_ext in '' $ac_executable_extensions; do
5613 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5614 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5616 break 2
5618 done
5619 done
5623 NMEDIT=$ac_cv_prog_NMEDIT
5624 if test -n "$NMEDIT"; then
5625 echo "$as_me:$LINENO: result: $NMEDIT" >&5
5626 echo "${ECHO_T}$NMEDIT" >&6
5627 else
5628 echo "$as_me:$LINENO: result: no" >&5
5629 echo "${ECHO_T}no" >&6
5633 if test -z "$ac_cv_prog_NMEDIT"; then
5634 ac_ct_NMEDIT=$NMEDIT
5635 # Extract the first word of "nmedit", so it can be a program name with args.
5636 set dummy nmedit; ac_word=$2
5637 echo "$as_me:$LINENO: checking for $ac_word" >&5
5638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5639 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
5640 echo $ECHO_N "(cached) $ECHO_C" >&6
5641 else
5642 if test -n "$ac_ct_NMEDIT"; then
5643 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5644 else
5645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5646 for as_dir in $PATH
5648 IFS=$as_save_IFS
5649 test -z "$as_dir" && as_dir=.
5650 for ac_exec_ext in '' $ac_executable_extensions; do
5651 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5652 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5654 break 2
5656 done
5657 done
5659 test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
5662 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5663 if test -n "$ac_ct_NMEDIT"; then
5664 echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
5665 echo "${ECHO_T}$ac_ct_NMEDIT" >&6
5666 else
5667 echo "$as_me:$LINENO: result: no" >&5
5668 echo "${ECHO_T}no" >&6
5671 NMEDIT=$ac_ct_NMEDIT
5672 else
5673 NMEDIT="$ac_cv_prog_NMEDIT"
5676 if test -n "$ac_tool_prefix"; then
5677 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5678 set dummy ${ac_tool_prefix}lipo; ac_word=$2
5679 echo "$as_me:$LINENO: checking for $ac_word" >&5
5680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5681 if test "${ac_cv_prog_LIPO+set}" = set; then
5682 echo $ECHO_N "(cached) $ECHO_C" >&6
5683 else
5684 if test -n "$LIPO"; then
5685 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5686 else
5687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5688 for as_dir in $PATH
5690 IFS=$as_save_IFS
5691 test -z "$as_dir" && as_dir=.
5692 for ac_exec_ext in '' $ac_executable_extensions; do
5693 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5694 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5696 break 2
5698 done
5699 done
5703 LIPO=$ac_cv_prog_LIPO
5704 if test -n "$LIPO"; then
5705 echo "$as_me:$LINENO: result: $LIPO" >&5
5706 echo "${ECHO_T}$LIPO" >&6
5707 else
5708 echo "$as_me:$LINENO: result: no" >&5
5709 echo "${ECHO_T}no" >&6
5713 if test -z "$ac_cv_prog_LIPO"; then
5714 ac_ct_LIPO=$LIPO
5715 # Extract the first word of "lipo", so it can be a program name with args.
5716 set dummy lipo; ac_word=$2
5717 echo "$as_me:$LINENO: checking for $ac_word" >&5
5718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5719 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
5720 echo $ECHO_N "(cached) $ECHO_C" >&6
5721 else
5722 if test -n "$ac_ct_LIPO"; then
5723 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5724 else
5725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5726 for as_dir in $PATH
5728 IFS=$as_save_IFS
5729 test -z "$as_dir" && as_dir=.
5730 for ac_exec_ext in '' $ac_executable_extensions; do
5731 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5732 ac_cv_prog_ac_ct_LIPO="lipo"
5733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5734 break 2
5736 done
5737 done
5739 test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
5742 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5743 if test -n "$ac_ct_LIPO"; then
5744 echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
5745 echo "${ECHO_T}$ac_ct_LIPO" >&6
5746 else
5747 echo "$as_me:$LINENO: result: no" >&5
5748 echo "${ECHO_T}no" >&6
5751 LIPO=$ac_ct_LIPO
5752 else
5753 LIPO="$ac_cv_prog_LIPO"
5756 if test -n "$ac_tool_prefix"; then
5757 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5758 set dummy ${ac_tool_prefix}otool; ac_word=$2
5759 echo "$as_me:$LINENO: checking for $ac_word" >&5
5760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5761 if test "${ac_cv_prog_OTOOL+set}" = set; then
5762 echo $ECHO_N "(cached) $ECHO_C" >&6
5763 else
5764 if test -n "$OTOOL"; then
5765 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5766 else
5767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5768 for as_dir in $PATH
5770 IFS=$as_save_IFS
5771 test -z "$as_dir" && as_dir=.
5772 for ac_exec_ext in '' $ac_executable_extensions; do
5773 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5774 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5776 break 2
5778 done
5779 done
5783 OTOOL=$ac_cv_prog_OTOOL
5784 if test -n "$OTOOL"; then
5785 echo "$as_me:$LINENO: result: $OTOOL" >&5
5786 echo "${ECHO_T}$OTOOL" >&6
5787 else
5788 echo "$as_me:$LINENO: result: no" >&5
5789 echo "${ECHO_T}no" >&6
5793 if test -z "$ac_cv_prog_OTOOL"; then
5794 ac_ct_OTOOL=$OTOOL
5795 # Extract the first word of "otool", so it can be a program name with args.
5796 set dummy otool; ac_word=$2
5797 echo "$as_me:$LINENO: checking for $ac_word" >&5
5798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5799 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
5800 echo $ECHO_N "(cached) $ECHO_C" >&6
5801 else
5802 if test -n "$ac_ct_OTOOL"; then
5803 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5804 else
5805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5806 for as_dir in $PATH
5808 IFS=$as_save_IFS
5809 test -z "$as_dir" && as_dir=.
5810 for ac_exec_ext in '' $ac_executable_extensions; do
5811 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5812 ac_cv_prog_ac_ct_OTOOL="otool"
5813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5814 break 2
5816 done
5817 done
5819 test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
5822 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5823 if test -n "$ac_ct_OTOOL"; then
5824 echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
5825 echo "${ECHO_T}$ac_ct_OTOOL" >&6
5826 else
5827 echo "$as_me:$LINENO: result: no" >&5
5828 echo "${ECHO_T}no" >&6
5831 OTOOL=$ac_ct_OTOOL
5832 else
5833 OTOOL="$ac_cv_prog_OTOOL"
5836 if test -n "$ac_tool_prefix"; then
5837 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5838 set dummy ${ac_tool_prefix}otool64; ac_word=$2
5839 echo "$as_me:$LINENO: checking for $ac_word" >&5
5840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5841 if test "${ac_cv_prog_OTOOL64+set}" = set; then
5842 echo $ECHO_N "(cached) $ECHO_C" >&6
5843 else
5844 if test -n "$OTOOL64"; then
5845 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5846 else
5847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5848 for as_dir in $PATH
5850 IFS=$as_save_IFS
5851 test -z "$as_dir" && as_dir=.
5852 for ac_exec_ext in '' $ac_executable_extensions; do
5853 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5854 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
5855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5856 break 2
5858 done
5859 done
5863 OTOOL64=$ac_cv_prog_OTOOL64
5864 if test -n "$OTOOL64"; then
5865 echo "$as_me:$LINENO: result: $OTOOL64" >&5
5866 echo "${ECHO_T}$OTOOL64" >&6
5867 else
5868 echo "$as_me:$LINENO: result: no" >&5
5869 echo "${ECHO_T}no" >&6
5873 if test -z "$ac_cv_prog_OTOOL64"; then
5874 ac_ct_OTOOL64=$OTOOL64
5875 # Extract the first word of "otool64", so it can be a program name with args.
5876 set dummy otool64; ac_word=$2
5877 echo "$as_me:$LINENO: checking for $ac_word" >&5
5878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5879 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
5880 echo $ECHO_N "(cached) $ECHO_C" >&6
5881 else
5882 if test -n "$ac_ct_OTOOL64"; then
5883 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5884 else
5885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5886 for as_dir in $PATH
5888 IFS=$as_save_IFS
5889 test -z "$as_dir" && as_dir=.
5890 for ac_exec_ext in '' $ac_executable_extensions; do
5891 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5892 ac_cv_prog_ac_ct_OTOOL64="otool64"
5893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5894 break 2
5896 done
5897 done
5899 test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
5902 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5903 if test -n "$ac_ct_OTOOL64"; then
5904 echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
5905 echo "${ECHO_T}$ac_ct_OTOOL64" >&6
5906 else
5907 echo "$as_me:$LINENO: result: no" >&5
5908 echo "${ECHO_T}no" >&6
5911 OTOOL64=$ac_ct_OTOOL64
5912 else
5913 OTOOL64="$ac_cv_prog_OTOOL64"
5942 echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
5943 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
5944 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
5945 echo $ECHO_N "(cached) $ECHO_C" >&6
5946 else
5947 lt_cv_apple_cc_single_mod=no
5948 if test -z "${LT_MULTI_MODULE}"; then
5949 # By default we will add the -single_module flag. You can override
5950 # by either setting the environment variable LT_MULTI_MODULE
5951 # non-empty at configure time, or by adding -multi_module to the
5952 # link flags.
5953 rm -rf libconftest.dylib*
5954 echo "int foo(void){return 1;}" > conftest.c
5955 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5956 -dynamiclib -Wl,-single_module conftest.c" >&5
5957 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5958 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5959 _lt_result=$?
5960 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
5961 lt_cv_apple_cc_single_mod=yes
5962 else
5963 cat conftest.err >&5
5965 rm -rf libconftest.dylib*
5966 rm -f conftest.*
5969 echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
5970 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
5971 echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
5972 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
5973 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
5974 echo $ECHO_N "(cached) $ECHO_C" >&6
5975 else
5976 lt_cv_ld_exported_symbols_list=no
5977 save_LDFLAGS=$LDFLAGS
5978 echo "_main" > conftest.sym
5979 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
5980 cat >conftest.$ac_ext <<_ACEOF
5981 /* confdefs.h. */
5982 _ACEOF
5983 cat confdefs.h >>conftest.$ac_ext
5984 cat >>conftest.$ac_ext <<_ACEOF
5985 /* end confdefs.h. */
5988 main ()
5992 return 0;
5994 _ACEOF
5995 rm -f conftest.$ac_objext conftest$ac_exeext
5996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5997 (eval $ac_link) 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_exeext'
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 lt_cv_ld_exported_symbols_list=yes
6018 else
6019 echo "$as_me: failed program was:" >&5
6020 sed 's/^/| /' conftest.$ac_ext >&5
6022 lt_cv_ld_exported_symbols_list=no
6024 rm -f conftest.err conftest.$ac_objext \
6025 conftest$ac_exeext conftest.$ac_ext
6026 LDFLAGS="$save_LDFLAGS"
6029 echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6030 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
6031 case $host_os in
6032 rhapsody* | darwin1.[012])
6033 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6034 darwin1.*)
6035 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6036 darwin*) # darwin 5.x on
6037 # if running on 10.5 or later, the deployment target defaults
6038 # to the OS version, if on x86, and 10.4, the deployment
6039 # target defaults to 10.4. Don't you love it?
6040 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6041 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6042 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6043 10.[012]*)
6044 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6045 10.*)
6046 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6047 esac
6049 esac
6050 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6051 _lt_dar_single_mod='$single_module'
6053 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6054 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6055 else
6056 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6058 if test "$DSYMUTIL" != ":"; then
6059 _lt_dsymutil='~$DSYMUTIL $lib || :'
6060 else
6061 _lt_dsymutil=
6064 esac
6066 ac_ext=c
6067 ac_cpp='$CPP $CPPFLAGS'
6068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6071 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6072 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6073 # On Suns, sometimes $CPP names a directory.
6074 if test -n "$CPP" && test -d "$CPP"; then
6075 CPP=
6077 if test -z "$CPP"; then
6078 if test "${ac_cv_prog_CPP+set}" = set; then
6079 echo $ECHO_N "(cached) $ECHO_C" >&6
6080 else
6081 # Double quotes because CPP needs to be expanded
6082 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6084 ac_preproc_ok=false
6085 for ac_c_preproc_warn_flag in '' yes
6087 # Use a header file that comes with gcc, so configuring glibc
6088 # with a fresh cross-compiler works.
6089 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6090 # <limits.h> exists even on freestanding compilers.
6091 # On the NeXT, cc -E runs the code through the compiler's parser,
6092 # not just through cpp. "Syntax error" is here to catch this case.
6093 cat >conftest.$ac_ext <<_ACEOF
6094 /* confdefs.h. */
6095 _ACEOF
6096 cat confdefs.h >>conftest.$ac_ext
6097 cat >>conftest.$ac_ext <<_ACEOF
6098 /* end confdefs.h. */
6099 #ifdef __STDC__
6100 # include <limits.h>
6101 #else
6102 # include <assert.h>
6103 #endif
6104 Syntax error
6105 _ACEOF
6106 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6107 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6108 ac_status=$?
6109 grep -v '^ *+' conftest.er1 >conftest.err
6110 rm -f conftest.er1
6111 cat conftest.err >&5
6112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113 (exit $ac_status); } >/dev/null; then
6114 if test -s conftest.err; then
6115 ac_cpp_err=$ac_c_preproc_warn_flag
6116 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6117 else
6118 ac_cpp_err=
6120 else
6121 ac_cpp_err=yes
6123 if test -z "$ac_cpp_err"; then
6125 else
6126 echo "$as_me: failed program was:" >&5
6127 sed 's/^/| /' conftest.$ac_ext >&5
6129 # Broken: fails on valid input.
6130 continue
6132 rm -f conftest.err conftest.$ac_ext
6134 # OK, works on sane cases. Now check whether non-existent headers
6135 # can be detected and how.
6136 cat >conftest.$ac_ext <<_ACEOF
6137 /* confdefs.h. */
6138 _ACEOF
6139 cat confdefs.h >>conftest.$ac_ext
6140 cat >>conftest.$ac_ext <<_ACEOF
6141 /* end confdefs.h. */
6142 #include <ac_nonexistent.h>
6143 _ACEOF
6144 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6145 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6146 ac_status=$?
6147 grep -v '^ *+' conftest.er1 >conftest.err
6148 rm -f conftest.er1
6149 cat conftest.err >&5
6150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151 (exit $ac_status); } >/dev/null; then
6152 if test -s conftest.err; then
6153 ac_cpp_err=$ac_c_preproc_warn_flag
6154 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6155 else
6156 ac_cpp_err=
6158 else
6159 ac_cpp_err=yes
6161 if test -z "$ac_cpp_err"; then
6162 # Broken: success on invalid input.
6163 continue
6164 else
6165 echo "$as_me: failed program was:" >&5
6166 sed 's/^/| /' conftest.$ac_ext >&5
6168 # Passes both tests.
6169 ac_preproc_ok=:
6170 break
6172 rm -f conftest.err conftest.$ac_ext
6174 done
6175 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6176 rm -f conftest.err conftest.$ac_ext
6177 if $ac_preproc_ok; then
6178 break
6181 done
6182 ac_cv_prog_CPP=$CPP
6185 CPP=$ac_cv_prog_CPP
6186 else
6187 ac_cv_prog_CPP=$CPP
6189 echo "$as_me:$LINENO: result: $CPP" >&5
6190 echo "${ECHO_T}$CPP" >&6
6191 ac_preproc_ok=false
6192 for ac_c_preproc_warn_flag in '' yes
6194 # Use a header file that comes with gcc, so configuring glibc
6195 # with a fresh cross-compiler works.
6196 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6197 # <limits.h> exists even on freestanding compilers.
6198 # On the NeXT, cc -E runs the code through the compiler's parser,
6199 # not just through cpp. "Syntax error" is here to catch this case.
6200 cat >conftest.$ac_ext <<_ACEOF
6201 /* confdefs.h. */
6202 _ACEOF
6203 cat confdefs.h >>conftest.$ac_ext
6204 cat >>conftest.$ac_ext <<_ACEOF
6205 /* end confdefs.h. */
6206 #ifdef __STDC__
6207 # include <limits.h>
6208 #else
6209 # include <assert.h>
6210 #endif
6211 Syntax error
6212 _ACEOF
6213 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6214 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6215 ac_status=$?
6216 grep -v '^ *+' conftest.er1 >conftest.err
6217 rm -f conftest.er1
6218 cat conftest.err >&5
6219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6220 (exit $ac_status); } >/dev/null; then
6221 if test -s conftest.err; then
6222 ac_cpp_err=$ac_c_preproc_warn_flag
6223 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6224 else
6225 ac_cpp_err=
6227 else
6228 ac_cpp_err=yes
6230 if test -z "$ac_cpp_err"; then
6232 else
6233 echo "$as_me: failed program was:" >&5
6234 sed 's/^/| /' conftest.$ac_ext >&5
6236 # Broken: fails on valid input.
6237 continue
6239 rm -f conftest.err conftest.$ac_ext
6241 # OK, works on sane cases. Now check whether non-existent headers
6242 # can be detected and how.
6243 cat >conftest.$ac_ext <<_ACEOF
6244 /* confdefs.h. */
6245 _ACEOF
6246 cat confdefs.h >>conftest.$ac_ext
6247 cat >>conftest.$ac_ext <<_ACEOF
6248 /* end confdefs.h. */
6249 #include <ac_nonexistent.h>
6250 _ACEOF
6251 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6252 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6253 ac_status=$?
6254 grep -v '^ *+' conftest.er1 >conftest.err
6255 rm -f conftest.er1
6256 cat conftest.err >&5
6257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6258 (exit $ac_status); } >/dev/null; then
6259 if test -s conftest.err; then
6260 ac_cpp_err=$ac_c_preproc_warn_flag
6261 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6262 else
6263 ac_cpp_err=
6265 else
6266 ac_cpp_err=yes
6268 if test -z "$ac_cpp_err"; then
6269 # Broken: success on invalid input.
6270 continue
6271 else
6272 echo "$as_me: failed program was:" >&5
6273 sed 's/^/| /' conftest.$ac_ext >&5
6275 # Passes both tests.
6276 ac_preproc_ok=:
6277 break
6279 rm -f conftest.err conftest.$ac_ext
6281 done
6282 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6283 rm -f conftest.err conftest.$ac_ext
6284 if $ac_preproc_ok; then
6286 else
6287 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6288 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6289 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6290 See \`config.log' for more details." >&5
6291 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6292 See \`config.log' for more details." >&2;}
6293 { (exit 1); exit 1; }; }; }
6296 ac_ext=c
6297 ac_cpp='$CPP $CPPFLAGS'
6298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6303 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6304 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6305 if test "${ac_cv_header_stdc+set}" = set; then
6306 echo $ECHO_N "(cached) $ECHO_C" >&6
6307 else
6308 cat >conftest.$ac_ext <<_ACEOF
6309 /* confdefs.h. */
6310 _ACEOF
6311 cat confdefs.h >>conftest.$ac_ext
6312 cat >>conftest.$ac_ext <<_ACEOF
6313 /* end confdefs.h. */
6314 #include <stdlib.h>
6315 #include <stdarg.h>
6316 #include <string.h>
6317 #include <float.h>
6320 main ()
6324 return 0;
6326 _ACEOF
6327 rm -f conftest.$ac_objext
6328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6329 (eval $ac_compile) 2>conftest.er1
6330 ac_status=$?
6331 grep -v '^ *+' conftest.er1 >conftest.err
6332 rm -f conftest.er1
6333 cat conftest.err >&5
6334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335 (exit $ac_status); } &&
6336 { ac_try='test -z "$ac_c_werror_flag"
6337 || test ! -s conftest.err'
6338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6339 (eval $ac_try) 2>&5
6340 ac_status=$?
6341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342 (exit $ac_status); }; } &&
6343 { ac_try='test -s conftest.$ac_objext'
6344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6345 (eval $ac_try) 2>&5
6346 ac_status=$?
6347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348 (exit $ac_status); }; }; then
6349 ac_cv_header_stdc=yes
6350 else
6351 echo "$as_me: failed program was:" >&5
6352 sed 's/^/| /' conftest.$ac_ext >&5
6354 ac_cv_header_stdc=no
6356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6358 if test $ac_cv_header_stdc = yes; then
6359 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6360 cat >conftest.$ac_ext <<_ACEOF
6361 /* confdefs.h. */
6362 _ACEOF
6363 cat confdefs.h >>conftest.$ac_ext
6364 cat >>conftest.$ac_ext <<_ACEOF
6365 /* end confdefs.h. */
6366 #include <string.h>
6368 _ACEOF
6369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6370 $EGREP "memchr" >/dev/null 2>&1; then
6372 else
6373 ac_cv_header_stdc=no
6375 rm -f conftest*
6379 if test $ac_cv_header_stdc = yes; then
6380 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6381 cat >conftest.$ac_ext <<_ACEOF
6382 /* confdefs.h. */
6383 _ACEOF
6384 cat confdefs.h >>conftest.$ac_ext
6385 cat >>conftest.$ac_ext <<_ACEOF
6386 /* end confdefs.h. */
6387 #include <stdlib.h>
6389 _ACEOF
6390 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6391 $EGREP "free" >/dev/null 2>&1; then
6393 else
6394 ac_cv_header_stdc=no
6396 rm -f conftest*
6400 if test $ac_cv_header_stdc = yes; then
6401 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6402 if test "$cross_compiling" = yes; then
6404 else
6405 cat >conftest.$ac_ext <<_ACEOF
6406 /* confdefs.h. */
6407 _ACEOF
6408 cat confdefs.h >>conftest.$ac_ext
6409 cat >>conftest.$ac_ext <<_ACEOF
6410 /* end confdefs.h. */
6411 #include <ctype.h>
6412 #if ((' ' & 0x0FF) == 0x020)
6413 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6414 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6415 #else
6416 # define ISLOWER(c) \
6417 (('a' <= (c) && (c) <= 'i') \
6418 || ('j' <= (c) && (c) <= 'r') \
6419 || ('s' <= (c) && (c) <= 'z'))
6420 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6421 #endif
6423 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6425 main ()
6427 int i;
6428 for (i = 0; i < 256; i++)
6429 if (XOR (islower (i), ISLOWER (i))
6430 || toupper (i) != TOUPPER (i))
6431 exit(2);
6432 exit (0);
6434 _ACEOF
6435 rm -f conftest$ac_exeext
6436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6437 (eval $ac_link) 2>&5
6438 ac_status=$?
6439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6442 (eval $ac_try) 2>&5
6443 ac_status=$?
6444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6445 (exit $ac_status); }; }; then
6447 else
6448 echo "$as_me: program exited with status $ac_status" >&5
6449 echo "$as_me: failed program was:" >&5
6450 sed 's/^/| /' conftest.$ac_ext >&5
6452 ( exit $ac_status )
6453 ac_cv_header_stdc=no
6455 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6459 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6460 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6461 if test $ac_cv_header_stdc = yes; then
6463 cat >>confdefs.h <<\_ACEOF
6464 #define STDC_HEADERS 1
6465 _ACEOF
6469 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6479 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6480 inttypes.h stdint.h unistd.h
6482 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6483 echo "$as_me:$LINENO: checking for $ac_header" >&5
6484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6485 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6486 echo $ECHO_N "(cached) $ECHO_C" >&6
6487 else
6488 cat >conftest.$ac_ext <<_ACEOF
6489 /* confdefs.h. */
6490 _ACEOF
6491 cat confdefs.h >>conftest.$ac_ext
6492 cat >>conftest.$ac_ext <<_ACEOF
6493 /* end confdefs.h. */
6494 $ac_includes_default
6496 #include <$ac_header>
6497 _ACEOF
6498 rm -f conftest.$ac_objext
6499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6500 (eval $ac_compile) 2>conftest.er1
6501 ac_status=$?
6502 grep -v '^ *+' conftest.er1 >conftest.err
6503 rm -f conftest.er1
6504 cat conftest.err >&5
6505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6506 (exit $ac_status); } &&
6507 { ac_try='test -z "$ac_c_werror_flag"
6508 || test ! -s conftest.err'
6509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6510 (eval $ac_try) 2>&5
6511 ac_status=$?
6512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513 (exit $ac_status); }; } &&
6514 { ac_try='test -s conftest.$ac_objext'
6515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6516 (eval $ac_try) 2>&5
6517 ac_status=$?
6518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519 (exit $ac_status); }; }; then
6520 eval "$as_ac_Header=yes"
6521 else
6522 echo "$as_me: failed program was:" >&5
6523 sed 's/^/| /' conftest.$ac_ext >&5
6525 eval "$as_ac_Header=no"
6527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6530 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6531 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6532 cat >>confdefs.h <<_ACEOF
6533 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6534 _ACEOF
6538 done
6542 for ac_header in dlfcn.h
6544 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6545 echo "$as_me:$LINENO: checking for $ac_header" >&5
6546 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6547 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6548 echo $ECHO_N "(cached) $ECHO_C" >&6
6549 else
6550 cat >conftest.$ac_ext <<_ACEOF
6551 /* confdefs.h. */
6552 _ACEOF
6553 cat confdefs.h >>conftest.$ac_ext
6554 cat >>conftest.$ac_ext <<_ACEOF
6555 /* end confdefs.h. */
6556 $ac_includes_default
6558 #include <$ac_header>
6559 _ACEOF
6560 rm -f conftest.$ac_objext
6561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6562 (eval $ac_compile) 2>conftest.er1
6563 ac_status=$?
6564 grep -v '^ *+' conftest.er1 >conftest.err
6565 rm -f conftest.er1
6566 cat conftest.err >&5
6567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568 (exit $ac_status); } &&
6569 { ac_try='test -z "$ac_c_werror_flag"
6570 || test ! -s conftest.err'
6571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6572 (eval $ac_try) 2>&5
6573 ac_status=$?
6574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6575 (exit $ac_status); }; } &&
6576 { ac_try='test -s conftest.$ac_objext'
6577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6578 (eval $ac_try) 2>&5
6579 ac_status=$?
6580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581 (exit $ac_status); }; }; then
6582 eval "$as_ac_Header=yes"
6583 else
6584 echo "$as_me: failed program was:" >&5
6585 sed 's/^/| /' conftest.$ac_ext >&5
6587 eval "$as_ac_Header=no"
6589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6591 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6592 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6593 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6594 cat >>confdefs.h <<_ACEOF
6595 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6596 _ACEOF
6600 done
6604 # Set options
6608 enable_dlopen=no
6611 enable_win32_dll=no
6614 # Check whether --enable-shared or --disable-shared was given.
6615 if test "${enable_shared+set}" = set; then
6616 enableval="$enable_shared"
6617 p=${PACKAGE-default}
6618 case $enableval in
6619 yes) enable_shared=yes ;;
6620 no) enable_shared=no ;;
6622 enable_shared=no
6623 # Look at the argument we got. We use all the common list separators.
6624 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6625 for pkg in $enableval; do
6626 IFS="$lt_save_ifs"
6627 if test "X$pkg" = "X$p"; then
6628 enable_shared=yes
6630 done
6631 IFS="$lt_save_ifs"
6633 esac
6634 else
6635 enable_shared=yes
6645 # Check whether --enable-static or --disable-static was given.
6646 if test "${enable_static+set}" = set; then
6647 enableval="$enable_static"
6648 p=${PACKAGE-default}
6649 case $enableval in
6650 yes) enable_static=yes ;;
6651 no) enable_static=no ;;
6653 enable_static=no
6654 # Look at the argument we got. We use all the common list separators.
6655 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6656 for pkg in $enableval; do
6657 IFS="$lt_save_ifs"
6658 if test "X$pkg" = "X$p"; then
6659 enable_static=yes
6661 done
6662 IFS="$lt_save_ifs"
6664 esac
6665 else
6666 enable_static=yes
6677 # Check whether --with-pic or --without-pic was given.
6678 if test "${with_pic+set}" = set; then
6679 withval="$with_pic"
6680 pic_mode="$withval"
6681 else
6682 pic_mode=default
6685 test -z "$pic_mode" && pic_mode=default
6693 # Check whether --enable-fast-install or --disable-fast-install was given.
6694 if test "${enable_fast_install+set}" = set; then
6695 enableval="$enable_fast_install"
6696 p=${PACKAGE-default}
6697 case $enableval in
6698 yes) enable_fast_install=yes ;;
6699 no) enable_fast_install=no ;;
6701 enable_fast_install=no
6702 # Look at the argument we got. We use all the common list separators.
6703 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6704 for pkg in $enableval; do
6705 IFS="$lt_save_ifs"
6706 if test "X$pkg" = "X$p"; then
6707 enable_fast_install=yes
6709 done
6710 IFS="$lt_save_ifs"
6712 esac
6713 else
6714 enable_fast_install=yes
6726 # This can be used to rebuild libtool when needed
6727 LIBTOOL_DEPS="$ltmain"
6729 # Always use our own libtool.
6730 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6756 test -z "$LN_S" && LN_S="ln -s"
6771 if test -n "${ZSH_VERSION+set}" ; then
6772 setopt NO_GLOB_SUBST
6775 echo "$as_me:$LINENO: checking for objdir" >&5
6776 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6777 if test "${lt_cv_objdir+set}" = set; then
6778 echo $ECHO_N "(cached) $ECHO_C" >&6
6779 else
6780 rm -f .libs 2>/dev/null
6781 mkdir .libs 2>/dev/null
6782 if test -d .libs; then
6783 lt_cv_objdir=.libs
6784 else
6785 # MS-DOS does not allow filenames that begin with a dot.
6786 lt_cv_objdir=_libs
6788 rmdir .libs 2>/dev/null
6790 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6791 echo "${ECHO_T}$lt_cv_objdir" >&6
6792 objdir=$lt_cv_objdir
6798 cat >>confdefs.h <<_ACEOF
6799 #define LT_OBJDIR "$lt_cv_objdir/"
6800 _ACEOF
6818 case $host_os in
6819 aix3*)
6820 # AIX sometimes has problems with the GCC collect2 program. For some
6821 # reason, if we set the COLLECT_NAMES environment variable, the problems
6822 # vanish in a puff of smoke.
6823 if test "X${COLLECT_NAMES+set}" != Xset; then
6824 COLLECT_NAMES=
6825 export COLLECT_NAMES
6828 esac
6830 # Sed substitution that helps us do robust quoting. It backslashifies
6831 # metacharacters that are still active within double-quoted strings.
6832 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6834 # Same as above, but do not quote variable references.
6835 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6837 # Sed substitution to delay expansion of an escaped shell variable in a
6838 # double_quote_subst'ed string.
6839 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6841 # Sed substitution to delay expansion of an escaped single quote.
6842 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6844 # Sed substitution to avoid accidental globbing in evaled expressions
6845 no_glob_subst='s/\*/\\\*/g'
6847 # Global variables:
6848 ofile=libtool
6849 can_build_shared=yes
6851 # All known linkers require a `.a' archive for static linking (except MSVC,
6852 # which needs '.lib').
6853 libext=a
6855 with_gnu_ld="$lt_cv_prog_gnu_ld"
6857 old_CC="$CC"
6858 old_CFLAGS="$CFLAGS"
6860 # Set sane defaults for various variables
6861 test -z "$CC" && CC=cc
6862 test -z "$LTCC" && LTCC=$CC
6863 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6864 test -z "$LD" && LD=ld
6865 test -z "$ac_objext" && ac_objext=o
6867 for cc_temp in $compiler""; do
6868 case $cc_temp in
6869 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6870 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6871 \-*) ;;
6872 *) break;;
6873 esac
6874 done
6875 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6878 # Only perform the check for file, if the check method requires it
6879 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6880 case $deplibs_check_method in
6881 file_magic*)
6882 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6883 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6884 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6885 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6886 echo $ECHO_N "(cached) $ECHO_C" >&6
6887 else
6888 case $MAGIC_CMD in
6889 [\\/*] | ?:[\\/]*)
6890 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6893 lt_save_MAGIC_CMD="$MAGIC_CMD"
6894 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6895 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6896 for ac_dir in $ac_dummy; do
6897 IFS="$lt_save_ifs"
6898 test -z "$ac_dir" && ac_dir=.
6899 if test -f $ac_dir/${ac_tool_prefix}file; then
6900 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6901 if test -n "$file_magic_test_file"; then
6902 case $deplibs_check_method in
6903 "file_magic "*)
6904 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6905 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6906 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6907 $EGREP "$file_magic_regex" > /dev/null; then
6909 else
6910 cat <<_LT_EOF 1>&2
6912 *** Warning: the command libtool uses to detect shared libraries,
6913 *** $file_magic_cmd, produces output that libtool cannot recognize.
6914 *** The result is that libtool may fail to recognize shared libraries
6915 *** as such. This will affect the creation of libtool libraries that
6916 *** depend on shared libraries, but programs linked with such libtool
6917 *** libraries will work regardless of this problem. Nevertheless, you
6918 *** may want to report the problem to your system manager and/or to
6919 *** bug-libtool@gnu.org
6921 _LT_EOF
6922 fi ;;
6923 esac
6925 break
6927 done
6928 IFS="$lt_save_ifs"
6929 MAGIC_CMD="$lt_save_MAGIC_CMD"
6931 esac
6934 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6935 if test -n "$MAGIC_CMD"; then
6936 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6937 echo "${ECHO_T}$MAGIC_CMD" >&6
6938 else
6939 echo "$as_me:$LINENO: result: no" >&5
6940 echo "${ECHO_T}no" >&6
6947 if test -z "$lt_cv_path_MAGIC_CMD"; then
6948 if test -n "$ac_tool_prefix"; then
6949 echo "$as_me:$LINENO: checking for file" >&5
6950 echo $ECHO_N "checking for file... $ECHO_C" >&6
6951 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6952 echo $ECHO_N "(cached) $ECHO_C" >&6
6953 else
6954 case $MAGIC_CMD in
6955 [\\/*] | ?:[\\/]*)
6956 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6959 lt_save_MAGIC_CMD="$MAGIC_CMD"
6960 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6961 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6962 for ac_dir in $ac_dummy; do
6963 IFS="$lt_save_ifs"
6964 test -z "$ac_dir" && ac_dir=.
6965 if test -f $ac_dir/file; then
6966 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6967 if test -n "$file_magic_test_file"; then
6968 case $deplibs_check_method in
6969 "file_magic "*)
6970 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6971 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6972 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6973 $EGREP "$file_magic_regex" > /dev/null; then
6975 else
6976 cat <<_LT_EOF 1>&2
6978 *** Warning: the command libtool uses to detect shared libraries,
6979 *** $file_magic_cmd, produces output that libtool cannot recognize.
6980 *** The result is that libtool may fail to recognize shared libraries
6981 *** as such. This will affect the creation of libtool libraries that
6982 *** depend on shared libraries, but programs linked with such libtool
6983 *** libraries will work regardless of this problem. Nevertheless, you
6984 *** may want to report the problem to your system manager and/or to
6985 *** bug-libtool@gnu.org
6987 _LT_EOF
6988 fi ;;
6989 esac
6991 break
6993 done
6994 IFS="$lt_save_ifs"
6995 MAGIC_CMD="$lt_save_MAGIC_CMD"
6997 esac
7000 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7001 if test -n "$MAGIC_CMD"; then
7002 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7003 echo "${ECHO_T}$MAGIC_CMD" >&6
7004 else
7005 echo "$as_me:$LINENO: result: no" >&5
7006 echo "${ECHO_T}no" >&6
7010 else
7011 MAGIC_CMD=:
7017 esac
7019 # Use C for the default configuration in the libtool script
7021 lt_save_CC="$CC"
7022 ac_ext=c
7023 ac_cpp='$CPP $CPPFLAGS'
7024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7029 # Source file extension for C test sources.
7030 ac_ext=c
7032 # Object file extension for compiled C test sources.
7033 objext=o
7034 objext=$objext
7036 # Code to be used in simple compile tests
7037 lt_simple_compile_test_code="int some_variable = 0;"
7039 # Code to be used in simple link tests
7040 lt_simple_link_test_code='int main(){return(0);}'
7048 # If no C compiler was specified, use CC.
7049 LTCC=${LTCC-"$CC"}
7051 # If no C compiler flags were specified, use CFLAGS.
7052 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7054 # Allow CC to be a program name with arguments.
7055 compiler=$CC
7057 # Save the default compiler, since it gets overwritten when the other
7058 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7059 compiler_DEFAULT=$CC
7061 # save warnings/boilerplate of simple test code
7062 ac_outfile=conftest.$ac_objext
7063 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7064 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7065 _lt_compiler_boilerplate=`cat conftest.err`
7066 $RM conftest*
7068 ac_outfile=conftest.$ac_objext
7069 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7070 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7071 _lt_linker_boilerplate=`cat conftest.err`
7072 $RM -r conftest*
7075 ## CAVEAT EMPTOR:
7076 ## There is no encapsulation within the following macros, do not change
7077 ## the running order or otherwise move them around unless you know exactly
7078 ## what you are doing...
7079 if test -n "$compiler"; then
7081 lt_prog_compiler_no_builtin_flag=
7083 if test "$GCC" = yes; then
7084 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7086 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7087 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7088 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7089 echo $ECHO_N "(cached) $ECHO_C" >&6
7090 else
7091 lt_cv_prog_compiler_rtti_exceptions=no
7092 ac_outfile=conftest.$ac_objext
7093 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7094 lt_compiler_flag="-fno-rtti -fno-exceptions"
7095 # Insert the option either (1) after the last *FLAGS variable, or
7096 # (2) before a word containing "conftest.", or (3) at the end.
7097 # Note that $ac_compile itself does not contain backslashes and begins
7098 # with a dollar sign (not a hyphen), so the echo should work correctly.
7099 # The option is referenced via a variable to avoid confusing sed.
7100 lt_compile=`echo "$ac_compile" | $SED \
7101 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7102 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7103 -e 's:$: $lt_compiler_flag:'`
7104 (eval echo "\"\$as_me:7104: $lt_compile\"" >&5)
7105 (eval "$lt_compile" 2>conftest.err)
7106 ac_status=$?
7107 cat conftest.err >&5
7108 echo "$as_me:7108: \$? = $ac_status" >&5
7109 if (exit $ac_status) && test -s "$ac_outfile"; then
7110 # The compiler can only warn and ignore the option if not recognized
7111 # So say no if there are warnings other than the usual output.
7112 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7113 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7114 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7115 lt_cv_prog_compiler_rtti_exceptions=yes
7118 $RM conftest*
7121 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7122 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7124 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7125 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7126 else
7137 lt_prog_compiler_wl=
7138 lt_prog_compiler_pic=
7139 lt_prog_compiler_static=
7141 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7142 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7144 if test "$GCC" = yes; then
7145 lt_prog_compiler_wl='-Wl,'
7146 lt_prog_compiler_static='-static'
7148 case $host_os in
7149 aix*)
7150 # All AIX code is PIC.
7151 if test "$host_cpu" = ia64; then
7152 # AIX 5 now supports IA64 processor
7153 lt_prog_compiler_static='-Bstatic'
7157 amigaos*)
7158 case $host_cpu in
7159 powerpc)
7160 # see comment about AmigaOS4 .so support
7161 lt_prog_compiler_pic='-fPIC'
7163 m68k)
7164 # FIXME: we need at least 68020 code to build shared libraries, but
7165 # adding the `-m68020' flag to GCC prevents building anything better,
7166 # like `-m68040'.
7167 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7169 esac
7172 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7173 # PIC is the default for these OSes.
7176 mingw* | cygwin* | pw32* | os2* | cegcc*)
7177 # This hack is so that the source file can tell whether it is being
7178 # built for inclusion in a dll (and should export symbols for example).
7179 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7180 # (--disable-auto-import) libraries
7181 lt_prog_compiler_pic='-DDLL_EXPORT'
7184 darwin* | rhapsody*)
7185 # PIC is the default on this platform
7186 # Common symbols not allowed in MH_DYLIB files
7187 lt_prog_compiler_pic='-fno-common'
7190 hpux*)
7191 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7192 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7193 # sets the default TLS model and affects inlining.
7194 case $host_cpu in
7195 hppa*64*)
7196 # +Z the default
7199 lt_prog_compiler_pic='-fPIC'
7201 esac
7204 interix[3-9]*)
7205 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7206 # Instead, we relocate shared libraries at runtime.
7209 msdosdjgpp*)
7210 # Just because we use GCC doesn't mean we suddenly get shared libraries
7211 # on systems that don't support them.
7212 lt_prog_compiler_can_build_shared=no
7213 enable_shared=no
7216 *nto* | *qnx*)
7217 # QNX uses GNU C++, but need to define -shared option too, otherwise
7218 # it will coredump.
7219 lt_prog_compiler_pic='-fPIC -shared'
7222 sysv4*MP*)
7223 if test -d /usr/nec; then
7224 lt_prog_compiler_pic=-Kconform_pic
7229 lt_prog_compiler_pic='-fPIC'
7231 esac
7232 else
7233 # PORTME Check for flag to pass linker flags through the system compiler.
7234 case $host_os in
7235 aix*)
7236 lt_prog_compiler_wl='-Wl,'
7237 if test "$host_cpu" = ia64; then
7238 # AIX 5 now supports IA64 processor
7239 lt_prog_compiler_static='-Bstatic'
7240 else
7241 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7245 mingw* | cygwin* | pw32* | os2* | cegcc*)
7246 # This hack is so that the source file can tell whether it is being
7247 # built for inclusion in a dll (and should export symbols for example).
7248 lt_prog_compiler_pic='-DDLL_EXPORT'
7251 hpux9* | hpux10* | hpux11*)
7252 lt_prog_compiler_wl='-Wl,'
7253 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7254 # not for PA HP-UX.
7255 case $host_cpu in
7256 hppa*64*|ia64*)
7257 # +Z the default
7260 lt_prog_compiler_pic='+Z'
7262 esac
7263 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7264 lt_prog_compiler_static='${wl}-a ${wl}archive'
7267 irix5* | irix6* | nonstopux*)
7268 lt_prog_compiler_wl='-Wl,'
7269 # PIC (with -KPIC) is the default.
7270 lt_prog_compiler_static='-non_shared'
7273 linux* | k*bsd*-gnu)
7274 case $cc_basename in
7275 # old Intel for x86_64 which still supported -KPIC.
7276 ecc*)
7277 lt_prog_compiler_wl='-Wl,'
7278 lt_prog_compiler_pic='-KPIC'
7279 lt_prog_compiler_static='-static'
7281 # icc used to be incompatible with GCC.
7282 # ICC 10 doesn't accept -KPIC any more.
7283 icc* | ifort*)
7284 lt_prog_compiler_wl='-Wl,'
7285 lt_prog_compiler_pic='-fPIC'
7286 lt_prog_compiler_static='-static'
7288 # Lahey Fortran 8.1.
7289 lf95*)
7290 lt_prog_compiler_wl='-Wl,'
7291 lt_prog_compiler_pic='--shared'
7292 lt_prog_compiler_static='--static'
7294 pgcc* | pgf77* | pgf90* | pgf95*)
7295 # Portland Group compilers (*not* the Pentium gcc compiler,
7296 # which looks to be a dead project)
7297 lt_prog_compiler_wl='-Wl,'
7298 lt_prog_compiler_pic='-fpic'
7299 lt_prog_compiler_static='-Bstatic'
7301 ccc*)
7302 lt_prog_compiler_wl='-Wl,'
7303 # All Alpha code is PIC.
7304 lt_prog_compiler_static='-non_shared'
7306 xl*)
7307 # IBM XL C 8.0/Fortran 10.1 on PPC
7308 lt_prog_compiler_wl='-Wl,'
7309 lt_prog_compiler_pic='-qpic'
7310 lt_prog_compiler_static='-qstaticlink'
7313 case `$CC -V 2>&1 | sed 5q` in
7314 *Sun\ C*)
7315 # Sun C 5.9
7316 lt_prog_compiler_pic='-KPIC'
7317 lt_prog_compiler_static='-Bstatic'
7318 lt_prog_compiler_wl='-Wl,'
7320 *Sun\ F*)
7321 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7322 lt_prog_compiler_pic='-KPIC'
7323 lt_prog_compiler_static='-Bstatic'
7324 lt_prog_compiler_wl=''
7326 esac
7328 esac
7331 newsos6)
7332 lt_prog_compiler_pic='-KPIC'
7333 lt_prog_compiler_static='-Bstatic'
7336 *nto* | *qnx*)
7337 # QNX uses GNU C++, but need to define -shared option too, otherwise
7338 # it will coredump.
7339 lt_prog_compiler_pic='-fPIC -shared'
7342 osf3* | osf4* | osf5*)
7343 lt_prog_compiler_wl='-Wl,'
7344 # All OSF/1 code is PIC.
7345 lt_prog_compiler_static='-non_shared'
7348 rdos*)
7349 lt_prog_compiler_static='-non_shared'
7352 solaris*)
7353 lt_prog_compiler_pic='-KPIC'
7354 lt_prog_compiler_static='-Bstatic'
7355 case $cc_basename in
7356 f77* | f90* | f95*)
7357 lt_prog_compiler_wl='-Qoption ld ';;
7359 lt_prog_compiler_wl='-Wl,';;
7360 esac
7363 sunos4*)
7364 lt_prog_compiler_wl='-Qoption ld '
7365 lt_prog_compiler_pic='-PIC'
7366 lt_prog_compiler_static='-Bstatic'
7369 sysv4 | sysv4.2uw2* | sysv4.3*)
7370 lt_prog_compiler_wl='-Wl,'
7371 lt_prog_compiler_pic='-KPIC'
7372 lt_prog_compiler_static='-Bstatic'
7375 sysv4*MP*)
7376 if test -d /usr/nec ;then
7377 lt_prog_compiler_pic='-Kconform_pic'
7378 lt_prog_compiler_static='-Bstatic'
7382 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7383 lt_prog_compiler_wl='-Wl,'
7384 lt_prog_compiler_pic='-KPIC'
7385 lt_prog_compiler_static='-Bstatic'
7388 unicos*)
7389 lt_prog_compiler_wl='-Wl,'
7390 lt_prog_compiler_can_build_shared=no
7393 uts4*)
7394 lt_prog_compiler_pic='-pic'
7395 lt_prog_compiler_static='-Bstatic'
7399 lt_prog_compiler_can_build_shared=no
7401 esac
7404 case $host_os in
7405 # For platforms which do not support PIC, -DPIC is meaningless:
7406 *djgpp*)
7407 lt_prog_compiler_pic=
7410 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7412 esac
7413 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7414 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7422 # Check to make sure the PIC flag actually works.
7424 if test -n "$lt_prog_compiler_pic"; then
7425 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7426 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7427 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7428 echo $ECHO_N "(cached) $ECHO_C" >&6
7429 else
7430 lt_cv_prog_compiler_pic_works=no
7431 ac_outfile=conftest.$ac_objext
7432 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7433 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7434 # Insert the option either (1) after the last *FLAGS variable, or
7435 # (2) before a word containing "conftest.", or (3) at the end.
7436 # Note that $ac_compile itself does not contain backslashes and begins
7437 # with a dollar sign (not a hyphen), so the echo should work correctly.
7438 # The option is referenced via a variable to avoid confusing sed.
7439 lt_compile=`echo "$ac_compile" | $SED \
7440 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7441 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7442 -e 's:$: $lt_compiler_flag:'`
7443 (eval echo "\"\$as_me:7443: $lt_compile\"" >&5)
7444 (eval "$lt_compile" 2>conftest.err)
7445 ac_status=$?
7446 cat conftest.err >&5
7447 echo "$as_me:7447: \$? = $ac_status" >&5
7448 if (exit $ac_status) && test -s "$ac_outfile"; then
7449 # The compiler can only warn and ignore the option if not recognized
7450 # So say no if there are warnings other than the usual output.
7451 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7452 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7453 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7454 lt_cv_prog_compiler_pic_works=yes
7457 $RM conftest*
7460 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7461 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
7463 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7464 case $lt_prog_compiler_pic in
7465 "" | " "*) ;;
7466 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7467 esac
7468 else
7469 lt_prog_compiler_pic=
7470 lt_prog_compiler_can_build_shared=no
7481 # Check to make sure the static flag actually works.
7483 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7484 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7485 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7486 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7487 echo $ECHO_N "(cached) $ECHO_C" >&6
7488 else
7489 lt_cv_prog_compiler_static_works=no
7490 save_LDFLAGS="$LDFLAGS"
7491 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7492 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7493 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7494 # The linker can only warn and ignore the option if not recognized
7495 # So say no if there are warnings
7496 if test -s conftest.err; then
7497 # Append any errors to the config.log.
7498 cat conftest.err 1>&5
7499 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7500 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7501 if diff conftest.exp conftest.er2 >/dev/null; then
7502 lt_cv_prog_compiler_static_works=yes
7504 else
7505 lt_cv_prog_compiler_static_works=yes
7508 $RM -r conftest*
7509 LDFLAGS="$save_LDFLAGS"
7512 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7513 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
7515 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7517 else
7518 lt_prog_compiler_static=
7527 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7528 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7529 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7530 echo $ECHO_N "(cached) $ECHO_C" >&6
7531 else
7532 lt_cv_prog_compiler_c_o=no
7533 $RM -r conftest 2>/dev/null
7534 mkdir conftest
7535 cd conftest
7536 mkdir out
7537 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7539 lt_compiler_flag="-o out/conftest2.$ac_objext"
7540 # Insert the option either (1) after the last *FLAGS variable, or
7541 # (2) before a word containing "conftest.", or (3) at the end.
7542 # Note that $ac_compile itself does not contain backslashes and begins
7543 # with a dollar sign (not a hyphen), so the echo should work correctly.
7544 lt_compile=`echo "$ac_compile" | $SED \
7545 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7546 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7547 -e 's:$: $lt_compiler_flag:'`
7548 (eval echo "\"\$as_me:7548: $lt_compile\"" >&5)
7549 (eval "$lt_compile" 2>out/conftest.err)
7550 ac_status=$?
7551 cat out/conftest.err >&5
7552 echo "$as_me:7552: \$? = $ac_status" >&5
7553 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7554 then
7555 # The compiler can only warn and ignore the option if not recognized
7556 # So say no if there are warnings
7557 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7558 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7559 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7560 lt_cv_prog_compiler_c_o=yes
7563 chmod u+w . 2>&5
7564 $RM conftest*
7565 # SGI C++ compiler will create directory out/ii_files/ for
7566 # template instantiation
7567 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7568 $RM out/* && rmdir out
7569 cd ..
7570 $RM -r conftest
7571 $RM conftest*
7574 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7575 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7582 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7583 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7584 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7585 echo $ECHO_N "(cached) $ECHO_C" >&6
7586 else
7587 lt_cv_prog_compiler_c_o=no
7588 $RM -r conftest 2>/dev/null
7589 mkdir conftest
7590 cd conftest
7591 mkdir out
7592 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7594 lt_compiler_flag="-o out/conftest2.$ac_objext"
7595 # Insert the option either (1) after the last *FLAGS variable, or
7596 # (2) before a word containing "conftest.", or (3) at the end.
7597 # Note that $ac_compile itself does not contain backslashes and begins
7598 # with a dollar sign (not a hyphen), so the echo should work correctly.
7599 lt_compile=`echo "$ac_compile" | $SED \
7600 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7601 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7602 -e 's:$: $lt_compiler_flag:'`
7603 (eval echo "\"\$as_me:7603: $lt_compile\"" >&5)
7604 (eval "$lt_compile" 2>out/conftest.err)
7605 ac_status=$?
7606 cat out/conftest.err >&5
7607 echo "$as_me:7607: \$? = $ac_status" >&5
7608 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7609 then
7610 # The compiler can only warn and ignore the option if not recognized
7611 # So say no if there are warnings
7612 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7613 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7614 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7615 lt_cv_prog_compiler_c_o=yes
7618 chmod u+w . 2>&5
7619 $RM conftest*
7620 # SGI C++ compiler will create directory out/ii_files/ for
7621 # template instantiation
7622 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7623 $RM out/* && rmdir out
7624 cd ..
7625 $RM -r conftest
7626 $RM conftest*
7629 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7630 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7635 hard_links="nottested"
7636 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7637 # do not overwrite the value of need_locks provided by the user
7638 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7639 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7640 hard_links=yes
7641 $RM conftest*
7642 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7643 touch conftest.a
7644 ln conftest.a conftest.b 2>&5 || hard_links=no
7645 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7646 echo "$as_me:$LINENO: result: $hard_links" >&5
7647 echo "${ECHO_T}$hard_links" >&6
7648 if test "$hard_links" = no; then
7649 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7650 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7651 need_locks=warn
7653 else
7654 need_locks=no
7662 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7663 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7665 runpath_var=
7666 allow_undefined_flag=
7667 always_export_symbols=no
7668 archive_cmds=
7669 archive_expsym_cmds=
7670 compiler_needs_object=no
7671 enable_shared_with_static_runtimes=no
7672 export_dynamic_flag_spec=
7673 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7674 hardcode_automatic=no
7675 hardcode_direct=no
7676 hardcode_direct_absolute=no
7677 hardcode_libdir_flag_spec=
7678 hardcode_libdir_flag_spec_ld=
7679 hardcode_libdir_separator=
7680 hardcode_minus_L=no
7681 hardcode_shlibpath_var=unsupported
7682 inherit_rpath=no
7683 link_all_deplibs=unknown
7684 module_cmds=
7685 module_expsym_cmds=
7686 old_archive_from_new_cmds=
7687 old_archive_from_expsyms_cmds=
7688 thread_safe_flag_spec=
7689 whole_archive_flag_spec=
7690 # include_expsyms should be a list of space-separated symbols to be *always*
7691 # included in the symbol list
7692 include_expsyms=
7693 # exclude_expsyms can be an extended regexp of symbols to exclude
7694 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7695 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7696 # as well as any symbol that contains `d'.
7697 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7698 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7699 # platforms (ab)use it in PIC code, but their linkers get confused if
7700 # the symbol is explicitly referenced. Since portable code cannot
7701 # rely on this symbol name, it's probably fine to never include it in
7702 # preloaded symbol tables.
7703 # Exclude shared library initialization/finalization symbols.
7704 extract_expsyms_cmds=
7706 case $host_os in
7707 cygwin* | mingw* | pw32* | cegcc*)
7708 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7709 # When not using gcc, we currently assume that we are using
7710 # Microsoft Visual C++.
7711 if test "$GCC" != yes; then
7712 with_gnu_ld=no
7715 interix*)
7716 # we just hope/assume this is gcc and not c89 (= MSVC++)
7717 with_gnu_ld=yes
7719 openbsd*)
7720 with_gnu_ld=no
7722 esac
7724 ld_shlibs=yes
7725 if test "$with_gnu_ld" = yes; then
7726 # If archive_cmds runs LD, not CC, wlarc should be empty
7727 wlarc='${wl}'
7729 # Set some defaults for GNU ld with shared library support. These
7730 # are reset later if shared libraries are not supported. Putting them
7731 # here allows them to be overridden if necessary.
7732 runpath_var=LD_RUN_PATH
7733 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7734 export_dynamic_flag_spec='${wl}--export-dynamic'
7735 # ancient GNU ld didn't support --whole-archive et. al.
7736 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7737 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7738 else
7739 whole_archive_flag_spec=
7741 supports_anon_versioning=no
7742 case `$LD -v 2>&1` in
7743 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7744 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7745 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7746 *\ 2.11.*) ;; # other 2.11 versions
7747 *) supports_anon_versioning=yes ;;
7748 esac
7750 # See if GNU ld supports shared libraries.
7751 case $host_os in
7752 aix[3-9]*)
7753 # On AIX/PPC, the GNU linker is very broken
7754 if test "$host_cpu" != ia64; then
7755 ld_shlibs=no
7756 cat <<_LT_EOF 1>&2
7758 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7759 *** to be unable to reliably create shared libraries on AIX.
7760 *** Therefore, libtool is disabling shared libraries support. If you
7761 *** really care for shared libraries, you may want to modify your PATH
7762 *** so that a non-GNU linker is found, and then restart.
7764 _LT_EOF
7768 amigaos*)
7769 case $host_cpu in
7770 powerpc)
7771 # see comment about AmigaOS4 .so support
7772 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7773 archive_expsym_cmds=''
7775 m68k)
7776 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)'
7777 hardcode_libdir_flag_spec='-L$libdir'
7778 hardcode_minus_L=yes
7780 esac
7783 beos*)
7784 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7785 allow_undefined_flag=unsupported
7786 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7787 # support --undefined. This deserves some investigation. FIXME
7788 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7789 else
7790 ld_shlibs=no
7794 cygwin* | mingw* | pw32* | cegcc*)
7795 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7796 # as there is no search path for DLLs.
7797 hardcode_libdir_flag_spec='-L$libdir'
7798 allow_undefined_flag=unsupported
7799 always_export_symbols=no
7800 enable_shared_with_static_runtimes=yes
7801 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7803 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7804 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7805 # If the export-symbols file already is a .def file (1st line
7806 # is EXPORTS), use it as is; otherwise, prepend...
7807 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7808 cp $export_symbols $output_objdir/$soname.def;
7809 else
7810 echo EXPORTS > $output_objdir/$soname.def;
7811 cat $export_symbols >> $output_objdir/$soname.def;
7813 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7814 else
7815 ld_shlibs=no
7819 interix[3-9]*)
7820 hardcode_direct=no
7821 hardcode_shlibpath_var=no
7822 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7823 export_dynamic_flag_spec='${wl}-E'
7824 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7825 # Instead, shared libraries are loaded at an image base (0x10000000 by
7826 # default) and relocated if they conflict, which is a slow very memory
7827 # consuming and fragmenting process. To avoid this, we pick a random,
7828 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7829 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7830 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7831 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'
7834 gnu* | linux* | tpf* | k*bsd*-gnu)
7835 tmp_diet=no
7836 if test "$host_os" = linux-dietlibc; then
7837 case $cc_basename in
7838 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7839 esac
7841 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7842 && test "$tmp_diet" = no
7843 then
7844 tmp_addflag=
7845 tmp_sharedflag='-shared'
7846 case $cc_basename,$host_cpu in
7847 pgcc*) # Portland Group C compiler
7848 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'
7849 tmp_addflag=' $pic_flag'
7851 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7852 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'
7853 tmp_addflag=' $pic_flag -Mnomain' ;;
7854 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7855 tmp_addflag=' -i_dynamic' ;;
7856 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7857 tmp_addflag=' -i_dynamic -nofor_main' ;;
7858 ifc* | ifort*) # Intel Fortran compiler
7859 tmp_addflag=' -nofor_main' ;;
7860 lf95*) # Lahey Fortran 8.1
7861 whole_archive_flag_spec=
7862 tmp_sharedflag='--shared' ;;
7863 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7864 tmp_sharedflag='-qmkshrobj'
7865 tmp_addflag= ;;
7866 esac
7867 case `$CC -V 2>&1 | sed 5q` in
7868 *Sun\ C*) # Sun C 5.9
7869 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'
7870 compiler_needs_object=yes
7871 tmp_sharedflag='-G' ;;
7872 *Sun\ F*) # Sun Fortran 8.3
7873 tmp_sharedflag='-G' ;;
7874 esac
7875 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7877 if test "x$supports_anon_versioning" = xyes; then
7878 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7879 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7880 echo "local: *; };" >> $output_objdir/$libname.ver~
7881 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7884 case $cc_basename in
7885 xlf*)
7886 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7887 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7888 hardcode_libdir_flag_spec=
7889 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7890 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7891 if test "x$supports_anon_versioning" = xyes; then
7892 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7893 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7894 echo "local: *; };" >> $output_objdir/$libname.ver~
7895 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7898 esac
7899 else
7900 ld_shlibs=no
7904 netbsd*)
7905 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7906 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7907 wlarc=
7908 else
7909 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7910 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7914 solaris*)
7915 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7916 ld_shlibs=no
7917 cat <<_LT_EOF 1>&2
7919 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7920 *** create shared libraries on Solaris systems. Therefore, libtool
7921 *** is disabling shared libraries support. We urge you to upgrade GNU
7922 *** binutils to release 2.9.1 or newer. Another option is to modify
7923 *** your PATH or compiler configuration so that the native linker is
7924 *** used, and then restart.
7926 _LT_EOF
7927 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7928 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7929 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7930 else
7931 ld_shlibs=no
7935 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7936 case `$LD -v 2>&1` in
7937 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7938 ld_shlibs=no
7939 cat <<_LT_EOF 1>&2
7941 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7942 *** reliably create shared libraries on SCO systems. Therefore, libtool
7943 *** is disabling shared libraries support. We urge you to upgrade GNU
7944 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7945 *** your PATH or compiler configuration so that the native linker is
7946 *** used, and then restart.
7948 _LT_EOF
7951 # For security reasons, it is highly recommended that you always
7952 # use absolute paths for naming shared libraries, and exclude the
7953 # DT_RUNPATH tag from executables and libraries. But doing so
7954 # requires that you compile everything twice, which is a pain.
7955 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7956 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7957 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7958 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7959 else
7960 ld_shlibs=no
7963 esac
7966 sunos4*)
7967 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7968 wlarc=
7969 hardcode_direct=yes
7970 hardcode_shlibpath_var=no
7974 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7975 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7976 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7977 else
7978 ld_shlibs=no
7981 esac
7983 if test "$ld_shlibs" = no; then
7984 runpath_var=
7985 hardcode_libdir_flag_spec=
7986 export_dynamic_flag_spec=
7987 whole_archive_flag_spec=
7989 else
7990 # PORTME fill in a description of your system's linker (not GNU ld)
7991 case $host_os in
7992 aix3*)
7993 allow_undefined_flag=unsupported
7994 always_export_symbols=yes
7995 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'
7996 # Note: this linker hardcodes the directories in LIBPATH if there
7997 # are no directories specified by -L.
7998 hardcode_minus_L=yes
7999 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8000 # Neither direct hardcoding nor static linking is supported with a
8001 # broken collect2.
8002 hardcode_direct=unsupported
8006 aix[4-9]*)
8007 if test "$host_cpu" = ia64; then
8008 # On IA64, the linker does run time linking by default, so we don't
8009 # have to do anything special.
8010 aix_use_runtimelinking=no
8011 exp_sym_flag='-Bexport'
8012 no_entry_flag=""
8013 else
8014 # If we're using GNU nm, then we don't want the "-C" option.
8015 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8016 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8017 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'
8018 else
8019 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'
8021 aix_use_runtimelinking=no
8023 # Test if we are trying to use run time linking or normal
8024 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8025 # need to do runtime linking.
8026 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8027 for ld_flag in $LDFLAGS; do
8028 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8029 aix_use_runtimelinking=yes
8030 break
8032 done
8034 esac
8036 exp_sym_flag='-bexport'
8037 no_entry_flag='-bnoentry'
8040 # When large executables or shared objects are built, AIX ld can
8041 # have problems creating the table of contents. If linking a library
8042 # or program results in "error TOC overflow" add -mminimal-toc to
8043 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8044 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8046 archive_cmds=''
8047 hardcode_direct=yes
8048 hardcode_direct_absolute=yes
8049 hardcode_libdir_separator=':'
8050 link_all_deplibs=yes
8051 file_list_spec='${wl}-f,'
8053 if test "$GCC" = yes; then
8054 case $host_os in aix4.[012]|aix4.[012].*)
8055 # We only want to do this on AIX 4.2 and lower, the check
8056 # below for broken collect2 doesn't work under 4.3+
8057 collect2name=`${CC} -print-prog-name=collect2`
8058 if test -f "$collect2name" &&
8059 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8060 then
8061 # We have reworked collect2
8063 else
8064 # We have old collect2
8065 hardcode_direct=unsupported
8066 # It fails to find uninstalled libraries when the uninstalled
8067 # path is not listed in the libpath. Setting hardcode_minus_L
8068 # to unsupported forces relinking
8069 hardcode_minus_L=yes
8070 hardcode_libdir_flag_spec='-L$libdir'
8071 hardcode_libdir_separator=
8074 esac
8075 shared_flag='-shared'
8076 if test "$aix_use_runtimelinking" = yes; then
8077 shared_flag="$shared_flag "'${wl}-G'
8079 else
8080 # not using gcc
8081 if test "$host_cpu" = ia64; then
8082 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8083 # chokes on -Wl,-G. The following line is correct:
8084 shared_flag='-G'
8085 else
8086 if test "$aix_use_runtimelinking" = yes; then
8087 shared_flag='${wl}-G'
8088 else
8089 shared_flag='${wl}-bM:SRE'
8094 export_dynamic_flag_spec='${wl}-bexpall'
8095 # It seems that -bexpall does not export symbols beginning with
8096 # underscore (_), so it is better to generate a list of symbols to export.
8097 always_export_symbols=yes
8098 if test "$aix_use_runtimelinking" = yes; then
8099 # Warning - without using the other runtime loading flags (-brtl),
8100 # -berok will link without error, but may produce a broken library.
8101 allow_undefined_flag='-berok'
8102 # Determine the default libpath from the value encoded in an
8103 # empty executable.
8104 cat >conftest.$ac_ext <<_ACEOF
8105 /* confdefs.h. */
8106 _ACEOF
8107 cat confdefs.h >>conftest.$ac_ext
8108 cat >>conftest.$ac_ext <<_ACEOF
8109 /* end confdefs.h. */
8112 main ()
8116 return 0;
8118 _ACEOF
8119 rm -f conftest.$ac_objext conftest$ac_exeext
8120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8121 (eval $ac_link) 2>conftest.er1
8122 ac_status=$?
8123 grep -v '^ *+' conftest.er1 >conftest.err
8124 rm -f conftest.er1
8125 cat conftest.err >&5
8126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127 (exit $ac_status); } &&
8128 { ac_try='test -z "$ac_c_werror_flag"
8129 || test ! -s conftest.err'
8130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8131 (eval $ac_try) 2>&5
8132 ac_status=$?
8133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134 (exit $ac_status); }; } &&
8135 { ac_try='test -s conftest$ac_exeext'
8136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8137 (eval $ac_try) 2>&5
8138 ac_status=$?
8139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140 (exit $ac_status); }; }; then
8142 lt_aix_libpath_sed='
8143 /Import File Strings/,/^$/ {
8144 /^0/ {
8145 s/^0 *\(.*\)$/\1/
8149 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8150 # Check for a 64-bit object if we didn't find anything.
8151 if test -z "$aix_libpath"; then
8152 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8154 else
8155 echo "$as_me: failed program was:" >&5
8156 sed 's/^/| /' conftest.$ac_ext >&5
8159 rm -f conftest.err conftest.$ac_objext \
8160 conftest$ac_exeext conftest.$ac_ext
8161 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8163 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8164 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"
8165 else
8166 if test "$host_cpu" = ia64; then
8167 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8168 allow_undefined_flag="-z nodefs"
8169 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"
8170 else
8171 # Determine the default libpath from the value encoded in an
8172 # empty executable.
8173 cat >conftest.$ac_ext <<_ACEOF
8174 /* confdefs.h. */
8175 _ACEOF
8176 cat confdefs.h >>conftest.$ac_ext
8177 cat >>conftest.$ac_ext <<_ACEOF
8178 /* end confdefs.h. */
8181 main ()
8185 return 0;
8187 _ACEOF
8188 rm -f conftest.$ac_objext conftest$ac_exeext
8189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8190 (eval $ac_link) 2>conftest.er1
8191 ac_status=$?
8192 grep -v '^ *+' conftest.er1 >conftest.err
8193 rm -f conftest.er1
8194 cat conftest.err >&5
8195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196 (exit $ac_status); } &&
8197 { ac_try='test -z "$ac_c_werror_flag"
8198 || test ! -s conftest.err'
8199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8200 (eval $ac_try) 2>&5
8201 ac_status=$?
8202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203 (exit $ac_status); }; } &&
8204 { ac_try='test -s conftest$ac_exeext'
8205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8206 (eval $ac_try) 2>&5
8207 ac_status=$?
8208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209 (exit $ac_status); }; }; then
8211 lt_aix_libpath_sed='
8212 /Import File Strings/,/^$/ {
8213 /^0/ {
8214 s/^0 *\(.*\)$/\1/
8218 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8219 # Check for a 64-bit object if we didn't find anything.
8220 if test -z "$aix_libpath"; then
8221 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8223 else
8224 echo "$as_me: failed program was:" >&5
8225 sed 's/^/| /' conftest.$ac_ext >&5
8228 rm -f conftest.err conftest.$ac_objext \
8229 conftest$ac_exeext conftest.$ac_ext
8230 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8232 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8233 # Warning - without using the other run time loading flags,
8234 # -berok will link without error, but may produce a broken library.
8235 no_undefined_flag=' ${wl}-bernotok'
8236 allow_undefined_flag=' ${wl}-berok'
8237 # Exported symbols can be pulled into shared objects from archives
8238 whole_archive_flag_spec='$convenience'
8239 archive_cmds_need_lc=yes
8240 # This is similar to how AIX traditionally builds its shared libraries.
8241 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'
8246 amigaos*)
8247 case $host_cpu in
8248 powerpc)
8249 # see comment about AmigaOS4 .so support
8250 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8251 archive_expsym_cmds=''
8253 m68k)
8254 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)'
8255 hardcode_libdir_flag_spec='-L$libdir'
8256 hardcode_minus_L=yes
8258 esac
8261 bsdi[45]*)
8262 export_dynamic_flag_spec=-rdynamic
8265 cygwin* | mingw* | pw32* | cegcc*)
8266 # When not using gcc, we currently assume that we are using
8267 # Microsoft Visual C++.
8268 # hardcode_libdir_flag_spec is actually meaningless, as there is
8269 # no search path for DLLs.
8270 hardcode_libdir_flag_spec=' '
8271 allow_undefined_flag=unsupported
8272 # Tell ltmain to make .lib files, not .a files.
8273 libext=lib
8274 # Tell ltmain to make .dll files, not .so files.
8275 shrext_cmds=".dll"
8276 # FIXME: Setting linknames here is a bad hack.
8277 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8278 # The linker will automatically build a .lib file if we build a DLL.
8279 old_archive_from_new_cmds='true'
8280 # FIXME: Should let the user specify the lib program.
8281 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8282 fix_srcfile_path='`cygpath -w "$srcfile"`'
8283 enable_shared_with_static_runtimes=yes
8286 darwin* | rhapsody*)
8289 archive_cmds_need_lc=no
8290 hardcode_direct=no
8291 hardcode_automatic=yes
8292 hardcode_shlibpath_var=unsupported
8293 whole_archive_flag_spec=''
8294 link_all_deplibs=yes
8295 allow_undefined_flag="$_lt_dar_allow_undefined"
8296 case $cc_basename in
8297 ifort*) _lt_dar_can_shared=yes ;;
8298 *) _lt_dar_can_shared=$GCC ;;
8299 esac
8300 if test "$_lt_dar_can_shared" = "yes"; then
8301 output_verbose_link_cmd=echo
8302 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8303 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8304 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 ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8305 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8307 else
8308 ld_shlibs=no
8313 dgux*)
8314 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8315 hardcode_libdir_flag_spec='-L$libdir'
8316 hardcode_shlibpath_var=no
8319 freebsd1*)
8320 ld_shlibs=no
8323 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8324 # support. Future versions do this automatically, but an explicit c++rt0.o
8325 # does not break anything, and helps significantly (at the cost of a little
8326 # extra space).
8327 freebsd2.2*)
8328 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8329 hardcode_libdir_flag_spec='-R$libdir'
8330 hardcode_direct=yes
8331 hardcode_shlibpath_var=no
8334 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8335 freebsd2*)
8336 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8337 hardcode_direct=yes
8338 hardcode_minus_L=yes
8339 hardcode_shlibpath_var=no
8342 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8343 freebsd* | dragonfly*)
8344 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8345 hardcode_libdir_flag_spec='-R$libdir'
8346 hardcode_direct=yes
8347 hardcode_shlibpath_var=no
8350 hpux9*)
8351 if test "$GCC" = yes; then
8352 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'
8353 else
8354 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'
8356 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8357 hardcode_libdir_separator=:
8358 hardcode_direct=yes
8360 # hardcode_minus_L: Not really in the search PATH,
8361 # but as the default location of the library.
8362 hardcode_minus_L=yes
8363 export_dynamic_flag_spec='${wl}-E'
8366 hpux10*)
8367 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8368 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8369 else
8370 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8372 if test "$with_gnu_ld" = no; then
8373 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8374 hardcode_libdir_flag_spec_ld='+b $libdir'
8375 hardcode_libdir_separator=:
8376 hardcode_direct=yes
8377 hardcode_direct_absolute=yes
8378 export_dynamic_flag_spec='${wl}-E'
8379 # hardcode_minus_L: Not really in the search PATH,
8380 # but as the default location of the library.
8381 hardcode_minus_L=yes
8385 hpux11*)
8386 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8387 case $host_cpu in
8388 hppa*64*)
8389 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8391 ia64*)
8392 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8395 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8397 esac
8398 else
8399 case $host_cpu in
8400 hppa*64*)
8401 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8403 ia64*)
8404 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8407 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8409 esac
8411 if test "$with_gnu_ld" = no; then
8412 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8413 hardcode_libdir_separator=:
8415 case $host_cpu in
8416 hppa*64*|ia64*)
8417 hardcode_direct=no
8418 hardcode_shlibpath_var=no
8421 hardcode_direct=yes
8422 hardcode_direct_absolute=yes
8423 export_dynamic_flag_spec='${wl}-E'
8425 # hardcode_minus_L: Not really in the search PATH,
8426 # but as the default location of the library.
8427 hardcode_minus_L=yes
8429 esac
8433 irix5* | irix6* | nonstopux*)
8434 if test "$GCC" = yes; then
8435 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'
8436 # Try to use the -exported_symbol ld option, if it does not
8437 # work, assume that -exports_file does not work either and
8438 # implicitly export all symbols.
8439 save_LDFLAGS="$LDFLAGS"
8440 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8441 cat >conftest.$ac_ext <<_ACEOF
8442 int foo(void) {}
8443 _ACEOF
8444 rm -f conftest.$ac_objext conftest$ac_exeext
8445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8446 (eval $ac_link) 2>conftest.er1
8447 ac_status=$?
8448 grep -v '^ *+' conftest.er1 >conftest.err
8449 rm -f conftest.er1
8450 cat conftest.err >&5
8451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452 (exit $ac_status); } &&
8453 { ac_try='test -z "$ac_c_werror_flag"
8454 || test ! -s conftest.err'
8455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8456 (eval $ac_try) 2>&5
8457 ac_status=$?
8458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459 (exit $ac_status); }; } &&
8460 { ac_try='test -s conftest$ac_exeext'
8461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8462 (eval $ac_try) 2>&5
8463 ac_status=$?
8464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8465 (exit $ac_status); }; }; then
8466 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'
8468 else
8469 echo "$as_me: failed program was:" >&5
8470 sed 's/^/| /' conftest.$ac_ext >&5
8473 rm -f conftest.err conftest.$ac_objext \
8474 conftest$ac_exeext conftest.$ac_ext
8475 LDFLAGS="$save_LDFLAGS"
8476 else
8477 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'
8478 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'
8480 archive_cmds_need_lc='no'
8481 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8482 hardcode_libdir_separator=:
8483 inherit_rpath=yes
8484 link_all_deplibs=yes
8487 netbsd*)
8488 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8489 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8490 else
8491 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8493 hardcode_libdir_flag_spec='-R$libdir'
8494 hardcode_direct=yes
8495 hardcode_shlibpath_var=no
8498 newsos6)
8499 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8500 hardcode_direct=yes
8501 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8502 hardcode_libdir_separator=:
8503 hardcode_shlibpath_var=no
8506 *nto* | *qnx*)
8509 openbsd*)
8510 if test -f /usr/libexec/ld.so; then
8511 hardcode_direct=yes
8512 hardcode_shlibpath_var=no
8513 hardcode_direct_absolute=yes
8514 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8515 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8516 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8517 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8518 export_dynamic_flag_spec='${wl}-E'
8519 else
8520 case $host_os in
8521 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8522 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8523 hardcode_libdir_flag_spec='-R$libdir'
8526 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8527 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8529 esac
8531 else
8532 ld_shlibs=no
8536 os2*)
8537 hardcode_libdir_flag_spec='-L$libdir'
8538 hardcode_minus_L=yes
8539 allow_undefined_flag=unsupported
8540 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'
8541 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8544 osf3*)
8545 if test "$GCC" = yes; then
8546 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8547 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'
8548 else
8549 allow_undefined_flag=' -expect_unresolved \*'
8550 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'
8552 archive_cmds_need_lc='no'
8553 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8554 hardcode_libdir_separator=:
8557 osf4* | osf5*) # as osf3* with the addition of -msym flag
8558 if test "$GCC" = yes; then
8559 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8560 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'
8561 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8562 else
8563 allow_undefined_flag=' -expect_unresolved \*'
8564 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'
8565 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~
8566 $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'
8568 # Both c and cxx compiler support -rpath directly
8569 hardcode_libdir_flag_spec='-rpath $libdir'
8571 archive_cmds_need_lc='no'
8572 hardcode_libdir_separator=:
8575 solaris*)
8576 no_undefined_flag=' -z defs'
8577 if test "$GCC" = yes; then
8578 wlarc='${wl}'
8579 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8580 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8581 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8582 else
8583 case `$CC -V 2>&1` in
8584 *"Compilers 5.0"*)
8585 wlarc=''
8586 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8587 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8588 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8591 wlarc='${wl}'
8592 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8593 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8594 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8596 esac
8598 hardcode_libdir_flag_spec='-R$libdir'
8599 hardcode_shlibpath_var=no
8600 case $host_os in
8601 solaris2.[0-5] | solaris2.[0-5].*) ;;
8603 # The compiler driver will combine and reorder linker options,
8604 # but understands `-z linker_flag'. GCC discards it without `$wl',
8605 # but is careful enough not to reorder.
8606 # Supported since Solaris 2.6 (maybe 2.5.1?)
8607 if test "$GCC" = yes; then
8608 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8609 else
8610 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8613 esac
8614 link_all_deplibs=yes
8617 sunos4*)
8618 if test "x$host_vendor" = xsequent; then
8619 # Use $CC to link under sequent, because it throws in some extra .o
8620 # files that make .init and .fini sections work.
8621 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8622 else
8623 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8625 hardcode_libdir_flag_spec='-L$libdir'
8626 hardcode_direct=yes
8627 hardcode_minus_L=yes
8628 hardcode_shlibpath_var=no
8631 sysv4)
8632 case $host_vendor in
8633 sni)
8634 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8635 hardcode_direct=yes # is this really true???
8637 siemens)
8638 ## LD is ld it makes a PLAMLIB
8639 ## CC just makes a GrossModule.
8640 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8641 reload_cmds='$CC -r -o $output$reload_objs'
8642 hardcode_direct=no
8644 motorola)
8645 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8646 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8648 esac
8649 runpath_var='LD_RUN_PATH'
8650 hardcode_shlibpath_var=no
8653 sysv4.3*)
8654 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8655 hardcode_shlibpath_var=no
8656 export_dynamic_flag_spec='-Bexport'
8659 sysv4*MP*)
8660 if test -d /usr/nec; then
8661 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8662 hardcode_shlibpath_var=no
8663 runpath_var=LD_RUN_PATH
8664 hardcode_runpath_var=yes
8665 ld_shlibs=yes
8669 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8670 no_undefined_flag='${wl}-z,text'
8671 archive_cmds_need_lc=no
8672 hardcode_shlibpath_var=no
8673 runpath_var='LD_RUN_PATH'
8675 if test "$GCC" = yes; then
8676 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8677 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8678 else
8679 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8680 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8684 sysv5* | sco3.2v5* | sco5v6*)
8685 # Note: We can NOT use -z defs as we might desire, because we do not
8686 # link with -lc, and that would cause any symbols used from libc to
8687 # always be unresolved, which means just about no library would
8688 # ever link correctly. If we're not using GNU ld we use -z text
8689 # though, which does catch some bad symbols but isn't as heavy-handed
8690 # as -z defs.
8691 no_undefined_flag='${wl}-z,text'
8692 allow_undefined_flag='${wl}-z,nodefs'
8693 archive_cmds_need_lc=no
8694 hardcode_shlibpath_var=no
8695 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8696 hardcode_libdir_separator=':'
8697 link_all_deplibs=yes
8698 export_dynamic_flag_spec='${wl}-Bexport'
8699 runpath_var='LD_RUN_PATH'
8701 if test "$GCC" = yes; then
8702 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8703 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8704 else
8705 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8706 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8710 uts4*)
8711 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8712 hardcode_libdir_flag_spec='-L$libdir'
8713 hardcode_shlibpath_var=no
8717 ld_shlibs=no
8719 esac
8721 if test x$host_vendor = xsni; then
8722 case $host in
8723 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8724 export_dynamic_flag_spec='${wl}-Blargedynsym'
8726 esac
8730 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8731 echo "${ECHO_T}$ld_shlibs" >&6
8732 test "$ld_shlibs" = no && can_build_shared=no
8734 with_gnu_ld=$with_gnu_ld
8751 # Do we need to explicitly link libc?
8753 case "x$archive_cmds_need_lc" in
8754 x|xyes)
8755 # Assume -lc should be added
8756 archive_cmds_need_lc=yes
8758 if test "$enable_shared" = yes && test "$GCC" = yes; then
8759 case $archive_cmds in
8760 *'~'*)
8761 # FIXME: we may have to deal with multi-command sequences.
8763 '$CC '*)
8764 # Test whether the compiler implicitly links with -lc since on some
8765 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8766 # to ld, don't add -lc before -lgcc.
8767 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8768 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8769 $RM conftest*
8770 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8773 (eval $ac_compile) 2>&5
8774 ac_status=$?
8775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776 (exit $ac_status); } 2>conftest.err; then
8777 soname=conftest
8778 lib=conftest
8779 libobjs=conftest.$ac_objext
8780 deplibs=
8781 wl=$lt_prog_compiler_wl
8782 pic_flag=$lt_prog_compiler_pic
8783 compiler_flags=-v
8784 linker_flags=-v
8785 verstring=
8786 output_objdir=.
8787 libname=conftest
8788 lt_save_allow_undefined_flag=$allow_undefined_flag
8789 allow_undefined_flag=
8790 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8791 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8792 ac_status=$?
8793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8794 (exit $ac_status); }
8795 then
8796 archive_cmds_need_lc=no
8797 else
8798 archive_cmds_need_lc=yes
8800 allow_undefined_flag=$lt_save_allow_undefined_flag
8801 else
8802 cat conftest.err 1>&5
8804 $RM conftest*
8805 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8806 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8808 esac
8811 esac
8969 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8970 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8972 if test "$GCC" = yes; then
8973 case $host_os in
8974 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8975 *) lt_awk_arg="/^libraries:/" ;;
8976 esac
8977 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8978 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8979 # if the path contains ";" then we assume it to be the separator
8980 # otherwise default to the standard path separator (i.e. ":") - it is
8981 # assumed that no part of a normal pathname contains ";" but that should
8982 # okay in the real world where ";" in dirpaths is itself problematic.
8983 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8984 else
8985 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8987 # Ok, now we have the path, separated by spaces, we can step through it
8988 # and add multilib dir if necessary.
8989 lt_tmp_lt_search_path_spec=
8990 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8991 for lt_sys_path in $lt_search_path_spec; do
8992 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8993 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8994 else
8995 test -d "$lt_sys_path" && \
8996 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8998 done
8999 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9000 BEGIN {RS=" "; FS="/|\n";} {
9001 lt_foo="";
9002 lt_count=0;
9003 for (lt_i = NF; lt_i > 0; lt_i--) {
9004 if ($lt_i != "" && $lt_i != ".") {
9005 if ($lt_i == "..") {
9006 lt_count++;
9007 } else {
9008 if (lt_count == 0) {
9009 lt_foo="/" $lt_i lt_foo;
9010 } else {
9011 lt_count--;
9016 if (lt_foo != "") { lt_freq[lt_foo]++; }
9017 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9019 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9020 else
9021 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9023 library_names_spec=
9024 libname_spec='lib$name'
9025 soname_spec=
9026 shrext_cmds=".so"
9027 postinstall_cmds=
9028 postuninstall_cmds=
9029 finish_cmds=
9030 finish_eval=
9031 shlibpath_var=
9032 shlibpath_overrides_runpath=unknown
9033 version_type=none
9034 dynamic_linker="$host_os ld.so"
9035 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9036 need_lib_prefix=unknown
9037 hardcode_into_libs=no
9039 # when you set need_version to no, make sure it does not cause -set_version
9040 # flags to be left without arguments
9041 need_version=unknown
9043 case $host_os in
9044 aix3*)
9045 version_type=linux
9046 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9047 shlibpath_var=LIBPATH
9049 # AIX 3 has no versioning support, so we append a major version to the name.
9050 soname_spec='${libname}${release}${shared_ext}$major'
9053 aix[4-9]*)
9054 version_type=linux
9055 need_lib_prefix=no
9056 need_version=no
9057 hardcode_into_libs=yes
9058 if test "$host_cpu" = ia64; then
9059 # AIX 5 supports IA64
9060 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9061 shlibpath_var=LD_LIBRARY_PATH
9062 else
9063 # With GCC up to 2.95.x, collect2 would create an import file
9064 # for dependence libraries. The import file would start with
9065 # the line `#! .'. This would cause the generated library to
9066 # depend on `.', always an invalid library. This was fixed in
9067 # development snapshots of GCC prior to 3.0.
9068 case $host_os in
9069 aix4 | aix4.[01] | aix4.[01].*)
9070 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9071 echo ' yes '
9072 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9074 else
9075 can_build_shared=no
9078 esac
9079 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9080 # soname into executable. Probably we can add versioning support to
9081 # collect2, so additional links can be useful in future.
9082 if test "$aix_use_runtimelinking" = yes; then
9083 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9084 # instead of lib<name>.a to let people know that these are not
9085 # typical AIX shared libraries.
9086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9087 else
9088 # We preserve .a as extension for shared libraries through AIX4.2
9089 # and later when we are not doing run time linking.
9090 library_names_spec='${libname}${release}.a $libname.a'
9091 soname_spec='${libname}${release}${shared_ext}$major'
9093 shlibpath_var=LIBPATH
9097 amigaos*)
9098 case $host_cpu in
9099 powerpc)
9100 # Since July 2007 AmigaOS4 officially supports .so libraries.
9101 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9104 m68k)
9105 library_names_spec='$libname.ixlibrary $libname.a'
9106 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9107 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'
9109 esac
9112 beos*)
9113 library_names_spec='${libname}${shared_ext}'
9114 dynamic_linker="$host_os ld.so"
9115 shlibpath_var=LIBRARY_PATH
9118 bsdi[45]*)
9119 version_type=linux
9120 need_version=no
9121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9122 soname_spec='${libname}${release}${shared_ext}$major'
9123 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9124 shlibpath_var=LD_LIBRARY_PATH
9125 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9126 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9127 # the default ld.so.conf also contains /usr/contrib/lib and
9128 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9129 # libtool to hard-code these into programs
9132 cygwin* | mingw* | pw32* | cegcc*)
9133 version_type=windows
9134 shrext_cmds=".dll"
9135 need_version=no
9136 need_lib_prefix=no
9138 case $GCC,$host_os in
9139 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9140 library_names_spec='$libname.dll.a'
9141 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9142 postinstall_cmds='base_file=`basename \${file}`~
9143 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9144 dldir=$destdir/`dirname \$dlpath`~
9145 test -d \$dldir || mkdir -p \$dldir~
9146 $install_prog $dir/$dlname \$dldir/$dlname~
9147 chmod a+x \$dldir/$dlname~
9148 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9149 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9151 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9152 dlpath=$dir/\$dldll~
9153 $RM \$dlpath'
9154 shlibpath_overrides_runpath=yes
9156 case $host_os in
9157 cygwin*)
9158 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9159 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9160 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9162 mingw* | cegcc*)
9163 # MinGW DLLs use traditional 'lib' prefix
9164 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9165 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9166 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9167 # It is most probably a Windows format PATH printed by
9168 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9169 # path with ; separators, and with drive letters. We can handle the
9170 # drive letters (cygwin fileutils understands them), so leave them,
9171 # especially as we might pass files found there to a mingw objdump,
9172 # which wouldn't understand a cygwinified path. Ahh.
9173 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9174 else
9175 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9178 pw32*)
9179 # pw32 DLLs use 'pw' prefix rather than 'lib'
9180 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9182 esac
9186 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9188 esac
9189 dynamic_linker='Win32 ld.exe'
9190 # FIXME: first we should search . and the directory the executable is in
9191 shlibpath_var=PATH
9194 darwin* | rhapsody*)
9195 dynamic_linker="$host_os dyld"
9196 version_type=darwin
9197 need_lib_prefix=no
9198 need_version=no
9199 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9200 soname_spec='${libname}${release}${major}$shared_ext'
9201 shlibpath_overrides_runpath=yes
9202 shlibpath_var=DYLD_LIBRARY_PATH
9203 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9205 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9206 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9209 dgux*)
9210 version_type=linux
9211 need_lib_prefix=no
9212 need_version=no
9213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9214 soname_spec='${libname}${release}${shared_ext}$major'
9215 shlibpath_var=LD_LIBRARY_PATH
9218 freebsd1*)
9219 dynamic_linker=no
9222 freebsd* | dragonfly*)
9223 # DragonFly does not have aout. When/if they implement a new
9224 # versioning mechanism, adjust this.
9225 if test -x /usr/bin/objformat; then
9226 objformat=`/usr/bin/objformat`
9227 else
9228 case $host_os in
9229 freebsd[123]*) objformat=aout ;;
9230 *) objformat=elf ;;
9231 esac
9233 version_type=freebsd-$objformat
9234 case $version_type in
9235 freebsd-elf*)
9236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9237 need_version=no
9238 need_lib_prefix=no
9240 freebsd-*)
9241 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9242 need_version=yes
9244 esac
9245 shlibpath_var=LD_LIBRARY_PATH
9246 case $host_os in
9247 freebsd2*)
9248 shlibpath_overrides_runpath=yes
9250 freebsd3.[01]* | freebsdelf3.[01]*)
9251 shlibpath_overrides_runpath=yes
9252 hardcode_into_libs=yes
9254 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9255 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9256 shlibpath_overrides_runpath=no
9257 hardcode_into_libs=yes
9259 *) # from 4.6 on, and DragonFly
9260 shlibpath_overrides_runpath=yes
9261 hardcode_into_libs=yes
9263 esac
9266 gnu*)
9267 version_type=linux
9268 need_lib_prefix=no
9269 need_version=no
9270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9271 soname_spec='${libname}${release}${shared_ext}$major'
9272 shlibpath_var=LD_LIBRARY_PATH
9273 hardcode_into_libs=yes
9276 hpux9* | hpux10* | hpux11*)
9277 # Give a soname corresponding to the major version so that dld.sl refuses to
9278 # link against other versions.
9279 version_type=sunos
9280 need_lib_prefix=no
9281 need_version=no
9282 case $host_cpu in
9283 ia64*)
9284 shrext_cmds='.so'
9285 hardcode_into_libs=yes
9286 dynamic_linker="$host_os dld.so"
9287 shlibpath_var=LD_LIBRARY_PATH
9288 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9290 soname_spec='${libname}${release}${shared_ext}$major'
9291 if test "X$HPUX_IA64_MODE" = X32; then
9292 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9293 else
9294 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9296 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9298 hppa*64*)
9299 shrext_cmds='.sl'
9300 hardcode_into_libs=yes
9301 dynamic_linker="$host_os dld.sl"
9302 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9303 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9305 soname_spec='${libname}${release}${shared_ext}$major'
9306 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9307 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9310 shrext_cmds='.sl'
9311 dynamic_linker="$host_os dld.sl"
9312 shlibpath_var=SHLIB_PATH
9313 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9315 soname_spec='${libname}${release}${shared_ext}$major'
9317 esac
9318 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9319 postinstall_cmds='chmod 555 $lib'
9322 interix[3-9]*)
9323 version_type=linux
9324 need_lib_prefix=no
9325 need_version=no
9326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9327 soname_spec='${libname}${release}${shared_ext}$major'
9328 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9329 shlibpath_var=LD_LIBRARY_PATH
9330 shlibpath_overrides_runpath=no
9331 hardcode_into_libs=yes
9334 irix5* | irix6* | nonstopux*)
9335 case $host_os in
9336 nonstopux*) version_type=nonstopux ;;
9338 if test "$lt_cv_prog_gnu_ld" = yes; then
9339 version_type=linux
9340 else
9341 version_type=irix
9342 fi ;;
9343 esac
9344 need_lib_prefix=no
9345 need_version=no
9346 soname_spec='${libname}${release}${shared_ext}$major'
9347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9348 case $host_os in
9349 irix5* | nonstopux*)
9350 libsuff= shlibsuff=
9353 case $LD in # libtool.m4 will add one of these switches to LD
9354 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9355 libsuff= shlibsuff= libmagic=32-bit;;
9356 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9357 libsuff=32 shlibsuff=N32 libmagic=N32;;
9358 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9359 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9360 *) libsuff= shlibsuff= libmagic=never-match;;
9361 esac
9363 esac
9364 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9365 shlibpath_overrides_runpath=no
9366 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9367 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9368 hardcode_into_libs=yes
9371 # No shared lib support for Linux oldld, aout, or coff.
9372 linux*oldld* | linux*aout* | linux*coff*)
9373 dynamic_linker=no
9376 # This must be Linux ELF.
9377 linux* | k*bsd*-gnu)
9378 version_type=linux
9379 need_lib_prefix=no
9380 need_version=no
9381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9382 soname_spec='${libname}${release}${shared_ext}$major'
9383 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9384 shlibpath_var=LD_LIBRARY_PATH
9385 shlibpath_overrides_runpath=no
9386 # Some binutils ld are patched to set DT_RUNPATH
9387 save_LDFLAGS=$LDFLAGS
9388 save_libdir=$libdir
9389 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9390 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9391 cat >conftest.$ac_ext <<_ACEOF
9392 /* confdefs.h. */
9393 _ACEOF
9394 cat confdefs.h >>conftest.$ac_ext
9395 cat >>conftest.$ac_ext <<_ACEOF
9396 /* end confdefs.h. */
9399 main ()
9403 return 0;
9405 _ACEOF
9406 rm -f conftest.$ac_objext conftest$ac_exeext
9407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9408 (eval $ac_link) 2>conftest.er1
9409 ac_status=$?
9410 grep -v '^ *+' conftest.er1 >conftest.err
9411 rm -f conftest.er1
9412 cat conftest.err >&5
9413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9414 (exit $ac_status); } &&
9415 { ac_try='test -z "$ac_c_werror_flag"
9416 || test ! -s conftest.err'
9417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9418 (eval $ac_try) 2>&5
9419 ac_status=$?
9420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9421 (exit $ac_status); }; } &&
9422 { ac_try='test -s conftest$ac_exeext'
9423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9424 (eval $ac_try) 2>&5
9425 ac_status=$?
9426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9427 (exit $ac_status); }; }; then
9428 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9429 shlibpath_overrides_runpath=yes
9432 else
9433 echo "$as_me: failed program was:" >&5
9434 sed 's/^/| /' conftest.$ac_ext >&5
9437 rm -f conftest.err conftest.$ac_objext \
9438 conftest$ac_exeext conftest.$ac_ext
9439 LDFLAGS=$save_LDFLAGS
9440 libdir=$save_libdir
9442 # This implies no fast_install, which is unacceptable.
9443 # Some rework will be needed to allow for fast_install
9444 # before this can be enabled.
9445 hardcode_into_libs=yes
9447 # Append ld.so.conf contents to the search path
9448 if test -f /etc/ld.so.conf; then
9449 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/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9450 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9453 # We used to test for /lib/ld.so.1 and disable shared libraries on
9454 # powerpc, because MkLinux only supported shared libraries with the
9455 # GNU dynamic linker. Since this was broken with cross compilers,
9456 # most powerpc-linux boxes support dynamic linking these days and
9457 # people can always --disable-shared, the test was removed, and we
9458 # assume the GNU/Linux dynamic linker is in use.
9459 dynamic_linker='GNU/Linux ld.so'
9462 netbsd*)
9463 version_type=sunos
9464 need_lib_prefix=no
9465 need_version=no
9466 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9468 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9469 dynamic_linker='NetBSD (a.out) ld.so'
9470 else
9471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9472 soname_spec='${libname}${release}${shared_ext}$major'
9473 dynamic_linker='NetBSD ld.elf_so'
9475 shlibpath_var=LD_LIBRARY_PATH
9476 shlibpath_overrides_runpath=yes
9477 hardcode_into_libs=yes
9480 newsos6)
9481 version_type=linux
9482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9483 shlibpath_var=LD_LIBRARY_PATH
9484 shlibpath_overrides_runpath=yes
9487 *nto* | *qnx*)
9488 version_type=qnx
9489 need_lib_prefix=no
9490 need_version=no
9491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9492 soname_spec='${libname}${release}${shared_ext}$major'
9493 shlibpath_var=LD_LIBRARY_PATH
9494 shlibpath_overrides_runpath=no
9495 hardcode_into_libs=yes
9496 dynamic_linker='ldqnx.so'
9499 openbsd*)
9500 version_type=sunos
9501 sys_lib_dlsearch_path_spec="/usr/lib"
9502 need_lib_prefix=no
9503 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9504 case $host_os in
9505 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9506 *) need_version=no ;;
9507 esac
9508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9509 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9510 shlibpath_var=LD_LIBRARY_PATH
9511 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9512 case $host_os in
9513 openbsd2.[89] | openbsd2.[89].*)
9514 shlibpath_overrides_runpath=no
9517 shlibpath_overrides_runpath=yes
9519 esac
9520 else
9521 shlibpath_overrides_runpath=yes
9525 os2*)
9526 libname_spec='$name'
9527 shrext_cmds=".dll"
9528 need_lib_prefix=no
9529 library_names_spec='$libname${shared_ext} $libname.a'
9530 dynamic_linker='OS/2 ld.exe'
9531 shlibpath_var=LIBPATH
9534 osf3* | osf4* | osf5*)
9535 version_type=osf
9536 need_lib_prefix=no
9537 need_version=no
9538 soname_spec='${libname}${release}${shared_ext}$major'
9539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9540 shlibpath_var=LD_LIBRARY_PATH
9541 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9542 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9545 rdos*)
9546 dynamic_linker=no
9549 solaris*)
9550 version_type=linux
9551 need_lib_prefix=no
9552 need_version=no
9553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9554 soname_spec='${libname}${release}${shared_ext}$major'
9555 shlibpath_var=LD_LIBRARY_PATH
9556 shlibpath_overrides_runpath=yes
9557 hardcode_into_libs=yes
9558 # ldd complains unless libraries are executable
9559 postinstall_cmds='chmod +x $lib'
9562 sunos4*)
9563 version_type=sunos
9564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9565 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9566 shlibpath_var=LD_LIBRARY_PATH
9567 shlibpath_overrides_runpath=yes
9568 if test "$with_gnu_ld" = yes; then
9569 need_lib_prefix=no
9571 need_version=yes
9574 sysv4 | sysv4.3*)
9575 version_type=linux
9576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9577 soname_spec='${libname}${release}${shared_ext}$major'
9578 shlibpath_var=LD_LIBRARY_PATH
9579 case $host_vendor in
9580 sni)
9581 shlibpath_overrides_runpath=no
9582 need_lib_prefix=no
9583 runpath_var=LD_RUN_PATH
9585 siemens)
9586 need_lib_prefix=no
9588 motorola)
9589 need_lib_prefix=no
9590 need_version=no
9591 shlibpath_overrides_runpath=no
9592 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9594 esac
9597 sysv4*MP*)
9598 if test -d /usr/nec ;then
9599 version_type=linux
9600 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9601 soname_spec='$libname${shared_ext}.$major'
9602 shlibpath_var=LD_LIBRARY_PATH
9606 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9607 version_type=freebsd-elf
9608 need_lib_prefix=no
9609 need_version=no
9610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9611 soname_spec='${libname}${release}${shared_ext}$major'
9612 shlibpath_var=LD_LIBRARY_PATH
9613 shlibpath_overrides_runpath=yes
9614 hardcode_into_libs=yes
9615 if test "$with_gnu_ld" = yes; then
9616 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9617 else
9618 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9619 case $host_os in
9620 sco3.2v5*)
9621 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9623 esac
9625 sys_lib_dlsearch_path_spec='/usr/lib'
9628 tpf*)
9629 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9630 version_type=linux
9631 need_lib_prefix=no
9632 need_version=no
9633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9634 shlibpath_var=LD_LIBRARY_PATH
9635 shlibpath_overrides_runpath=no
9636 hardcode_into_libs=yes
9639 uts4*)
9640 version_type=linux
9641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9642 soname_spec='${libname}${release}${shared_ext}$major'
9643 shlibpath_var=LD_LIBRARY_PATH
9647 dynamic_linker=no
9649 esac
9650 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9651 echo "${ECHO_T}$dynamic_linker" >&6
9652 test "$dynamic_linker" = no && can_build_shared=no
9654 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9655 if test "$GCC" = yes; then
9656 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9659 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9660 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9662 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9663 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9752 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9753 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9754 hardcode_action=
9755 if test -n "$hardcode_libdir_flag_spec" ||
9756 test -n "$runpath_var" ||
9757 test "X$hardcode_automatic" = "Xyes" ; then
9759 # We can hardcode non-existent directories.
9760 if test "$hardcode_direct" != no &&
9761 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9762 # have to relink, otherwise we might link with an installed library
9763 # when we should be linking with a yet-to-be-installed one
9764 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9765 test "$hardcode_minus_L" != no; then
9766 # Linking always hardcodes the temporary library directory.
9767 hardcode_action=relink
9768 else
9769 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9770 hardcode_action=immediate
9772 else
9773 # We cannot hardcode anything, or else we can only hardcode existing
9774 # directories.
9775 hardcode_action=unsupported
9777 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9778 echo "${ECHO_T}$hardcode_action" >&6
9780 if test "$hardcode_action" = relink ||
9781 test "$inherit_rpath" = yes; then
9782 # Fast installation is not supported
9783 enable_fast_install=no
9784 elif test "$shlibpath_overrides_runpath" = yes ||
9785 test "$enable_shared" = no; then
9786 # Fast installation is not necessary
9787 enable_fast_install=needless
9795 if test "x$enable_dlopen" != xyes; then
9796 enable_dlopen=unknown
9797 enable_dlopen_self=unknown
9798 enable_dlopen_self_static=unknown
9799 else
9800 lt_cv_dlopen=no
9801 lt_cv_dlopen_libs=
9803 case $host_os in
9804 beos*)
9805 lt_cv_dlopen="load_add_on"
9806 lt_cv_dlopen_libs=
9807 lt_cv_dlopen_self=yes
9810 mingw* | pw32* | cegcc*)
9811 lt_cv_dlopen="LoadLibrary"
9812 lt_cv_dlopen_libs=
9815 cygwin*)
9816 lt_cv_dlopen="dlopen"
9817 lt_cv_dlopen_libs=
9820 darwin*)
9821 # if libdl is installed we need to link against it
9822 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9823 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9824 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9825 echo $ECHO_N "(cached) $ECHO_C" >&6
9826 else
9827 ac_check_lib_save_LIBS=$LIBS
9828 LIBS="-ldl $LIBS"
9829 cat >conftest.$ac_ext <<_ACEOF
9830 /* confdefs.h. */
9831 _ACEOF
9832 cat confdefs.h >>conftest.$ac_ext
9833 cat >>conftest.$ac_ext <<_ACEOF
9834 /* end confdefs.h. */
9836 /* Override any gcc2 internal prototype to avoid an error. */
9837 #ifdef __cplusplus
9838 extern "C"
9839 #endif
9840 /* We use char because int might match the return type of a gcc2
9841 builtin and then its argument prototype would still apply. */
9842 char dlopen ();
9844 main ()
9846 dlopen ();
9848 return 0;
9850 _ACEOF
9851 rm -f conftest.$ac_objext conftest$ac_exeext
9852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9853 (eval $ac_link) 2>conftest.er1
9854 ac_status=$?
9855 grep -v '^ *+' conftest.er1 >conftest.err
9856 rm -f conftest.er1
9857 cat conftest.err >&5
9858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859 (exit $ac_status); } &&
9860 { ac_try='test -z "$ac_c_werror_flag"
9861 || test ! -s conftest.err'
9862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9863 (eval $ac_try) 2>&5
9864 ac_status=$?
9865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866 (exit $ac_status); }; } &&
9867 { ac_try='test -s conftest$ac_exeext'
9868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9869 (eval $ac_try) 2>&5
9870 ac_status=$?
9871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872 (exit $ac_status); }; }; then
9873 ac_cv_lib_dl_dlopen=yes
9874 else
9875 echo "$as_me: failed program was:" >&5
9876 sed 's/^/| /' conftest.$ac_ext >&5
9878 ac_cv_lib_dl_dlopen=no
9880 rm -f conftest.err conftest.$ac_objext \
9881 conftest$ac_exeext conftest.$ac_ext
9882 LIBS=$ac_check_lib_save_LIBS
9884 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9885 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9886 if test $ac_cv_lib_dl_dlopen = yes; then
9887 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9888 else
9890 lt_cv_dlopen="dyld"
9891 lt_cv_dlopen_libs=
9892 lt_cv_dlopen_self=yes
9899 echo "$as_me:$LINENO: checking for shl_load" >&5
9900 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9901 if test "${ac_cv_func_shl_load+set}" = set; then
9902 echo $ECHO_N "(cached) $ECHO_C" >&6
9903 else
9904 cat >conftest.$ac_ext <<_ACEOF
9905 /* confdefs.h. */
9906 _ACEOF
9907 cat confdefs.h >>conftest.$ac_ext
9908 cat >>conftest.$ac_ext <<_ACEOF
9909 /* end confdefs.h. */
9910 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9911 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9912 #define shl_load innocuous_shl_load
9914 /* System header to define __stub macros and hopefully few prototypes,
9915 which can conflict with char shl_load (); below.
9916 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9917 <limits.h> exists even on freestanding compilers. */
9919 #ifdef __STDC__
9920 # include <limits.h>
9921 #else
9922 # include <assert.h>
9923 #endif
9925 #undef shl_load
9927 /* Override any gcc2 internal prototype to avoid an error. */
9928 #ifdef __cplusplus
9929 extern "C"
9931 #endif
9932 /* We use char because int might match the return type of a gcc2
9933 builtin and then its argument prototype would still apply. */
9934 char shl_load ();
9935 /* The GNU C library defines this for functions which it implements
9936 to always fail with ENOSYS. Some functions are actually named
9937 something starting with __ and the normal name is an alias. */
9938 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9939 choke me
9940 #else
9941 char (*f) () = shl_load;
9942 #endif
9943 #ifdef __cplusplus
9945 #endif
9948 main ()
9950 return f != shl_load;
9952 return 0;
9954 _ACEOF
9955 rm -f conftest.$ac_objext conftest$ac_exeext
9956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9957 (eval $ac_link) 2>conftest.er1
9958 ac_status=$?
9959 grep -v '^ *+' conftest.er1 >conftest.err
9960 rm -f conftest.er1
9961 cat conftest.err >&5
9962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9963 (exit $ac_status); } &&
9964 { ac_try='test -z "$ac_c_werror_flag"
9965 || test ! -s conftest.err'
9966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9967 (eval $ac_try) 2>&5
9968 ac_status=$?
9969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970 (exit $ac_status); }; } &&
9971 { ac_try='test -s conftest$ac_exeext'
9972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9973 (eval $ac_try) 2>&5
9974 ac_status=$?
9975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9976 (exit $ac_status); }; }; then
9977 ac_cv_func_shl_load=yes
9978 else
9979 echo "$as_me: failed program was:" >&5
9980 sed 's/^/| /' conftest.$ac_ext >&5
9982 ac_cv_func_shl_load=no
9984 rm -f conftest.err conftest.$ac_objext \
9985 conftest$ac_exeext conftest.$ac_ext
9987 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9988 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9989 if test $ac_cv_func_shl_load = yes; then
9990 lt_cv_dlopen="shl_load"
9991 else
9992 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9993 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9994 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9995 echo $ECHO_N "(cached) $ECHO_C" >&6
9996 else
9997 ac_check_lib_save_LIBS=$LIBS
9998 LIBS="-ldld $LIBS"
9999 cat >conftest.$ac_ext <<_ACEOF
10000 /* confdefs.h. */
10001 _ACEOF
10002 cat confdefs.h >>conftest.$ac_ext
10003 cat >>conftest.$ac_ext <<_ACEOF
10004 /* end confdefs.h. */
10006 /* Override any gcc2 internal prototype to avoid an error. */
10007 #ifdef __cplusplus
10008 extern "C"
10009 #endif
10010 /* We use char because int might match the return type of a gcc2
10011 builtin and then its argument prototype would still apply. */
10012 char shl_load ();
10014 main ()
10016 shl_load ();
10018 return 0;
10020 _ACEOF
10021 rm -f conftest.$ac_objext conftest$ac_exeext
10022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10023 (eval $ac_link) 2>conftest.er1
10024 ac_status=$?
10025 grep -v '^ *+' conftest.er1 >conftest.err
10026 rm -f conftest.er1
10027 cat conftest.err >&5
10028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029 (exit $ac_status); } &&
10030 { ac_try='test -z "$ac_c_werror_flag"
10031 || test ! -s conftest.err'
10032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10033 (eval $ac_try) 2>&5
10034 ac_status=$?
10035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036 (exit $ac_status); }; } &&
10037 { ac_try='test -s conftest$ac_exeext'
10038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10039 (eval $ac_try) 2>&5
10040 ac_status=$?
10041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042 (exit $ac_status); }; }; then
10043 ac_cv_lib_dld_shl_load=yes
10044 else
10045 echo "$as_me: failed program was:" >&5
10046 sed 's/^/| /' conftest.$ac_ext >&5
10048 ac_cv_lib_dld_shl_load=no
10050 rm -f conftest.err conftest.$ac_objext \
10051 conftest$ac_exeext conftest.$ac_ext
10052 LIBS=$ac_check_lib_save_LIBS
10054 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10055 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10056 if test $ac_cv_lib_dld_shl_load = yes; then
10057 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10058 else
10059 echo "$as_me:$LINENO: checking for dlopen" >&5
10060 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10061 if test "${ac_cv_func_dlopen+set}" = set; then
10062 echo $ECHO_N "(cached) $ECHO_C" >&6
10063 else
10064 cat >conftest.$ac_ext <<_ACEOF
10065 /* confdefs.h. */
10066 _ACEOF
10067 cat confdefs.h >>conftest.$ac_ext
10068 cat >>conftest.$ac_ext <<_ACEOF
10069 /* end confdefs.h. */
10070 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10071 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10072 #define dlopen innocuous_dlopen
10074 /* System header to define __stub macros and hopefully few prototypes,
10075 which can conflict with char dlopen (); below.
10076 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10077 <limits.h> exists even on freestanding compilers. */
10079 #ifdef __STDC__
10080 # include <limits.h>
10081 #else
10082 # include <assert.h>
10083 #endif
10085 #undef dlopen
10087 /* Override any gcc2 internal prototype to avoid an error. */
10088 #ifdef __cplusplus
10089 extern "C"
10091 #endif
10092 /* We use char because int might match the return type of a gcc2
10093 builtin and then its argument prototype would still apply. */
10094 char dlopen ();
10095 /* The GNU C library defines this for functions which it implements
10096 to always fail with ENOSYS. Some functions are actually named
10097 something starting with __ and the normal name is an alias. */
10098 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10099 choke me
10100 #else
10101 char (*f) () = dlopen;
10102 #endif
10103 #ifdef __cplusplus
10105 #endif
10108 main ()
10110 return f != dlopen;
10112 return 0;
10114 _ACEOF
10115 rm -f conftest.$ac_objext conftest$ac_exeext
10116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10117 (eval $ac_link) 2>conftest.er1
10118 ac_status=$?
10119 grep -v '^ *+' conftest.er1 >conftest.err
10120 rm -f conftest.er1
10121 cat conftest.err >&5
10122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10123 (exit $ac_status); } &&
10124 { ac_try='test -z "$ac_c_werror_flag"
10125 || test ! -s conftest.err'
10126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10127 (eval $ac_try) 2>&5
10128 ac_status=$?
10129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10130 (exit $ac_status); }; } &&
10131 { ac_try='test -s conftest$ac_exeext'
10132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10133 (eval $ac_try) 2>&5
10134 ac_status=$?
10135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10136 (exit $ac_status); }; }; then
10137 ac_cv_func_dlopen=yes
10138 else
10139 echo "$as_me: failed program was:" >&5
10140 sed 's/^/| /' conftest.$ac_ext >&5
10142 ac_cv_func_dlopen=no
10144 rm -f conftest.err conftest.$ac_objext \
10145 conftest$ac_exeext conftest.$ac_ext
10147 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10148 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10149 if test $ac_cv_func_dlopen = yes; then
10150 lt_cv_dlopen="dlopen"
10151 else
10152 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10153 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10154 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10155 echo $ECHO_N "(cached) $ECHO_C" >&6
10156 else
10157 ac_check_lib_save_LIBS=$LIBS
10158 LIBS="-ldl $LIBS"
10159 cat >conftest.$ac_ext <<_ACEOF
10160 /* confdefs.h. */
10161 _ACEOF
10162 cat confdefs.h >>conftest.$ac_ext
10163 cat >>conftest.$ac_ext <<_ACEOF
10164 /* end confdefs.h. */
10166 /* Override any gcc2 internal prototype to avoid an error. */
10167 #ifdef __cplusplus
10168 extern "C"
10169 #endif
10170 /* We use char because int might match the return type of a gcc2
10171 builtin and then its argument prototype would still apply. */
10172 char dlopen ();
10174 main ()
10176 dlopen ();
10178 return 0;
10180 _ACEOF
10181 rm -f conftest.$ac_objext conftest$ac_exeext
10182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10183 (eval $ac_link) 2>conftest.er1
10184 ac_status=$?
10185 grep -v '^ *+' conftest.er1 >conftest.err
10186 rm -f conftest.er1
10187 cat conftest.err >&5
10188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10189 (exit $ac_status); } &&
10190 { ac_try='test -z "$ac_c_werror_flag"
10191 || test ! -s conftest.err'
10192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10193 (eval $ac_try) 2>&5
10194 ac_status=$?
10195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10196 (exit $ac_status); }; } &&
10197 { ac_try='test -s conftest$ac_exeext'
10198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10199 (eval $ac_try) 2>&5
10200 ac_status=$?
10201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10202 (exit $ac_status); }; }; then
10203 ac_cv_lib_dl_dlopen=yes
10204 else
10205 echo "$as_me: failed program was:" >&5
10206 sed 's/^/| /' conftest.$ac_ext >&5
10208 ac_cv_lib_dl_dlopen=no
10210 rm -f conftest.err conftest.$ac_objext \
10211 conftest$ac_exeext conftest.$ac_ext
10212 LIBS=$ac_check_lib_save_LIBS
10214 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10215 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10216 if test $ac_cv_lib_dl_dlopen = yes; then
10217 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10218 else
10219 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10220 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10221 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10222 echo $ECHO_N "(cached) $ECHO_C" >&6
10223 else
10224 ac_check_lib_save_LIBS=$LIBS
10225 LIBS="-lsvld $LIBS"
10226 cat >conftest.$ac_ext <<_ACEOF
10227 /* confdefs.h. */
10228 _ACEOF
10229 cat confdefs.h >>conftest.$ac_ext
10230 cat >>conftest.$ac_ext <<_ACEOF
10231 /* end confdefs.h. */
10233 /* Override any gcc2 internal prototype to avoid an error. */
10234 #ifdef __cplusplus
10235 extern "C"
10236 #endif
10237 /* We use char because int might match the return type of a gcc2
10238 builtin and then its argument prototype would still apply. */
10239 char dlopen ();
10241 main ()
10243 dlopen ();
10245 return 0;
10247 _ACEOF
10248 rm -f conftest.$ac_objext conftest$ac_exeext
10249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10250 (eval $ac_link) 2>conftest.er1
10251 ac_status=$?
10252 grep -v '^ *+' conftest.er1 >conftest.err
10253 rm -f conftest.er1
10254 cat conftest.err >&5
10255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256 (exit $ac_status); } &&
10257 { ac_try='test -z "$ac_c_werror_flag"
10258 || test ! -s conftest.err'
10259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10260 (eval $ac_try) 2>&5
10261 ac_status=$?
10262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263 (exit $ac_status); }; } &&
10264 { ac_try='test -s conftest$ac_exeext'
10265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10266 (eval $ac_try) 2>&5
10267 ac_status=$?
10268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269 (exit $ac_status); }; }; then
10270 ac_cv_lib_svld_dlopen=yes
10271 else
10272 echo "$as_me: failed program was:" >&5
10273 sed 's/^/| /' conftest.$ac_ext >&5
10275 ac_cv_lib_svld_dlopen=no
10277 rm -f conftest.err conftest.$ac_objext \
10278 conftest$ac_exeext conftest.$ac_ext
10279 LIBS=$ac_check_lib_save_LIBS
10281 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10282 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10283 if test $ac_cv_lib_svld_dlopen = yes; then
10284 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10285 else
10286 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10287 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10288 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10289 echo $ECHO_N "(cached) $ECHO_C" >&6
10290 else
10291 ac_check_lib_save_LIBS=$LIBS
10292 LIBS="-ldld $LIBS"
10293 cat >conftest.$ac_ext <<_ACEOF
10294 /* confdefs.h. */
10295 _ACEOF
10296 cat confdefs.h >>conftest.$ac_ext
10297 cat >>conftest.$ac_ext <<_ACEOF
10298 /* end confdefs.h. */
10300 /* Override any gcc2 internal prototype to avoid an error. */
10301 #ifdef __cplusplus
10302 extern "C"
10303 #endif
10304 /* We use char because int might match the return type of a gcc2
10305 builtin and then its argument prototype would still apply. */
10306 char dld_link ();
10308 main ()
10310 dld_link ();
10312 return 0;
10314 _ACEOF
10315 rm -f conftest.$ac_objext conftest$ac_exeext
10316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10317 (eval $ac_link) 2>conftest.er1
10318 ac_status=$?
10319 grep -v '^ *+' conftest.er1 >conftest.err
10320 rm -f conftest.er1
10321 cat conftest.err >&5
10322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323 (exit $ac_status); } &&
10324 { ac_try='test -z "$ac_c_werror_flag"
10325 || test ! -s conftest.err'
10326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10327 (eval $ac_try) 2>&5
10328 ac_status=$?
10329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10330 (exit $ac_status); }; } &&
10331 { ac_try='test -s conftest$ac_exeext'
10332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10333 (eval $ac_try) 2>&5
10334 ac_status=$?
10335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10336 (exit $ac_status); }; }; then
10337 ac_cv_lib_dld_dld_link=yes
10338 else
10339 echo "$as_me: failed program was:" >&5
10340 sed 's/^/| /' conftest.$ac_ext >&5
10342 ac_cv_lib_dld_dld_link=no
10344 rm -f conftest.err conftest.$ac_objext \
10345 conftest$ac_exeext conftest.$ac_ext
10346 LIBS=$ac_check_lib_save_LIBS
10348 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10349 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10350 if test $ac_cv_lib_dld_dld_link = yes; then
10351 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10370 esac
10372 if test "x$lt_cv_dlopen" != xno; then
10373 enable_dlopen=yes
10374 else
10375 enable_dlopen=no
10378 case $lt_cv_dlopen in
10379 dlopen)
10380 save_CPPFLAGS="$CPPFLAGS"
10381 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10383 save_LDFLAGS="$LDFLAGS"
10384 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10386 save_LIBS="$LIBS"
10387 LIBS="$lt_cv_dlopen_libs $LIBS"
10389 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10390 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10391 if test "${lt_cv_dlopen_self+set}" = set; then
10392 echo $ECHO_N "(cached) $ECHO_C" >&6
10393 else
10394 if test "$cross_compiling" = yes; then :
10395 lt_cv_dlopen_self=cross
10396 else
10397 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10398 lt_status=$lt_dlunknown
10399 cat > conftest.$ac_ext <<_LT_EOF
10400 #line 10400 "configure"
10401 #include "confdefs.h"
10403 #if HAVE_DLFCN_H
10404 #include <dlfcn.h>
10405 #endif
10407 #include <stdio.h>
10409 #ifdef RTLD_GLOBAL
10410 # define LT_DLGLOBAL RTLD_GLOBAL
10411 #else
10412 # ifdef DL_GLOBAL
10413 # define LT_DLGLOBAL DL_GLOBAL
10414 # else
10415 # define LT_DLGLOBAL 0
10416 # endif
10417 #endif
10419 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10420 find out it does not work in some platform. */
10421 #ifndef LT_DLLAZY_OR_NOW
10422 # ifdef RTLD_LAZY
10423 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10424 # else
10425 # ifdef DL_LAZY
10426 # define LT_DLLAZY_OR_NOW DL_LAZY
10427 # else
10428 # ifdef RTLD_NOW
10429 # define LT_DLLAZY_OR_NOW RTLD_NOW
10430 # else
10431 # ifdef DL_NOW
10432 # define LT_DLLAZY_OR_NOW DL_NOW
10433 # else
10434 # define LT_DLLAZY_OR_NOW 0
10435 # endif
10436 # endif
10437 # endif
10438 # endif
10439 #endif
10441 void fnord() { int i=42;}
10442 int main ()
10444 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10445 int status = $lt_dlunknown;
10447 if (self)
10449 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10450 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10451 /* dlclose (self); */
10453 else
10454 puts (dlerror ());
10456 return status;
10458 _LT_EOF
10459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10460 (eval $ac_link) 2>&5
10461 ac_status=$?
10462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10463 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10464 (./conftest; exit; ) >&5 2>/dev/null
10465 lt_status=$?
10466 case x$lt_status in
10467 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10468 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10469 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10470 esac
10471 else :
10472 # compilation failed
10473 lt_cv_dlopen_self=no
10476 rm -fr conftest*
10480 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10481 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10483 if test "x$lt_cv_dlopen_self" = xyes; then
10484 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10485 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10486 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10487 if test "${lt_cv_dlopen_self_static+set}" = set; then
10488 echo $ECHO_N "(cached) $ECHO_C" >&6
10489 else
10490 if test "$cross_compiling" = yes; then :
10491 lt_cv_dlopen_self_static=cross
10492 else
10493 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10494 lt_status=$lt_dlunknown
10495 cat > conftest.$ac_ext <<_LT_EOF
10496 #line 10496 "configure"
10497 #include "confdefs.h"
10499 #if HAVE_DLFCN_H
10500 #include <dlfcn.h>
10501 #endif
10503 #include <stdio.h>
10505 #ifdef RTLD_GLOBAL
10506 # define LT_DLGLOBAL RTLD_GLOBAL
10507 #else
10508 # ifdef DL_GLOBAL
10509 # define LT_DLGLOBAL DL_GLOBAL
10510 # else
10511 # define LT_DLGLOBAL 0
10512 # endif
10513 #endif
10515 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10516 find out it does not work in some platform. */
10517 #ifndef LT_DLLAZY_OR_NOW
10518 # ifdef RTLD_LAZY
10519 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10520 # else
10521 # ifdef DL_LAZY
10522 # define LT_DLLAZY_OR_NOW DL_LAZY
10523 # else
10524 # ifdef RTLD_NOW
10525 # define LT_DLLAZY_OR_NOW RTLD_NOW
10526 # else
10527 # ifdef DL_NOW
10528 # define LT_DLLAZY_OR_NOW DL_NOW
10529 # else
10530 # define LT_DLLAZY_OR_NOW 0
10531 # endif
10532 # endif
10533 # endif
10534 # endif
10535 #endif
10537 void fnord() { int i=42;}
10538 int main ()
10540 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10541 int status = $lt_dlunknown;
10543 if (self)
10545 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10546 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10547 /* dlclose (self); */
10549 else
10550 puts (dlerror ());
10552 return status;
10554 _LT_EOF
10555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10556 (eval $ac_link) 2>&5
10557 ac_status=$?
10558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10560 (./conftest; exit; ) >&5 2>/dev/null
10561 lt_status=$?
10562 case x$lt_status in
10563 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10564 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10565 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10566 esac
10567 else :
10568 # compilation failed
10569 lt_cv_dlopen_self_static=no
10572 rm -fr conftest*
10576 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10577 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10580 CPPFLAGS="$save_CPPFLAGS"
10581 LDFLAGS="$save_LDFLAGS"
10582 LIBS="$save_LIBS"
10584 esac
10586 case $lt_cv_dlopen_self in
10587 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10588 *) enable_dlopen_self=unknown ;;
10589 esac
10591 case $lt_cv_dlopen_self_static in
10592 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10593 *) enable_dlopen_self_static=unknown ;;
10594 esac
10613 striplib=
10614 old_striplib=
10615 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10616 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10617 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10618 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10619 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10620 echo "$as_me:$LINENO: result: yes" >&5
10621 echo "${ECHO_T}yes" >&6
10622 else
10623 # FIXME - insert some real tests, host_os isn't really good enough
10624 case $host_os in
10625 darwin*)
10626 if test -n "$STRIP" ; then
10627 striplib="$STRIP -x"
10628 old_striplib="$STRIP -S"
10629 echo "$as_me:$LINENO: result: yes" >&5
10630 echo "${ECHO_T}yes" >&6
10631 else
10632 echo "$as_me:$LINENO: result: no" >&5
10633 echo "${ECHO_T}no" >&6
10637 echo "$as_me:$LINENO: result: no" >&5
10638 echo "${ECHO_T}no" >&6
10640 esac
10654 # Report which library types will actually be built
10655 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10656 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10657 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10658 echo "${ECHO_T}$can_build_shared" >&6
10660 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10661 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10662 test "$can_build_shared" = "no" && enable_shared=no
10664 # On AIX, shared libraries and static libraries use the same namespace, and
10665 # are all built from PIC.
10666 case $host_os in
10667 aix3*)
10668 test "$enable_shared" = yes && enable_static=no
10669 if test -n "$RANLIB"; then
10670 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10671 postinstall_cmds='$RANLIB $lib'
10675 aix[4-9]*)
10676 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10677 test "$enable_shared" = yes && enable_static=no
10680 esac
10681 echo "$as_me:$LINENO: result: $enable_shared" >&5
10682 echo "${ECHO_T}$enable_shared" >&6
10684 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10685 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10686 # Make sure either enable_shared or enable_static is yes.
10687 test "$enable_shared" = yes || enable_static=yes
10688 echo "$as_me:$LINENO: result: $enable_static" >&5
10689 echo "${ECHO_T}$enable_static" >&6
10695 ac_ext=c
10696 ac_cpp='$CPP $CPPFLAGS'
10697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10701 CC="$lt_save_CC"
10715 ac_config_commands="$ac_config_commands libtool"
10720 # Only expand once:
10726 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
10727 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
10728 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
10729 if test "${enable_maintainer_mode+set}" = set; then
10730 enableval="$enable_maintainer_mode"
10731 USE_MAINTAINER_MODE=$enableval
10732 else
10733 USE_MAINTAINER_MODE=no
10735 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
10736 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
10739 if test $USE_MAINTAINER_MODE = yes; then
10740 MAINTAINER_MODE_TRUE=
10741 MAINTAINER_MODE_FALSE='#'
10742 else
10743 MAINTAINER_MODE_TRUE='#'
10744 MAINTAINER_MODE_FALSE=
10747 MAINT=$MAINTAINER_MODE_TRUE
10751 # We need gfortran to compile parts of the library
10752 # We can't use AC_PROG_FC because it expects a fully working gfortran.
10753 #AC_PROG_FC(gfortran)
10754 FC="$GFORTRAN"
10755 ac_ext=${FC_SRCEXT-f}
10756 ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
10757 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
10758 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
10759 if test -n "$ac_tool_prefix"; then
10760 for ac_prog in gfortran
10762 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10763 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10764 echo "$as_me:$LINENO: checking for $ac_word" >&5
10765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10766 if test "${ac_cv_prog_FC+set}" = set; then
10767 echo $ECHO_N "(cached) $ECHO_C" >&6
10768 else
10769 if test -n "$FC"; then
10770 ac_cv_prog_FC="$FC" # Let the user override the test.
10771 else
10772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10773 for as_dir in $PATH
10775 IFS=$as_save_IFS
10776 test -z "$as_dir" && as_dir=.
10777 for ac_exec_ext in '' $ac_executable_extensions; do
10778 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10779 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
10780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10781 break 2
10783 done
10784 done
10788 FC=$ac_cv_prog_FC
10789 if test -n "$FC"; then
10790 echo "$as_me:$LINENO: result: $FC" >&5
10791 echo "${ECHO_T}$FC" >&6
10792 else
10793 echo "$as_me:$LINENO: result: no" >&5
10794 echo "${ECHO_T}no" >&6
10797 test -n "$FC" && break
10798 done
10800 if test -z "$FC"; then
10801 ac_ct_FC=$FC
10802 for ac_prog in gfortran
10804 # Extract the first word of "$ac_prog", so it can be a program name with args.
10805 set dummy $ac_prog; ac_word=$2
10806 echo "$as_me:$LINENO: checking for $ac_word" >&5
10807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10808 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then
10809 echo $ECHO_N "(cached) $ECHO_C" >&6
10810 else
10811 if test -n "$ac_ct_FC"; then
10812 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
10813 else
10814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10815 for as_dir in $PATH
10817 IFS=$as_save_IFS
10818 test -z "$as_dir" && as_dir=.
10819 for ac_exec_ext in '' $ac_executable_extensions; do
10820 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10821 ac_cv_prog_ac_ct_FC="$ac_prog"
10822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10823 break 2
10825 done
10826 done
10830 ac_ct_FC=$ac_cv_prog_ac_ct_FC
10831 if test -n "$ac_ct_FC"; then
10832 echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
10833 echo "${ECHO_T}$ac_ct_FC" >&6
10834 else
10835 echo "$as_me:$LINENO: result: no" >&5
10836 echo "${ECHO_T}no" >&6
10839 test -n "$ac_ct_FC" && break
10840 done
10842 FC=$ac_ct_FC
10846 # Provide some information about the compiler.
10847 echo "$as_me:10847:" \
10848 "checking for Fortran compiler version" >&5
10849 ac_compiler=`set X $ac_compile; echo $2`
10850 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10851 (eval $ac_compiler --version </dev/null >&5) 2>&5
10852 ac_status=$?
10853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10854 (exit $ac_status); }
10855 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10856 (eval $ac_compiler -v </dev/null >&5) 2>&5
10857 ac_status=$?
10858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10859 (exit $ac_status); }
10860 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10861 (eval $ac_compiler -V </dev/null >&5) 2>&5
10862 ac_status=$?
10863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10864 (exit $ac_status); }
10865 rm -f a.out
10867 # If we don't use `.F' as extension, the preprocessor is not run on the
10868 # input file. (Note that this only needs to work for GNU compilers.)
10869 ac_save_ext=$ac_ext
10870 ac_ext=F
10871 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
10872 echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6
10873 if test "${ac_cv_fc_compiler_gnu+set}" = set; then
10874 echo $ECHO_N "(cached) $ECHO_C" >&6
10875 else
10876 cat >conftest.$ac_ext <<_ACEOF
10877 program main
10878 #ifndef __GNUC__
10879 choke me
10880 #endif
10883 _ACEOF
10884 rm -f conftest.$ac_objext
10885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10886 (eval $ac_compile) 2>conftest.er1
10887 ac_status=$?
10888 grep -v '^ *+' conftest.er1 >conftest.err
10889 rm -f conftest.er1
10890 cat conftest.err >&5
10891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10892 (exit $ac_status); } &&
10893 { ac_try='test -z "$ac_fc_werror_flag"
10894 || test ! -s conftest.err'
10895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10896 (eval $ac_try) 2>&5
10897 ac_status=$?
10898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10899 (exit $ac_status); }; } &&
10900 { ac_try='test -s conftest.$ac_objext'
10901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10902 (eval $ac_try) 2>&5
10903 ac_status=$?
10904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905 (exit $ac_status); }; }; then
10906 ac_compiler_gnu=yes
10907 else
10908 echo "$as_me: failed program was:" >&5
10909 sed 's/^/| /' conftest.$ac_ext >&5
10911 ac_compiler_gnu=no
10913 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10914 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
10917 echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
10918 echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6
10919 ac_ext=$ac_save_ext
10920 ac_test_FFLAGS=${FCFLAGS+set}
10921 ac_save_FFLAGS=$FCFLAGS
10922 FCFLAGS=
10923 echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
10924 echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6
10925 if test "${ac_cv_prog_fc_g+set}" = set; then
10926 echo $ECHO_N "(cached) $ECHO_C" >&6
10927 else
10928 FCFLAGS=-g
10929 cat >conftest.$ac_ext <<_ACEOF
10930 program main
10933 _ACEOF
10934 rm -f conftest.$ac_objext
10935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10936 (eval $ac_compile) 2>conftest.er1
10937 ac_status=$?
10938 grep -v '^ *+' conftest.er1 >conftest.err
10939 rm -f conftest.er1
10940 cat conftest.err >&5
10941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10942 (exit $ac_status); } &&
10943 { ac_try='test -z "$ac_fc_werror_flag"
10944 || test ! -s conftest.err'
10945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946 (eval $ac_try) 2>&5
10947 ac_status=$?
10948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10949 (exit $ac_status); }; } &&
10950 { ac_try='test -s conftest.$ac_objext'
10951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10952 (eval $ac_try) 2>&5
10953 ac_status=$?
10954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955 (exit $ac_status); }; }; then
10956 ac_cv_prog_fc_g=yes
10957 else
10958 echo "$as_me: failed program was:" >&5
10959 sed 's/^/| /' conftest.$ac_ext >&5
10961 ac_cv_prog_fc_g=no
10963 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10966 echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
10967 echo "${ECHO_T}$ac_cv_prog_fc_g" >&6
10968 if test "$ac_test_FFLAGS" = set; then
10969 FCFLAGS=$ac_save_FFLAGS
10970 elif test $ac_cv_prog_fc_g = yes; then
10971 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
10972 FCFLAGS="-g -O2"
10973 else
10974 FCFLAGS="-g"
10976 else
10977 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
10978 FCFLAGS="-O2"
10979 else
10980 FCFLAGS=
10984 ac_ext=c
10985 ac_cpp='$CPP $CPPFLAGS'
10986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10991 ac_ext=${FC_SRCEXT-f}
10992 ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
10993 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
10994 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
10995 if test -n "$ac_tool_prefix"; then
10996 for ac_prog in f95 fort xlf95 ifc efc pgf95 lf95 gfortran f90 xlf90 pgf90 epcf90 g77 f77 xlf frt pgf77 fort77 fl32 af77
10998 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10999 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11000 echo "$as_me:$LINENO: checking for $ac_word" >&5
11001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11002 if test "${ac_cv_prog_FC+set}" = set; then
11003 echo $ECHO_N "(cached) $ECHO_C" >&6
11004 else
11005 if test -n "$FC"; then
11006 ac_cv_prog_FC="$FC" # Let the user override the test.
11007 else
11008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11009 for as_dir in $PATH
11011 IFS=$as_save_IFS
11012 test -z "$as_dir" && as_dir=.
11013 for ac_exec_ext in '' $ac_executable_extensions; do
11014 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11015 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
11016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11017 break 2
11019 done
11020 done
11024 FC=$ac_cv_prog_FC
11025 if test -n "$FC"; then
11026 echo "$as_me:$LINENO: result: $FC" >&5
11027 echo "${ECHO_T}$FC" >&6
11028 else
11029 echo "$as_me:$LINENO: result: no" >&5
11030 echo "${ECHO_T}no" >&6
11033 test -n "$FC" && break
11034 done
11036 if test -z "$FC"; then
11037 ac_ct_FC=$FC
11038 for ac_prog in f95 fort xlf95 ifc efc pgf95 lf95 gfortran f90 xlf90 pgf90 epcf90 g77 f77 xlf frt pgf77 fort77 fl32 af77
11040 # Extract the first word of "$ac_prog", so it can be a program name with args.
11041 set dummy $ac_prog; ac_word=$2
11042 echo "$as_me:$LINENO: checking for $ac_word" >&5
11043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11044 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then
11045 echo $ECHO_N "(cached) $ECHO_C" >&6
11046 else
11047 if test -n "$ac_ct_FC"; then
11048 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
11049 else
11050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11051 for as_dir in $PATH
11053 IFS=$as_save_IFS
11054 test -z "$as_dir" && as_dir=.
11055 for ac_exec_ext in '' $ac_executable_extensions; do
11056 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11057 ac_cv_prog_ac_ct_FC="$ac_prog"
11058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11059 break 2
11061 done
11062 done
11066 ac_ct_FC=$ac_cv_prog_ac_ct_FC
11067 if test -n "$ac_ct_FC"; then
11068 echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
11069 echo "${ECHO_T}$ac_ct_FC" >&6
11070 else
11071 echo "$as_me:$LINENO: result: no" >&5
11072 echo "${ECHO_T}no" >&6
11075 test -n "$ac_ct_FC" && break
11076 done
11078 FC=$ac_ct_FC
11082 # Provide some information about the compiler.
11083 echo "$as_me:11083:" \
11084 "checking for Fortran compiler version" >&5
11085 ac_compiler=`set X $ac_compile; echo $2`
11086 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11087 (eval $ac_compiler --version </dev/null >&5) 2>&5
11088 ac_status=$?
11089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090 (exit $ac_status); }
11091 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11092 (eval $ac_compiler -v </dev/null >&5) 2>&5
11093 ac_status=$?
11094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11095 (exit $ac_status); }
11096 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11097 (eval $ac_compiler -V </dev/null >&5) 2>&5
11098 ac_status=$?
11099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11100 (exit $ac_status); }
11101 rm -f a.out
11103 # If we don't use `.F' as extension, the preprocessor is not run on the
11104 # input file. (Note that this only needs to work for GNU compilers.)
11105 ac_save_ext=$ac_ext
11106 ac_ext=F
11107 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
11108 echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6
11109 if test "${ac_cv_fc_compiler_gnu+set}" = set; then
11110 echo $ECHO_N "(cached) $ECHO_C" >&6
11111 else
11112 cat >conftest.$ac_ext <<_ACEOF
11113 program main
11114 #ifndef __GNUC__
11115 choke me
11116 #endif
11119 _ACEOF
11120 rm -f conftest.$ac_objext
11121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11122 (eval $ac_compile) 2>conftest.er1
11123 ac_status=$?
11124 grep -v '^ *+' conftest.er1 >conftest.err
11125 rm -f conftest.er1
11126 cat conftest.err >&5
11127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11128 (exit $ac_status); } &&
11129 { ac_try='test -z "$ac_fc_werror_flag"
11130 || test ! -s conftest.err'
11131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11132 (eval $ac_try) 2>&5
11133 ac_status=$?
11134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11135 (exit $ac_status); }; } &&
11136 { ac_try='test -s conftest.$ac_objext'
11137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11138 (eval $ac_try) 2>&5
11139 ac_status=$?
11140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141 (exit $ac_status); }; }; then
11142 ac_compiler_gnu=yes
11143 else
11144 echo "$as_me: failed program was:" >&5
11145 sed 's/^/| /' conftest.$ac_ext >&5
11147 ac_compiler_gnu=no
11149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11150 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
11153 echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
11154 echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6
11155 ac_ext=$ac_save_ext
11156 ac_test_FFLAGS=${FCFLAGS+set}
11157 ac_save_FFLAGS=$FCFLAGS
11158 FCFLAGS=
11159 echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
11160 echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6
11161 if test "${ac_cv_prog_fc_g+set}" = set; then
11162 echo $ECHO_N "(cached) $ECHO_C" >&6
11163 else
11164 FCFLAGS=-g
11165 cat >conftest.$ac_ext <<_ACEOF
11166 program main
11169 _ACEOF
11170 rm -f conftest.$ac_objext
11171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11172 (eval $ac_compile) 2>conftest.er1
11173 ac_status=$?
11174 grep -v '^ *+' conftest.er1 >conftest.err
11175 rm -f conftest.er1
11176 cat conftest.err >&5
11177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11178 (exit $ac_status); } &&
11179 { ac_try='test -z "$ac_fc_werror_flag"
11180 || test ! -s conftest.err'
11181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11182 (eval $ac_try) 2>&5
11183 ac_status=$?
11184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11185 (exit $ac_status); }; } &&
11186 { ac_try='test -s conftest.$ac_objext'
11187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11188 (eval $ac_try) 2>&5
11189 ac_status=$?
11190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11191 (exit $ac_status); }; }; then
11192 ac_cv_prog_fc_g=yes
11193 else
11194 echo "$as_me: failed program was:" >&5
11195 sed 's/^/| /' conftest.$ac_ext >&5
11197 ac_cv_prog_fc_g=no
11199 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11202 echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
11203 echo "${ECHO_T}$ac_cv_prog_fc_g" >&6
11204 if test "$ac_test_FFLAGS" = set; then
11205 FCFLAGS=$ac_save_FFLAGS
11206 elif test $ac_cv_prog_fc_g = yes; then
11207 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
11208 FCFLAGS="-g -O2"
11209 else
11210 FCFLAGS="-g"
11212 else
11213 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
11214 FCFLAGS="-O2"
11215 else
11216 FCFLAGS=
11220 ac_ext=c
11221 ac_cpp='$CPP $CPPFLAGS'
11222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11226 if test -z "$FC" || test "X$FC" = "Xno"; then
11227 _lt_disable_FC=yes
11232 ac_ext=${FC_SRCEXT-f}
11233 ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
11234 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
11235 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
11238 archive_cmds_need_lc_FC=no
11239 allow_undefined_flag_FC=
11240 always_export_symbols_FC=no
11241 archive_expsym_cmds_FC=
11242 export_dynamic_flag_spec_FC=
11243 hardcode_direct_FC=no
11244 hardcode_direct_absolute_FC=no
11245 hardcode_libdir_flag_spec_FC=
11246 hardcode_libdir_flag_spec_ld_FC=
11247 hardcode_libdir_separator_FC=
11248 hardcode_minus_L_FC=no
11249 hardcode_automatic_FC=no
11250 inherit_rpath_FC=no
11251 module_cmds_FC=
11252 module_expsym_cmds_FC=
11253 link_all_deplibs_FC=unknown
11254 old_archive_cmds_FC=$old_archive_cmds
11255 no_undefined_flag_FC=
11256 whole_archive_flag_spec_FC=
11257 enable_shared_with_static_runtimes_FC=no
11259 # Source file extension for fc test sources.
11260 ac_ext=${ac_fc_srcext-f}
11262 # Object file extension for compiled fc test sources.
11263 objext=o
11264 objext_FC=$objext
11266 # No sense in running all these tests if we already determined that
11267 # the FC compiler isn't working. Some variables (like enable_shared)
11268 # are currently assumed to apply to all compilers on this platform,
11269 # and will be corrupted by setting them based on a non-working compiler.
11270 if test "$_lt_disable_FC" != yes; then
11271 # Code to be used in simple compile tests
11272 lt_simple_compile_test_code="\
11273 subroutine t
11274 return
11278 # Code to be used in simple link tests
11279 lt_simple_link_test_code="\
11280 program t
11284 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11291 # If no C compiler was specified, use CC.
11292 LTCC=${LTCC-"$CC"}
11294 # If no C compiler flags were specified, use CFLAGS.
11295 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11297 # Allow CC to be a program name with arguments.
11298 compiler=$CC
11301 # save warnings/boilerplate of simple test code
11302 ac_outfile=conftest.$ac_objext
11303 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11304 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11305 _lt_compiler_boilerplate=`cat conftest.err`
11306 $RM conftest*
11308 ac_outfile=conftest.$ac_objext
11309 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11310 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11311 _lt_linker_boilerplate=`cat conftest.err`
11312 $RM -r conftest*
11315 # Allow CC to be a program name with arguments.
11316 lt_save_CC="$CC"
11317 lt_save_GCC=$GCC
11318 CC=${FC-"f95"}
11319 compiler=$CC
11320 GCC=$ac_cv_fc_compiler_gnu
11322 compiler_FC=$CC
11323 for cc_temp in $compiler""; do
11324 case $cc_temp in
11325 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11326 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11327 \-*) ;;
11328 *) break;;
11329 esac
11330 done
11331 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11334 if test -n "$compiler"; then
11335 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11336 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11337 echo "$as_me:$LINENO: result: $can_build_shared" >&5
11338 echo "${ECHO_T}$can_build_shared" >&6
11340 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11341 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11342 test "$can_build_shared" = "no" && enable_shared=no
11344 # On AIX, shared libraries and static libraries use the same namespace, and
11345 # are all built from PIC.
11346 case $host_os in
11347 aix3*)
11348 test "$enable_shared" = yes && enable_static=no
11349 if test -n "$RANLIB"; then
11350 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11351 postinstall_cmds='$RANLIB $lib'
11354 aix[4-9]*)
11355 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11356 test "$enable_shared" = yes && enable_static=no
11359 esac
11360 echo "$as_me:$LINENO: result: $enable_shared" >&5
11361 echo "${ECHO_T}$enable_shared" >&6
11363 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11364 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11365 # Make sure either enable_shared or enable_static is yes.
11366 test "$enable_shared" = yes || enable_static=yes
11367 echo "$as_me:$LINENO: result: $enable_static" >&5
11368 echo "${ECHO_T}$enable_static" >&6
11370 GCC_FC="$ac_cv_fc_compiler_gnu"
11371 LD_FC="$LD"
11373 ## CAVEAT EMPTOR:
11374 ## There is no encapsulation within the following macros, do not change
11375 ## the running order or otherwise move them around unless you know exactly
11376 ## what you are doing...
11377 # Dependencies to place before and after the object being linked:
11378 predep_objects_FC=
11379 postdep_objects_FC=
11380 predeps_FC=
11381 postdeps_FC=
11382 compiler_lib_search_path_FC=
11384 cat > conftest.$ac_ext <<_LT_EOF
11385 subroutine foo
11386 implicit none
11387 integer a
11389 return
11391 _LT_EOF
11393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11394 (eval $ac_compile) 2>&5
11395 ac_status=$?
11396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11397 (exit $ac_status); }; then
11398 # Parse the compiler output and extract the necessary
11399 # objects, libraries and library flags.
11401 # Sentinel used to keep track of whether or not we are before
11402 # the conftest object file.
11403 pre_test_object_deps_done=no
11405 for p in `eval "$output_verbose_link_cmd"`; do
11406 case $p in
11408 -L* | -R* | -l*)
11409 # Some compilers place space between "-{L,R}" and the path.
11410 # Remove the space.
11411 if test $p = "-L" ||
11412 test $p = "-R"; then
11413 prev=$p
11414 continue
11415 else
11416 prev=
11419 if test "$pre_test_object_deps_done" = no; then
11420 case $p in
11421 -L* | -R*)
11422 # Internal compiler library paths should come after those
11423 # provided the user. The postdeps already come after the
11424 # user supplied libs so there is no need to process them.
11425 if test -z "$compiler_lib_search_path_FC"; then
11426 compiler_lib_search_path_FC="${prev}${p}"
11427 else
11428 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
11431 # The "-l" case would never come before the object being
11432 # linked, so don't bother handling this case.
11433 esac
11434 else
11435 if test -z "$postdeps_FC"; then
11436 postdeps_FC="${prev}${p}"
11437 else
11438 postdeps_FC="${postdeps_FC} ${prev}${p}"
11443 *.$objext)
11444 # This assumes that the test object file only shows up
11445 # once in the compiler output.
11446 if test "$p" = "conftest.$objext"; then
11447 pre_test_object_deps_done=yes
11448 continue
11451 if test "$pre_test_object_deps_done" = no; then
11452 if test -z "$predep_objects_FC"; then
11453 predep_objects_FC="$p"
11454 else
11455 predep_objects_FC="$predep_objects_FC $p"
11457 else
11458 if test -z "$postdep_objects_FC"; then
11459 postdep_objects_FC="$p"
11460 else
11461 postdep_objects_FC="$postdep_objects_FC $p"
11466 *) ;; # Ignore the rest.
11468 esac
11469 done
11471 # Clean up.
11472 rm -f a.out a.exe
11473 else
11474 echo "libtool.m4: error: problem compiling FC test program"
11477 $RM -f confest.$objext
11479 # PORTME: override above test on systems where it is broken
11482 case " $postdeps_FC " in
11483 *" -lc "*) archive_cmds_need_lc_FC=no ;;
11484 esac
11485 compiler_lib_search_dirs_FC=
11486 if test -n "${compiler_lib_search_path_FC}"; then
11487 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
11520 lt_prog_compiler_wl_FC=
11521 lt_prog_compiler_pic_FC=
11522 lt_prog_compiler_static_FC=
11524 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11525 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11527 if test "$GCC" = yes; then
11528 lt_prog_compiler_wl_FC='-Wl,'
11529 lt_prog_compiler_static_FC='-static'
11531 case $host_os in
11532 aix*)
11533 # All AIX code is PIC.
11534 if test "$host_cpu" = ia64; then
11535 # AIX 5 now supports IA64 processor
11536 lt_prog_compiler_static_FC='-Bstatic'
11540 amigaos*)
11541 case $host_cpu in
11542 powerpc)
11543 # see comment about AmigaOS4 .so support
11544 lt_prog_compiler_pic_FC='-fPIC'
11546 m68k)
11547 # FIXME: we need at least 68020 code to build shared libraries, but
11548 # adding the `-m68020' flag to GCC prevents building anything better,
11549 # like `-m68040'.
11550 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
11552 esac
11555 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11556 # PIC is the default for these OSes.
11559 mingw* | cygwin* | pw32* | os2* | cegcc*)
11560 # This hack is so that the source file can tell whether it is being
11561 # built for inclusion in a dll (and should export symbols for example).
11562 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11563 # (--disable-auto-import) libraries
11564 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
11567 darwin* | rhapsody*)
11568 # PIC is the default on this platform
11569 # Common symbols not allowed in MH_DYLIB files
11570 lt_prog_compiler_pic_FC='-fno-common'
11573 hpux*)
11574 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11575 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11576 # sets the default TLS model and affects inlining.
11577 case $host_cpu in
11578 hppa*64*)
11579 # +Z the default
11582 lt_prog_compiler_pic_FC='-fPIC'
11584 esac
11587 interix[3-9]*)
11588 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11589 # Instead, we relocate shared libraries at runtime.
11592 msdosdjgpp*)
11593 # Just because we use GCC doesn't mean we suddenly get shared libraries
11594 # on systems that don't support them.
11595 lt_prog_compiler_can_build_shared_FC=no
11596 enable_shared=no
11599 *nto* | *qnx*)
11600 # QNX uses GNU C++, but need to define -shared option too, otherwise
11601 # it will coredump.
11602 lt_prog_compiler_pic_FC='-fPIC -shared'
11605 sysv4*MP*)
11606 if test -d /usr/nec; then
11607 lt_prog_compiler_pic_FC=-Kconform_pic
11612 lt_prog_compiler_pic_FC='-fPIC'
11614 esac
11615 else
11616 # PORTME Check for flag to pass linker flags through the system compiler.
11617 case $host_os in
11618 aix*)
11619 lt_prog_compiler_wl_FC='-Wl,'
11620 if test "$host_cpu" = ia64; then
11621 # AIX 5 now supports IA64 processor
11622 lt_prog_compiler_static_FC='-Bstatic'
11623 else
11624 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
11628 mingw* | cygwin* | pw32* | os2* | cegcc*)
11629 # This hack is so that the source file can tell whether it is being
11630 # built for inclusion in a dll (and should export symbols for example).
11631 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
11634 hpux9* | hpux10* | hpux11*)
11635 lt_prog_compiler_wl_FC='-Wl,'
11636 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11637 # not for PA HP-UX.
11638 case $host_cpu in
11639 hppa*64*|ia64*)
11640 # +Z the default
11643 lt_prog_compiler_pic_FC='+Z'
11645 esac
11646 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11647 lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
11650 irix5* | irix6* | nonstopux*)
11651 lt_prog_compiler_wl_FC='-Wl,'
11652 # PIC (with -KPIC) is the default.
11653 lt_prog_compiler_static_FC='-non_shared'
11656 linux* | k*bsd*-gnu)
11657 case $cc_basename in
11658 # old Intel for x86_64 which still supported -KPIC.
11659 ecc*)
11660 lt_prog_compiler_wl_FC='-Wl,'
11661 lt_prog_compiler_pic_FC='-KPIC'
11662 lt_prog_compiler_static_FC='-static'
11664 # icc used to be incompatible with GCC.
11665 # ICC 10 doesn't accept -KPIC any more.
11666 icc* | ifort*)
11667 lt_prog_compiler_wl_FC='-Wl,'
11668 lt_prog_compiler_pic_FC='-fPIC'
11669 lt_prog_compiler_static_FC='-static'
11671 # Lahey Fortran 8.1.
11672 lf95*)
11673 lt_prog_compiler_wl_FC='-Wl,'
11674 lt_prog_compiler_pic_FC='--shared'
11675 lt_prog_compiler_static_FC='--static'
11677 pgcc* | pgf77* | pgf90* | pgf95*)
11678 # Portland Group compilers (*not* the Pentium gcc compiler,
11679 # which looks to be a dead project)
11680 lt_prog_compiler_wl_FC='-Wl,'
11681 lt_prog_compiler_pic_FC='-fpic'
11682 lt_prog_compiler_static_FC='-Bstatic'
11684 ccc*)
11685 lt_prog_compiler_wl_FC='-Wl,'
11686 # All Alpha code is PIC.
11687 lt_prog_compiler_static_FC='-non_shared'
11689 xl*)
11690 # IBM XL C 8.0/Fortran 10.1 on PPC
11691 lt_prog_compiler_wl_FC='-Wl,'
11692 lt_prog_compiler_pic_FC='-qpic'
11693 lt_prog_compiler_static_FC='-qstaticlink'
11696 case `$CC -V 2>&1 | sed 5q` in
11697 *Sun\ C*)
11698 # Sun C 5.9
11699 lt_prog_compiler_pic_FC='-KPIC'
11700 lt_prog_compiler_static_FC='-Bstatic'
11701 lt_prog_compiler_wl_FC='-Wl,'
11703 *Sun\ F*)
11704 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11705 lt_prog_compiler_pic_FC='-KPIC'
11706 lt_prog_compiler_static_FC='-Bstatic'
11707 lt_prog_compiler_wl_FC=''
11709 esac
11711 esac
11714 newsos6)
11715 lt_prog_compiler_pic_FC='-KPIC'
11716 lt_prog_compiler_static_FC='-Bstatic'
11719 *nto* | *qnx*)
11720 # QNX uses GNU C++, but need to define -shared option too, otherwise
11721 # it will coredump.
11722 lt_prog_compiler_pic_FC='-fPIC -shared'
11725 osf3* | osf4* | osf5*)
11726 lt_prog_compiler_wl_FC='-Wl,'
11727 # All OSF/1 code is PIC.
11728 lt_prog_compiler_static_FC='-non_shared'
11731 rdos*)
11732 lt_prog_compiler_static_FC='-non_shared'
11735 solaris*)
11736 lt_prog_compiler_pic_FC='-KPIC'
11737 lt_prog_compiler_static_FC='-Bstatic'
11738 case $cc_basename in
11739 f77* | f90* | f95*)
11740 lt_prog_compiler_wl_FC='-Qoption ld ';;
11742 lt_prog_compiler_wl_FC='-Wl,';;
11743 esac
11746 sunos4*)
11747 lt_prog_compiler_wl_FC='-Qoption ld '
11748 lt_prog_compiler_pic_FC='-PIC'
11749 lt_prog_compiler_static_FC='-Bstatic'
11752 sysv4 | sysv4.2uw2* | sysv4.3*)
11753 lt_prog_compiler_wl_FC='-Wl,'
11754 lt_prog_compiler_pic_FC='-KPIC'
11755 lt_prog_compiler_static_FC='-Bstatic'
11758 sysv4*MP*)
11759 if test -d /usr/nec ;then
11760 lt_prog_compiler_pic_FC='-Kconform_pic'
11761 lt_prog_compiler_static_FC='-Bstatic'
11765 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11766 lt_prog_compiler_wl_FC='-Wl,'
11767 lt_prog_compiler_pic_FC='-KPIC'
11768 lt_prog_compiler_static_FC='-Bstatic'
11771 unicos*)
11772 lt_prog_compiler_wl_FC='-Wl,'
11773 lt_prog_compiler_can_build_shared_FC=no
11776 uts4*)
11777 lt_prog_compiler_pic_FC='-pic'
11778 lt_prog_compiler_static_FC='-Bstatic'
11782 lt_prog_compiler_can_build_shared_FC=no
11784 esac
11787 case $host_os in
11788 # For platforms which do not support PIC, -DPIC is meaningless:
11789 *djgpp*)
11790 lt_prog_compiler_pic_FC=
11793 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
11795 esac
11796 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_FC" >&5
11797 echo "${ECHO_T}$lt_prog_compiler_pic_FC" >&6
11802 # Check to make sure the PIC flag actually works.
11804 if test -n "$lt_prog_compiler_pic_FC"; then
11805 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
11806 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... $ECHO_C" >&6
11807 if test "${lt_cv_prog_compiler_pic_works_FC+set}" = set; then
11808 echo $ECHO_N "(cached) $ECHO_C" >&6
11809 else
11810 lt_cv_prog_compiler_pic_works_FC=no
11811 ac_outfile=conftest.$ac_objext
11812 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11813 lt_compiler_flag="$lt_prog_compiler_pic_FC"
11814 # Insert the option either (1) after the last *FLAGS variable, or
11815 # (2) before a word containing "conftest.", or (3) at the end.
11816 # Note that $ac_compile itself does not contain backslashes and begins
11817 # with a dollar sign (not a hyphen), so the echo should work correctly.
11818 # The option is referenced via a variable to avoid confusing sed.
11819 lt_compile=`echo "$ac_compile" | $SED \
11820 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11821 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11822 -e 's:$: $lt_compiler_flag:'`
11823 (eval echo "\"\$as_me:11823: $lt_compile\"" >&5)
11824 (eval "$lt_compile" 2>conftest.err)
11825 ac_status=$?
11826 cat conftest.err >&5
11827 echo "$as_me:11827: \$? = $ac_status" >&5
11828 if (exit $ac_status) && test -s "$ac_outfile"; then
11829 # The compiler can only warn and ignore the option if not recognized
11830 # So say no if there are warnings other than the usual output.
11831 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11832 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11833 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11834 lt_cv_prog_compiler_pic_works_FC=yes
11837 $RM conftest*
11840 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_FC" >&5
11841 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_FC" >&6
11843 if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
11844 case $lt_prog_compiler_pic_FC in
11845 "" | " "*) ;;
11846 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
11847 esac
11848 else
11849 lt_prog_compiler_pic_FC=
11850 lt_prog_compiler_can_build_shared_FC=no
11858 # Check to make sure the static flag actually works.
11860 wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
11861 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11862 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11863 if test "${lt_cv_prog_compiler_static_works_FC+set}" = set; then
11864 echo $ECHO_N "(cached) $ECHO_C" >&6
11865 else
11866 lt_cv_prog_compiler_static_works_FC=no
11867 save_LDFLAGS="$LDFLAGS"
11868 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11869 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11870 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11871 # The linker can only warn and ignore the option if not recognized
11872 # So say no if there are warnings
11873 if test -s conftest.err; then
11874 # Append any errors to the config.log.
11875 cat conftest.err 1>&5
11876 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11877 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11878 if diff conftest.exp conftest.er2 >/dev/null; then
11879 lt_cv_prog_compiler_static_works_FC=yes
11881 else
11882 lt_cv_prog_compiler_static_works_FC=yes
11885 $RM -r conftest*
11886 LDFLAGS="$save_LDFLAGS"
11889 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_FC" >&5
11890 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_FC" >&6
11892 if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
11894 else
11895 lt_prog_compiler_static_FC=
11901 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11902 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11903 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then
11904 echo $ECHO_N "(cached) $ECHO_C" >&6
11905 else
11906 lt_cv_prog_compiler_c_o_FC=no
11907 $RM -r conftest 2>/dev/null
11908 mkdir conftest
11909 cd conftest
11910 mkdir out
11911 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11913 lt_compiler_flag="-o out/conftest2.$ac_objext"
11914 # Insert the option either (1) after the last *FLAGS variable, or
11915 # (2) before a word containing "conftest.", or (3) at the end.
11916 # Note that $ac_compile itself does not contain backslashes and begins
11917 # with a dollar sign (not a hyphen), so the echo should work correctly.
11918 lt_compile=`echo "$ac_compile" | $SED \
11919 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11920 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11921 -e 's:$: $lt_compiler_flag:'`
11922 (eval echo "\"\$as_me:11922: $lt_compile\"" >&5)
11923 (eval "$lt_compile" 2>out/conftest.err)
11924 ac_status=$?
11925 cat out/conftest.err >&5
11926 echo "$as_me:11926: \$? = $ac_status" >&5
11927 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11928 then
11929 # The compiler can only warn and ignore the option if not recognized
11930 # So say no if there are warnings
11931 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11932 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11933 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11934 lt_cv_prog_compiler_c_o_FC=yes
11937 chmod u+w . 2>&5
11938 $RM conftest*
11939 # SGI C++ compiler will create directory out/ii_files/ for
11940 # template instantiation
11941 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11942 $RM out/* && rmdir out
11943 cd ..
11944 $RM -r conftest
11945 $RM conftest*
11948 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_FC" >&5
11949 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_FC" >&6
11953 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11954 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11955 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then
11956 echo $ECHO_N "(cached) $ECHO_C" >&6
11957 else
11958 lt_cv_prog_compiler_c_o_FC=no
11959 $RM -r conftest 2>/dev/null
11960 mkdir conftest
11961 cd conftest
11962 mkdir out
11963 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11965 lt_compiler_flag="-o out/conftest2.$ac_objext"
11966 # Insert the option either (1) after the last *FLAGS variable, or
11967 # (2) before a word containing "conftest.", or (3) at the end.
11968 # Note that $ac_compile itself does not contain backslashes and begins
11969 # with a dollar sign (not a hyphen), so the echo should work correctly.
11970 lt_compile=`echo "$ac_compile" | $SED \
11971 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11972 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11973 -e 's:$: $lt_compiler_flag:'`
11974 (eval echo "\"\$as_me:11974: $lt_compile\"" >&5)
11975 (eval "$lt_compile" 2>out/conftest.err)
11976 ac_status=$?
11977 cat out/conftest.err >&5
11978 echo "$as_me:11978: \$? = $ac_status" >&5
11979 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11980 then
11981 # The compiler can only warn and ignore the option if not recognized
11982 # So say no if there are warnings
11983 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11984 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11985 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11986 lt_cv_prog_compiler_c_o_FC=yes
11989 chmod u+w . 2>&5
11990 $RM conftest*
11991 # SGI C++ compiler will create directory out/ii_files/ for
11992 # template instantiation
11993 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11994 $RM out/* && rmdir out
11995 cd ..
11996 $RM -r conftest
11997 $RM conftest*
12000 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_FC" >&5
12001 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_FC" >&6
12006 hard_links="nottested"
12007 if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
12008 # do not overwrite the value of need_locks provided by the user
12009 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12010 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12011 hard_links=yes
12012 $RM conftest*
12013 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12014 touch conftest.a
12015 ln conftest.a conftest.b 2>&5 || hard_links=no
12016 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12017 echo "$as_me:$LINENO: result: $hard_links" >&5
12018 echo "${ECHO_T}$hard_links" >&6
12019 if test "$hard_links" = no; then
12020 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12021 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12022 need_locks=warn
12024 else
12025 need_locks=no
12030 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12031 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12033 runpath_var=
12034 allow_undefined_flag_FC=
12035 always_export_symbols_FC=no
12036 archive_cmds_FC=
12037 archive_expsym_cmds_FC=
12038 compiler_needs_object_FC=no
12039 enable_shared_with_static_runtimes_FC=no
12040 export_dynamic_flag_spec_FC=
12041 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12042 hardcode_automatic_FC=no
12043 hardcode_direct_FC=no
12044 hardcode_direct_absolute_FC=no
12045 hardcode_libdir_flag_spec_FC=
12046 hardcode_libdir_flag_spec_ld_FC=
12047 hardcode_libdir_separator_FC=
12048 hardcode_minus_L_FC=no
12049 hardcode_shlibpath_var_FC=unsupported
12050 inherit_rpath_FC=no
12051 link_all_deplibs_FC=unknown
12052 module_cmds_FC=
12053 module_expsym_cmds_FC=
12054 old_archive_from_new_cmds_FC=
12055 old_archive_from_expsyms_cmds_FC=
12056 thread_safe_flag_spec_FC=
12057 whole_archive_flag_spec_FC=
12058 # include_expsyms should be a list of space-separated symbols to be *always*
12059 # included in the symbol list
12060 include_expsyms_FC=
12061 # exclude_expsyms can be an extended regexp of symbols to exclude
12062 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12063 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12064 # as well as any symbol that contains `d'.
12065 exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12066 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12067 # platforms (ab)use it in PIC code, but their linkers get confused if
12068 # the symbol is explicitly referenced. Since portable code cannot
12069 # rely on this symbol name, it's probably fine to never include it in
12070 # preloaded symbol tables.
12071 # Exclude shared library initialization/finalization symbols.
12072 extract_expsyms_cmds=
12074 case $host_os in
12075 cygwin* | mingw* | pw32* | cegcc*)
12076 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12077 # When not using gcc, we currently assume that we are using
12078 # Microsoft Visual C++.
12079 if test "$GCC" != yes; then
12080 with_gnu_ld=no
12083 interix*)
12084 # we just hope/assume this is gcc and not c89 (= MSVC++)
12085 with_gnu_ld=yes
12087 openbsd*)
12088 with_gnu_ld=no
12090 esac
12092 ld_shlibs_FC=yes
12093 if test "$with_gnu_ld" = yes; then
12094 # If archive_cmds runs LD, not CC, wlarc should be empty
12095 wlarc='${wl}'
12097 # Set some defaults for GNU ld with shared library support. These
12098 # are reset later if shared libraries are not supported. Putting them
12099 # here allows them to be overridden if necessary.
12100 runpath_var=LD_RUN_PATH
12101 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12102 export_dynamic_flag_spec_FC='${wl}--export-dynamic'
12103 # ancient GNU ld didn't support --whole-archive et. al.
12104 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12105 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12106 else
12107 whole_archive_flag_spec_FC=
12109 supports_anon_versioning=no
12110 case `$LD -v 2>&1` in
12111 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12112 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12113 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12114 *\ 2.11.*) ;; # other 2.11 versions
12115 *) supports_anon_versioning=yes ;;
12116 esac
12118 # See if GNU ld supports shared libraries.
12119 case $host_os in
12120 aix[3-9]*)
12121 # On AIX/PPC, the GNU linker is very broken
12122 if test "$host_cpu" != ia64; then
12123 ld_shlibs_FC=no
12124 cat <<_LT_EOF 1>&2
12126 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12127 *** to be unable to reliably create shared libraries on AIX.
12128 *** Therefore, libtool is disabling shared libraries support. If you
12129 *** really care for shared libraries, you may want to modify your PATH
12130 *** so that a non-GNU linker is found, and then restart.
12132 _LT_EOF
12136 amigaos*)
12137 case $host_cpu in
12138 powerpc)
12139 # see comment about AmigaOS4 .so support
12140 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12141 archive_expsym_cmds_FC=''
12143 m68k)
12144 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)'
12145 hardcode_libdir_flag_spec_FC='-L$libdir'
12146 hardcode_minus_L_FC=yes
12148 esac
12151 beos*)
12152 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12153 allow_undefined_flag_FC=unsupported
12154 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12155 # support --undefined. This deserves some investigation. FIXME
12156 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12157 else
12158 ld_shlibs_FC=no
12162 cygwin* | mingw* | pw32* | cegcc*)
12163 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
12164 # as there is no search path for DLLs.
12165 hardcode_libdir_flag_spec_FC='-L$libdir'
12166 allow_undefined_flag_FC=unsupported
12167 always_export_symbols_FC=no
12168 enable_shared_with_static_runtimes_FC=yes
12169 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12171 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12172 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12173 # If the export-symbols file already is a .def file (1st line
12174 # is EXPORTS), use it as is; otherwise, prepend...
12175 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12176 cp $export_symbols $output_objdir/$soname.def;
12177 else
12178 echo EXPORTS > $output_objdir/$soname.def;
12179 cat $export_symbols >> $output_objdir/$soname.def;
12181 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12182 else
12183 ld_shlibs_FC=no
12187 interix[3-9]*)
12188 hardcode_direct_FC=no
12189 hardcode_shlibpath_var_FC=no
12190 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
12191 export_dynamic_flag_spec_FC='${wl}-E'
12192 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12193 # Instead, shared libraries are loaded at an image base (0x10000000 by
12194 # default) and relocated if they conflict, which is a slow very memory
12195 # consuming and fragmenting process. To avoid this, we pick a random,
12196 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12197 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12198 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'
12199 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'
12202 gnu* | linux* | tpf* | k*bsd*-gnu)
12203 tmp_diet=no
12204 if test "$host_os" = linux-dietlibc; then
12205 case $cc_basename in
12206 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12207 esac
12209 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12210 && test "$tmp_diet" = no
12211 then
12212 tmp_addflag=
12213 tmp_sharedflag='-shared'
12214 case $cc_basename,$host_cpu in
12215 pgcc*) # Portland Group C compiler
12216 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'
12217 tmp_addflag=' $pic_flag'
12219 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
12220 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'
12221 tmp_addflag=' $pic_flag -Mnomain' ;;
12222 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12223 tmp_addflag=' -i_dynamic' ;;
12224 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12225 tmp_addflag=' -i_dynamic -nofor_main' ;;
12226 ifc* | ifort*) # Intel Fortran compiler
12227 tmp_addflag=' -nofor_main' ;;
12228 lf95*) # Lahey Fortran 8.1
12229 whole_archive_flag_spec_FC=
12230 tmp_sharedflag='--shared' ;;
12231 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12232 tmp_sharedflag='-qmkshrobj'
12233 tmp_addflag= ;;
12234 esac
12235 case `$CC -V 2>&1 | sed 5q` in
12236 *Sun\ C*) # Sun C 5.9
12237 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'
12238 compiler_needs_object_FC=yes
12239 tmp_sharedflag='-G' ;;
12240 *Sun\ F*) # Sun Fortran 8.3
12241 tmp_sharedflag='-G' ;;
12242 esac
12243 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12245 if test "x$supports_anon_versioning" = xyes; then
12246 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
12247 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12248 echo "local: *; };" >> $output_objdir/$libname.ver~
12249 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12252 case $cc_basename in
12253 xlf*)
12254 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12255 whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
12256 hardcode_libdir_flag_spec_FC=
12257 hardcode_libdir_flag_spec_ld_FC='-rpath $libdir'
12258 archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12259 if test "x$supports_anon_versioning" = xyes; then
12260 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
12261 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12262 echo "local: *; };" >> $output_objdir/$libname.ver~
12263 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12266 esac
12267 else
12268 ld_shlibs_FC=no
12272 netbsd*)
12273 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12274 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12275 wlarc=
12276 else
12277 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12278 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12282 solaris*)
12283 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12284 ld_shlibs_FC=no
12285 cat <<_LT_EOF 1>&2
12287 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12288 *** create shared libraries on Solaris systems. Therefore, libtool
12289 *** is disabling shared libraries support. We urge you to upgrade GNU
12290 *** binutils to release 2.9.1 or newer. Another option is to modify
12291 *** your PATH or compiler configuration so that the native linker is
12292 *** used, and then restart.
12294 _LT_EOF
12295 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12296 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12297 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12298 else
12299 ld_shlibs_FC=no
12303 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12304 case `$LD -v 2>&1` in
12305 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12306 ld_shlibs_FC=no
12307 cat <<_LT_EOF 1>&2
12309 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12310 *** reliably create shared libraries on SCO systems. Therefore, libtool
12311 *** is disabling shared libraries support. We urge you to upgrade GNU
12312 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12313 *** your PATH or compiler configuration so that the native linker is
12314 *** used, and then restart.
12316 _LT_EOF
12319 # For security reasons, it is highly recommended that you always
12320 # use absolute paths for naming shared libraries, and exclude the
12321 # DT_RUNPATH tag from executables and libraries. But doing so
12322 # requires that you compile everything twice, which is a pain.
12323 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12324 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12325 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12326 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12327 else
12328 ld_shlibs_FC=no
12331 esac
12334 sunos4*)
12335 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12336 wlarc=
12337 hardcode_direct_FC=yes
12338 hardcode_shlibpath_var_FC=no
12342 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12343 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12344 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12345 else
12346 ld_shlibs_FC=no
12349 esac
12351 if test "$ld_shlibs_FC" = no; then
12352 runpath_var=
12353 hardcode_libdir_flag_spec_FC=
12354 export_dynamic_flag_spec_FC=
12355 whole_archive_flag_spec_FC=
12357 else
12358 # PORTME fill in a description of your system's linker (not GNU ld)
12359 case $host_os in
12360 aix3*)
12361 allow_undefined_flag_FC=unsupported
12362 always_export_symbols_FC=yes
12363 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'
12364 # Note: this linker hardcodes the directories in LIBPATH if there
12365 # are no directories specified by -L.
12366 hardcode_minus_L_FC=yes
12367 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12368 # Neither direct hardcoding nor static linking is supported with a
12369 # broken collect2.
12370 hardcode_direct_FC=unsupported
12374 aix[4-9]*)
12375 if test "$host_cpu" = ia64; then
12376 # On IA64, the linker does run time linking by default, so we don't
12377 # have to do anything special.
12378 aix_use_runtimelinking=no
12379 exp_sym_flag='-Bexport'
12380 no_entry_flag=""
12381 else
12382 # If we're using GNU nm, then we don't want the "-C" option.
12383 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12384 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12385 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'
12386 else
12387 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'
12389 aix_use_runtimelinking=no
12391 # Test if we are trying to use run time linking or normal
12392 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12393 # need to do runtime linking.
12394 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12395 for ld_flag in $LDFLAGS; do
12396 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12397 aix_use_runtimelinking=yes
12398 break
12400 done
12402 esac
12404 exp_sym_flag='-bexport'
12405 no_entry_flag='-bnoentry'
12408 # When large executables or shared objects are built, AIX ld can
12409 # have problems creating the table of contents. If linking a library
12410 # or program results in "error TOC overflow" add -mminimal-toc to
12411 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12412 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12414 archive_cmds_FC=''
12415 hardcode_direct_FC=yes
12416 hardcode_direct_absolute_FC=yes
12417 hardcode_libdir_separator_FC=':'
12418 link_all_deplibs_FC=yes
12419 file_list_spec_FC='${wl}-f,'
12421 if test "$GCC" = yes; then
12422 case $host_os in aix4.[012]|aix4.[012].*)
12423 # We only want to do this on AIX 4.2 and lower, the check
12424 # below for broken collect2 doesn't work under 4.3+
12425 collect2name=`${CC} -print-prog-name=collect2`
12426 if test -f "$collect2name" &&
12427 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12428 then
12429 # We have reworked collect2
12431 else
12432 # We have old collect2
12433 hardcode_direct_FC=unsupported
12434 # It fails to find uninstalled libraries when the uninstalled
12435 # path is not listed in the libpath. Setting hardcode_minus_L
12436 # to unsupported forces relinking
12437 hardcode_minus_L_FC=yes
12438 hardcode_libdir_flag_spec_FC='-L$libdir'
12439 hardcode_libdir_separator_FC=
12442 esac
12443 shared_flag='-shared'
12444 if test "$aix_use_runtimelinking" = yes; then
12445 shared_flag="$shared_flag "'${wl}-G'
12447 else
12448 # not using gcc
12449 if test "$host_cpu" = ia64; then
12450 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12451 # chokes on -Wl,-G. The following line is correct:
12452 shared_flag='-G'
12453 else
12454 if test "$aix_use_runtimelinking" = yes; then
12455 shared_flag='${wl}-G'
12456 else
12457 shared_flag='${wl}-bM:SRE'
12462 export_dynamic_flag_spec_FC='${wl}-bexpall'
12463 # It seems that -bexpall does not export symbols beginning with
12464 # underscore (_), so it is better to generate a list of symbols to export.
12465 always_export_symbols_FC=yes
12466 if test "$aix_use_runtimelinking" = yes; then
12467 # Warning - without using the other runtime loading flags (-brtl),
12468 # -berok will link without error, but may produce a broken library.
12469 allow_undefined_flag_FC='-berok'
12470 # Determine the default libpath from the value encoded in an
12471 # empty executable.
12472 cat >conftest.$ac_ext <<_ACEOF
12473 program main
12476 _ACEOF
12477 rm -f conftest.$ac_objext conftest$ac_exeext
12478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12479 (eval $ac_link) 2>conftest.er1
12480 ac_status=$?
12481 grep -v '^ *+' conftest.er1 >conftest.err
12482 rm -f conftest.er1
12483 cat conftest.err >&5
12484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12485 (exit $ac_status); } &&
12486 { ac_try='test -z "$ac_fc_werror_flag"
12487 || test ! -s conftest.err'
12488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12489 (eval $ac_try) 2>&5
12490 ac_status=$?
12491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12492 (exit $ac_status); }; } &&
12493 { ac_try='test -s conftest$ac_exeext'
12494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12495 (eval $ac_try) 2>&5
12496 ac_status=$?
12497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12498 (exit $ac_status); }; }; then
12500 lt_aix_libpath_sed='
12501 /Import File Strings/,/^$/ {
12502 /^0/ {
12503 s/^0 *\(.*\)$/\1/
12507 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12508 # Check for a 64-bit object if we didn't find anything.
12509 if test -z "$aix_libpath"; then
12510 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12512 else
12513 echo "$as_me: failed program was:" >&5
12514 sed 's/^/| /' conftest.$ac_ext >&5
12517 rm -f conftest.err conftest.$ac_objext \
12518 conftest$ac_exeext conftest.$ac_ext
12519 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12521 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
12522 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"
12523 else
12524 if test "$host_cpu" = ia64; then
12525 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
12526 allow_undefined_flag_FC="-z nodefs"
12527 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"
12528 else
12529 # Determine the default libpath from the value encoded in an
12530 # empty executable.
12531 cat >conftest.$ac_ext <<_ACEOF
12532 program main
12535 _ACEOF
12536 rm -f conftest.$ac_objext conftest$ac_exeext
12537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12538 (eval $ac_link) 2>conftest.er1
12539 ac_status=$?
12540 grep -v '^ *+' conftest.er1 >conftest.err
12541 rm -f conftest.er1
12542 cat conftest.err >&5
12543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12544 (exit $ac_status); } &&
12545 { ac_try='test -z "$ac_fc_werror_flag"
12546 || test ! -s conftest.err'
12547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12548 (eval $ac_try) 2>&5
12549 ac_status=$?
12550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551 (exit $ac_status); }; } &&
12552 { ac_try='test -s conftest$ac_exeext'
12553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12554 (eval $ac_try) 2>&5
12555 ac_status=$?
12556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12557 (exit $ac_status); }; }; then
12559 lt_aix_libpath_sed='
12560 /Import File Strings/,/^$/ {
12561 /^0/ {
12562 s/^0 *\(.*\)$/\1/
12566 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12567 # Check for a 64-bit object if we didn't find anything.
12568 if test -z "$aix_libpath"; then
12569 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12571 else
12572 echo "$as_me: failed program was:" >&5
12573 sed 's/^/| /' conftest.$ac_ext >&5
12576 rm -f conftest.err conftest.$ac_objext \
12577 conftest$ac_exeext conftest.$ac_ext
12578 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12580 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
12581 # Warning - without using the other run time loading flags,
12582 # -berok will link without error, but may produce a broken library.
12583 no_undefined_flag_FC=' ${wl}-bernotok'
12584 allow_undefined_flag_FC=' ${wl}-berok'
12585 # Exported symbols can be pulled into shared objects from archives
12586 whole_archive_flag_spec_FC='$convenience'
12587 archive_cmds_need_lc_FC=yes
12588 # This is similar to how AIX traditionally builds its shared libraries.
12589 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'
12594 amigaos*)
12595 case $host_cpu in
12596 powerpc)
12597 # see comment about AmigaOS4 .so support
12598 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12599 archive_expsym_cmds_FC=''
12601 m68k)
12602 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)'
12603 hardcode_libdir_flag_spec_FC='-L$libdir'
12604 hardcode_minus_L_FC=yes
12606 esac
12609 bsdi[45]*)
12610 export_dynamic_flag_spec_FC=-rdynamic
12613 cygwin* | mingw* | pw32* | cegcc*)
12614 # When not using gcc, we currently assume that we are using
12615 # Microsoft Visual C++.
12616 # hardcode_libdir_flag_spec is actually meaningless, as there is
12617 # no search path for DLLs.
12618 hardcode_libdir_flag_spec_FC=' '
12619 allow_undefined_flag_FC=unsupported
12620 # Tell ltmain to make .lib files, not .a files.
12621 libext=lib
12622 # Tell ltmain to make .dll files, not .so files.
12623 shrext_cmds=".dll"
12624 # FIXME: Setting linknames here is a bad hack.
12625 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
12626 # The linker will automatically build a .lib file if we build a DLL.
12627 old_archive_from_new_cmds_FC='true'
12628 # FIXME: Should let the user specify the lib program.
12629 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
12630 fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
12631 enable_shared_with_static_runtimes_FC=yes
12634 darwin* | rhapsody*)
12637 archive_cmds_need_lc_FC=no
12638 hardcode_direct_FC=no
12639 hardcode_automatic_FC=yes
12640 hardcode_shlibpath_var_FC=unsupported
12641 whole_archive_flag_spec_FC=''
12642 link_all_deplibs_FC=yes
12643 allow_undefined_flag_FC="$_lt_dar_allow_undefined"
12644 case $cc_basename in
12645 ifort*) _lt_dar_can_shared=yes ;;
12646 *) _lt_dar_can_shared=$GCC ;;
12647 esac
12648 if test "$_lt_dar_can_shared" = "yes"; then
12649 output_verbose_link_cmd=echo
12650 archive_cmds_FC="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12651 module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12652 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 ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
12653 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${_lt_dar_export_syms}${_lt_dsymutil}"
12655 else
12656 ld_shlibs_FC=no
12661 dgux*)
12662 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12663 hardcode_libdir_flag_spec_FC='-L$libdir'
12664 hardcode_shlibpath_var_FC=no
12667 freebsd1*)
12668 ld_shlibs_FC=no
12671 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12672 # support. Future versions do this automatically, but an explicit c++rt0.o
12673 # does not break anything, and helps significantly (at the cost of a little
12674 # extra space).
12675 freebsd2.2*)
12676 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12677 hardcode_libdir_flag_spec_FC='-R$libdir'
12678 hardcode_direct_FC=yes
12679 hardcode_shlibpath_var_FC=no
12682 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12683 freebsd2*)
12684 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12685 hardcode_direct_FC=yes
12686 hardcode_minus_L_FC=yes
12687 hardcode_shlibpath_var_FC=no
12690 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12691 freebsd* | dragonfly*)
12692 archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12693 hardcode_libdir_flag_spec_FC='-R$libdir'
12694 hardcode_direct_FC=yes
12695 hardcode_shlibpath_var_FC=no
12698 hpux9*)
12699 if test "$GCC" = yes; then
12700 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'
12701 else
12702 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'
12704 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
12705 hardcode_libdir_separator_FC=:
12706 hardcode_direct_FC=yes
12708 # hardcode_minus_L: Not really in the search PATH,
12709 # but as the default location of the library.
12710 hardcode_minus_L_FC=yes
12711 export_dynamic_flag_spec_FC='${wl}-E'
12714 hpux10*)
12715 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12716 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12717 else
12718 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12720 if test "$with_gnu_ld" = no; then
12721 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
12722 hardcode_libdir_flag_spec_ld_FC='+b $libdir'
12723 hardcode_libdir_separator_FC=:
12724 hardcode_direct_FC=yes
12725 hardcode_direct_absolute_FC=yes
12726 export_dynamic_flag_spec_FC='${wl}-E'
12727 # hardcode_minus_L: Not really in the search PATH,
12728 # but as the default location of the library.
12729 hardcode_minus_L_FC=yes
12733 hpux11*)
12734 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12735 case $host_cpu in
12736 hppa*64*)
12737 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12739 ia64*)
12740 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12743 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12745 esac
12746 else
12747 case $host_cpu in
12748 hppa*64*)
12749 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12751 ia64*)
12752 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12755 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12757 esac
12759 if test "$with_gnu_ld" = no; then
12760 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
12761 hardcode_libdir_separator_FC=:
12763 case $host_cpu in
12764 hppa*64*|ia64*)
12765 hardcode_direct_FC=no
12766 hardcode_shlibpath_var_FC=no
12769 hardcode_direct_FC=yes
12770 hardcode_direct_absolute_FC=yes
12771 export_dynamic_flag_spec_FC='${wl}-E'
12773 # hardcode_minus_L: Not really in the search PATH,
12774 # but as the default location of the library.
12775 hardcode_minus_L_FC=yes
12777 esac
12781 irix5* | irix6* | nonstopux*)
12782 if test "$GCC" = yes; then
12783 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'
12784 # Try to use the -exported_symbol ld option, if it does not
12785 # work, assume that -exports_file does not work either and
12786 # implicitly export all symbols.
12787 save_LDFLAGS="$LDFLAGS"
12788 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12789 cat >conftest.$ac_ext <<_ACEOF
12790 int foo(void) {}
12791 _ACEOF
12792 rm -f conftest.$ac_objext conftest$ac_exeext
12793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12794 (eval $ac_link) 2>conftest.er1
12795 ac_status=$?
12796 grep -v '^ *+' conftest.er1 >conftest.err
12797 rm -f conftest.er1
12798 cat conftest.err >&5
12799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800 (exit $ac_status); } &&
12801 { ac_try='test -z "$ac_fc_werror_flag"
12802 || test ! -s conftest.err'
12803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12804 (eval $ac_try) 2>&5
12805 ac_status=$?
12806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12807 (exit $ac_status); }; } &&
12808 { ac_try='test -s conftest$ac_exeext'
12809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12810 (eval $ac_try) 2>&5
12811 ac_status=$?
12812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12813 (exit $ac_status); }; }; then
12814 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'
12816 else
12817 echo "$as_me: failed program was:" >&5
12818 sed 's/^/| /' conftest.$ac_ext >&5
12821 rm -f conftest.err conftest.$ac_objext \
12822 conftest$ac_exeext conftest.$ac_ext
12823 LDFLAGS="$save_LDFLAGS"
12824 else
12825 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'
12826 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'
12828 archive_cmds_need_lc_FC='no'
12829 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12830 hardcode_libdir_separator_FC=:
12831 inherit_rpath_FC=yes
12832 link_all_deplibs_FC=yes
12835 netbsd*)
12836 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12837 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12838 else
12839 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12841 hardcode_libdir_flag_spec_FC='-R$libdir'
12842 hardcode_direct_FC=yes
12843 hardcode_shlibpath_var_FC=no
12846 newsos6)
12847 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12848 hardcode_direct_FC=yes
12849 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12850 hardcode_libdir_separator_FC=:
12851 hardcode_shlibpath_var_FC=no
12854 *nto* | *qnx*)
12857 openbsd*)
12858 if test -f /usr/libexec/ld.so; then
12859 hardcode_direct_FC=yes
12860 hardcode_shlibpath_var_FC=no
12861 hardcode_direct_absolute_FC=yes
12862 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12863 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12864 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12865 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
12866 export_dynamic_flag_spec_FC='${wl}-E'
12867 else
12868 case $host_os in
12869 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12870 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12871 hardcode_libdir_flag_spec_FC='-R$libdir'
12874 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12875 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
12877 esac
12879 else
12880 ld_shlibs_FC=no
12884 os2*)
12885 hardcode_libdir_flag_spec_FC='-L$libdir'
12886 hardcode_minus_L_FC=yes
12887 allow_undefined_flag_FC=unsupported
12888 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'
12889 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12892 osf3*)
12893 if test "$GCC" = yes; then
12894 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
12895 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'
12896 else
12897 allow_undefined_flag_FC=' -expect_unresolved \*'
12898 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'
12900 archive_cmds_need_lc_FC='no'
12901 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12902 hardcode_libdir_separator_FC=:
12905 osf4* | osf5*) # as osf3* with the addition of -msym flag
12906 if test "$GCC" = yes; then
12907 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
12908 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'
12909 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12910 else
12911 allow_undefined_flag_FC=' -expect_unresolved \*'
12912 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'
12913 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~
12914 $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'
12916 # Both c and cxx compiler support -rpath directly
12917 hardcode_libdir_flag_spec_FC='-rpath $libdir'
12919 archive_cmds_need_lc_FC='no'
12920 hardcode_libdir_separator_FC=:
12923 solaris*)
12924 no_undefined_flag_FC=' -z defs'
12925 if test "$GCC" = yes; then
12926 wlarc='${wl}'
12927 archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12928 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12929 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12930 else
12931 case `$CC -V 2>&1` in
12932 *"Compilers 5.0"*)
12933 wlarc=''
12934 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12935 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12936 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12939 wlarc='${wl}'
12940 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12941 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12942 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12944 esac
12946 hardcode_libdir_flag_spec_FC='-R$libdir'
12947 hardcode_shlibpath_var_FC=no
12948 case $host_os in
12949 solaris2.[0-5] | solaris2.[0-5].*) ;;
12951 # The compiler driver will combine and reorder linker options,
12952 # but understands `-z linker_flag'. GCC discards it without `$wl',
12953 # but is careful enough not to reorder.
12954 # Supported since Solaris 2.6 (maybe 2.5.1?)
12955 if test "$GCC" = yes; then
12956 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12957 else
12958 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
12961 esac
12962 link_all_deplibs_FC=yes
12965 sunos4*)
12966 if test "x$host_vendor" = xsequent; then
12967 # Use $CC to link under sequent, because it throws in some extra .o
12968 # files that make .init and .fini sections work.
12969 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12970 else
12971 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12973 hardcode_libdir_flag_spec_FC='-L$libdir'
12974 hardcode_direct_FC=yes
12975 hardcode_minus_L_FC=yes
12976 hardcode_shlibpath_var_FC=no
12979 sysv4)
12980 case $host_vendor in
12981 sni)
12982 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12983 hardcode_direct_FC=yes # is this really true???
12985 siemens)
12986 ## LD is ld it makes a PLAMLIB
12987 ## CC just makes a GrossModule.
12988 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12989 reload_cmds_FC='$CC -r -o $output$reload_objs'
12990 hardcode_direct_FC=no
12992 motorola)
12993 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12994 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
12996 esac
12997 runpath_var='LD_RUN_PATH'
12998 hardcode_shlibpath_var_FC=no
13001 sysv4.3*)
13002 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13003 hardcode_shlibpath_var_FC=no
13004 export_dynamic_flag_spec_FC='-Bexport'
13007 sysv4*MP*)
13008 if test -d /usr/nec; then
13009 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13010 hardcode_shlibpath_var_FC=no
13011 runpath_var=LD_RUN_PATH
13012 hardcode_runpath_var=yes
13013 ld_shlibs_FC=yes
13017 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13018 no_undefined_flag_FC='${wl}-z,text'
13019 archive_cmds_need_lc_FC=no
13020 hardcode_shlibpath_var_FC=no
13021 runpath_var='LD_RUN_PATH'
13023 if test "$GCC" = yes; then
13024 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13025 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13026 else
13027 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13028 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13032 sysv5* | sco3.2v5* | sco5v6*)
13033 # Note: We can NOT use -z defs as we might desire, because we do not
13034 # link with -lc, and that would cause any symbols used from libc to
13035 # always be unresolved, which means just about no library would
13036 # ever link correctly. If we're not using GNU ld we use -z text
13037 # though, which does catch some bad symbols but isn't as heavy-handed
13038 # as -z defs.
13039 no_undefined_flag_FC='${wl}-z,text'
13040 allow_undefined_flag_FC='${wl}-z,nodefs'
13041 archive_cmds_need_lc_FC=no
13042 hardcode_shlibpath_var_FC=no
13043 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
13044 hardcode_libdir_separator_FC=':'
13045 link_all_deplibs_FC=yes
13046 export_dynamic_flag_spec_FC='${wl}-Bexport'
13047 runpath_var='LD_RUN_PATH'
13049 if test "$GCC" = yes; then
13050 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13051 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13052 else
13053 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13054 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13058 uts4*)
13059 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13060 hardcode_libdir_flag_spec_FC='-L$libdir'
13061 hardcode_shlibpath_var_FC=no
13065 ld_shlibs_FC=no
13067 esac
13069 if test x$host_vendor = xsni; then
13070 case $host in
13071 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13072 export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
13074 esac
13078 echo "$as_me:$LINENO: result: $ld_shlibs_FC" >&5
13079 echo "${ECHO_T}$ld_shlibs_FC" >&6
13080 test "$ld_shlibs_FC" = no && can_build_shared=no
13082 with_gnu_ld_FC=$with_gnu_ld
13090 # Do we need to explicitly link libc?
13092 case "x$archive_cmds_need_lc_FC" in
13093 x|xyes)
13094 # Assume -lc should be added
13095 archive_cmds_need_lc_FC=yes
13097 if test "$enable_shared" = yes && test "$GCC" = yes; then
13098 case $archive_cmds_FC in
13099 *'~'*)
13100 # FIXME: we may have to deal with multi-command sequences.
13102 '$CC '*)
13103 # Test whether the compiler implicitly links with -lc since on some
13104 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13105 # to ld, don't add -lc before -lgcc.
13106 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13107 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13108 $RM conftest*
13109 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13112 (eval $ac_compile) 2>&5
13113 ac_status=$?
13114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13115 (exit $ac_status); } 2>conftest.err; then
13116 soname=conftest
13117 lib=conftest
13118 libobjs=conftest.$ac_objext
13119 deplibs=
13120 wl=$lt_prog_compiler_wl_FC
13121 pic_flag=$lt_prog_compiler_pic_FC
13122 compiler_flags=-v
13123 linker_flags=-v
13124 verstring=
13125 output_objdir=.
13126 libname=conftest
13127 lt_save_allow_undefined_flag=$allow_undefined_flag_FC
13128 allow_undefined_flag_FC=
13129 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
13130 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13131 ac_status=$?
13132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13133 (exit $ac_status); }
13134 then
13135 archive_cmds_need_lc_FC=no
13136 else
13137 archive_cmds_need_lc_FC=yes
13139 allow_undefined_flag_FC=$lt_save_allow_undefined_flag
13140 else
13141 cat conftest.err 1>&5
13143 $RM conftest*
13144 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_FC" >&5
13145 echo "${ECHO_T}$archive_cmds_need_lc_FC" >&6
13147 esac
13150 esac
13215 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13216 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13218 library_names_spec=
13219 libname_spec='lib$name'
13220 soname_spec=
13221 shrext_cmds=".so"
13222 postinstall_cmds=
13223 postuninstall_cmds=
13224 finish_cmds=
13225 finish_eval=
13226 shlibpath_var=
13227 shlibpath_overrides_runpath=unknown
13228 version_type=none
13229 dynamic_linker="$host_os ld.so"
13230 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13231 need_lib_prefix=unknown
13232 hardcode_into_libs=no
13234 # when you set need_version to no, make sure it does not cause -set_version
13235 # flags to be left without arguments
13236 need_version=unknown
13238 case $host_os in
13239 aix3*)
13240 version_type=linux
13241 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13242 shlibpath_var=LIBPATH
13244 # AIX 3 has no versioning support, so we append a major version to the name.
13245 soname_spec='${libname}${release}${shared_ext}$major'
13248 aix[4-9]*)
13249 version_type=linux
13250 need_lib_prefix=no
13251 need_version=no
13252 hardcode_into_libs=yes
13253 if test "$host_cpu" = ia64; then
13254 # AIX 5 supports IA64
13255 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13256 shlibpath_var=LD_LIBRARY_PATH
13257 else
13258 # With GCC up to 2.95.x, collect2 would create an import file
13259 # for dependence libraries. The import file would start with
13260 # the line `#! .'. This would cause the generated library to
13261 # depend on `.', always an invalid library. This was fixed in
13262 # development snapshots of GCC prior to 3.0.
13263 case $host_os in
13264 aix4 | aix4.[01] | aix4.[01].*)
13265 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13266 echo ' yes '
13267 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13269 else
13270 can_build_shared=no
13273 esac
13274 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13275 # soname into executable. Probably we can add versioning support to
13276 # collect2, so additional links can be useful in future.
13277 if test "$aix_use_runtimelinking" = yes; then
13278 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13279 # instead of lib<name>.a to let people know that these are not
13280 # typical AIX shared libraries.
13281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13282 else
13283 # We preserve .a as extension for shared libraries through AIX4.2
13284 # and later when we are not doing run time linking.
13285 library_names_spec='${libname}${release}.a $libname.a'
13286 soname_spec='${libname}${release}${shared_ext}$major'
13288 shlibpath_var=LIBPATH
13292 amigaos*)
13293 case $host_cpu in
13294 powerpc)
13295 # Since July 2007 AmigaOS4 officially supports .so libraries.
13296 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13299 m68k)
13300 library_names_spec='$libname.ixlibrary $libname.a'
13301 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13302 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'
13304 esac
13307 beos*)
13308 library_names_spec='${libname}${shared_ext}'
13309 dynamic_linker="$host_os ld.so"
13310 shlibpath_var=LIBRARY_PATH
13313 bsdi[45]*)
13314 version_type=linux
13315 need_version=no
13316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13317 soname_spec='${libname}${release}${shared_ext}$major'
13318 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13319 shlibpath_var=LD_LIBRARY_PATH
13320 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13321 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13322 # the default ld.so.conf also contains /usr/contrib/lib and
13323 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13324 # libtool to hard-code these into programs
13327 cygwin* | mingw* | pw32* | cegcc*)
13328 version_type=windows
13329 shrext_cmds=".dll"
13330 need_version=no
13331 need_lib_prefix=no
13333 case $GCC,$host_os in
13334 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13335 library_names_spec='$libname.dll.a'
13336 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13337 postinstall_cmds='base_file=`basename \${file}`~
13338 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13339 dldir=$destdir/`dirname \$dlpath`~
13340 test -d \$dldir || mkdir -p \$dldir~
13341 $install_prog $dir/$dlname \$dldir/$dlname~
13342 chmod a+x \$dldir/$dlname~
13343 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13344 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13346 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13347 dlpath=$dir/\$dldll~
13348 $RM \$dlpath'
13349 shlibpath_overrides_runpath=yes
13351 case $host_os in
13352 cygwin*)
13353 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13354 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13355 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13357 mingw* | cegcc*)
13358 # MinGW DLLs use traditional 'lib' prefix
13359 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13360 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13361 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13362 # It is most probably a Windows format PATH printed by
13363 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13364 # path with ; separators, and with drive letters. We can handle the
13365 # drive letters (cygwin fileutils understands them), so leave them,
13366 # especially as we might pass files found there to a mingw objdump,
13367 # which wouldn't understand a cygwinified path. Ahh.
13368 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13369 else
13370 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13373 pw32*)
13374 # pw32 DLLs use 'pw' prefix rather than 'lib'
13375 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13377 esac
13381 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13383 esac
13384 dynamic_linker='Win32 ld.exe'
13385 # FIXME: first we should search . and the directory the executable is in
13386 shlibpath_var=PATH
13389 darwin* | rhapsody*)
13390 dynamic_linker="$host_os dyld"
13391 version_type=darwin
13392 need_lib_prefix=no
13393 need_version=no
13394 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13395 soname_spec='${libname}${release}${major}$shared_ext'
13396 shlibpath_overrides_runpath=yes
13397 shlibpath_var=DYLD_LIBRARY_PATH
13398 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13400 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13403 dgux*)
13404 version_type=linux
13405 need_lib_prefix=no
13406 need_version=no
13407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13408 soname_spec='${libname}${release}${shared_ext}$major'
13409 shlibpath_var=LD_LIBRARY_PATH
13412 freebsd1*)
13413 dynamic_linker=no
13416 freebsd* | dragonfly*)
13417 # DragonFly does not have aout. When/if they implement a new
13418 # versioning mechanism, adjust this.
13419 if test -x /usr/bin/objformat; then
13420 objformat=`/usr/bin/objformat`
13421 else
13422 case $host_os in
13423 freebsd[123]*) objformat=aout ;;
13424 *) objformat=elf ;;
13425 esac
13427 version_type=freebsd-$objformat
13428 case $version_type in
13429 freebsd-elf*)
13430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13431 need_version=no
13432 need_lib_prefix=no
13434 freebsd-*)
13435 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13436 need_version=yes
13438 esac
13439 shlibpath_var=LD_LIBRARY_PATH
13440 case $host_os in
13441 freebsd2*)
13442 shlibpath_overrides_runpath=yes
13444 freebsd3.[01]* | freebsdelf3.[01]*)
13445 shlibpath_overrides_runpath=yes
13446 hardcode_into_libs=yes
13448 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13449 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13450 shlibpath_overrides_runpath=no
13451 hardcode_into_libs=yes
13453 *) # from 4.6 on, and DragonFly
13454 shlibpath_overrides_runpath=yes
13455 hardcode_into_libs=yes
13457 esac
13460 gnu*)
13461 version_type=linux
13462 need_lib_prefix=no
13463 need_version=no
13464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13465 soname_spec='${libname}${release}${shared_ext}$major'
13466 shlibpath_var=LD_LIBRARY_PATH
13467 hardcode_into_libs=yes
13470 hpux9* | hpux10* | hpux11*)
13471 # Give a soname corresponding to the major version so that dld.sl refuses to
13472 # link against other versions.
13473 version_type=sunos
13474 need_lib_prefix=no
13475 need_version=no
13476 case $host_cpu in
13477 ia64*)
13478 shrext_cmds='.so'
13479 hardcode_into_libs=yes
13480 dynamic_linker="$host_os dld.so"
13481 shlibpath_var=LD_LIBRARY_PATH
13482 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13484 soname_spec='${libname}${release}${shared_ext}$major'
13485 if test "X$HPUX_IA64_MODE" = X32; then
13486 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13487 else
13488 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13490 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13492 hppa*64*)
13493 shrext_cmds='.sl'
13494 hardcode_into_libs=yes
13495 dynamic_linker="$host_os dld.sl"
13496 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13497 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13499 soname_spec='${libname}${release}${shared_ext}$major'
13500 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13501 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13504 shrext_cmds='.sl'
13505 dynamic_linker="$host_os dld.sl"
13506 shlibpath_var=SHLIB_PATH
13507 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13509 soname_spec='${libname}${release}${shared_ext}$major'
13511 esac
13512 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13513 postinstall_cmds='chmod 555 $lib'
13516 interix[3-9]*)
13517 version_type=linux
13518 need_lib_prefix=no
13519 need_version=no
13520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13521 soname_spec='${libname}${release}${shared_ext}$major'
13522 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13523 shlibpath_var=LD_LIBRARY_PATH
13524 shlibpath_overrides_runpath=no
13525 hardcode_into_libs=yes
13528 irix5* | irix6* | nonstopux*)
13529 case $host_os in
13530 nonstopux*) version_type=nonstopux ;;
13532 if test "$lt_cv_prog_gnu_ld" = yes; then
13533 version_type=linux
13534 else
13535 version_type=irix
13536 fi ;;
13537 esac
13538 need_lib_prefix=no
13539 need_version=no
13540 soname_spec='${libname}${release}${shared_ext}$major'
13541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13542 case $host_os in
13543 irix5* | nonstopux*)
13544 libsuff= shlibsuff=
13547 case $LD in # libtool.m4 will add one of these switches to LD
13548 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13549 libsuff= shlibsuff= libmagic=32-bit;;
13550 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13551 libsuff=32 shlibsuff=N32 libmagic=N32;;
13552 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13553 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13554 *) libsuff= shlibsuff= libmagic=never-match;;
13555 esac
13557 esac
13558 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13559 shlibpath_overrides_runpath=no
13560 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13561 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13562 hardcode_into_libs=yes
13565 # No shared lib support for Linux oldld, aout, or coff.
13566 linux*oldld* | linux*aout* | linux*coff*)
13567 dynamic_linker=no
13570 # This must be Linux ELF.
13571 linux* | k*bsd*-gnu)
13572 version_type=linux
13573 need_lib_prefix=no
13574 need_version=no
13575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13576 soname_spec='${libname}${release}${shared_ext}$major'
13577 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13578 shlibpath_var=LD_LIBRARY_PATH
13579 shlibpath_overrides_runpath=no
13580 # Some binutils ld are patched to set DT_RUNPATH
13581 save_LDFLAGS=$LDFLAGS
13582 save_libdir=$libdir
13583 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
13584 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
13585 cat >conftest.$ac_ext <<_ACEOF
13586 program main
13589 _ACEOF
13590 rm -f conftest.$ac_objext conftest$ac_exeext
13591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13592 (eval $ac_link) 2>conftest.er1
13593 ac_status=$?
13594 grep -v '^ *+' conftest.er1 >conftest.err
13595 rm -f conftest.er1
13596 cat conftest.err >&5
13597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13598 (exit $ac_status); } &&
13599 { ac_try='test -z "$ac_fc_werror_flag"
13600 || test ! -s conftest.err'
13601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13602 (eval $ac_try) 2>&5
13603 ac_status=$?
13604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13605 (exit $ac_status); }; } &&
13606 { ac_try='test -s conftest$ac_exeext'
13607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13608 (eval $ac_try) 2>&5
13609 ac_status=$?
13610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13611 (exit $ac_status); }; }; then
13612 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
13613 shlibpath_overrides_runpath=yes
13616 else
13617 echo "$as_me: failed program was:" >&5
13618 sed 's/^/| /' conftest.$ac_ext >&5
13621 rm -f conftest.err conftest.$ac_objext \
13622 conftest$ac_exeext conftest.$ac_ext
13623 LDFLAGS=$save_LDFLAGS
13624 libdir=$save_libdir
13626 # This implies no fast_install, which is unacceptable.
13627 # Some rework will be needed to allow for fast_install
13628 # before this can be enabled.
13629 hardcode_into_libs=yes
13631 # Append ld.so.conf contents to the search path
13632 if test -f /etc/ld.so.conf; then
13633 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/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13634 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13637 # We used to test for /lib/ld.so.1 and disable shared libraries on
13638 # powerpc, because MkLinux only supported shared libraries with the
13639 # GNU dynamic linker. Since this was broken with cross compilers,
13640 # most powerpc-linux boxes support dynamic linking these days and
13641 # people can always --disable-shared, the test was removed, and we
13642 # assume the GNU/Linux dynamic linker is in use.
13643 dynamic_linker='GNU/Linux ld.so'
13646 netbsd*)
13647 version_type=sunos
13648 need_lib_prefix=no
13649 need_version=no
13650 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13652 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13653 dynamic_linker='NetBSD (a.out) ld.so'
13654 else
13655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13656 soname_spec='${libname}${release}${shared_ext}$major'
13657 dynamic_linker='NetBSD ld.elf_so'
13659 shlibpath_var=LD_LIBRARY_PATH
13660 shlibpath_overrides_runpath=yes
13661 hardcode_into_libs=yes
13664 newsos6)
13665 version_type=linux
13666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13667 shlibpath_var=LD_LIBRARY_PATH
13668 shlibpath_overrides_runpath=yes
13671 *nto* | *qnx*)
13672 version_type=qnx
13673 need_lib_prefix=no
13674 need_version=no
13675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13676 soname_spec='${libname}${release}${shared_ext}$major'
13677 shlibpath_var=LD_LIBRARY_PATH
13678 shlibpath_overrides_runpath=no
13679 hardcode_into_libs=yes
13680 dynamic_linker='ldqnx.so'
13683 openbsd*)
13684 version_type=sunos
13685 sys_lib_dlsearch_path_spec="/usr/lib"
13686 need_lib_prefix=no
13687 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13688 case $host_os in
13689 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13690 *) need_version=no ;;
13691 esac
13692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13693 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13694 shlibpath_var=LD_LIBRARY_PATH
13695 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13696 case $host_os in
13697 openbsd2.[89] | openbsd2.[89].*)
13698 shlibpath_overrides_runpath=no
13701 shlibpath_overrides_runpath=yes
13703 esac
13704 else
13705 shlibpath_overrides_runpath=yes
13709 os2*)
13710 libname_spec='$name'
13711 shrext_cmds=".dll"
13712 need_lib_prefix=no
13713 library_names_spec='$libname${shared_ext} $libname.a'
13714 dynamic_linker='OS/2 ld.exe'
13715 shlibpath_var=LIBPATH
13718 osf3* | osf4* | osf5*)
13719 version_type=osf
13720 need_lib_prefix=no
13721 need_version=no
13722 soname_spec='${libname}${release}${shared_ext}$major'
13723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13724 shlibpath_var=LD_LIBRARY_PATH
13725 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13726 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13729 rdos*)
13730 dynamic_linker=no
13733 solaris*)
13734 version_type=linux
13735 need_lib_prefix=no
13736 need_version=no
13737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13738 soname_spec='${libname}${release}${shared_ext}$major'
13739 shlibpath_var=LD_LIBRARY_PATH
13740 shlibpath_overrides_runpath=yes
13741 hardcode_into_libs=yes
13742 # ldd complains unless libraries are executable
13743 postinstall_cmds='chmod +x $lib'
13746 sunos4*)
13747 version_type=sunos
13748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13749 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13750 shlibpath_var=LD_LIBRARY_PATH
13751 shlibpath_overrides_runpath=yes
13752 if test "$with_gnu_ld" = yes; then
13753 need_lib_prefix=no
13755 need_version=yes
13758 sysv4 | sysv4.3*)
13759 version_type=linux
13760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13761 soname_spec='${libname}${release}${shared_ext}$major'
13762 shlibpath_var=LD_LIBRARY_PATH
13763 case $host_vendor in
13764 sni)
13765 shlibpath_overrides_runpath=no
13766 need_lib_prefix=no
13767 runpath_var=LD_RUN_PATH
13769 siemens)
13770 need_lib_prefix=no
13772 motorola)
13773 need_lib_prefix=no
13774 need_version=no
13775 shlibpath_overrides_runpath=no
13776 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13778 esac
13781 sysv4*MP*)
13782 if test -d /usr/nec ;then
13783 version_type=linux
13784 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13785 soname_spec='$libname${shared_ext}.$major'
13786 shlibpath_var=LD_LIBRARY_PATH
13790 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13791 version_type=freebsd-elf
13792 need_lib_prefix=no
13793 need_version=no
13794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13795 soname_spec='${libname}${release}${shared_ext}$major'
13796 shlibpath_var=LD_LIBRARY_PATH
13797 shlibpath_overrides_runpath=yes
13798 hardcode_into_libs=yes
13799 if test "$with_gnu_ld" = yes; then
13800 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13801 else
13802 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13803 case $host_os in
13804 sco3.2v5*)
13805 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13807 esac
13809 sys_lib_dlsearch_path_spec='/usr/lib'
13812 tpf*)
13813 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13814 version_type=linux
13815 need_lib_prefix=no
13816 need_version=no
13817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13818 shlibpath_var=LD_LIBRARY_PATH
13819 shlibpath_overrides_runpath=no
13820 hardcode_into_libs=yes
13823 uts4*)
13824 version_type=linux
13825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13826 soname_spec='${libname}${release}${shared_ext}$major'
13827 shlibpath_var=LD_LIBRARY_PATH
13831 dynamic_linker=no
13833 esac
13834 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13835 echo "${ECHO_T}$dynamic_linker" >&6
13836 test "$dynamic_linker" = no && can_build_shared=no
13838 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13839 if test "$GCC" = yes; then
13840 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13843 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13844 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13846 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13847 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13885 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13886 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13887 hardcode_action_FC=
13888 if test -n "$hardcode_libdir_flag_spec_FC" ||
13889 test -n "$runpath_var_FC" ||
13890 test "X$hardcode_automatic_FC" = "Xyes" ; then
13892 # We can hardcode non-existent directories.
13893 if test "$hardcode_direct_FC" != no &&
13894 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13895 # have to relink, otherwise we might link with an installed library
13896 # when we should be linking with a yet-to-be-installed one
13897 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
13898 test "$hardcode_minus_L_FC" != no; then
13899 # Linking always hardcodes the temporary library directory.
13900 hardcode_action_FC=relink
13901 else
13902 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13903 hardcode_action_FC=immediate
13905 else
13906 # We cannot hardcode anything, or else we can only hardcode existing
13907 # directories.
13908 hardcode_action_FC=unsupported
13910 echo "$as_me:$LINENO: result: $hardcode_action_FC" >&5
13911 echo "${ECHO_T}$hardcode_action_FC" >&6
13913 if test "$hardcode_action_FC" = relink ||
13914 test "$inherit_rpath_FC" = yes; then
13915 # Fast installation is not supported
13916 enable_fast_install=no
13917 elif test "$shlibpath_overrides_runpath" = yes ||
13918 test "$enable_shared" = no; then
13919 # Fast installation is not necessary
13920 enable_fast_install=needless
13929 fi # test -n "$compiler"
13931 GCC=$lt_save_GCC
13932 CC="$lt_save_CC"
13933 fi # test "$_lt_disable_FC" != yes
13935 ac_ext=c
13936 ac_cpp='$CPP $CPPFLAGS'
13937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13942 FCFLAGS="$FCFLAGS -Wall"
13944 # For libtool versioning info, format is CURRENT:REVISION:AGE
13945 libtool_VERSION=1:0:0
13948 # Check header files.
13949 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13950 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13951 if test "${ac_cv_header_stdc+set}" = set; then
13952 echo $ECHO_N "(cached) $ECHO_C" >&6
13953 else
13954 cat >conftest.$ac_ext <<_ACEOF
13955 /* confdefs.h. */
13956 _ACEOF
13957 cat confdefs.h >>conftest.$ac_ext
13958 cat >>conftest.$ac_ext <<_ACEOF
13959 /* end confdefs.h. */
13960 #include <stdlib.h>
13961 #include <stdarg.h>
13962 #include <string.h>
13963 #include <float.h>
13966 main ()
13970 return 0;
13972 _ACEOF
13973 rm -f conftest.$ac_objext
13974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13975 (eval $ac_compile) 2>conftest.er1
13976 ac_status=$?
13977 grep -v '^ *+' conftest.er1 >conftest.err
13978 rm -f conftest.er1
13979 cat conftest.err >&5
13980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13981 (exit $ac_status); } &&
13982 { ac_try='test -z "$ac_c_werror_flag"
13983 || test ! -s conftest.err'
13984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13985 (eval $ac_try) 2>&5
13986 ac_status=$?
13987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13988 (exit $ac_status); }; } &&
13989 { ac_try='test -s conftest.$ac_objext'
13990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13991 (eval $ac_try) 2>&5
13992 ac_status=$?
13993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13994 (exit $ac_status); }; }; then
13995 ac_cv_header_stdc=yes
13996 else
13997 echo "$as_me: failed program was:" >&5
13998 sed 's/^/| /' conftest.$ac_ext >&5
14000 ac_cv_header_stdc=no
14002 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14004 if test $ac_cv_header_stdc = yes; then
14005 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14006 cat >conftest.$ac_ext <<_ACEOF
14007 /* confdefs.h. */
14008 _ACEOF
14009 cat confdefs.h >>conftest.$ac_ext
14010 cat >>conftest.$ac_ext <<_ACEOF
14011 /* end confdefs.h. */
14012 #include <string.h>
14014 _ACEOF
14015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14016 $EGREP "memchr" >/dev/null 2>&1; then
14018 else
14019 ac_cv_header_stdc=no
14021 rm -f conftest*
14025 if test $ac_cv_header_stdc = yes; then
14026 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14027 cat >conftest.$ac_ext <<_ACEOF
14028 /* confdefs.h. */
14029 _ACEOF
14030 cat confdefs.h >>conftest.$ac_ext
14031 cat >>conftest.$ac_ext <<_ACEOF
14032 /* end confdefs.h. */
14033 #include <stdlib.h>
14035 _ACEOF
14036 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14037 $EGREP "free" >/dev/null 2>&1; then
14039 else
14040 ac_cv_header_stdc=no
14042 rm -f conftest*
14046 if test $ac_cv_header_stdc = yes; then
14047 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14048 if test "$cross_compiling" = yes; then
14050 else
14051 cat >conftest.$ac_ext <<_ACEOF
14052 /* confdefs.h. */
14053 _ACEOF
14054 cat confdefs.h >>conftest.$ac_ext
14055 cat >>conftest.$ac_ext <<_ACEOF
14056 /* end confdefs.h. */
14057 #include <ctype.h>
14058 #if ((' ' & 0x0FF) == 0x020)
14059 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14060 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14061 #else
14062 # define ISLOWER(c) \
14063 (('a' <= (c) && (c) <= 'i') \
14064 || ('j' <= (c) && (c) <= 'r') \
14065 || ('s' <= (c) && (c) <= 'z'))
14066 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14067 #endif
14069 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14071 main ()
14073 int i;
14074 for (i = 0; i < 256; i++)
14075 if (XOR (islower (i), ISLOWER (i))
14076 || toupper (i) != TOUPPER (i))
14077 exit(2);
14078 exit (0);
14080 _ACEOF
14081 rm -f conftest$ac_exeext
14082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14083 (eval $ac_link) 2>&5
14084 ac_status=$?
14085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14086 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14088 (eval $ac_try) 2>&5
14089 ac_status=$?
14090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14091 (exit $ac_status); }; }; then
14093 else
14094 echo "$as_me: program exited with status $ac_status" >&5
14095 echo "$as_me: failed program was:" >&5
14096 sed 's/^/| /' conftest.$ac_ext >&5
14098 ( exit $ac_status )
14099 ac_cv_header_stdc=no
14101 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14105 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
14106 echo "${ECHO_T}$ac_cv_header_stdc" >&6
14107 if test $ac_cv_header_stdc = yes; then
14109 cat >>confdefs.h <<\_ACEOF
14110 #define STDC_HEADERS 1
14111 _ACEOF
14115 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14116 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
14117 if test "${ac_cv_header_time+set}" = set; then
14118 echo $ECHO_N "(cached) $ECHO_C" >&6
14119 else
14120 cat >conftest.$ac_ext <<_ACEOF
14121 /* confdefs.h. */
14122 _ACEOF
14123 cat confdefs.h >>conftest.$ac_ext
14124 cat >>conftest.$ac_ext <<_ACEOF
14125 /* end confdefs.h. */
14126 #include <sys/types.h>
14127 #include <sys/time.h>
14128 #include <time.h>
14131 main ()
14133 if ((struct tm *) 0)
14134 return 0;
14136 return 0;
14138 _ACEOF
14139 rm -f conftest.$ac_objext
14140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14141 (eval $ac_compile) 2>conftest.er1
14142 ac_status=$?
14143 grep -v '^ *+' conftest.er1 >conftest.err
14144 rm -f conftest.er1
14145 cat conftest.err >&5
14146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14147 (exit $ac_status); } &&
14148 { ac_try='test -z "$ac_c_werror_flag"
14149 || test ! -s conftest.err'
14150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14151 (eval $ac_try) 2>&5
14152 ac_status=$?
14153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14154 (exit $ac_status); }; } &&
14155 { ac_try='test -s conftest.$ac_objext'
14156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14157 (eval $ac_try) 2>&5
14158 ac_status=$?
14159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14160 (exit $ac_status); }; }; then
14161 ac_cv_header_time=yes
14162 else
14163 echo "$as_me: failed program was:" >&5
14164 sed 's/^/| /' conftest.$ac_ext >&5
14166 ac_cv_header_time=no
14168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14170 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14171 echo "${ECHO_T}$ac_cv_header_time" >&6
14172 if test $ac_cv_header_time = yes; then
14174 cat >>confdefs.h <<\_ACEOF
14175 #define TIME_WITH_SYS_TIME 1
14176 _ACEOF
14180 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
14181 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
14182 if test "${gcc_cv_header_string+set}" = set; then
14183 echo $ECHO_N "(cached) $ECHO_C" >&6
14184 else
14185 cat >conftest.$ac_ext <<_ACEOF
14186 /* confdefs.h. */
14187 _ACEOF
14188 cat confdefs.h >>conftest.$ac_ext
14189 cat >>conftest.$ac_ext <<_ACEOF
14190 /* end confdefs.h. */
14191 #include <string.h>
14192 #include <strings.h>
14194 main ()
14198 return 0;
14200 _ACEOF
14201 rm -f conftest.$ac_objext
14202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14203 (eval $ac_compile) 2>conftest.er1
14204 ac_status=$?
14205 grep -v '^ *+' conftest.er1 >conftest.err
14206 rm -f conftest.er1
14207 cat conftest.err >&5
14208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14209 (exit $ac_status); } &&
14210 { ac_try='test -z "$ac_c_werror_flag"
14211 || test ! -s conftest.err'
14212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14213 (eval $ac_try) 2>&5
14214 ac_status=$?
14215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14216 (exit $ac_status); }; } &&
14217 { ac_try='test -s conftest.$ac_objext'
14218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14219 (eval $ac_try) 2>&5
14220 ac_status=$?
14221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14222 (exit $ac_status); }; }; then
14223 gcc_cv_header_string=yes
14224 else
14225 echo "$as_me: failed program was:" >&5
14226 sed 's/^/| /' conftest.$ac_ext >&5
14228 gcc_cv_header_string=no
14230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14232 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
14233 echo "${ECHO_T}$gcc_cv_header_string" >&6
14234 if test $gcc_cv_header_string = yes; then
14236 cat >>confdefs.h <<\_ACEOF
14237 #define STRING_WITH_STRINGS 1
14238 _ACEOF
14247 for ac_header in unistd.h semaphore.h sys/loadavg.h sys/time.h sys/time.h
14249 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14250 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14251 echo "$as_me:$LINENO: checking for $ac_header" >&5
14252 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14253 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14254 echo $ECHO_N "(cached) $ECHO_C" >&6
14256 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14257 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14258 else
14259 # Is the header compilable?
14260 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14261 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14262 cat >conftest.$ac_ext <<_ACEOF
14263 /* confdefs.h. */
14264 _ACEOF
14265 cat confdefs.h >>conftest.$ac_ext
14266 cat >>conftest.$ac_ext <<_ACEOF
14267 /* end confdefs.h. */
14268 $ac_includes_default
14269 #include <$ac_header>
14270 _ACEOF
14271 rm -f conftest.$ac_objext
14272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14273 (eval $ac_compile) 2>conftest.er1
14274 ac_status=$?
14275 grep -v '^ *+' conftest.er1 >conftest.err
14276 rm -f conftest.er1
14277 cat conftest.err >&5
14278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14279 (exit $ac_status); } &&
14280 { ac_try='test -z "$ac_c_werror_flag"
14281 || test ! -s conftest.err'
14282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14283 (eval $ac_try) 2>&5
14284 ac_status=$?
14285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14286 (exit $ac_status); }; } &&
14287 { ac_try='test -s conftest.$ac_objext'
14288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14289 (eval $ac_try) 2>&5
14290 ac_status=$?
14291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292 (exit $ac_status); }; }; then
14293 ac_header_compiler=yes
14294 else
14295 echo "$as_me: failed program was:" >&5
14296 sed 's/^/| /' conftest.$ac_ext >&5
14298 ac_header_compiler=no
14300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14301 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14302 echo "${ECHO_T}$ac_header_compiler" >&6
14304 # Is the header present?
14305 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14306 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14307 cat >conftest.$ac_ext <<_ACEOF
14308 /* confdefs.h. */
14309 _ACEOF
14310 cat confdefs.h >>conftest.$ac_ext
14311 cat >>conftest.$ac_ext <<_ACEOF
14312 /* end confdefs.h. */
14313 #include <$ac_header>
14314 _ACEOF
14315 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14316 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14317 ac_status=$?
14318 grep -v '^ *+' conftest.er1 >conftest.err
14319 rm -f conftest.er1
14320 cat conftest.err >&5
14321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14322 (exit $ac_status); } >/dev/null; then
14323 if test -s conftest.err; then
14324 ac_cpp_err=$ac_c_preproc_warn_flag
14325 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14326 else
14327 ac_cpp_err=
14329 else
14330 ac_cpp_err=yes
14332 if test -z "$ac_cpp_err"; then
14333 ac_header_preproc=yes
14334 else
14335 echo "$as_me: failed program was:" >&5
14336 sed 's/^/| /' conftest.$ac_ext >&5
14338 ac_header_preproc=no
14340 rm -f conftest.err conftest.$ac_ext
14341 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14342 echo "${ECHO_T}$ac_header_preproc" >&6
14344 # So? What about this header?
14345 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14346 yes:no: )
14347 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14348 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14349 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14350 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14351 ac_header_preproc=yes
14353 no:yes:* )
14354 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14355 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14356 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14357 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14358 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14359 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14360 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14361 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14362 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14363 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14364 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14365 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14367 cat <<\_ASBOX
14368 ## ----------------------------------------------------- ##
14369 ## Report this to the GNU OpenMP Runtime Library lists. ##
14370 ## ----------------------------------------------------- ##
14371 _ASBOX
14373 sed "s/^/$as_me: WARNING: /" >&2
14375 esac
14376 echo "$as_me:$LINENO: checking for $ac_header" >&5
14377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14378 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14379 echo $ECHO_N "(cached) $ECHO_C" >&6
14380 else
14381 eval "$as_ac_Header=\$ac_header_preproc"
14383 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14384 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14387 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14388 cat >>confdefs.h <<_ACEOF
14389 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14390 _ACEOF
14394 done
14399 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
14401 acx_cv_header_stdint=stddef.h
14402 acx_cv_header_stdint_kind="(already complete)"
14403 for i in stdint.h $inttype_headers; do
14404 unset ac_cv_type_uintptr_t
14405 unset ac_cv_type_uintmax_t
14406 unset ac_cv_type_int_least32_t
14407 unset ac_cv_type_int_fast32_t
14408 unset ac_cv_type_uint64_t
14409 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
14410 echo "$as_me:$LINENO: checking for uintmax_t" >&5
14411 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
14412 if test "${ac_cv_type_uintmax_t+set}" = set; then
14413 echo $ECHO_N "(cached) $ECHO_C" >&6
14414 else
14415 cat >conftest.$ac_ext <<_ACEOF
14416 /* confdefs.h. */
14417 _ACEOF
14418 cat confdefs.h >>conftest.$ac_ext
14419 cat >>conftest.$ac_ext <<_ACEOF
14420 /* end confdefs.h. */
14421 #include <sys/types.h>
14422 #include <$i>
14425 main ()
14427 if ((uintmax_t *) 0)
14428 return 0;
14429 if (sizeof (uintmax_t))
14430 return 0;
14432 return 0;
14434 _ACEOF
14435 rm -f conftest.$ac_objext
14436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14437 (eval $ac_compile) 2>conftest.er1
14438 ac_status=$?
14439 grep -v '^ *+' conftest.er1 >conftest.err
14440 rm -f conftest.er1
14441 cat conftest.err >&5
14442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14443 (exit $ac_status); } &&
14444 { ac_try='test -z "$ac_c_werror_flag"
14445 || test ! -s conftest.err'
14446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14447 (eval $ac_try) 2>&5
14448 ac_status=$?
14449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14450 (exit $ac_status); }; } &&
14451 { ac_try='test -s conftest.$ac_objext'
14452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14453 (eval $ac_try) 2>&5
14454 ac_status=$?
14455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14456 (exit $ac_status); }; }; then
14457 ac_cv_type_uintmax_t=yes
14458 else
14459 echo "$as_me: failed program was:" >&5
14460 sed 's/^/| /' conftest.$ac_ext >&5
14462 ac_cv_type_uintmax_t=no
14464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14466 echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
14467 echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
14468 if test $ac_cv_type_uintmax_t = yes; then
14469 acx_cv_header_stdint=$i
14470 else
14471 continue
14474 echo "$as_me:$LINENO: checking for uintptr_t" >&5
14475 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
14476 if test "${ac_cv_type_uintptr_t+set}" = set; then
14477 echo $ECHO_N "(cached) $ECHO_C" >&6
14478 else
14479 cat >conftest.$ac_ext <<_ACEOF
14480 /* confdefs.h. */
14481 _ACEOF
14482 cat confdefs.h >>conftest.$ac_ext
14483 cat >>conftest.$ac_ext <<_ACEOF
14484 /* end confdefs.h. */
14485 #include <sys/types.h>
14486 #include <$i>
14489 main ()
14491 if ((uintptr_t *) 0)
14492 return 0;
14493 if (sizeof (uintptr_t))
14494 return 0;
14496 return 0;
14498 _ACEOF
14499 rm -f conftest.$ac_objext
14500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14501 (eval $ac_compile) 2>conftest.er1
14502 ac_status=$?
14503 grep -v '^ *+' conftest.er1 >conftest.err
14504 rm -f conftest.er1
14505 cat conftest.err >&5
14506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14507 (exit $ac_status); } &&
14508 { ac_try='test -z "$ac_c_werror_flag"
14509 || test ! -s conftest.err'
14510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14511 (eval $ac_try) 2>&5
14512 ac_status=$?
14513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14514 (exit $ac_status); }; } &&
14515 { ac_try='test -s conftest.$ac_objext'
14516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14517 (eval $ac_try) 2>&5
14518 ac_status=$?
14519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14520 (exit $ac_status); }; }; then
14521 ac_cv_type_uintptr_t=yes
14522 else
14523 echo "$as_me: failed program was:" >&5
14524 sed 's/^/| /' conftest.$ac_ext >&5
14526 ac_cv_type_uintptr_t=no
14528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14530 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
14531 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
14532 if test $ac_cv_type_uintptr_t = yes; then
14534 else
14535 acx_cv_header_stdint_kind="(mostly complete)"
14538 echo "$as_me:$LINENO: checking for int_least32_t" >&5
14539 echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
14540 if test "${ac_cv_type_int_least32_t+set}" = set; then
14541 echo $ECHO_N "(cached) $ECHO_C" >&6
14542 else
14543 cat >conftest.$ac_ext <<_ACEOF
14544 /* confdefs.h. */
14545 _ACEOF
14546 cat confdefs.h >>conftest.$ac_ext
14547 cat >>conftest.$ac_ext <<_ACEOF
14548 /* end confdefs.h. */
14549 #include <sys/types.h>
14550 #include <$i>
14553 main ()
14555 if ((int_least32_t *) 0)
14556 return 0;
14557 if (sizeof (int_least32_t))
14558 return 0;
14560 return 0;
14562 _ACEOF
14563 rm -f conftest.$ac_objext
14564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14565 (eval $ac_compile) 2>conftest.er1
14566 ac_status=$?
14567 grep -v '^ *+' conftest.er1 >conftest.err
14568 rm -f conftest.er1
14569 cat conftest.err >&5
14570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14571 (exit $ac_status); } &&
14572 { ac_try='test -z "$ac_c_werror_flag"
14573 || test ! -s conftest.err'
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); }; } &&
14579 { ac_try='test -s conftest.$ac_objext'
14580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14581 (eval $ac_try) 2>&5
14582 ac_status=$?
14583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14584 (exit $ac_status); }; }; then
14585 ac_cv_type_int_least32_t=yes
14586 else
14587 echo "$as_me: failed program was:" >&5
14588 sed 's/^/| /' conftest.$ac_ext >&5
14590 ac_cv_type_int_least32_t=no
14592 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14594 echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
14595 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
14596 if test $ac_cv_type_int_least32_t = yes; then
14598 else
14599 acx_cv_header_stdint_kind="(mostly complete)"
14602 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
14603 echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
14604 if test "${ac_cv_type_int_fast32_t+set}" = set; then
14605 echo $ECHO_N "(cached) $ECHO_C" >&6
14606 else
14607 cat >conftest.$ac_ext <<_ACEOF
14608 /* confdefs.h. */
14609 _ACEOF
14610 cat confdefs.h >>conftest.$ac_ext
14611 cat >>conftest.$ac_ext <<_ACEOF
14612 /* end confdefs.h. */
14613 #include <sys/types.h>
14614 #include <$i>
14617 main ()
14619 if ((int_fast32_t *) 0)
14620 return 0;
14621 if (sizeof (int_fast32_t))
14622 return 0;
14624 return 0;
14626 _ACEOF
14627 rm -f conftest.$ac_objext
14628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14629 (eval $ac_compile) 2>conftest.er1
14630 ac_status=$?
14631 grep -v '^ *+' conftest.er1 >conftest.err
14632 rm -f conftest.er1
14633 cat conftest.err >&5
14634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14635 (exit $ac_status); } &&
14636 { ac_try='test -z "$ac_c_werror_flag"
14637 || test ! -s conftest.err'
14638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14639 (eval $ac_try) 2>&5
14640 ac_status=$?
14641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14642 (exit $ac_status); }; } &&
14643 { ac_try='test -s conftest.$ac_objext'
14644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14645 (eval $ac_try) 2>&5
14646 ac_status=$?
14647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14648 (exit $ac_status); }; }; then
14649 ac_cv_type_int_fast32_t=yes
14650 else
14651 echo "$as_me: failed program was:" >&5
14652 sed 's/^/| /' conftest.$ac_ext >&5
14654 ac_cv_type_int_fast32_t=no
14656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14658 echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
14659 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
14660 if test $ac_cv_type_int_fast32_t = yes; then
14662 else
14663 acx_cv_header_stdint_kind="(mostly complete)"
14666 echo "$as_me:$LINENO: checking for uint64_t" >&5
14667 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
14668 if test "${ac_cv_type_uint64_t+set}" = set; then
14669 echo $ECHO_N "(cached) $ECHO_C" >&6
14670 else
14671 cat >conftest.$ac_ext <<_ACEOF
14672 /* confdefs.h. */
14673 _ACEOF
14674 cat confdefs.h >>conftest.$ac_ext
14675 cat >>conftest.$ac_ext <<_ACEOF
14676 /* end confdefs.h. */
14677 #include <sys/types.h>
14678 #include <$i>
14681 main ()
14683 if ((uint64_t *) 0)
14684 return 0;
14685 if (sizeof (uint64_t))
14686 return 0;
14688 return 0;
14690 _ACEOF
14691 rm -f conftest.$ac_objext
14692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14693 (eval $ac_compile) 2>conftest.er1
14694 ac_status=$?
14695 grep -v '^ *+' conftest.er1 >conftest.err
14696 rm -f conftest.er1
14697 cat conftest.err >&5
14698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14699 (exit $ac_status); } &&
14700 { ac_try='test -z "$ac_c_werror_flag"
14701 || test ! -s conftest.err'
14702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14703 (eval $ac_try) 2>&5
14704 ac_status=$?
14705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14706 (exit $ac_status); }; } &&
14707 { ac_try='test -s conftest.$ac_objext'
14708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14709 (eval $ac_try) 2>&5
14710 ac_status=$?
14711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14712 (exit $ac_status); }; }; then
14713 ac_cv_type_uint64_t=yes
14714 else
14715 echo "$as_me: failed program was:" >&5
14716 sed 's/^/| /' conftest.$ac_ext >&5
14718 ac_cv_type_uint64_t=no
14720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14722 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
14723 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
14724 if test $ac_cv_type_uint64_t = yes; then
14726 else
14727 acx_cv_header_stdint_kind="(lacks uint64_t)"
14730 break
14731 done
14732 if test "$acx_cv_header_stdint" = stddef.h; then
14733 acx_cv_header_stdint_kind="(lacks uintmax_t)"
14734 for i in stdint.h $inttype_headers; do
14735 unset ac_cv_type_uintptr_t
14736 unset ac_cv_type_uint32_t
14737 unset ac_cv_type_uint64_t
14738 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
14739 echo "$as_me:$LINENO: checking for uint32_t" >&5
14740 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
14741 if test "${ac_cv_type_uint32_t+set}" = set; then
14742 echo $ECHO_N "(cached) $ECHO_C" >&6
14743 else
14744 cat >conftest.$ac_ext <<_ACEOF
14745 /* confdefs.h. */
14746 _ACEOF
14747 cat confdefs.h >>conftest.$ac_ext
14748 cat >>conftest.$ac_ext <<_ACEOF
14749 /* end confdefs.h. */
14750 #include <sys/types.h>
14751 #include <$i>
14754 main ()
14756 if ((uint32_t *) 0)
14757 return 0;
14758 if (sizeof (uint32_t))
14759 return 0;
14761 return 0;
14763 _ACEOF
14764 rm -f conftest.$ac_objext
14765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14766 (eval $ac_compile) 2>conftest.er1
14767 ac_status=$?
14768 grep -v '^ *+' conftest.er1 >conftest.err
14769 rm -f conftest.er1
14770 cat conftest.err >&5
14771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14772 (exit $ac_status); } &&
14773 { ac_try='test -z "$ac_c_werror_flag"
14774 || test ! -s conftest.err'
14775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14776 (eval $ac_try) 2>&5
14777 ac_status=$?
14778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14779 (exit $ac_status); }; } &&
14780 { ac_try='test -s conftest.$ac_objext'
14781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14782 (eval $ac_try) 2>&5
14783 ac_status=$?
14784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14785 (exit $ac_status); }; }; then
14786 ac_cv_type_uint32_t=yes
14787 else
14788 echo "$as_me: failed program was:" >&5
14789 sed 's/^/| /' conftest.$ac_ext >&5
14791 ac_cv_type_uint32_t=no
14793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14795 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
14796 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
14797 if test $ac_cv_type_uint32_t = yes; then
14798 acx_cv_header_stdint=$i
14799 else
14800 continue
14803 echo "$as_me:$LINENO: checking for uint64_t" >&5
14804 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
14805 if test "${ac_cv_type_uint64_t+set}" = set; then
14806 echo $ECHO_N "(cached) $ECHO_C" >&6
14807 else
14808 cat >conftest.$ac_ext <<_ACEOF
14809 /* confdefs.h. */
14810 _ACEOF
14811 cat confdefs.h >>conftest.$ac_ext
14812 cat >>conftest.$ac_ext <<_ACEOF
14813 /* end confdefs.h. */
14814 #include <sys/types.h>
14815 #include <$i>
14818 main ()
14820 if ((uint64_t *) 0)
14821 return 0;
14822 if (sizeof (uint64_t))
14823 return 0;
14825 return 0;
14827 _ACEOF
14828 rm -f conftest.$ac_objext
14829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14830 (eval $ac_compile) 2>conftest.er1
14831 ac_status=$?
14832 grep -v '^ *+' conftest.er1 >conftest.err
14833 rm -f conftest.er1
14834 cat conftest.err >&5
14835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14836 (exit $ac_status); } &&
14837 { ac_try='test -z "$ac_c_werror_flag"
14838 || test ! -s conftest.err'
14839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14840 (eval $ac_try) 2>&5
14841 ac_status=$?
14842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14843 (exit $ac_status); }; } &&
14844 { ac_try='test -s conftest.$ac_objext'
14845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14846 (eval $ac_try) 2>&5
14847 ac_status=$?
14848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14849 (exit $ac_status); }; }; then
14850 ac_cv_type_uint64_t=yes
14851 else
14852 echo "$as_me: failed program was:" >&5
14853 sed 's/^/| /' conftest.$ac_ext >&5
14855 ac_cv_type_uint64_t=no
14857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14859 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
14860 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
14862 echo "$as_me:$LINENO: checking for uintptr_t" >&5
14863 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
14864 if test "${ac_cv_type_uintptr_t+set}" = set; then
14865 echo $ECHO_N "(cached) $ECHO_C" >&6
14866 else
14867 cat >conftest.$ac_ext <<_ACEOF
14868 /* confdefs.h. */
14869 _ACEOF
14870 cat confdefs.h >>conftest.$ac_ext
14871 cat >>conftest.$ac_ext <<_ACEOF
14872 /* end confdefs.h. */
14873 #include <sys/types.h>
14874 #include <$i>
14877 main ()
14879 if ((uintptr_t *) 0)
14880 return 0;
14881 if (sizeof (uintptr_t))
14882 return 0;
14884 return 0;
14886 _ACEOF
14887 rm -f conftest.$ac_objext
14888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14889 (eval $ac_compile) 2>conftest.er1
14890 ac_status=$?
14891 grep -v '^ *+' conftest.er1 >conftest.err
14892 rm -f conftest.er1
14893 cat conftest.err >&5
14894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14895 (exit $ac_status); } &&
14896 { ac_try='test -z "$ac_c_werror_flag"
14897 || test ! -s conftest.err'
14898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14899 (eval $ac_try) 2>&5
14900 ac_status=$?
14901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14902 (exit $ac_status); }; } &&
14903 { ac_try='test -s conftest.$ac_objext'
14904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14905 (eval $ac_try) 2>&5
14906 ac_status=$?
14907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14908 (exit $ac_status); }; }; then
14909 ac_cv_type_uintptr_t=yes
14910 else
14911 echo "$as_me: failed program was:" >&5
14912 sed 's/^/| /' conftest.$ac_ext >&5
14914 ac_cv_type_uintptr_t=no
14916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14918 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
14919 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
14921 break
14922 done
14924 if test "$acx_cv_header_stdint" = stddef.h; then
14925 acx_cv_header_stdint_kind="(u_intXX_t style)"
14926 for i in sys/types.h $inttype_headers; do
14927 unset ac_cv_type_u_int32_t
14928 unset ac_cv_type_u_int64_t
14929 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
14930 echo "$as_me:$LINENO: checking for u_int32_t" >&5
14931 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
14932 if test "${ac_cv_type_u_int32_t+set}" = set; then
14933 echo $ECHO_N "(cached) $ECHO_C" >&6
14934 else
14935 cat >conftest.$ac_ext <<_ACEOF
14936 /* confdefs.h. */
14937 _ACEOF
14938 cat confdefs.h >>conftest.$ac_ext
14939 cat >>conftest.$ac_ext <<_ACEOF
14940 /* end confdefs.h. */
14941 #include <sys/types.h>
14942 #include <$i>
14945 main ()
14947 if ((u_int32_t *) 0)
14948 return 0;
14949 if (sizeof (u_int32_t))
14950 return 0;
14952 return 0;
14954 _ACEOF
14955 rm -f conftest.$ac_objext
14956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14957 (eval $ac_compile) 2>conftest.er1
14958 ac_status=$?
14959 grep -v '^ *+' conftest.er1 >conftest.err
14960 rm -f conftest.er1
14961 cat conftest.err >&5
14962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14963 (exit $ac_status); } &&
14964 { ac_try='test -z "$ac_c_werror_flag"
14965 || test ! -s conftest.err'
14966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14967 (eval $ac_try) 2>&5
14968 ac_status=$?
14969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970 (exit $ac_status); }; } &&
14971 { ac_try='test -s conftest.$ac_objext'
14972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14973 (eval $ac_try) 2>&5
14974 ac_status=$?
14975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14976 (exit $ac_status); }; }; then
14977 ac_cv_type_u_int32_t=yes
14978 else
14979 echo "$as_me: failed program was:" >&5
14980 sed 's/^/| /' conftest.$ac_ext >&5
14982 ac_cv_type_u_int32_t=no
14984 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14986 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
14987 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
14988 if test $ac_cv_type_u_int32_t = yes; then
14989 acx_cv_header_stdint=$i
14990 else
14991 continue
14994 echo "$as_me:$LINENO: checking for u_int64_t" >&5
14995 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
14996 if test "${ac_cv_type_u_int64_t+set}" = set; then
14997 echo $ECHO_N "(cached) $ECHO_C" >&6
14998 else
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 #include <sys/types.h>
15006 #include <$i>
15009 main ()
15011 if ((u_int64_t *) 0)
15012 return 0;
15013 if (sizeof (u_int64_t))
15014 return 0;
15016 return 0;
15018 _ACEOF
15019 rm -f conftest.$ac_objext
15020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15021 (eval $ac_compile) 2>conftest.er1
15022 ac_status=$?
15023 grep -v '^ *+' conftest.er1 >conftest.err
15024 rm -f conftest.er1
15025 cat conftest.err >&5
15026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15027 (exit $ac_status); } &&
15028 { ac_try='test -z "$ac_c_werror_flag"
15029 || test ! -s conftest.err'
15030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15031 (eval $ac_try) 2>&5
15032 ac_status=$?
15033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15034 (exit $ac_status); }; } &&
15035 { ac_try='test -s conftest.$ac_objext'
15036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15037 (eval $ac_try) 2>&5
15038 ac_status=$?
15039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15040 (exit $ac_status); }; }; then
15041 ac_cv_type_u_int64_t=yes
15042 else
15043 echo "$as_me: failed program was:" >&5
15044 sed 's/^/| /' conftest.$ac_ext >&5
15046 ac_cv_type_u_int64_t=no
15048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15050 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
15051 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
15053 break
15054 done
15056 if test "$acx_cv_header_stdint" = stddef.h; then
15057 acx_cv_header_stdint_kind="(using manual detection)"
15060 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
15061 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
15062 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
15063 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
15064 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
15066 # ----------------- Summarize what we found so far
15068 echo "$as_me:$LINENO: checking what to include in gstdint.h" >&5
15069 echo $ECHO_N "checking what to include in gstdint.h... $ECHO_C" >&6
15071 case `$as_basename gstdint.h ||
15072 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
15073 Xgstdint.h : 'X\(//\)$' \| \
15074 Xgstdint.h : 'X\(/\)$' \| \
15075 . : '\(.\)' 2>/dev/null ||
15076 echo X/gstdint.h |
15077 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15078 /^X\/\(\/\/\)$/{ s//\1/; q; }
15079 /^X\/\(\/\).*/{ s//\1/; q; }
15080 s/.*/./; q'` in
15081 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
15082 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
15083 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
15084 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
15085 *) ;;
15086 esac
15088 echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
15089 echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
15091 # ----------------- done included file, check C basic types --------
15093 # Lacking an uintptr_t? Test size of void *
15094 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
15095 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
15096 echo $ECHO_N "checking for void *... $ECHO_C" >&6
15097 if test "${ac_cv_type_void_p+set}" = set; then
15098 echo $ECHO_N "(cached) $ECHO_C" >&6
15099 else
15100 cat >conftest.$ac_ext <<_ACEOF
15101 /* confdefs.h. */
15102 _ACEOF
15103 cat confdefs.h >>conftest.$ac_ext
15104 cat >>conftest.$ac_ext <<_ACEOF
15105 /* end confdefs.h. */
15106 $ac_includes_default
15108 main ()
15110 if ((void * *) 0)
15111 return 0;
15112 if (sizeof (void *))
15113 return 0;
15115 return 0;
15117 _ACEOF
15118 rm -f conftest.$ac_objext
15119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15120 (eval $ac_compile) 2>conftest.er1
15121 ac_status=$?
15122 grep -v '^ *+' conftest.er1 >conftest.err
15123 rm -f conftest.er1
15124 cat conftest.err >&5
15125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15126 (exit $ac_status); } &&
15127 { ac_try='test -z "$ac_c_werror_flag"
15128 || test ! -s conftest.err'
15129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15130 (eval $ac_try) 2>&5
15131 ac_status=$?
15132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15133 (exit $ac_status); }; } &&
15134 { ac_try='test -s conftest.$ac_objext'
15135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15136 (eval $ac_try) 2>&5
15137 ac_status=$?
15138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15139 (exit $ac_status); }; }; then
15140 ac_cv_type_void_p=yes
15141 else
15142 echo "$as_me: failed program was:" >&5
15143 sed 's/^/| /' conftest.$ac_ext >&5
15145 ac_cv_type_void_p=no
15147 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15149 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
15150 echo "${ECHO_T}$ac_cv_type_void_p" >&6
15152 echo "$as_me:$LINENO: checking size of void *" >&5
15153 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
15154 if test "${ac_cv_sizeof_void_p+set}" = set; then
15155 echo $ECHO_N "(cached) $ECHO_C" >&6
15156 else
15157 if test "$ac_cv_type_void_p" = yes; then
15158 # The cast to unsigned long works around a bug in the HP C Compiler
15159 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15160 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15161 # This bug is HP SR number 8606223364.
15162 if test "$cross_compiling" = yes; then
15163 # Depending upon the size, compute the lo and hi bounds.
15164 cat >conftest.$ac_ext <<_ACEOF
15165 /* confdefs.h. */
15166 _ACEOF
15167 cat confdefs.h >>conftest.$ac_ext
15168 cat >>conftest.$ac_ext <<_ACEOF
15169 /* end confdefs.h. */
15170 $ac_includes_default
15172 main ()
15174 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
15175 test_array [0] = 0
15178 return 0;
15180 _ACEOF
15181 rm -f conftest.$ac_objext
15182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15183 (eval $ac_compile) 2>conftest.er1
15184 ac_status=$?
15185 grep -v '^ *+' conftest.er1 >conftest.err
15186 rm -f conftest.er1
15187 cat conftest.err >&5
15188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15189 (exit $ac_status); } &&
15190 { ac_try='test -z "$ac_c_werror_flag"
15191 || test ! -s conftest.err'
15192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15193 (eval $ac_try) 2>&5
15194 ac_status=$?
15195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15196 (exit $ac_status); }; } &&
15197 { ac_try='test -s conftest.$ac_objext'
15198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15199 (eval $ac_try) 2>&5
15200 ac_status=$?
15201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15202 (exit $ac_status); }; }; then
15203 ac_lo=0 ac_mid=0
15204 while :; do
15205 cat >conftest.$ac_ext <<_ACEOF
15206 /* confdefs.h. */
15207 _ACEOF
15208 cat confdefs.h >>conftest.$ac_ext
15209 cat >>conftest.$ac_ext <<_ACEOF
15210 /* end confdefs.h. */
15211 $ac_includes_default
15213 main ()
15215 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15216 test_array [0] = 0
15219 return 0;
15221 _ACEOF
15222 rm -f conftest.$ac_objext
15223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15224 (eval $ac_compile) 2>conftest.er1
15225 ac_status=$?
15226 grep -v '^ *+' conftest.er1 >conftest.err
15227 rm -f conftest.er1
15228 cat conftest.err >&5
15229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15230 (exit $ac_status); } &&
15231 { ac_try='test -z "$ac_c_werror_flag"
15232 || test ! -s conftest.err'
15233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15234 (eval $ac_try) 2>&5
15235 ac_status=$?
15236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15237 (exit $ac_status); }; } &&
15238 { ac_try='test -s conftest.$ac_objext'
15239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15240 (eval $ac_try) 2>&5
15241 ac_status=$?
15242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15243 (exit $ac_status); }; }; then
15244 ac_hi=$ac_mid; break
15245 else
15246 echo "$as_me: failed program was:" >&5
15247 sed 's/^/| /' conftest.$ac_ext >&5
15249 ac_lo=`expr $ac_mid + 1`
15250 if test $ac_lo -le $ac_mid; then
15251 ac_lo= ac_hi=
15252 break
15254 ac_mid=`expr 2 '*' $ac_mid + 1`
15256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15257 done
15258 else
15259 echo "$as_me: failed program was:" >&5
15260 sed 's/^/| /' conftest.$ac_ext >&5
15262 cat >conftest.$ac_ext <<_ACEOF
15263 /* confdefs.h. */
15264 _ACEOF
15265 cat confdefs.h >>conftest.$ac_ext
15266 cat >>conftest.$ac_ext <<_ACEOF
15267 /* end confdefs.h. */
15268 $ac_includes_default
15270 main ()
15272 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
15273 test_array [0] = 0
15276 return 0;
15278 _ACEOF
15279 rm -f conftest.$ac_objext
15280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15281 (eval $ac_compile) 2>conftest.er1
15282 ac_status=$?
15283 grep -v '^ *+' conftest.er1 >conftest.err
15284 rm -f conftest.er1
15285 cat conftest.err >&5
15286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15287 (exit $ac_status); } &&
15288 { ac_try='test -z "$ac_c_werror_flag"
15289 || test ! -s conftest.err'
15290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15291 (eval $ac_try) 2>&5
15292 ac_status=$?
15293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15294 (exit $ac_status); }; } &&
15295 { ac_try='test -s conftest.$ac_objext'
15296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15297 (eval $ac_try) 2>&5
15298 ac_status=$?
15299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15300 (exit $ac_status); }; }; then
15301 ac_hi=-1 ac_mid=-1
15302 while :; do
15303 cat >conftest.$ac_ext <<_ACEOF
15304 /* confdefs.h. */
15305 _ACEOF
15306 cat confdefs.h >>conftest.$ac_ext
15307 cat >>conftest.$ac_ext <<_ACEOF
15308 /* end confdefs.h. */
15309 $ac_includes_default
15311 main ()
15313 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
15314 test_array [0] = 0
15317 return 0;
15319 _ACEOF
15320 rm -f conftest.$ac_objext
15321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15322 (eval $ac_compile) 2>conftest.er1
15323 ac_status=$?
15324 grep -v '^ *+' conftest.er1 >conftest.err
15325 rm -f conftest.er1
15326 cat conftest.err >&5
15327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15328 (exit $ac_status); } &&
15329 { ac_try='test -z "$ac_c_werror_flag"
15330 || test ! -s conftest.err'
15331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15332 (eval $ac_try) 2>&5
15333 ac_status=$?
15334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15335 (exit $ac_status); }; } &&
15336 { ac_try='test -s conftest.$ac_objext'
15337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15338 (eval $ac_try) 2>&5
15339 ac_status=$?
15340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15341 (exit $ac_status); }; }; then
15342 ac_lo=$ac_mid; break
15343 else
15344 echo "$as_me: failed program was:" >&5
15345 sed 's/^/| /' conftest.$ac_ext >&5
15347 ac_hi=`expr '(' $ac_mid ')' - 1`
15348 if test $ac_mid -le $ac_hi; then
15349 ac_lo= ac_hi=
15350 break
15352 ac_mid=`expr 2 '*' $ac_mid`
15354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15355 done
15356 else
15357 echo "$as_me: failed program was:" >&5
15358 sed 's/^/| /' conftest.$ac_ext >&5
15360 ac_lo= ac_hi=
15362 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15365 # Binary search between lo and hi bounds.
15366 while test "x$ac_lo" != "x$ac_hi"; do
15367 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15368 cat >conftest.$ac_ext <<_ACEOF
15369 /* confdefs.h. */
15370 _ACEOF
15371 cat confdefs.h >>conftest.$ac_ext
15372 cat >>conftest.$ac_ext <<_ACEOF
15373 /* end confdefs.h. */
15374 $ac_includes_default
15376 main ()
15378 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15379 test_array [0] = 0
15382 return 0;
15384 _ACEOF
15385 rm -f conftest.$ac_objext
15386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15387 (eval $ac_compile) 2>conftest.er1
15388 ac_status=$?
15389 grep -v '^ *+' conftest.er1 >conftest.err
15390 rm -f conftest.er1
15391 cat conftest.err >&5
15392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15393 (exit $ac_status); } &&
15394 { ac_try='test -z "$ac_c_werror_flag"
15395 || test ! -s conftest.err'
15396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15397 (eval $ac_try) 2>&5
15398 ac_status=$?
15399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15400 (exit $ac_status); }; } &&
15401 { ac_try='test -s conftest.$ac_objext'
15402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15403 (eval $ac_try) 2>&5
15404 ac_status=$?
15405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15406 (exit $ac_status); }; }; then
15407 ac_hi=$ac_mid
15408 else
15409 echo "$as_me: failed program was:" >&5
15410 sed 's/^/| /' conftest.$ac_ext >&5
15412 ac_lo=`expr '(' $ac_mid ')' + 1`
15414 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15415 done
15416 case $ac_lo in
15417 ?*) ac_cv_sizeof_void_p=$ac_lo;;
15418 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15419 echo "$as_me: error: in \`$ac_pwd':" >&2;}
15420 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15421 See \`config.log' for more details." >&5
15422 echo "$as_me: error: cannot compute sizeof (void *), 77
15423 See \`config.log' for more details." >&2;}
15424 { (exit 1); exit 1; }; }; } ;;
15425 esac
15426 else
15427 if test "$cross_compiling" = yes; then
15428 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15429 echo "$as_me: error: in \`$ac_pwd':" >&2;}
15430 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15431 See \`config.log' for more details." >&5
15432 echo "$as_me: error: cannot run test program while cross compiling
15433 See \`config.log' for more details." >&2;}
15434 { (exit 1); exit 1; }; }; }
15435 else
15436 cat >conftest.$ac_ext <<_ACEOF
15437 /* confdefs.h. */
15438 _ACEOF
15439 cat confdefs.h >>conftest.$ac_ext
15440 cat >>conftest.$ac_ext <<_ACEOF
15441 /* end confdefs.h. */
15442 $ac_includes_default
15443 long longval () { return (long) (sizeof (void *)); }
15444 unsigned long ulongval () { return (long) (sizeof (void *)); }
15445 #include <stdio.h>
15446 #include <stdlib.h>
15448 main ()
15451 FILE *f = fopen ("conftest.val", "w");
15452 if (! f)
15453 exit (1);
15454 if (((long) (sizeof (void *))) < 0)
15456 long i = longval ();
15457 if (i != ((long) (sizeof (void *))))
15458 exit (1);
15459 fprintf (f, "%ld\n", i);
15461 else
15463 unsigned long i = ulongval ();
15464 if (i != ((long) (sizeof (void *))))
15465 exit (1);
15466 fprintf (f, "%lu\n", i);
15468 exit (ferror (f) || fclose (f) != 0);
15471 return 0;
15473 _ACEOF
15474 rm -f conftest$ac_exeext
15475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15476 (eval $ac_link) 2>&5
15477 ac_status=$?
15478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15479 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15481 (eval $ac_try) 2>&5
15482 ac_status=$?
15483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15484 (exit $ac_status); }; }; then
15485 ac_cv_sizeof_void_p=`cat conftest.val`
15486 else
15487 echo "$as_me: program exited with status $ac_status" >&5
15488 echo "$as_me: failed program was:" >&5
15489 sed 's/^/| /' conftest.$ac_ext >&5
15491 ( exit $ac_status )
15492 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15493 echo "$as_me: error: in \`$ac_pwd':" >&2;}
15494 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15495 See \`config.log' for more details." >&5
15496 echo "$as_me: error: cannot compute sizeof (void *), 77
15497 See \`config.log' for more details." >&2;}
15498 { (exit 1); exit 1; }; }; }
15500 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15503 rm -f conftest.val
15504 else
15505 ac_cv_sizeof_void_p=0
15508 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
15509 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
15510 cat >>confdefs.h <<_ACEOF
15511 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15512 _ACEOF
15515 esac
15517 # Lacking an uint64_t? Test size of long
15518 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
15519 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
15520 echo $ECHO_N "checking for long... $ECHO_C" >&6
15521 if test "${ac_cv_type_long+set}" = set; then
15522 echo $ECHO_N "(cached) $ECHO_C" >&6
15523 else
15524 cat >conftest.$ac_ext <<_ACEOF
15525 /* confdefs.h. */
15526 _ACEOF
15527 cat confdefs.h >>conftest.$ac_ext
15528 cat >>conftest.$ac_ext <<_ACEOF
15529 /* end confdefs.h. */
15530 $ac_includes_default
15532 main ()
15534 if ((long *) 0)
15535 return 0;
15536 if (sizeof (long))
15537 return 0;
15539 return 0;
15541 _ACEOF
15542 rm -f conftest.$ac_objext
15543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15544 (eval $ac_compile) 2>conftest.er1
15545 ac_status=$?
15546 grep -v '^ *+' conftest.er1 >conftest.err
15547 rm -f conftest.er1
15548 cat conftest.err >&5
15549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15550 (exit $ac_status); } &&
15551 { ac_try='test -z "$ac_c_werror_flag"
15552 || test ! -s conftest.err'
15553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15554 (eval $ac_try) 2>&5
15555 ac_status=$?
15556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15557 (exit $ac_status); }; } &&
15558 { ac_try='test -s conftest.$ac_objext'
15559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15560 (eval $ac_try) 2>&5
15561 ac_status=$?
15562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15563 (exit $ac_status); }; }; then
15564 ac_cv_type_long=yes
15565 else
15566 echo "$as_me: failed program was:" >&5
15567 sed 's/^/| /' conftest.$ac_ext >&5
15569 ac_cv_type_long=no
15571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15573 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
15574 echo "${ECHO_T}$ac_cv_type_long" >&6
15576 echo "$as_me:$LINENO: checking size of long" >&5
15577 echo $ECHO_N "checking size of long... $ECHO_C" >&6
15578 if test "${ac_cv_sizeof_long+set}" = set; then
15579 echo $ECHO_N "(cached) $ECHO_C" >&6
15580 else
15581 if test "$ac_cv_type_long" = yes; then
15582 # The cast to unsigned long works around a bug in the HP C Compiler
15583 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15584 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15585 # This bug is HP SR number 8606223364.
15586 if test "$cross_compiling" = yes; then
15587 # Depending upon the size, compute the lo and hi bounds.
15588 cat >conftest.$ac_ext <<_ACEOF
15589 /* confdefs.h. */
15590 _ACEOF
15591 cat confdefs.h >>conftest.$ac_ext
15592 cat >>conftest.$ac_ext <<_ACEOF
15593 /* end confdefs.h. */
15594 $ac_includes_default
15596 main ()
15598 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
15599 test_array [0] = 0
15602 return 0;
15604 _ACEOF
15605 rm -f conftest.$ac_objext
15606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15607 (eval $ac_compile) 2>conftest.er1
15608 ac_status=$?
15609 grep -v '^ *+' conftest.er1 >conftest.err
15610 rm -f conftest.er1
15611 cat conftest.err >&5
15612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15613 (exit $ac_status); } &&
15614 { ac_try='test -z "$ac_c_werror_flag"
15615 || test ! -s conftest.err'
15616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15617 (eval $ac_try) 2>&5
15618 ac_status=$?
15619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15620 (exit $ac_status); }; } &&
15621 { ac_try='test -s conftest.$ac_objext'
15622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15623 (eval $ac_try) 2>&5
15624 ac_status=$?
15625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15626 (exit $ac_status); }; }; then
15627 ac_lo=0 ac_mid=0
15628 while :; do
15629 cat >conftest.$ac_ext <<_ACEOF
15630 /* confdefs.h. */
15631 _ACEOF
15632 cat confdefs.h >>conftest.$ac_ext
15633 cat >>conftest.$ac_ext <<_ACEOF
15634 /* end confdefs.h. */
15635 $ac_includes_default
15637 main ()
15639 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15640 test_array [0] = 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_hi=$ac_mid; break
15669 else
15670 echo "$as_me: failed program was:" >&5
15671 sed 's/^/| /' conftest.$ac_ext >&5
15673 ac_lo=`expr $ac_mid + 1`
15674 if test $ac_lo -le $ac_mid; then
15675 ac_lo= ac_hi=
15676 break
15678 ac_mid=`expr 2 '*' $ac_mid + 1`
15680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15681 done
15682 else
15683 echo "$as_me: failed program was:" >&5
15684 sed 's/^/| /' conftest.$ac_ext >&5
15686 cat >conftest.$ac_ext <<_ACEOF
15687 /* confdefs.h. */
15688 _ACEOF
15689 cat confdefs.h >>conftest.$ac_ext
15690 cat >>conftest.$ac_ext <<_ACEOF
15691 /* end confdefs.h. */
15692 $ac_includes_default
15694 main ()
15696 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
15697 test_array [0] = 0
15700 return 0;
15702 _ACEOF
15703 rm -f conftest.$ac_objext
15704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15705 (eval $ac_compile) 2>conftest.er1
15706 ac_status=$?
15707 grep -v '^ *+' conftest.er1 >conftest.err
15708 rm -f conftest.er1
15709 cat conftest.err >&5
15710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15711 (exit $ac_status); } &&
15712 { ac_try='test -z "$ac_c_werror_flag"
15713 || test ! -s conftest.err'
15714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15715 (eval $ac_try) 2>&5
15716 ac_status=$?
15717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15718 (exit $ac_status); }; } &&
15719 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
15725 ac_hi=-1 ac_mid=-1
15726 while :; do
15727 cat >conftest.$ac_ext <<_ACEOF
15728 /* confdefs.h. */
15729 _ACEOF
15730 cat confdefs.h >>conftest.$ac_ext
15731 cat >>conftest.$ac_ext <<_ACEOF
15732 /* end confdefs.h. */
15733 $ac_includes_default
15735 main ()
15737 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
15738 test_array [0] = 0
15741 return 0;
15743 _ACEOF
15744 rm -f conftest.$ac_objext
15745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15746 (eval $ac_compile) 2>conftest.er1
15747 ac_status=$?
15748 grep -v '^ *+' conftest.er1 >conftest.err
15749 rm -f conftest.er1
15750 cat conftest.err >&5
15751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15752 (exit $ac_status); } &&
15753 { ac_try='test -z "$ac_c_werror_flag"
15754 || test ! -s conftest.err'
15755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15756 (eval $ac_try) 2>&5
15757 ac_status=$?
15758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15759 (exit $ac_status); }; } &&
15760 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
15766 ac_lo=$ac_mid; break
15767 else
15768 echo "$as_me: failed program was:" >&5
15769 sed 's/^/| /' conftest.$ac_ext >&5
15771 ac_hi=`expr '(' $ac_mid ')' - 1`
15772 if test $ac_mid -le $ac_hi; then
15773 ac_lo= ac_hi=
15774 break
15776 ac_mid=`expr 2 '*' $ac_mid`
15778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15779 done
15780 else
15781 echo "$as_me: failed program was:" >&5
15782 sed 's/^/| /' conftest.$ac_ext >&5
15784 ac_lo= ac_hi=
15786 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15789 # Binary search between lo and hi bounds.
15790 while test "x$ac_lo" != "x$ac_hi"; do
15791 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15792 cat >conftest.$ac_ext <<_ACEOF
15793 /* confdefs.h. */
15794 _ACEOF
15795 cat confdefs.h >>conftest.$ac_ext
15796 cat >>conftest.$ac_ext <<_ACEOF
15797 /* end confdefs.h. */
15798 $ac_includes_default
15800 main ()
15802 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15803 test_array [0] = 0
15806 return 0;
15808 _ACEOF
15809 rm -f conftest.$ac_objext
15810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15811 (eval $ac_compile) 2>conftest.er1
15812 ac_status=$?
15813 grep -v '^ *+' conftest.er1 >conftest.err
15814 rm -f conftest.er1
15815 cat conftest.err >&5
15816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15817 (exit $ac_status); } &&
15818 { ac_try='test -z "$ac_c_werror_flag"
15819 || test ! -s conftest.err'
15820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15821 (eval $ac_try) 2>&5
15822 ac_status=$?
15823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15824 (exit $ac_status); }; } &&
15825 { ac_try='test -s conftest.$ac_objext'
15826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15827 (eval $ac_try) 2>&5
15828 ac_status=$?
15829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15830 (exit $ac_status); }; }; then
15831 ac_hi=$ac_mid
15832 else
15833 echo "$as_me: failed program was:" >&5
15834 sed 's/^/| /' conftest.$ac_ext >&5
15836 ac_lo=`expr '(' $ac_mid ')' + 1`
15838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15839 done
15840 case $ac_lo in
15841 ?*) ac_cv_sizeof_long=$ac_lo;;
15842 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15843 echo "$as_me: error: in \`$ac_pwd':" >&2;}
15844 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15845 See \`config.log' for more details." >&5
15846 echo "$as_me: error: cannot compute sizeof (long), 77
15847 See \`config.log' for more details." >&2;}
15848 { (exit 1); exit 1; }; }; } ;;
15849 esac
15850 else
15851 if test "$cross_compiling" = yes; then
15852 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15853 echo "$as_me: error: in \`$ac_pwd':" >&2;}
15854 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15855 See \`config.log' for more details." >&5
15856 echo "$as_me: error: cannot run test program while cross compiling
15857 See \`config.log' for more details." >&2;}
15858 { (exit 1); exit 1; }; }; }
15859 else
15860 cat >conftest.$ac_ext <<_ACEOF
15861 /* confdefs.h. */
15862 _ACEOF
15863 cat confdefs.h >>conftest.$ac_ext
15864 cat >>conftest.$ac_ext <<_ACEOF
15865 /* end confdefs.h. */
15866 $ac_includes_default
15867 long longval () { return (long) (sizeof (long)); }
15868 unsigned long ulongval () { return (long) (sizeof (long)); }
15869 #include <stdio.h>
15870 #include <stdlib.h>
15872 main ()
15875 FILE *f = fopen ("conftest.val", "w");
15876 if (! f)
15877 exit (1);
15878 if (((long) (sizeof (long))) < 0)
15880 long i = longval ();
15881 if (i != ((long) (sizeof (long))))
15882 exit (1);
15883 fprintf (f, "%ld\n", i);
15885 else
15887 unsigned long i = ulongval ();
15888 if (i != ((long) (sizeof (long))))
15889 exit (1);
15890 fprintf (f, "%lu\n", i);
15892 exit (ferror (f) || fclose (f) != 0);
15895 return 0;
15897 _ACEOF
15898 rm -f conftest$ac_exeext
15899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15900 (eval $ac_link) 2>&5
15901 ac_status=$?
15902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15903 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15905 (eval $ac_try) 2>&5
15906 ac_status=$?
15907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15908 (exit $ac_status); }; }; then
15909 ac_cv_sizeof_long=`cat conftest.val`
15910 else
15911 echo "$as_me: program exited with status $ac_status" >&5
15912 echo "$as_me: failed program was:" >&5
15913 sed 's/^/| /' conftest.$ac_ext >&5
15915 ( exit $ac_status )
15916 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15917 echo "$as_me: error: in \`$ac_pwd':" >&2;}
15918 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15919 See \`config.log' for more details." >&5
15920 echo "$as_me: error: cannot compute sizeof (long), 77
15921 See \`config.log' for more details." >&2;}
15922 { (exit 1); exit 1; }; }; }
15924 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15927 rm -f conftest.val
15928 else
15929 ac_cv_sizeof_long=0
15932 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
15933 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
15934 cat >>confdefs.h <<_ACEOF
15935 #define SIZEOF_LONG $ac_cv_sizeof_long
15936 _ACEOF
15939 esac
15941 if test $acx_cv_header_stdint = stddef.h; then
15942 # Lacking a good header? Test size of everything and deduce all types.
15943 echo "$as_me:$LINENO: checking for int" >&5
15944 echo $ECHO_N "checking for int... $ECHO_C" >&6
15945 if test "${ac_cv_type_int+set}" = set; then
15946 echo $ECHO_N "(cached) $ECHO_C" >&6
15947 else
15948 cat >conftest.$ac_ext <<_ACEOF
15949 /* confdefs.h. */
15950 _ACEOF
15951 cat confdefs.h >>conftest.$ac_ext
15952 cat >>conftest.$ac_ext <<_ACEOF
15953 /* end confdefs.h. */
15954 $ac_includes_default
15956 main ()
15958 if ((int *) 0)
15959 return 0;
15960 if (sizeof (int))
15961 return 0;
15963 return 0;
15965 _ACEOF
15966 rm -f conftest.$ac_objext
15967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15968 (eval $ac_compile) 2>conftest.er1
15969 ac_status=$?
15970 grep -v '^ *+' conftest.er1 >conftest.err
15971 rm -f conftest.er1
15972 cat conftest.err >&5
15973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15974 (exit $ac_status); } &&
15975 { ac_try='test -z "$ac_c_werror_flag"
15976 || test ! -s conftest.err'
15977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15978 (eval $ac_try) 2>&5
15979 ac_status=$?
15980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15981 (exit $ac_status); }; } &&
15982 { ac_try='test -s conftest.$ac_objext'
15983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15984 (eval $ac_try) 2>&5
15985 ac_status=$?
15986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15987 (exit $ac_status); }; }; then
15988 ac_cv_type_int=yes
15989 else
15990 echo "$as_me: failed program was:" >&5
15991 sed 's/^/| /' conftest.$ac_ext >&5
15993 ac_cv_type_int=no
15995 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15997 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15998 echo "${ECHO_T}$ac_cv_type_int" >&6
16000 echo "$as_me:$LINENO: checking size of int" >&5
16001 echo $ECHO_N "checking size of int... $ECHO_C" >&6
16002 if test "${ac_cv_sizeof_int+set}" = set; then
16003 echo $ECHO_N "(cached) $ECHO_C" >&6
16004 else
16005 if test "$ac_cv_type_int" = yes; then
16006 # The cast to unsigned long works around a bug in the HP C Compiler
16007 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16008 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16009 # This bug is HP SR number 8606223364.
16010 if test "$cross_compiling" = yes; then
16011 # Depending upon the size, compute the lo and hi bounds.
16012 cat >conftest.$ac_ext <<_ACEOF
16013 /* confdefs.h. */
16014 _ACEOF
16015 cat confdefs.h >>conftest.$ac_ext
16016 cat >>conftest.$ac_ext <<_ACEOF
16017 /* end confdefs.h. */
16018 $ac_includes_default
16020 main ()
16022 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
16023 test_array [0] = 0
16026 return 0;
16028 _ACEOF
16029 rm -f conftest.$ac_objext
16030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16031 (eval $ac_compile) 2>conftest.er1
16032 ac_status=$?
16033 grep -v '^ *+' conftest.er1 >conftest.err
16034 rm -f conftest.er1
16035 cat conftest.err >&5
16036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16037 (exit $ac_status); } &&
16038 { ac_try='test -z "$ac_c_werror_flag"
16039 || test ! -s conftest.err'
16040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16041 (eval $ac_try) 2>&5
16042 ac_status=$?
16043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16044 (exit $ac_status); }; } &&
16045 { ac_try='test -s conftest.$ac_objext'
16046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16047 (eval $ac_try) 2>&5
16048 ac_status=$?
16049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16050 (exit $ac_status); }; }; then
16051 ac_lo=0 ac_mid=0
16052 while :; do
16053 cat >conftest.$ac_ext <<_ACEOF
16054 /* confdefs.h. */
16055 _ACEOF
16056 cat confdefs.h >>conftest.$ac_ext
16057 cat >>conftest.$ac_ext <<_ACEOF
16058 /* end confdefs.h. */
16059 $ac_includes_default
16061 main ()
16063 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16064 test_array [0] = 0
16067 return 0;
16069 _ACEOF
16070 rm -f conftest.$ac_objext
16071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16072 (eval $ac_compile) 2>conftest.er1
16073 ac_status=$?
16074 grep -v '^ *+' conftest.er1 >conftest.err
16075 rm -f conftest.er1
16076 cat conftest.err >&5
16077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16078 (exit $ac_status); } &&
16079 { ac_try='test -z "$ac_c_werror_flag"
16080 || test ! -s conftest.err'
16081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16082 (eval $ac_try) 2>&5
16083 ac_status=$?
16084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16085 (exit $ac_status); }; } &&
16086 { ac_try='test -s conftest.$ac_objext'
16087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16088 (eval $ac_try) 2>&5
16089 ac_status=$?
16090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16091 (exit $ac_status); }; }; then
16092 ac_hi=$ac_mid; break
16093 else
16094 echo "$as_me: failed program was:" >&5
16095 sed 's/^/| /' conftest.$ac_ext >&5
16097 ac_lo=`expr $ac_mid + 1`
16098 if test $ac_lo -le $ac_mid; then
16099 ac_lo= ac_hi=
16100 break
16102 ac_mid=`expr 2 '*' $ac_mid + 1`
16104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16105 done
16106 else
16107 echo "$as_me: failed program was:" >&5
16108 sed 's/^/| /' conftest.$ac_ext >&5
16110 cat >conftest.$ac_ext <<_ACEOF
16111 /* confdefs.h. */
16112 _ACEOF
16113 cat confdefs.h >>conftest.$ac_ext
16114 cat >>conftest.$ac_ext <<_ACEOF
16115 /* end confdefs.h. */
16116 $ac_includes_default
16118 main ()
16120 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
16121 test_array [0] = 0
16124 return 0;
16126 _ACEOF
16127 rm -f conftest.$ac_objext
16128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16129 (eval $ac_compile) 2>conftest.er1
16130 ac_status=$?
16131 grep -v '^ *+' conftest.er1 >conftest.err
16132 rm -f conftest.er1
16133 cat conftest.err >&5
16134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16135 (exit $ac_status); } &&
16136 { ac_try='test -z "$ac_c_werror_flag"
16137 || test ! -s conftest.err'
16138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16139 (eval $ac_try) 2>&5
16140 ac_status=$?
16141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16142 (exit $ac_status); }; } &&
16143 { ac_try='test -s conftest.$ac_objext'
16144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16145 (eval $ac_try) 2>&5
16146 ac_status=$?
16147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16148 (exit $ac_status); }; }; then
16149 ac_hi=-1 ac_mid=-1
16150 while :; do
16151 cat >conftest.$ac_ext <<_ACEOF
16152 /* confdefs.h. */
16153 _ACEOF
16154 cat confdefs.h >>conftest.$ac_ext
16155 cat >>conftest.$ac_ext <<_ACEOF
16156 /* end confdefs.h. */
16157 $ac_includes_default
16159 main ()
16161 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
16162 test_array [0] = 0
16165 return 0;
16167 _ACEOF
16168 rm -f conftest.$ac_objext
16169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16170 (eval $ac_compile) 2>conftest.er1
16171 ac_status=$?
16172 grep -v '^ *+' conftest.er1 >conftest.err
16173 rm -f conftest.er1
16174 cat conftest.err >&5
16175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16176 (exit $ac_status); } &&
16177 { ac_try='test -z "$ac_c_werror_flag"
16178 || test ! -s conftest.err'
16179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16180 (eval $ac_try) 2>&5
16181 ac_status=$?
16182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16183 (exit $ac_status); }; } &&
16184 { ac_try='test -s conftest.$ac_objext'
16185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16186 (eval $ac_try) 2>&5
16187 ac_status=$?
16188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16189 (exit $ac_status); }; }; then
16190 ac_lo=$ac_mid; break
16191 else
16192 echo "$as_me: failed program was:" >&5
16193 sed 's/^/| /' conftest.$ac_ext >&5
16195 ac_hi=`expr '(' $ac_mid ')' - 1`
16196 if test $ac_mid -le $ac_hi; then
16197 ac_lo= ac_hi=
16198 break
16200 ac_mid=`expr 2 '*' $ac_mid`
16202 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16203 done
16204 else
16205 echo "$as_me: failed program was:" >&5
16206 sed 's/^/| /' conftest.$ac_ext >&5
16208 ac_lo= ac_hi=
16210 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16213 # Binary search between lo and hi bounds.
16214 while test "x$ac_lo" != "x$ac_hi"; do
16215 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16216 cat >conftest.$ac_ext <<_ACEOF
16217 /* confdefs.h. */
16218 _ACEOF
16219 cat confdefs.h >>conftest.$ac_ext
16220 cat >>conftest.$ac_ext <<_ACEOF
16221 /* end confdefs.h. */
16222 $ac_includes_default
16224 main ()
16226 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16227 test_array [0] = 0
16230 return 0;
16232 _ACEOF
16233 rm -f conftest.$ac_objext
16234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16235 (eval $ac_compile) 2>conftest.er1
16236 ac_status=$?
16237 grep -v '^ *+' conftest.er1 >conftest.err
16238 rm -f conftest.er1
16239 cat conftest.err >&5
16240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16241 (exit $ac_status); } &&
16242 { ac_try='test -z "$ac_c_werror_flag"
16243 || test ! -s conftest.err'
16244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16245 (eval $ac_try) 2>&5
16246 ac_status=$?
16247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16248 (exit $ac_status); }; } &&
16249 { ac_try='test -s conftest.$ac_objext'
16250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16251 (eval $ac_try) 2>&5
16252 ac_status=$?
16253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16254 (exit $ac_status); }; }; then
16255 ac_hi=$ac_mid
16256 else
16257 echo "$as_me: failed program was:" >&5
16258 sed 's/^/| /' conftest.$ac_ext >&5
16260 ac_lo=`expr '(' $ac_mid ')' + 1`
16262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16263 done
16264 case $ac_lo in
16265 ?*) ac_cv_sizeof_int=$ac_lo;;
16266 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16267 echo "$as_me: error: in \`$ac_pwd':" >&2;}
16268 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16269 See \`config.log' for more details." >&5
16270 echo "$as_me: error: cannot compute sizeof (int), 77
16271 See \`config.log' for more details." >&2;}
16272 { (exit 1); exit 1; }; }; } ;;
16273 esac
16274 else
16275 if test "$cross_compiling" = yes; then
16276 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16277 echo "$as_me: error: in \`$ac_pwd':" >&2;}
16278 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16279 See \`config.log' for more details." >&5
16280 echo "$as_me: error: cannot run test program while cross compiling
16281 See \`config.log' for more details." >&2;}
16282 { (exit 1); exit 1; }; }; }
16283 else
16284 cat >conftest.$ac_ext <<_ACEOF
16285 /* confdefs.h. */
16286 _ACEOF
16287 cat confdefs.h >>conftest.$ac_ext
16288 cat >>conftest.$ac_ext <<_ACEOF
16289 /* end confdefs.h. */
16290 $ac_includes_default
16291 long longval () { return (long) (sizeof (int)); }
16292 unsigned long ulongval () { return (long) (sizeof (int)); }
16293 #include <stdio.h>
16294 #include <stdlib.h>
16296 main ()
16299 FILE *f = fopen ("conftest.val", "w");
16300 if (! f)
16301 exit (1);
16302 if (((long) (sizeof (int))) < 0)
16304 long i = longval ();
16305 if (i != ((long) (sizeof (int))))
16306 exit (1);
16307 fprintf (f, "%ld\n", i);
16309 else
16311 unsigned long i = ulongval ();
16312 if (i != ((long) (sizeof (int))))
16313 exit (1);
16314 fprintf (f, "%lu\n", i);
16316 exit (ferror (f) || fclose (f) != 0);
16319 return 0;
16321 _ACEOF
16322 rm -f conftest$ac_exeext
16323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16324 (eval $ac_link) 2>&5
16325 ac_status=$?
16326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16327 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16329 (eval $ac_try) 2>&5
16330 ac_status=$?
16331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16332 (exit $ac_status); }; }; then
16333 ac_cv_sizeof_int=`cat conftest.val`
16334 else
16335 echo "$as_me: program exited with status $ac_status" >&5
16336 echo "$as_me: failed program was:" >&5
16337 sed 's/^/| /' conftest.$ac_ext >&5
16339 ( exit $ac_status )
16340 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16341 echo "$as_me: error: in \`$ac_pwd':" >&2;}
16342 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16343 See \`config.log' for more details." >&5
16344 echo "$as_me: error: cannot compute sizeof (int), 77
16345 See \`config.log' for more details." >&2;}
16346 { (exit 1); exit 1; }; }; }
16348 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16351 rm -f conftest.val
16352 else
16353 ac_cv_sizeof_int=0
16356 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
16357 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
16358 cat >>confdefs.h <<_ACEOF
16359 #define SIZEOF_INT $ac_cv_sizeof_int
16360 _ACEOF
16363 echo "$as_me:$LINENO: checking for short" >&5
16364 echo $ECHO_N "checking for short... $ECHO_C" >&6
16365 if test "${ac_cv_type_short+set}" = set; then
16366 echo $ECHO_N "(cached) $ECHO_C" >&6
16367 else
16368 cat >conftest.$ac_ext <<_ACEOF
16369 /* confdefs.h. */
16370 _ACEOF
16371 cat confdefs.h >>conftest.$ac_ext
16372 cat >>conftest.$ac_ext <<_ACEOF
16373 /* end confdefs.h. */
16374 $ac_includes_default
16376 main ()
16378 if ((short *) 0)
16379 return 0;
16380 if (sizeof (short))
16381 return 0;
16383 return 0;
16385 _ACEOF
16386 rm -f conftest.$ac_objext
16387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16388 (eval $ac_compile) 2>conftest.er1
16389 ac_status=$?
16390 grep -v '^ *+' conftest.er1 >conftest.err
16391 rm -f conftest.er1
16392 cat conftest.err >&5
16393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16394 (exit $ac_status); } &&
16395 { ac_try='test -z "$ac_c_werror_flag"
16396 || test ! -s conftest.err'
16397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16398 (eval $ac_try) 2>&5
16399 ac_status=$?
16400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16401 (exit $ac_status); }; } &&
16402 { ac_try='test -s conftest.$ac_objext'
16403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16404 (eval $ac_try) 2>&5
16405 ac_status=$?
16406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16407 (exit $ac_status); }; }; then
16408 ac_cv_type_short=yes
16409 else
16410 echo "$as_me: failed program was:" >&5
16411 sed 's/^/| /' conftest.$ac_ext >&5
16413 ac_cv_type_short=no
16415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16417 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
16418 echo "${ECHO_T}$ac_cv_type_short" >&6
16420 echo "$as_me:$LINENO: checking size of short" >&5
16421 echo $ECHO_N "checking size of short... $ECHO_C" >&6
16422 if test "${ac_cv_sizeof_short+set}" = set; then
16423 echo $ECHO_N "(cached) $ECHO_C" >&6
16424 else
16425 if test "$ac_cv_type_short" = yes; then
16426 # The cast to unsigned long works around a bug in the HP C Compiler
16427 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16428 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16429 # This bug is HP SR number 8606223364.
16430 if test "$cross_compiling" = yes; then
16431 # Depending upon the size, compute the lo and hi bounds.
16432 cat >conftest.$ac_ext <<_ACEOF
16433 /* confdefs.h. */
16434 _ACEOF
16435 cat confdefs.h >>conftest.$ac_ext
16436 cat >>conftest.$ac_ext <<_ACEOF
16437 /* end confdefs.h. */
16438 $ac_includes_default
16440 main ()
16442 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
16443 test_array [0] = 0
16446 return 0;
16448 _ACEOF
16449 rm -f conftest.$ac_objext
16450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16451 (eval $ac_compile) 2>conftest.er1
16452 ac_status=$?
16453 grep -v '^ *+' conftest.er1 >conftest.err
16454 rm -f conftest.er1
16455 cat conftest.err >&5
16456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16457 (exit $ac_status); } &&
16458 { ac_try='test -z "$ac_c_werror_flag"
16459 || test ! -s conftest.err'
16460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16461 (eval $ac_try) 2>&5
16462 ac_status=$?
16463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16464 (exit $ac_status); }; } &&
16465 { ac_try='test -s conftest.$ac_objext'
16466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16467 (eval $ac_try) 2>&5
16468 ac_status=$?
16469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16470 (exit $ac_status); }; }; then
16471 ac_lo=0 ac_mid=0
16472 while :; do
16473 cat >conftest.$ac_ext <<_ACEOF
16474 /* confdefs.h. */
16475 _ACEOF
16476 cat confdefs.h >>conftest.$ac_ext
16477 cat >>conftest.$ac_ext <<_ACEOF
16478 /* end confdefs.h. */
16479 $ac_includes_default
16481 main ()
16483 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16484 test_array [0] = 0
16487 return 0;
16489 _ACEOF
16490 rm -f conftest.$ac_objext
16491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16492 (eval $ac_compile) 2>conftest.er1
16493 ac_status=$?
16494 grep -v '^ *+' conftest.er1 >conftest.err
16495 rm -f conftest.er1
16496 cat conftest.err >&5
16497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16498 (exit $ac_status); } &&
16499 { ac_try='test -z "$ac_c_werror_flag"
16500 || test ! -s conftest.err'
16501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16502 (eval $ac_try) 2>&5
16503 ac_status=$?
16504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16505 (exit $ac_status); }; } &&
16506 { ac_try='test -s conftest.$ac_objext'
16507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16508 (eval $ac_try) 2>&5
16509 ac_status=$?
16510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16511 (exit $ac_status); }; }; then
16512 ac_hi=$ac_mid; break
16513 else
16514 echo "$as_me: failed program was:" >&5
16515 sed 's/^/| /' conftest.$ac_ext >&5
16517 ac_lo=`expr $ac_mid + 1`
16518 if test $ac_lo -le $ac_mid; then
16519 ac_lo= ac_hi=
16520 break
16522 ac_mid=`expr 2 '*' $ac_mid + 1`
16524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16525 done
16526 else
16527 echo "$as_me: failed program was:" >&5
16528 sed 's/^/| /' conftest.$ac_ext >&5
16530 cat >conftest.$ac_ext <<_ACEOF
16531 /* confdefs.h. */
16532 _ACEOF
16533 cat confdefs.h >>conftest.$ac_ext
16534 cat >>conftest.$ac_ext <<_ACEOF
16535 /* end confdefs.h. */
16536 $ac_includes_default
16538 main ()
16540 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
16541 test_array [0] = 0
16544 return 0;
16546 _ACEOF
16547 rm -f conftest.$ac_objext
16548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16549 (eval $ac_compile) 2>conftest.er1
16550 ac_status=$?
16551 grep -v '^ *+' conftest.er1 >conftest.err
16552 rm -f conftest.er1
16553 cat conftest.err >&5
16554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16555 (exit $ac_status); } &&
16556 { ac_try='test -z "$ac_c_werror_flag"
16557 || test ! -s conftest.err'
16558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16559 (eval $ac_try) 2>&5
16560 ac_status=$?
16561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16562 (exit $ac_status); }; } &&
16563 { ac_try='test -s conftest.$ac_objext'
16564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16565 (eval $ac_try) 2>&5
16566 ac_status=$?
16567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16568 (exit $ac_status); }; }; then
16569 ac_hi=-1 ac_mid=-1
16570 while :; do
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 $ac_includes_default
16579 main ()
16581 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
16582 test_array [0] = 0
16585 return 0;
16587 _ACEOF
16588 rm -f conftest.$ac_objext
16589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16590 (eval $ac_compile) 2>conftest.er1
16591 ac_status=$?
16592 grep -v '^ *+' conftest.er1 >conftest.err
16593 rm -f conftest.er1
16594 cat conftest.err >&5
16595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16596 (exit $ac_status); } &&
16597 { ac_try='test -z "$ac_c_werror_flag"
16598 || test ! -s conftest.err'
16599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16600 (eval $ac_try) 2>&5
16601 ac_status=$?
16602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16603 (exit $ac_status); }; } &&
16604 { ac_try='test -s conftest.$ac_objext'
16605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16606 (eval $ac_try) 2>&5
16607 ac_status=$?
16608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16609 (exit $ac_status); }; }; then
16610 ac_lo=$ac_mid; break
16611 else
16612 echo "$as_me: failed program was:" >&5
16613 sed 's/^/| /' conftest.$ac_ext >&5
16615 ac_hi=`expr '(' $ac_mid ')' - 1`
16616 if test $ac_mid -le $ac_hi; then
16617 ac_lo= ac_hi=
16618 break
16620 ac_mid=`expr 2 '*' $ac_mid`
16622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16623 done
16624 else
16625 echo "$as_me: failed program was:" >&5
16626 sed 's/^/| /' conftest.$ac_ext >&5
16628 ac_lo= ac_hi=
16630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16633 # Binary search between lo and hi bounds.
16634 while test "x$ac_lo" != "x$ac_hi"; do
16635 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16636 cat >conftest.$ac_ext <<_ACEOF
16637 /* confdefs.h. */
16638 _ACEOF
16639 cat confdefs.h >>conftest.$ac_ext
16640 cat >>conftest.$ac_ext <<_ACEOF
16641 /* end confdefs.h. */
16642 $ac_includes_default
16644 main ()
16646 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16647 test_array [0] = 0
16650 return 0;
16652 _ACEOF
16653 rm -f conftest.$ac_objext
16654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16655 (eval $ac_compile) 2>conftest.er1
16656 ac_status=$?
16657 grep -v '^ *+' conftest.er1 >conftest.err
16658 rm -f conftest.er1
16659 cat conftest.err >&5
16660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16661 (exit $ac_status); } &&
16662 { ac_try='test -z "$ac_c_werror_flag"
16663 || test ! -s conftest.err'
16664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16665 (eval $ac_try) 2>&5
16666 ac_status=$?
16667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16668 (exit $ac_status); }; } &&
16669 { ac_try='test -s conftest.$ac_objext'
16670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16671 (eval $ac_try) 2>&5
16672 ac_status=$?
16673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16674 (exit $ac_status); }; }; then
16675 ac_hi=$ac_mid
16676 else
16677 echo "$as_me: failed program was:" >&5
16678 sed 's/^/| /' conftest.$ac_ext >&5
16680 ac_lo=`expr '(' $ac_mid ')' + 1`
16682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16683 done
16684 case $ac_lo in
16685 ?*) ac_cv_sizeof_short=$ac_lo;;
16686 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16687 echo "$as_me: error: in \`$ac_pwd':" >&2;}
16688 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16689 See \`config.log' for more details." >&5
16690 echo "$as_me: error: cannot compute sizeof (short), 77
16691 See \`config.log' for more details." >&2;}
16692 { (exit 1); exit 1; }; }; } ;;
16693 esac
16694 else
16695 if test "$cross_compiling" = yes; then
16696 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16697 echo "$as_me: error: in \`$ac_pwd':" >&2;}
16698 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16699 See \`config.log' for more details." >&5
16700 echo "$as_me: error: cannot run test program while cross compiling
16701 See \`config.log' for more details." >&2;}
16702 { (exit 1); exit 1; }; }; }
16703 else
16704 cat >conftest.$ac_ext <<_ACEOF
16705 /* confdefs.h. */
16706 _ACEOF
16707 cat confdefs.h >>conftest.$ac_ext
16708 cat >>conftest.$ac_ext <<_ACEOF
16709 /* end confdefs.h. */
16710 $ac_includes_default
16711 long longval () { return (long) (sizeof (short)); }
16712 unsigned long ulongval () { return (long) (sizeof (short)); }
16713 #include <stdio.h>
16714 #include <stdlib.h>
16716 main ()
16719 FILE *f = fopen ("conftest.val", "w");
16720 if (! f)
16721 exit (1);
16722 if (((long) (sizeof (short))) < 0)
16724 long i = longval ();
16725 if (i != ((long) (sizeof (short))))
16726 exit (1);
16727 fprintf (f, "%ld\n", i);
16729 else
16731 unsigned long i = ulongval ();
16732 if (i != ((long) (sizeof (short))))
16733 exit (1);
16734 fprintf (f, "%lu\n", i);
16736 exit (ferror (f) || fclose (f) != 0);
16739 return 0;
16741 _ACEOF
16742 rm -f conftest$ac_exeext
16743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16744 (eval $ac_link) 2>&5
16745 ac_status=$?
16746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16747 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16749 (eval $ac_try) 2>&5
16750 ac_status=$?
16751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16752 (exit $ac_status); }; }; then
16753 ac_cv_sizeof_short=`cat conftest.val`
16754 else
16755 echo "$as_me: program exited with status $ac_status" >&5
16756 echo "$as_me: failed program was:" >&5
16757 sed 's/^/| /' conftest.$ac_ext >&5
16759 ( exit $ac_status )
16760 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16761 echo "$as_me: error: in \`$ac_pwd':" >&2;}
16762 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16763 See \`config.log' for more details." >&5
16764 echo "$as_me: error: cannot compute sizeof (short), 77
16765 See \`config.log' for more details." >&2;}
16766 { (exit 1); exit 1; }; }; }
16768 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16771 rm -f conftest.val
16772 else
16773 ac_cv_sizeof_short=0
16776 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
16777 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
16778 cat >>confdefs.h <<_ACEOF
16779 #define SIZEOF_SHORT $ac_cv_sizeof_short
16780 _ACEOF
16783 echo "$as_me:$LINENO: checking for char" >&5
16784 echo $ECHO_N "checking for char... $ECHO_C" >&6
16785 if test "${ac_cv_type_char+set}" = set; then
16786 echo $ECHO_N "(cached) $ECHO_C" >&6
16787 else
16788 cat >conftest.$ac_ext <<_ACEOF
16789 /* confdefs.h. */
16790 _ACEOF
16791 cat confdefs.h >>conftest.$ac_ext
16792 cat >>conftest.$ac_ext <<_ACEOF
16793 /* end confdefs.h. */
16794 $ac_includes_default
16796 main ()
16798 if ((char *) 0)
16799 return 0;
16800 if (sizeof (char))
16801 return 0;
16803 return 0;
16805 _ACEOF
16806 rm -f conftest.$ac_objext
16807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16808 (eval $ac_compile) 2>conftest.er1
16809 ac_status=$?
16810 grep -v '^ *+' conftest.er1 >conftest.err
16811 rm -f conftest.er1
16812 cat conftest.err >&5
16813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16814 (exit $ac_status); } &&
16815 { ac_try='test -z "$ac_c_werror_flag"
16816 || test ! -s conftest.err'
16817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16818 (eval $ac_try) 2>&5
16819 ac_status=$?
16820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16821 (exit $ac_status); }; } &&
16822 { ac_try='test -s conftest.$ac_objext'
16823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16824 (eval $ac_try) 2>&5
16825 ac_status=$?
16826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16827 (exit $ac_status); }; }; then
16828 ac_cv_type_char=yes
16829 else
16830 echo "$as_me: failed program was:" >&5
16831 sed 's/^/| /' conftest.$ac_ext >&5
16833 ac_cv_type_char=no
16835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16837 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
16838 echo "${ECHO_T}$ac_cv_type_char" >&6
16840 echo "$as_me:$LINENO: checking size of char" >&5
16841 echo $ECHO_N "checking size of char... $ECHO_C" >&6
16842 if test "${ac_cv_sizeof_char+set}" = set; then
16843 echo $ECHO_N "(cached) $ECHO_C" >&6
16844 else
16845 if test "$ac_cv_type_char" = yes; then
16846 # The cast to unsigned long works around a bug in the HP C Compiler
16847 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16848 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16849 # This bug is HP SR number 8606223364.
16850 if test "$cross_compiling" = yes; then
16851 # Depending upon the size, compute the lo and hi bounds.
16852 cat >conftest.$ac_ext <<_ACEOF
16853 /* confdefs.h. */
16854 _ACEOF
16855 cat confdefs.h >>conftest.$ac_ext
16856 cat >>conftest.$ac_ext <<_ACEOF
16857 /* end confdefs.h. */
16858 $ac_includes_default
16860 main ()
16862 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
16863 test_array [0] = 0
16866 return 0;
16868 _ACEOF
16869 rm -f conftest.$ac_objext
16870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16871 (eval $ac_compile) 2>conftest.er1
16872 ac_status=$?
16873 grep -v '^ *+' conftest.er1 >conftest.err
16874 rm -f conftest.er1
16875 cat conftest.err >&5
16876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16877 (exit $ac_status); } &&
16878 { ac_try='test -z "$ac_c_werror_flag"
16879 || test ! -s conftest.err'
16880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16881 (eval $ac_try) 2>&5
16882 ac_status=$?
16883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16884 (exit $ac_status); }; } &&
16885 { ac_try='test -s conftest.$ac_objext'
16886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16887 (eval $ac_try) 2>&5
16888 ac_status=$?
16889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16890 (exit $ac_status); }; }; then
16891 ac_lo=0 ac_mid=0
16892 while :; do
16893 cat >conftest.$ac_ext <<_ACEOF
16894 /* confdefs.h. */
16895 _ACEOF
16896 cat confdefs.h >>conftest.$ac_ext
16897 cat >>conftest.$ac_ext <<_ACEOF
16898 /* end confdefs.h. */
16899 $ac_includes_default
16901 main ()
16903 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16904 test_array [0] = 0
16907 return 0;
16909 _ACEOF
16910 rm -f conftest.$ac_objext
16911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16912 (eval $ac_compile) 2>conftest.er1
16913 ac_status=$?
16914 grep -v '^ *+' conftest.er1 >conftest.err
16915 rm -f conftest.er1
16916 cat conftest.err >&5
16917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16918 (exit $ac_status); } &&
16919 { ac_try='test -z "$ac_c_werror_flag"
16920 || test ! -s conftest.err'
16921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16922 (eval $ac_try) 2>&5
16923 ac_status=$?
16924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16925 (exit $ac_status); }; } &&
16926 { ac_try='test -s conftest.$ac_objext'
16927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16928 (eval $ac_try) 2>&5
16929 ac_status=$?
16930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16931 (exit $ac_status); }; }; then
16932 ac_hi=$ac_mid; break
16933 else
16934 echo "$as_me: failed program was:" >&5
16935 sed 's/^/| /' conftest.$ac_ext >&5
16937 ac_lo=`expr $ac_mid + 1`
16938 if test $ac_lo -le $ac_mid; then
16939 ac_lo= ac_hi=
16940 break
16942 ac_mid=`expr 2 '*' $ac_mid + 1`
16944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16945 done
16946 else
16947 echo "$as_me: failed program was:" >&5
16948 sed 's/^/| /' conftest.$ac_ext >&5
16950 cat >conftest.$ac_ext <<_ACEOF
16951 /* confdefs.h. */
16952 _ACEOF
16953 cat confdefs.h >>conftest.$ac_ext
16954 cat >>conftest.$ac_ext <<_ACEOF
16955 /* end confdefs.h. */
16956 $ac_includes_default
16958 main ()
16960 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
16961 test_array [0] = 0
16964 return 0;
16966 _ACEOF
16967 rm -f conftest.$ac_objext
16968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16969 (eval $ac_compile) 2>conftest.er1
16970 ac_status=$?
16971 grep -v '^ *+' conftest.er1 >conftest.err
16972 rm -f conftest.er1
16973 cat conftest.err >&5
16974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16975 (exit $ac_status); } &&
16976 { ac_try='test -z "$ac_c_werror_flag"
16977 || test ! -s conftest.err'
16978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16979 (eval $ac_try) 2>&5
16980 ac_status=$?
16981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16982 (exit $ac_status); }; } &&
16983 { ac_try='test -s conftest.$ac_objext'
16984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16985 (eval $ac_try) 2>&5
16986 ac_status=$?
16987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16988 (exit $ac_status); }; }; then
16989 ac_hi=-1 ac_mid=-1
16990 while :; do
16991 cat >conftest.$ac_ext <<_ACEOF
16992 /* confdefs.h. */
16993 _ACEOF
16994 cat confdefs.h >>conftest.$ac_ext
16995 cat >>conftest.$ac_ext <<_ACEOF
16996 /* end confdefs.h. */
16997 $ac_includes_default
16999 main ()
17001 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
17002 test_array [0] = 0
17005 return 0;
17007 _ACEOF
17008 rm -f conftest.$ac_objext
17009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17010 (eval $ac_compile) 2>conftest.er1
17011 ac_status=$?
17012 grep -v '^ *+' conftest.er1 >conftest.err
17013 rm -f conftest.er1
17014 cat conftest.err >&5
17015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17016 (exit $ac_status); } &&
17017 { ac_try='test -z "$ac_c_werror_flag"
17018 || test ! -s conftest.err'
17019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17020 (eval $ac_try) 2>&5
17021 ac_status=$?
17022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17023 (exit $ac_status); }; } &&
17024 { ac_try='test -s conftest.$ac_objext'
17025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17026 (eval $ac_try) 2>&5
17027 ac_status=$?
17028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17029 (exit $ac_status); }; }; then
17030 ac_lo=$ac_mid; break
17031 else
17032 echo "$as_me: failed program was:" >&5
17033 sed 's/^/| /' conftest.$ac_ext >&5
17035 ac_hi=`expr '(' $ac_mid ')' - 1`
17036 if test $ac_mid -le $ac_hi; then
17037 ac_lo= ac_hi=
17038 break
17040 ac_mid=`expr 2 '*' $ac_mid`
17042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17043 done
17044 else
17045 echo "$as_me: failed program was:" >&5
17046 sed 's/^/| /' conftest.$ac_ext >&5
17048 ac_lo= ac_hi=
17050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17053 # Binary search between lo and hi bounds.
17054 while test "x$ac_lo" != "x$ac_hi"; do
17055 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17056 cat >conftest.$ac_ext <<_ACEOF
17057 /* confdefs.h. */
17058 _ACEOF
17059 cat confdefs.h >>conftest.$ac_ext
17060 cat >>conftest.$ac_ext <<_ACEOF
17061 /* end confdefs.h. */
17062 $ac_includes_default
17064 main ()
17066 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
17067 test_array [0] = 0
17070 return 0;
17072 _ACEOF
17073 rm -f conftest.$ac_objext
17074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17075 (eval $ac_compile) 2>conftest.er1
17076 ac_status=$?
17077 grep -v '^ *+' conftest.er1 >conftest.err
17078 rm -f conftest.er1
17079 cat conftest.err >&5
17080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17081 (exit $ac_status); } &&
17082 { ac_try='test -z "$ac_c_werror_flag"
17083 || test ! -s conftest.err'
17084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17085 (eval $ac_try) 2>&5
17086 ac_status=$?
17087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17088 (exit $ac_status); }; } &&
17089 { ac_try='test -s conftest.$ac_objext'
17090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17091 (eval $ac_try) 2>&5
17092 ac_status=$?
17093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17094 (exit $ac_status); }; }; then
17095 ac_hi=$ac_mid
17096 else
17097 echo "$as_me: failed program was:" >&5
17098 sed 's/^/| /' conftest.$ac_ext >&5
17100 ac_lo=`expr '(' $ac_mid ')' + 1`
17102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17103 done
17104 case $ac_lo in
17105 ?*) ac_cv_sizeof_char=$ac_lo;;
17106 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17107 echo "$as_me: error: in \`$ac_pwd':" >&2;}
17108 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
17109 See \`config.log' for more details." >&5
17110 echo "$as_me: error: cannot compute sizeof (char), 77
17111 See \`config.log' for more details." >&2;}
17112 { (exit 1); exit 1; }; }; } ;;
17113 esac
17114 else
17115 if test "$cross_compiling" = yes; then
17116 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17117 echo "$as_me: error: in \`$ac_pwd':" >&2;}
17118 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17119 See \`config.log' for more details." >&5
17120 echo "$as_me: error: cannot run test program while cross compiling
17121 See \`config.log' for more details." >&2;}
17122 { (exit 1); exit 1; }; }; }
17123 else
17124 cat >conftest.$ac_ext <<_ACEOF
17125 /* confdefs.h. */
17126 _ACEOF
17127 cat confdefs.h >>conftest.$ac_ext
17128 cat >>conftest.$ac_ext <<_ACEOF
17129 /* end confdefs.h. */
17130 $ac_includes_default
17131 long longval () { return (long) (sizeof (char)); }
17132 unsigned long ulongval () { return (long) (sizeof (char)); }
17133 #include <stdio.h>
17134 #include <stdlib.h>
17136 main ()
17139 FILE *f = fopen ("conftest.val", "w");
17140 if (! f)
17141 exit (1);
17142 if (((long) (sizeof (char))) < 0)
17144 long i = longval ();
17145 if (i != ((long) (sizeof (char))))
17146 exit (1);
17147 fprintf (f, "%ld\n", i);
17149 else
17151 unsigned long i = ulongval ();
17152 if (i != ((long) (sizeof (char))))
17153 exit (1);
17154 fprintf (f, "%lu\n", i);
17156 exit (ferror (f) || fclose (f) != 0);
17159 return 0;
17161 _ACEOF
17162 rm -f conftest$ac_exeext
17163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17164 (eval $ac_link) 2>&5
17165 ac_status=$?
17166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17167 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
17173 ac_cv_sizeof_char=`cat conftest.val`
17174 else
17175 echo "$as_me: program exited with status $ac_status" >&5
17176 echo "$as_me: failed program was:" >&5
17177 sed 's/^/| /' conftest.$ac_ext >&5
17179 ( exit $ac_status )
17180 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17181 echo "$as_me: error: in \`$ac_pwd':" >&2;}
17182 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
17183 See \`config.log' for more details." >&5
17184 echo "$as_me: error: cannot compute sizeof (char), 77
17185 See \`config.log' for more details." >&2;}
17186 { (exit 1); exit 1; }; }; }
17188 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17191 rm -f conftest.val
17192 else
17193 ac_cv_sizeof_char=0
17196 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
17197 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
17198 cat >>confdefs.h <<_ACEOF
17199 #define SIZEOF_CHAR $ac_cv_sizeof_char
17200 _ACEOF
17204 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
17205 echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
17206 case "$ac_cv_sizeof_char" in
17207 1) acx_cv_type_int8_t=char ;;
17208 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
17209 echo "$as_me: error: no 8-bit type" >&2;}
17210 { (exit please report a bug); exit please report a bug; }; }
17211 esac
17212 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
17213 echo "${ECHO_T}$acx_cv_type_int8_t" >&6
17215 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
17216 echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
17217 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
17218 2:*) acx_cv_type_int16_t=int ;;
17219 *:2) acx_cv_type_int16_t=short ;;
17220 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
17221 echo "$as_me: error: no 16-bit type" >&2;}
17222 { (exit please report a bug); exit please report a bug; }; }
17223 esac
17224 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
17225 echo "${ECHO_T}$acx_cv_type_int16_t" >&6
17227 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
17228 echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
17229 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
17230 4:*) acx_cv_type_int32_t=int ;;
17231 *:4) acx_cv_type_int32_t=long ;;
17232 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
17233 echo "$as_me: error: no 32-bit type" >&2;}
17234 { (exit please report a bug); exit please report a bug; }; }
17235 esac
17236 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
17237 echo "${ECHO_T}$acx_cv_type_int32_t" >&6
17240 # These tests are here to make the output prettier
17242 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
17243 case "$ac_cv_sizeof_long" in
17244 8) acx_cv_type_int64_t=long ;;
17245 esac
17246 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
17247 echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
17248 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
17249 echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
17252 # Now we can use the above types
17254 if test "$ac_cv_type_uintptr_t" != yes; then
17255 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
17256 echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
17257 case $ac_cv_sizeof_void_p in
17258 2) acx_cv_type_intptr_t=int16_t ;;
17259 4) acx_cv_type_intptr_t=int32_t ;;
17260 8) acx_cv_type_intptr_t=int64_t ;;
17261 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
17262 echo "$as_me: error: no equivalent for intptr_t" >&2;}
17263 { (exit please report a bug); exit please report a bug; }; }
17264 esac
17265 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
17266 echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
17269 # ----------------- done all checks, emit header -------------
17270 ac_config_commands="$ac_config_commands gstdint.h"
17275 # Check to see if -pthread or -lpthread is needed. Prefer the former.
17276 # In case the pthread.h system header is not found, this test will fail.
17277 XPCFLAGS=""
17278 CFLAGS="$CFLAGS -pthread"
17279 cat >conftest.$ac_ext <<_ACEOF
17280 /* confdefs.h. */
17281 _ACEOF
17282 cat confdefs.h >>conftest.$ac_ext
17283 cat >>conftest.$ac_ext <<_ACEOF
17284 /* end confdefs.h. */
17285 #include <pthread.h>
17286 void *g(void *d) { return NULL; }
17288 main ()
17290 pthread_t t; pthread_create(&t,NULL,g,NULL);
17292 return 0;
17294 _ACEOF
17295 rm -f conftest.$ac_objext conftest$ac_exeext
17296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17297 (eval $ac_link) 2>conftest.er1
17298 ac_status=$?
17299 grep -v '^ *+' conftest.er1 >conftest.err
17300 rm -f conftest.er1
17301 cat conftest.err >&5
17302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17303 (exit $ac_status); } &&
17304 { ac_try='test -z "$ac_c_werror_flag"
17305 || test ! -s conftest.err'
17306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17307 (eval $ac_try) 2>&5
17308 ac_status=$?
17309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17310 (exit $ac_status); }; } &&
17311 { ac_try='test -s conftest$ac_exeext'
17312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17313 (eval $ac_try) 2>&5
17314 ac_status=$?
17315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17316 (exit $ac_status); }; }; then
17317 XPCFLAGS=" -Wc,-pthread"
17318 else
17319 echo "$as_me: failed program was:" >&5
17320 sed 's/^/| /' conftest.$ac_ext >&5
17322 CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
17323 cat >conftest.$ac_ext <<_ACEOF
17324 /* confdefs.h. */
17325 _ACEOF
17326 cat confdefs.h >>conftest.$ac_ext
17327 cat >>conftest.$ac_ext <<_ACEOF
17328 /* end confdefs.h. */
17329 #include <pthread.h>
17330 void *g(void *d) { return NULL; }
17332 main ()
17334 pthread_t t; pthread_create(&t,NULL,g,NULL);
17336 return 0;
17338 _ACEOF
17339 rm -f conftest.$ac_objext conftest$ac_exeext
17340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17341 (eval $ac_link) 2>conftest.er1
17342 ac_status=$?
17343 grep -v '^ *+' conftest.er1 >conftest.err
17344 rm -f conftest.er1
17345 cat conftest.err >&5
17346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17347 (exit $ac_status); } &&
17348 { ac_try='test -z "$ac_c_werror_flag"
17349 || test ! -s conftest.err'
17350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17351 (eval $ac_try) 2>&5
17352 ac_status=$?
17353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17354 (exit $ac_status); }; } &&
17355 { ac_try='test -s conftest$ac_exeext'
17356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17357 (eval $ac_try) 2>&5
17358 ac_status=$?
17359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17360 (exit $ac_status); }; }; then
17362 else
17363 echo "$as_me: failed program was:" >&5
17364 sed 's/^/| /' conftest.$ac_ext >&5
17366 { { echo "$as_me:$LINENO: error: Pthreads are required to build libgomp" >&5
17367 echo "$as_me: error: Pthreads are required to build libgomp" >&2;}
17368 { (exit 1); exit 1; }; }
17370 rm -f conftest.err conftest.$ac_objext \
17371 conftest$ac_exeext conftest.$ac_ext
17373 rm -f conftest.err conftest.$ac_objext \
17374 conftest$ac_exeext conftest.$ac_ext
17376 # Check for functions needed.
17380 for ac_func in getloadavg clock_gettime strtoull
17382 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17383 echo "$as_me:$LINENO: checking for $ac_func" >&5
17384 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17385 if eval "test \"\${$as_ac_var+set}\" = set"; then
17386 echo $ECHO_N "(cached) $ECHO_C" >&6
17387 else
17388 cat >conftest.$ac_ext <<_ACEOF
17389 /* confdefs.h. */
17390 _ACEOF
17391 cat confdefs.h >>conftest.$ac_ext
17392 cat >>conftest.$ac_ext <<_ACEOF
17393 /* end confdefs.h. */
17394 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17395 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17396 #define $ac_func innocuous_$ac_func
17398 /* System header to define __stub macros and hopefully few prototypes,
17399 which can conflict with char $ac_func (); below.
17400 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17401 <limits.h> exists even on freestanding compilers. */
17403 #ifdef __STDC__
17404 # include <limits.h>
17405 #else
17406 # include <assert.h>
17407 #endif
17409 #undef $ac_func
17411 /* Override any gcc2 internal prototype to avoid an error. */
17412 #ifdef __cplusplus
17413 extern "C"
17415 #endif
17416 /* We use char because int might match the return type of a gcc2
17417 builtin and then its argument prototype would still apply. */
17418 char $ac_func ();
17419 /* The GNU C library defines this for functions which it implements
17420 to always fail with ENOSYS. Some functions are actually named
17421 something starting with __ and the normal name is an alias. */
17422 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17423 choke me
17424 #else
17425 char (*f) () = $ac_func;
17426 #endif
17427 #ifdef __cplusplus
17429 #endif
17432 main ()
17434 return f != $ac_func;
17436 return 0;
17438 _ACEOF
17439 rm -f conftest.$ac_objext conftest$ac_exeext
17440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17441 (eval $ac_link) 2>conftest.er1
17442 ac_status=$?
17443 grep -v '^ *+' conftest.er1 >conftest.err
17444 rm -f conftest.er1
17445 cat conftest.err >&5
17446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17447 (exit $ac_status); } &&
17448 { ac_try='test -z "$ac_c_werror_flag"
17449 || test ! -s conftest.err'
17450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17451 (eval $ac_try) 2>&5
17452 ac_status=$?
17453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17454 (exit $ac_status); }; } &&
17455 { ac_try='test -s conftest$ac_exeext'
17456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17457 (eval $ac_try) 2>&5
17458 ac_status=$?
17459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17460 (exit $ac_status); }; }; then
17461 eval "$as_ac_var=yes"
17462 else
17463 echo "$as_me: failed program was:" >&5
17464 sed 's/^/| /' conftest.$ac_ext >&5
17466 eval "$as_ac_var=no"
17468 rm -f conftest.err conftest.$ac_objext \
17469 conftest$ac_exeext conftest.$ac_ext
17471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17472 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17473 if test `eval echo '${'$as_ac_var'}'` = yes; then
17474 cat >>confdefs.h <<_ACEOF
17475 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17476 _ACEOF
17479 done
17482 # Check for broken semaphore implementation on darwin.
17483 # sem_init returns: sem_init error: Function not implemented.
17484 case "$host" in
17485 *-darwin*)
17487 cat >>confdefs.h <<\_ACEOF
17488 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
17489 _ACEOF
17492 esac
17494 # Check whether --enable-linux-futex or --disable-linux-futex was given.
17495 if test "${enable_linux_futex+set}" = set; then
17496 enableval="$enable_linux_futex"
17498 case "$enableval" in
17499 yes|no|default) ;;
17500 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable linux-futex" >&5
17501 echo "$as_me: error: Unknown argument to enable/disable linux-futex" >&2;}
17502 { (exit 1); exit 1; }; } ;;
17503 esac
17505 else
17506 enable_linux_futex=default
17509 case "$target" in
17510 *-linux*)
17511 case "$enable_linux_futex" in
17512 default)
17513 # If headers don't have gettid/futex syscalls definition, then
17514 # default to no, otherwise there will be compile time failures.
17515 # Otherwise, default to yes. If we don't detect we are
17516 # compiled/linked against NPTL and not cross-compiling, check
17517 # if programs are run by default against NPTL and if not, issue
17518 # a warning.
17519 enable_linux_futex=no
17520 cat >conftest.$ac_ext <<_ACEOF
17521 /* confdefs.h. */
17522 _ACEOF
17523 cat confdefs.h >>conftest.$ac_ext
17524 cat >>conftest.$ac_ext <<_ACEOF
17525 /* end confdefs.h. */
17526 #include <sys/syscall.h>
17527 int lk;
17529 main ()
17531 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
17533 return 0;
17535 _ACEOF
17536 rm -f conftest.$ac_objext conftest$ac_exeext
17537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17538 (eval $ac_link) 2>conftest.er1
17539 ac_status=$?
17540 grep -v '^ *+' conftest.er1 >conftest.err
17541 rm -f conftest.er1
17542 cat conftest.err >&5
17543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17544 (exit $ac_status); } &&
17545 { ac_try='test -z "$ac_c_werror_flag"
17546 || test ! -s conftest.err'
17547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17548 (eval $ac_try) 2>&5
17549 ac_status=$?
17550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17551 (exit $ac_status); }; } &&
17552 { ac_try='test -s conftest$ac_exeext'
17553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17554 (eval $ac_try) 2>&5
17555 ac_status=$?
17556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17557 (exit $ac_status); }; }; then
17558 save_LIBS="$LIBS"
17559 LIBS="-lpthread $LIBS"
17560 cat >conftest.$ac_ext <<_ACEOF
17561 /* confdefs.h. */
17562 _ACEOF
17563 cat confdefs.h >>conftest.$ac_ext
17564 cat >>conftest.$ac_ext <<_ACEOF
17565 /* end confdefs.h. */
17566 #ifndef _GNU_SOURCE
17567 #define _GNU_SOURCE 1
17568 #endif
17569 #include <pthread.h>
17570 pthread_t th; void *status;
17572 main ()
17574 pthread_tryjoin_np (th, &status);
17576 return 0;
17578 _ACEOF
17579 rm -f conftest.$ac_objext conftest$ac_exeext
17580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17581 (eval $ac_link) 2>conftest.er1
17582 ac_status=$?
17583 grep -v '^ *+' conftest.er1 >conftest.err
17584 rm -f conftest.er1
17585 cat conftest.err >&5
17586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17587 (exit $ac_status); } &&
17588 { ac_try='test -z "$ac_c_werror_flag"
17589 || test ! -s conftest.err'
17590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17591 (eval $ac_try) 2>&5
17592 ac_status=$?
17593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17594 (exit $ac_status); }; } &&
17595 { ac_try='test -s conftest$ac_exeext'
17596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17597 (eval $ac_try) 2>&5
17598 ac_status=$?
17599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17600 (exit $ac_status); }; }; then
17601 enable_linux_futex=yes
17602 else
17603 echo "$as_me: failed program was:" >&5
17604 sed 's/^/| /' conftest.$ac_ext >&5
17606 if test x$cross_compiling = xno; then
17607 if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
17608 | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else
17609 { echo "$as_me:$LINENO: WARNING: The kernel might not support futex or gettid syscalls.
17610 If so, please configure with --disable-linux-futex" >&5
17611 echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
17612 If so, please configure with --disable-linux-futex" >&2;}
17615 enable_linux_futex=yes
17617 rm -f conftest.err conftest.$ac_objext \
17618 conftest$ac_exeext conftest.$ac_ext
17619 LIBS="$save_LIBS"
17620 else
17621 echo "$as_me: failed program was:" >&5
17622 sed 's/^/| /' conftest.$ac_ext >&5
17625 rm -f conftest.err conftest.$ac_objext \
17626 conftest$ac_exeext conftest.$ac_ext
17628 yes)
17629 cat >conftest.$ac_ext <<_ACEOF
17630 /* confdefs.h. */
17631 _ACEOF
17632 cat confdefs.h >>conftest.$ac_ext
17633 cat >>conftest.$ac_ext <<_ACEOF
17634 /* end confdefs.h. */
17635 #include <sys/syscall.h>
17636 int lk;
17638 main ()
17640 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
17642 return 0;
17644 _ACEOF
17645 rm -f conftest.$ac_objext conftest$ac_exeext
17646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17647 (eval $ac_link) 2>conftest.er1
17648 ac_status=$?
17649 grep -v '^ *+' conftest.er1 >conftest.err
17650 rm -f conftest.er1
17651 cat conftest.err >&5
17652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17653 (exit $ac_status); } &&
17654 { ac_try='test -z "$ac_c_werror_flag"
17655 || test ! -s conftest.err'
17656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17657 (eval $ac_try) 2>&5
17658 ac_status=$?
17659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17660 (exit $ac_status); }; } &&
17661 { ac_try='test -s conftest$ac_exeext'
17662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17663 (eval $ac_try) 2>&5
17664 ac_status=$?
17665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17666 (exit $ac_status); }; }; then
17668 else
17669 echo "$as_me: failed program was:" >&5
17670 sed 's/^/| /' conftest.$ac_ext >&5
17672 { { echo "$as_me:$LINENO: error: SYS_gettid and SYS_futex required for --enable-linux-futex" >&5
17673 echo "$as_me: error: SYS_gettid and SYS_futex required for --enable-linux-futex" >&2;}
17674 { (exit 1); exit 1; }; }
17676 rm -f conftest.err conftest.$ac_objext \
17677 conftest$ac_exeext conftest.$ac_ext
17679 esac
17682 enable_linux_futex=no
17684 esac
17685 if test x$enable_linux_futex = xyes; then
17690 # Check for pthread_{,attr_}[sg]etaffinity_np.
17691 cat >conftest.$ac_ext <<_ACEOF
17692 /* confdefs.h. */
17693 _ACEOF
17694 cat confdefs.h >>conftest.$ac_ext
17695 cat >>conftest.$ac_ext <<_ACEOF
17696 /* end confdefs.h. */
17697 #define _GNU_SOURCE
17698 #include <pthread.h>
17700 main ()
17702 cpu_set_t cpuset;
17703 pthread_attr_t attr;
17704 pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
17705 if (CPU_ISSET (0, &cpuset))
17706 CPU_SET (1, &cpuset);
17707 else
17708 CPU_ZERO (&cpuset);
17709 pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
17710 pthread_attr_init (&attr);
17711 pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
17712 pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
17714 return 0;
17716 _ACEOF
17717 rm -f conftest.$ac_objext conftest$ac_exeext
17718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17719 (eval $ac_link) 2>conftest.er1
17720 ac_status=$?
17721 grep -v '^ *+' conftest.er1 >conftest.err
17722 rm -f conftest.er1
17723 cat conftest.err >&5
17724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17725 (exit $ac_status); } &&
17726 { ac_try='test -z "$ac_c_werror_flag"
17727 || test ! -s conftest.err'
17728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17729 (eval $ac_try) 2>&5
17730 ac_status=$?
17731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17732 (exit $ac_status); }; } &&
17733 { ac_try='test -s conftest$ac_exeext'
17734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17735 (eval $ac_try) 2>&5
17736 ac_status=$?
17737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17738 (exit $ac_status); }; }; then
17740 cat >>confdefs.h <<\_ACEOF
17741 #define HAVE_PTHREAD_AFFINITY_NP 1
17742 _ACEOF
17744 else
17745 echo "$as_me: failed program was:" >&5
17746 sed 's/^/| /' conftest.$ac_ext >&5
17749 rm -f conftest.err conftest.$ac_objext \
17750 conftest$ac_exeext conftest.$ac_ext
17752 # At least for glibc, clock_gettime is in librt. But don't pull that
17753 # in if it still doesn't give us the function we want.
17754 if test $ac_cv_func_clock_gettime = no; then
17755 echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
17756 echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
17757 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
17758 echo $ECHO_N "(cached) $ECHO_C" >&6
17759 else
17760 ac_check_lib_save_LIBS=$LIBS
17761 LIBS="-lrt $LIBS"
17762 cat >conftest.$ac_ext <<_ACEOF
17763 /* confdefs.h. */
17764 _ACEOF
17765 cat confdefs.h >>conftest.$ac_ext
17766 cat >>conftest.$ac_ext <<_ACEOF
17767 /* end confdefs.h. */
17769 /* Override any gcc2 internal prototype to avoid an error. */
17770 #ifdef __cplusplus
17771 extern "C"
17772 #endif
17773 /* We use char because int might match the return type of a gcc2
17774 builtin and then its argument prototype would still apply. */
17775 char clock_gettime ();
17777 main ()
17779 clock_gettime ();
17781 return 0;
17783 _ACEOF
17784 rm -f conftest.$ac_objext conftest$ac_exeext
17785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17786 (eval $ac_link) 2>conftest.er1
17787 ac_status=$?
17788 grep -v '^ *+' conftest.er1 >conftest.err
17789 rm -f conftest.er1
17790 cat conftest.err >&5
17791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17792 (exit $ac_status); } &&
17793 { ac_try='test -z "$ac_c_werror_flag"
17794 || test ! -s conftest.err'
17795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17796 (eval $ac_try) 2>&5
17797 ac_status=$?
17798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17799 (exit $ac_status); }; } &&
17800 { ac_try='test -s conftest$ac_exeext'
17801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17802 (eval $ac_try) 2>&5
17803 ac_status=$?
17804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17805 (exit $ac_status); }; }; then
17806 ac_cv_lib_rt_clock_gettime=yes
17807 else
17808 echo "$as_me: failed program was:" >&5
17809 sed 's/^/| /' conftest.$ac_ext >&5
17811 ac_cv_lib_rt_clock_gettime=no
17813 rm -f conftest.err conftest.$ac_objext \
17814 conftest$ac_exeext conftest.$ac_ext
17815 LIBS=$ac_check_lib_save_LIBS
17817 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
17818 echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
17819 if test $ac_cv_lib_rt_clock_gettime = yes; then
17820 LIBS="-lrt $LIBS"
17822 cat >>confdefs.h <<\_ACEOF
17823 #define HAVE_CLOCK_GETTIME 1
17824 _ACEOF
17830 # See if we support thread-local storage.
17832 # Check whether --enable-tls or --disable-tls was given.
17833 if test "${enable_tls+set}" = set; then
17834 enableval="$enable_tls"
17836 case "$enableval" in
17837 yes|no) ;;
17838 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
17839 echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
17840 { (exit 1); exit 1; }; } ;;
17841 esac
17843 else
17844 enable_tls=yes
17847 echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
17848 echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
17849 if test "${gcc_cv_have_tls+set}" = set; then
17850 echo $ECHO_N "(cached) $ECHO_C" >&6
17851 else
17853 if test "$cross_compiling" = yes; then
17854 cat >conftest.$ac_ext <<_ACEOF
17855 __thread int a; int b; int main() { return a = b; }
17856 _ACEOF
17857 rm -f conftest.$ac_objext conftest$ac_exeext
17858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17859 (eval $ac_link) 2>conftest.er1
17860 ac_status=$?
17861 grep -v '^ *+' conftest.er1 >conftest.err
17862 rm -f conftest.er1
17863 cat conftest.err >&5
17864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17865 (exit $ac_status); } &&
17866 { ac_try='test -z "$ac_c_werror_flag"
17867 || test ! -s conftest.err'
17868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17869 (eval $ac_try) 2>&5
17870 ac_status=$?
17871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17872 (exit $ac_status); }; } &&
17873 { ac_try='test -s conftest$ac_exeext'
17874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17875 (eval $ac_try) 2>&5
17876 ac_status=$?
17877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17878 (exit $ac_status); }; }; then
17879 gcc_cv_have_tls=yes
17880 else
17881 echo "$as_me: failed program was:" >&5
17882 sed 's/^/| /' conftest.$ac_ext >&5
17884 gcc_cv_have_tls=no
17886 rm -f conftest.err conftest.$ac_objext \
17887 conftest$ac_exeext conftest.$ac_ext
17890 else
17891 cat >conftest.$ac_ext <<_ACEOF
17892 __thread int a; int b; int main() { return a = b; }
17893 _ACEOF
17894 rm -f conftest$ac_exeext
17895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17896 (eval $ac_link) 2>&5
17897 ac_status=$?
17898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17899 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17901 (eval $ac_try) 2>&5
17902 ac_status=$?
17903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17904 (exit $ac_status); }; }; then
17905 chktls_save_LDFLAGS="$LDFLAGS"
17906 LDFLAGS="-static $LDFLAGS"
17907 cat >conftest.$ac_ext <<_ACEOF
17908 int main() { return 0; }
17909 _ACEOF
17910 rm -f conftest.$ac_objext conftest$ac_exeext
17911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17912 (eval $ac_link) 2>conftest.er1
17913 ac_status=$?
17914 grep -v '^ *+' conftest.er1 >conftest.err
17915 rm -f conftest.er1
17916 cat conftest.err >&5
17917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17918 (exit $ac_status); } &&
17919 { ac_try='test -z "$ac_c_werror_flag"
17920 || test ! -s conftest.err'
17921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17922 (eval $ac_try) 2>&5
17923 ac_status=$?
17924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925 (exit $ac_status); }; } &&
17926 { ac_try='test -s conftest$ac_exeext'
17927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17928 (eval $ac_try) 2>&5
17929 ac_status=$?
17930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17931 (exit $ac_status); }; }; then
17932 if test "$cross_compiling" = yes; then
17933 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17934 echo "$as_me: error: in \`$ac_pwd':" >&2;}
17935 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17936 See \`config.log' for more details." >&5
17937 echo "$as_me: error: cannot run test program while cross compiling
17938 See \`config.log' for more details." >&2;}
17939 { (exit 1); exit 1; }; }; }
17940 else
17941 cat >conftest.$ac_ext <<_ACEOF
17942 __thread int a; int b; int main() { return a = b; }
17943 _ACEOF
17944 rm -f conftest$ac_exeext
17945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17946 (eval $ac_link) 2>&5
17947 ac_status=$?
17948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17949 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17951 (eval $ac_try) 2>&5
17952 ac_status=$?
17953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17954 (exit $ac_status); }; }; then
17955 gcc_cv_have_tls=yes
17956 else
17957 echo "$as_me: program exited with status $ac_status" >&5
17958 echo "$as_me: failed program was:" >&5
17959 sed 's/^/| /' conftest.$ac_ext >&5
17961 ( exit $ac_status )
17962 gcc_cv_have_tls=no
17964 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17966 else
17967 echo "$as_me: failed program was:" >&5
17968 sed 's/^/| /' conftest.$ac_ext >&5
17970 gcc_cv_have_tls=yes
17972 rm -f conftest.err conftest.$ac_objext \
17973 conftest$ac_exeext conftest.$ac_ext
17974 LDFLAGS="$chktls_save_LDFLAGS"
17975 if test $gcc_cv_have_tls = yes; then
17976 chktls_save_CFLAGS="$CFLAGS"
17977 thread_CFLAGS=failed
17978 for flag in '' '-pthread' '-lpthread'; do
17979 CFLAGS="$flag $chktls_save_CFLAGS"
17980 cat >conftest.$ac_ext <<_ACEOF
17981 /* confdefs.h. */
17982 _ACEOF
17983 cat confdefs.h >>conftest.$ac_ext
17984 cat >>conftest.$ac_ext <<_ACEOF
17985 /* end confdefs.h. */
17986 #include <pthread.h>
17987 void *g(void *d) { return NULL; }
17989 main ()
17991 pthread_t t; pthread_create(&t,NULL,g,NULL);
17993 return 0;
17995 _ACEOF
17996 rm -f conftest.$ac_objext conftest$ac_exeext
17997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17998 (eval $ac_link) 2>conftest.er1
17999 ac_status=$?
18000 grep -v '^ *+' conftest.er1 >conftest.err
18001 rm -f conftest.er1
18002 cat conftest.err >&5
18003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18004 (exit $ac_status); } &&
18005 { ac_try='test -z "$ac_c_werror_flag"
18006 || test ! -s conftest.err'
18007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18008 (eval $ac_try) 2>&5
18009 ac_status=$?
18010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18011 (exit $ac_status); }; } &&
18012 { ac_try='test -s conftest$ac_exeext'
18013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18014 (eval $ac_try) 2>&5
18015 ac_status=$?
18016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18017 (exit $ac_status); }; }; then
18018 thread_CFLAGS="$flag"
18019 else
18020 echo "$as_me: failed program was:" >&5
18021 sed 's/^/| /' conftest.$ac_ext >&5
18024 rm -f conftest.err conftest.$ac_objext \
18025 conftest$ac_exeext conftest.$ac_ext
18026 if test "X$thread_CFLAGS" != Xfailed; then
18027 break
18029 done
18030 CFLAGS="$chktls_save_CFLAGS"
18031 if test "X$thread_CFLAGS" != Xfailed; then
18032 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
18033 if test "$cross_compiling" = yes; then
18034 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18035 echo "$as_me: error: in \`$ac_pwd':" >&2;}
18036 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18037 See \`config.log' for more details." >&5
18038 echo "$as_me: error: cannot run test program while cross compiling
18039 See \`config.log' for more details." >&2;}
18040 { (exit 1); exit 1; }; }; }
18041 else
18042 cat >conftest.$ac_ext <<_ACEOF
18043 /* confdefs.h. */
18044 _ACEOF
18045 cat confdefs.h >>conftest.$ac_ext
18046 cat >>conftest.$ac_ext <<_ACEOF
18047 /* end confdefs.h. */
18048 #include <pthread.h>
18049 __thread int a;
18050 static int *a_in_other_thread;
18051 static void *
18052 thread_func (void *arg)
18054 a_in_other_thread = &a;
18055 return (void *)0;
18058 main ()
18060 pthread_t thread;
18061 void *thread_retval;
18062 int *a_in_main_thread;
18063 if (pthread_create (&thread, (pthread_attr_t *)0,
18064 thread_func, (void *)0))
18065 return 0;
18066 a_in_main_thread = &a;
18067 if (pthread_join (thread, &thread_retval))
18068 return 0;
18069 return (a_in_other_thread == a_in_main_thread);
18071 return 0;
18073 _ACEOF
18074 rm -f conftest$ac_exeext
18075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18076 (eval $ac_link) 2>&5
18077 ac_status=$?
18078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18079 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18081 (eval $ac_try) 2>&5
18082 ac_status=$?
18083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18084 (exit $ac_status); }; }; then
18085 gcc_cv_have_tls=yes
18086 else
18087 echo "$as_me: program exited with status $ac_status" >&5
18088 echo "$as_me: failed program was:" >&5
18089 sed 's/^/| /' conftest.$ac_ext >&5
18091 ( exit $ac_status )
18092 gcc_cv_have_tls=no
18094 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18096 CFLAGS="$chktls_save_CFLAGS"
18099 else
18100 echo "$as_me: program exited with status $ac_status" >&5
18101 echo "$as_me: failed program was:" >&5
18102 sed 's/^/| /' conftest.$ac_ext >&5
18104 ( exit $ac_status )
18105 gcc_cv_have_tls=no
18107 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18110 echo "$as_me:$LINENO: result: $gcc_cv_have_tls" >&5
18111 echo "${ECHO_T}$gcc_cv_have_tls" >&6
18112 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
18114 cat >>confdefs.h <<\_ACEOF
18115 #define HAVE_TLS 1
18116 _ACEOF
18120 # See what sort of export controls are availible.
18122 echo "$as_me:$LINENO: checking whether the target supports hidden visibility" >&5
18123 echo $ECHO_N "checking whether the target supports hidden visibility... $ECHO_C" >&6
18124 if test "${libgomp_cv_have_attribute_visibility+set}" = set; then
18125 echo $ECHO_N "(cached) $ECHO_C" >&6
18126 else
18128 save_CFLAGS="$CFLAGS"
18129 CFLAGS="$CFLAGS -Werror"
18130 cat >conftest.$ac_ext <<_ACEOF
18131 /* confdefs.h. */
18132 _ACEOF
18133 cat confdefs.h >>conftest.$ac_ext
18134 cat >>conftest.$ac_ext <<_ACEOF
18135 /* end confdefs.h. */
18136 void __attribute__((visibility("hidden"))) foo(void) { }
18138 main ()
18142 return 0;
18144 _ACEOF
18145 rm -f conftest.$ac_objext
18146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18147 (eval $ac_compile) 2>conftest.er1
18148 ac_status=$?
18149 grep -v '^ *+' conftest.er1 >conftest.err
18150 rm -f conftest.er1
18151 cat conftest.err >&5
18152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18153 (exit $ac_status); } &&
18154 { ac_try='test -z "$ac_c_werror_flag"
18155 || test ! -s conftest.err'
18156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18157 (eval $ac_try) 2>&5
18158 ac_status=$?
18159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18160 (exit $ac_status); }; } &&
18161 { ac_try='test -s conftest.$ac_objext'
18162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18163 (eval $ac_try) 2>&5
18164 ac_status=$?
18165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18166 (exit $ac_status); }; }; then
18167 libgomp_cv_have_attribute_visibility=yes
18168 else
18169 echo "$as_me: failed program was:" >&5
18170 sed 's/^/| /' conftest.$ac_ext >&5
18172 libgomp_cv_have_attribute_visibility=no
18174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18175 CFLAGS="$save_CFLAGS"
18177 echo "$as_me:$LINENO: result: $libgomp_cv_have_attribute_visibility" >&5
18178 echo "${ECHO_T}$libgomp_cv_have_attribute_visibility" >&6
18179 if test $libgomp_cv_have_attribute_visibility = yes; then
18181 cat >>confdefs.h <<\_ACEOF
18182 #define HAVE_ATTRIBUTE_VISIBILITY 1
18183 _ACEOF
18187 echo "$as_me:$LINENO: checking whether the target supports dllexport" >&5
18188 echo $ECHO_N "checking whether the target supports dllexport... $ECHO_C" >&6
18189 if test "${libgomp_cv_have_attribute_dllexport+set}" = set; then
18190 echo $ECHO_N "(cached) $ECHO_C" >&6
18191 else
18193 save_CFLAGS="$CFLAGS"
18194 CFLAGS="$CFLAGS -Werror"
18195 cat >conftest.$ac_ext <<_ACEOF
18196 /* confdefs.h. */
18197 _ACEOF
18198 cat confdefs.h >>conftest.$ac_ext
18199 cat >>conftest.$ac_ext <<_ACEOF
18200 /* end confdefs.h. */
18201 void __attribute__((dllexport)) foo(void) { }
18203 main ()
18207 return 0;
18209 _ACEOF
18210 rm -f conftest.$ac_objext
18211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18212 (eval $ac_compile) 2>conftest.er1
18213 ac_status=$?
18214 grep -v '^ *+' conftest.er1 >conftest.err
18215 rm -f conftest.er1
18216 cat conftest.err >&5
18217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18218 (exit $ac_status); } &&
18219 { ac_try='test -z "$ac_c_werror_flag"
18220 || test ! -s conftest.err'
18221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18222 (eval $ac_try) 2>&5
18223 ac_status=$?
18224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18225 (exit $ac_status); }; } &&
18226 { ac_try='test -s conftest.$ac_objext'
18227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18228 (eval $ac_try) 2>&5
18229 ac_status=$?
18230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18231 (exit $ac_status); }; }; then
18232 libgomp_cv_have_attribute_dllexport=yes
18233 else
18234 echo "$as_me: failed program was:" >&5
18235 sed 's/^/| /' conftest.$ac_ext >&5
18237 libgomp_cv_have_attribute_dllexport=no
18239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18240 CFLAGS="$save_CFLAGS"
18242 echo "$as_me:$LINENO: result: $libgomp_cv_have_attribute_dllexport" >&5
18243 echo "${ECHO_T}$libgomp_cv_have_attribute_dllexport" >&6
18244 if test $libgomp_cv_have_attribute_dllexport = yes; then
18246 cat >>confdefs.h <<\_ACEOF
18247 #define HAVE_ATTRIBUTE_DLLEXPORT 1
18248 _ACEOF
18252 echo "$as_me:$LINENO: checking whether the target supports symbol aliases" >&5
18253 echo $ECHO_N "checking whether the target supports symbol aliases... $ECHO_C" >&6
18254 if test "${libgomp_cv_have_attribute_alias+set}" = set; then
18255 echo $ECHO_N "(cached) $ECHO_C" >&6
18256 else
18258 cat >conftest.$ac_ext <<_ACEOF
18259 /* confdefs.h. */
18260 _ACEOF
18261 cat confdefs.h >>conftest.$ac_ext
18262 cat >>conftest.$ac_ext <<_ACEOF
18263 /* end confdefs.h. */
18265 void foo(void) { }
18266 extern void bar(void) __attribute__((alias("foo")));
18268 main ()
18270 bar();
18272 return 0;
18274 _ACEOF
18275 rm -f conftest.$ac_objext conftest$ac_exeext
18276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18277 (eval $ac_link) 2>conftest.er1
18278 ac_status=$?
18279 grep -v '^ *+' conftest.er1 >conftest.err
18280 rm -f conftest.er1
18281 cat conftest.err >&5
18282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18283 (exit $ac_status); } &&
18284 { ac_try='test -z "$ac_c_werror_flag"
18285 || test ! -s conftest.err'
18286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18287 (eval $ac_try) 2>&5
18288 ac_status=$?
18289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18290 (exit $ac_status); }; } &&
18291 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
18297 libgomp_cv_have_attribute_alias=yes
18298 else
18299 echo "$as_me: failed program was:" >&5
18300 sed 's/^/| /' conftest.$ac_ext >&5
18302 libgomp_cv_have_attribute_alias=no
18304 rm -f conftest.err conftest.$ac_objext \
18305 conftest$ac_exeext conftest.$ac_ext
18307 echo "$as_me:$LINENO: result: $libgomp_cv_have_attribute_alias" >&5
18308 echo "${ECHO_T}$libgomp_cv_have_attribute_alias" >&6
18309 if test $libgomp_cv_have_attribute_alias = yes; then
18311 cat >>confdefs.h <<\_ACEOF
18312 #define HAVE_ATTRIBUTE_ALIAS 1
18313 _ACEOF
18318 # Check whether --with-gnu-ld or --without-gnu-ld was given.
18319 if test "${with_gnu_ld+set}" = set; then
18320 withval="$with_gnu_ld"
18321 test "$withval" = no || with_gnu_ld=yes
18322 else
18323 with_gnu_ld=no
18325 ac_prog=ld
18326 if test "$GCC" = yes; then
18327 # Check if gcc -print-prog-name=ld gives a path.
18328 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18329 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
18330 case $host in
18331 *-*-mingw*)
18332 # gcc leaves a trailing carriage return which upsets mingw
18333 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18335 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18336 esac
18337 case $ac_prog in
18338 # Accept absolute paths.
18339 [\\/]* | ?:[\\/]*)
18340 re_direlt='/[^/][^/]*/\.\./'
18341 # Canonicalize the pathname of ld
18342 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18343 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18344 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18345 done
18346 test -z "$LD" && LD="$ac_prog"
18349 # If it fails, then pretend we aren't using GCC.
18350 ac_prog=ld
18353 # If it is relative, then search for the first ld in PATH.
18354 with_gnu_ld=unknown
18356 esac
18357 elif test "$with_gnu_ld" = yes; then
18358 echo "$as_me:$LINENO: checking for GNU ld" >&5
18359 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
18360 else
18361 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18362 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
18364 if test "${lt_cv_path_LD+set}" = set; then
18365 echo $ECHO_N "(cached) $ECHO_C" >&6
18366 else
18367 if test -z "$LD"; then
18368 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18369 for ac_dir in $PATH; do
18370 IFS="$lt_save_ifs"
18371 test -z "$ac_dir" && ac_dir=.
18372 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18373 lt_cv_path_LD="$ac_dir/$ac_prog"
18374 # Check to see if the program is GNU ld. I'd rather use --version,
18375 # but apparently some variants of GNU ld only accept -v.
18376 # Break only if it was the GNU/non-GNU ld that we prefer.
18377 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18378 *GNU* | *'with BFD'*)
18379 test "$with_gnu_ld" != no && break
18382 test "$with_gnu_ld" != yes && break
18384 esac
18386 done
18387 IFS="$lt_save_ifs"
18388 else
18389 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18393 LD="$lt_cv_path_LD"
18394 if test -n "$LD"; then
18395 echo "$as_me:$LINENO: result: $LD" >&5
18396 echo "${ECHO_T}$LD" >&6
18397 else
18398 echo "$as_me:$LINENO: result: no" >&5
18399 echo "${ECHO_T}no" >&6
18401 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18402 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18403 { (exit 1); exit 1; }; }
18404 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18405 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
18406 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18407 echo $ECHO_N "(cached) $ECHO_C" >&6
18408 else
18409 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18410 case `$LD -v 2>&1 </dev/null` in
18411 *GNU* | *'with BFD'*)
18412 lt_cv_prog_gnu_ld=yes
18415 lt_cv_prog_gnu_ld=no
18417 esac
18419 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18420 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
18421 with_gnu_ld=$lt_cv_prog_gnu_ld
18429 # If we're not using GNU ld, then there's no point in even trying these
18430 # tests. Check for that first. We should have already tested for gld
18431 # by now (in libtool), but require it now just to be safe...
18432 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
18433 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
18437 # The name set by libtool depends on the version of libtool. Shame on us
18438 # for depending on an impl detail, but c'est la vie. Older versions used
18439 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
18440 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
18441 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
18442 # set (hence we're using an older libtool), then set it.
18443 if test x${with_gnu_ld+set} != xset; then
18444 if test x${ac_cv_prog_gnu_ld+set} != xset; then
18445 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
18446 with_gnu_ld=no
18447 else
18448 with_gnu_ld=$ac_cv_prog_gnu_ld
18452 # Start by getting the version number. I think the libtool test already
18453 # does some of this, but throws away the result.
18455 ldver=`$LD --version 2>/dev/null | head -1 | \
18456 sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
18458 libgomp_gnu_ld_version=`echo $ldver | \
18459 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
18461 # Set --gc-sections.
18462 if test "$with_gnu_ld" = "notbroken"; then
18463 # GNU ld it is! Joy and bunny rabbits!
18465 # All these tests are for C++; save the language and the compiler flags.
18466 # Need to do this so that g++ won't try to link in libstdc++
18467 ac_test_CFLAGS="${CFLAGS+set}"
18468 ac_save_CFLAGS="$CFLAGS"
18469 CFLAGS='-x c++ -Wl,--gc-sections'
18471 # Check for -Wl,--gc-sections
18472 # XXX This test is broken at the moment, as symbols required for linking
18473 # are now in libsupc++ (not built yet). In addition, this test has
18474 # cored on solaris in the past. In addition, --gc-sections doesn't
18475 # really work at the moment (keeps on discarding used sections, first
18476 # .eh_frame and now some of the glibc sections for iconv).
18477 # Bzzzzt. Thanks for playing, maybe next time.
18478 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
18479 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
18480 if test "$cross_compiling" = yes; then
18481 ac_sectionLDflags=yes
18482 else
18483 cat >conftest.$ac_ext <<_ACEOF
18484 /* confdefs.h. */
18485 _ACEOF
18486 cat confdefs.h >>conftest.$ac_ext
18487 cat >>conftest.$ac_ext <<_ACEOF
18488 /* end confdefs.h. */
18490 int main(void)
18492 try { throw 1; }
18493 catch (...) { };
18494 return 0;
18497 _ACEOF
18498 rm -f conftest$ac_exeext
18499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18500 (eval $ac_link) 2>&5
18501 ac_status=$?
18502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18503 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18505 (eval $ac_try) 2>&5
18506 ac_status=$?
18507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18508 (exit $ac_status); }; }; then
18509 ac_sectionLDflags=yes
18510 else
18511 echo "$as_me: program exited with status $ac_status" >&5
18512 echo "$as_me: failed program was:" >&5
18513 sed 's/^/| /' conftest.$ac_ext >&5
18515 ( exit $ac_status )
18516 ac_sectionLDflags=no
18518 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18520 if test "$ac_test_CFLAGS" = set; then
18521 CFLAGS="$ac_save_CFLAGS"
18522 else
18523 # this is the suspicious part
18524 CFLAGS=''
18526 if test "$ac_sectionLDflags" = "yes"; then
18527 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
18529 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
18530 echo "${ECHO_T}$ac_sectionLDflags" >&6
18533 # Set linker optimization flags.
18534 if test x"$with_gnu_ld" = x"yes"; then
18535 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
18543 # Check whether --enable-symvers or --disable-symvers was given.
18544 if test "${enable_symvers+set}" = set; then
18545 enableval="$enable_symvers"
18547 case "$enableval" in
18548 yes|no|gnu) ;;
18549 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable symvers" >&5
18550 echo "$as_me: error: Unknown argument to enable/disable symvers" >&2;}
18551 { (exit 1); exit 1; }; } ;;
18552 esac
18554 else
18555 enable_symvers=yes
18559 # If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
18560 # don't know enough about $LD to do tricks...
18562 # FIXME The following test is too strict, in theory.
18563 if test $enable_shared = no ||
18564 test "x$LD" = x ||
18565 test x$libgomp_gnu_ld_version = x; then
18566 enable_symvers=no
18569 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
18570 if test $enable_symvers != no; then
18571 echo "$as_me:$LINENO: checking for shared libgcc" >&5
18572 echo $ECHO_N "checking for shared libgcc... $ECHO_C" >&6
18573 ac_save_CFLAGS="$CFLAGS"
18574 CFLAGS=' -lgcc_s'
18575 cat >conftest.$ac_ext <<_ACEOF
18576 /* confdefs.h. */
18577 _ACEOF
18578 cat confdefs.h >>conftest.$ac_ext
18579 cat >>conftest.$ac_ext <<_ACEOF
18580 /* end confdefs.h. */
18583 main ()
18585 return 0;
18587 return 0;
18589 _ACEOF
18590 rm -f conftest.$ac_objext conftest$ac_exeext
18591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18592 (eval $ac_link) 2>conftest.er1
18593 ac_status=$?
18594 grep -v '^ *+' conftest.er1 >conftest.err
18595 rm -f conftest.er1
18596 cat conftest.err >&5
18597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18598 (exit $ac_status); } &&
18599 { ac_try='test -z "$ac_c_werror_flag"
18600 || test ! -s conftest.err'
18601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18602 (eval $ac_try) 2>&5
18603 ac_status=$?
18604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18605 (exit $ac_status); }; } &&
18606 { ac_try='test -s conftest$ac_exeext'
18607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18608 (eval $ac_try) 2>&5
18609 ac_status=$?
18610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18611 (exit $ac_status); }; }; then
18612 libgomp_shared_libgcc=yes
18613 else
18614 echo "$as_me: failed program was:" >&5
18615 sed 's/^/| /' conftest.$ac_ext >&5
18617 libgomp_shared_libgcc=no
18619 rm -f conftest.err conftest.$ac_objext \
18620 conftest$ac_exeext conftest.$ac_ext
18621 CFLAGS="$ac_save_CFLAGS"
18622 if test $libgomp_shared_libgcc = no; then
18623 cat > conftest.c <<EOF
18624 int main (void) { return 0; }
18626 libgomp_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
18627 -shared -shared-libgcc -o conftest.so \
18628 conftest.c -v 2>&1 >/dev/null \
18629 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
18630 rm -f conftest.c conftest.so
18631 if test x${libgomp_libgcc_s_suffix+set} = xset; then
18632 CFLAGS=" -lgcc_s$libgomp_libgcc_s_suffix"
18633 cat >conftest.$ac_ext <<_ACEOF
18634 /* confdefs.h. */
18635 _ACEOF
18636 cat confdefs.h >>conftest.$ac_ext
18637 cat >>conftest.$ac_ext <<_ACEOF
18638 /* end confdefs.h. */
18641 main ()
18643 return 0;
18645 return 0;
18647 _ACEOF
18648 rm -f conftest.$ac_objext conftest$ac_exeext
18649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18650 (eval $ac_link) 2>conftest.er1
18651 ac_status=$?
18652 grep -v '^ *+' conftest.er1 >conftest.err
18653 rm -f conftest.er1
18654 cat conftest.err >&5
18655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18656 (exit $ac_status); } &&
18657 { ac_try='test -z "$ac_c_werror_flag"
18658 || test ! -s conftest.err'
18659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18660 (eval $ac_try) 2>&5
18661 ac_status=$?
18662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18663 (exit $ac_status); }; } &&
18664 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
18670 libgomp_shared_libgcc=yes
18671 else
18672 echo "$as_me: failed program was:" >&5
18673 sed 's/^/| /' conftest.$ac_ext >&5
18676 rm -f conftest.err conftest.$ac_objext \
18677 conftest$ac_exeext conftest.$ac_ext
18678 CFLAGS="$ac_save_CFLAGS"
18681 echo "$as_me:$LINENO: result: $libgomp_shared_libgcc" >&5
18682 echo "${ECHO_T}$libgomp_shared_libgcc" >&6
18685 # For GNU ld, we need at least this version. The format is described in
18686 # LIBGOMP_CHECK_LINKER_FEATURES above.
18687 libgomp_min_gnu_ld_version=21400
18688 # XXXXXXXXXXX libgomp_gnu_ld_version=21390
18690 # Check to see if unspecified "yes" value can win, given results above.
18691 # Change "yes" into either "no" or a style name.
18692 if test $enable_symvers = yes; then
18693 if test $with_gnu_ld = yes &&
18694 test $libgomp_shared_libgcc = yes;
18695 then
18696 if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
18697 enable_symvers=gnu
18698 else
18699 # The right tools, the right setup, but too old. Fallbacks?
18700 { echo "$as_me:$LINENO: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
18701 echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
18702 { echo "$as_me:$LINENO: WARNING: === full symbol versioning support in this release of GCC." >&5
18703 echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
18704 { echo "$as_me:$LINENO: WARNING: === You would need to upgrade your binutils to version" >&5
18705 echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
18706 { echo "$as_me:$LINENO: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
18707 echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
18708 if test $libgomp_gnu_ld_version -ge 21200 ; then
18709 # Globbing fix is present, proper block support is not.
18710 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
18711 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
18712 enable_symvers=no
18713 else
18714 # 2.11 or older.
18715 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
18716 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
18717 enable_symvers=no
18720 else
18721 # just fail for now
18722 { echo "$as_me:$LINENO: WARNING: === You have requested some kind of symbol versioning, but" >&5
18723 echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
18724 { echo "$as_me:$LINENO: WARNING: === either you are not using a supported linker, or you are" >&5
18725 echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
18726 { echo "$as_me:$LINENO: WARNING: === not building a shared libgcc_s (which is required)." >&5
18727 echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
18728 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
18729 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
18730 enable_symvers=no
18736 if test $enable_symvers != no; then
18737 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE=
18738 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE='#'
18739 else
18740 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='#'
18741 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE=
18744 { echo "$as_me:$LINENO: versioning on shared library symbols is $enable_symvers" >&5
18745 echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
18748 if test $enable_symvers = gnu; then
18750 cat >>confdefs.h <<\_ACEOF
18751 #define LIBGOMP_GNU_SYMBOL_VERSIONING 1
18752 _ACEOF
18756 # Get target configury.
18757 . ${srcdir}/configure.tgt
18758 CFLAGS="$save_CFLAGS $XCFLAGS"
18760 # Check for __sync_val_compare_and_swap, but only after the target has
18761 # had a chance to set XCFLAGS.
18763 echo "$as_me:$LINENO: checking whether the target supports __sync_*_compare_and_swap" >&5
18764 echo $ECHO_N "checking whether the target supports __sync_*_compare_and_swap... $ECHO_C" >&6
18765 if test "${libgomp_cv_have_sync_builtins+set}" = set; then
18766 echo $ECHO_N "(cached) $ECHO_C" >&6
18767 else
18769 cat >conftest.$ac_ext <<_ACEOF
18770 /* confdefs.h. */
18771 _ACEOF
18772 cat confdefs.h >>conftest.$ac_ext
18773 cat >>conftest.$ac_ext <<_ACEOF
18774 /* end confdefs.h. */
18777 main ()
18779 int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
18781 return 0;
18783 _ACEOF
18784 rm -f conftest.$ac_objext conftest$ac_exeext
18785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18786 (eval $ac_link) 2>conftest.er1
18787 ac_status=$?
18788 grep -v '^ *+' conftest.er1 >conftest.err
18789 rm -f conftest.er1
18790 cat conftest.err >&5
18791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18792 (exit $ac_status); } &&
18793 { ac_try='test -z "$ac_c_werror_flag"
18794 || test ! -s conftest.err'
18795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18796 (eval $ac_try) 2>&5
18797 ac_status=$?
18798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18799 (exit $ac_status); }; } &&
18800 { ac_try='test -s conftest$ac_exeext'
18801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18802 (eval $ac_try) 2>&5
18803 ac_status=$?
18804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18805 (exit $ac_status); }; }; then
18806 libgomp_cv_have_sync_builtins=yes
18807 else
18808 echo "$as_me: failed program was:" >&5
18809 sed 's/^/| /' conftest.$ac_ext >&5
18811 libgomp_cv_have_sync_builtins=no
18813 rm -f conftest.err conftest.$ac_objext \
18814 conftest$ac_exeext conftest.$ac_ext
18816 echo "$as_me:$LINENO: result: $libgomp_cv_have_sync_builtins" >&5
18817 echo "${ECHO_T}$libgomp_cv_have_sync_builtins" >&6
18818 if test $libgomp_cv_have_sync_builtins = yes; then
18820 cat >>confdefs.h <<\_ACEOF
18821 #define HAVE_SYNC_BUILTINS 1
18822 _ACEOF
18826 XCFLAGS="$XCFLAGS$XPCFLAGS"
18832 # Cleanup and exit.
18833 CFLAGS="$save_CFLAGS"
18834 cat >confcache <<\_ACEOF
18835 # This file is a shell script that caches the results of configure
18836 # tests run on this system so they can be shared between configure
18837 # scripts and configure runs, see configure's option --config-cache.
18838 # It is not useful on other systems. If it contains results you don't
18839 # want to keep, you may remove or edit it.
18841 # config.status only pays attention to the cache file if you give it
18842 # the --recheck option to rerun configure.
18844 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18845 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18846 # following values.
18848 _ACEOF
18850 # The following way of writing the cache mishandles newlines in values,
18851 # but we know of no workaround that is simple, portable, and efficient.
18852 # So, don't put newlines in cache variables' values.
18853 # Ultrix sh set writes to stderr and can't be redirected directly,
18854 # and sets the high bit in the cache file unless we assign to the vars.
18856 (set) 2>&1 |
18857 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18858 *ac_space=\ *)
18859 # `set' does not quote correctly, so add quotes (double-quote
18860 # substitution turns \\\\ into \\, and sed turns \\ into \).
18861 sed -n \
18862 "s/'/'\\\\''/g;
18863 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18866 # `set' quotes correctly as required by POSIX, so do not add quotes.
18867 sed -n \
18868 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18870 esac;
18872 sed '
18873 t clear
18874 : clear
18875 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18876 t end
18877 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18878 : end' >>confcache
18879 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18880 if test -w $cache_file; then
18881 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18882 cat confcache >$cache_file
18883 else
18884 echo "not updating unwritable cache $cache_file"
18887 rm -f confcache
18889 if test ${multilib} = yes; then
18890 multilib_arg="--enable-multilib"
18891 else
18892 multilib_arg=
18895 # Set up the set of libraries that we need to link against for libgomp.
18896 # Note that the GOMP_SELF_SPEC in gcc.c will force -pthread for -fopenmp,
18897 # which will force linkage against -lpthread (or equivalent for the system).
18898 # That's not 100% ideal, but about the best we can do easily.
18899 if test $enable_shared = yes; then
18900 link_gomp="-lgomp %{static: $LIBS}"
18901 else
18902 link_gomp="-lgomp $LIBS"
18908 if test "$ac_cv_fc_compiler_gnu" = yes; then
18909 USE_FORTRAN_TRUE=
18910 USE_FORTRAN_FALSE='#'
18911 else
18912 USE_FORTRAN_TRUE='#'
18913 USE_FORTRAN_FALSE=
18917 # ??? 2006-01-24: Paulo committed to asking autoconf folk to document
18918 # and export AC_COMPUTE_INT. If that happens, then we'll need to remove
18919 # the underscore here and update the PREREQ. If it doesn't, then we'll
18920 # need to copy this macro to our acinclude.m4.
18921 save_CFLAGS="$CFLAGS"
18922 for i in $config_path; do
18923 if test -f $srcdir/config/$i/omp-lock.h; then
18924 CFLAGS="$CFLAGS -include confdefs.h -include $srcdir/config/$i/omp-lock.h"
18925 break
18927 done
18929 if test "$cross_compiling" = yes; then
18930 # Depending upon the size, compute the lo and hi bounds.
18931 cat >conftest.$ac_ext <<_ACEOF
18932 /* confdefs.h. */
18933 _ACEOF
18934 cat confdefs.h >>conftest.$ac_ext
18935 cat >>conftest.$ac_ext <<_ACEOF
18936 /* end confdefs.h. */
18939 main ()
18941 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) >= 0)];
18942 test_array [0] = 0
18945 return 0;
18947 _ACEOF
18948 rm -f conftest.$ac_objext
18949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18950 (eval $ac_compile) 2>conftest.er1
18951 ac_status=$?
18952 grep -v '^ *+' conftest.er1 >conftest.err
18953 rm -f conftest.er1
18954 cat conftest.err >&5
18955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18956 (exit $ac_status); } &&
18957 { ac_try='test -z "$ac_c_werror_flag"
18958 || test ! -s conftest.err'
18959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18960 (eval $ac_try) 2>&5
18961 ac_status=$?
18962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18963 (exit $ac_status); }; } &&
18964 { ac_try='test -s conftest.$ac_objext'
18965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18966 (eval $ac_try) 2>&5
18967 ac_status=$?
18968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18969 (exit $ac_status); }; }; then
18970 ac_lo=0 ac_mid=0
18971 while :; do
18972 cat >conftest.$ac_ext <<_ACEOF
18973 /* confdefs.h. */
18974 _ACEOF
18975 cat confdefs.h >>conftest.$ac_ext
18976 cat >>conftest.$ac_ext <<_ACEOF
18977 /* end confdefs.h. */
18980 main ()
18982 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) <= $ac_mid)];
18983 test_array [0] = 0
18986 return 0;
18988 _ACEOF
18989 rm -f conftest.$ac_objext
18990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18991 (eval $ac_compile) 2>conftest.er1
18992 ac_status=$?
18993 grep -v '^ *+' conftest.er1 >conftest.err
18994 rm -f conftest.er1
18995 cat conftest.err >&5
18996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18997 (exit $ac_status); } &&
18998 { ac_try='test -z "$ac_c_werror_flag"
18999 || test ! -s conftest.err'
19000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19001 (eval $ac_try) 2>&5
19002 ac_status=$?
19003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19004 (exit $ac_status); }; } &&
19005 { ac_try='test -s conftest.$ac_objext'
19006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19007 (eval $ac_try) 2>&5
19008 ac_status=$?
19009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19010 (exit $ac_status); }; }; then
19011 ac_hi=$ac_mid; break
19012 else
19013 echo "$as_me: failed program was:" >&5
19014 sed 's/^/| /' conftest.$ac_ext >&5
19016 ac_lo=`expr $ac_mid + 1`
19017 if test $ac_lo -le $ac_mid; then
19018 ac_lo= ac_hi=
19019 break
19021 ac_mid=`expr 2 '*' $ac_mid + 1`
19023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19024 done
19025 else
19026 echo "$as_me: failed program was:" >&5
19027 sed 's/^/| /' conftest.$ac_ext >&5
19029 cat >conftest.$ac_ext <<_ACEOF
19030 /* confdefs.h. */
19031 _ACEOF
19032 cat confdefs.h >>conftest.$ac_ext
19033 cat >>conftest.$ac_ext <<_ACEOF
19034 /* end confdefs.h. */
19037 main ()
19039 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) < 0)];
19040 test_array [0] = 0
19043 return 0;
19045 _ACEOF
19046 rm -f conftest.$ac_objext
19047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19048 (eval $ac_compile) 2>conftest.er1
19049 ac_status=$?
19050 grep -v '^ *+' conftest.er1 >conftest.err
19051 rm -f conftest.er1
19052 cat conftest.err >&5
19053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19054 (exit $ac_status); } &&
19055 { ac_try='test -z "$ac_c_werror_flag"
19056 || test ! -s conftest.err'
19057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19058 (eval $ac_try) 2>&5
19059 ac_status=$?
19060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19061 (exit $ac_status); }; } &&
19062 { ac_try='test -s conftest.$ac_objext'
19063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19064 (eval $ac_try) 2>&5
19065 ac_status=$?
19066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19067 (exit $ac_status); }; }; then
19068 ac_hi=-1 ac_mid=-1
19069 while :; do
19070 cat >conftest.$ac_ext <<_ACEOF
19071 /* confdefs.h. */
19072 _ACEOF
19073 cat confdefs.h >>conftest.$ac_ext
19074 cat >>conftest.$ac_ext <<_ACEOF
19075 /* end confdefs.h. */
19078 main ()
19080 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) >= $ac_mid)];
19081 test_array [0] = 0
19084 return 0;
19086 _ACEOF
19087 rm -f conftest.$ac_objext
19088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19089 (eval $ac_compile) 2>conftest.er1
19090 ac_status=$?
19091 grep -v '^ *+' conftest.er1 >conftest.err
19092 rm -f conftest.er1
19093 cat conftest.err >&5
19094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19095 (exit $ac_status); } &&
19096 { ac_try='test -z "$ac_c_werror_flag"
19097 || test ! -s conftest.err'
19098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19099 (eval $ac_try) 2>&5
19100 ac_status=$?
19101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19102 (exit $ac_status); }; } &&
19103 { ac_try='test -s conftest.$ac_objext'
19104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19105 (eval $ac_try) 2>&5
19106 ac_status=$?
19107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19108 (exit $ac_status); }; }; then
19109 ac_lo=$ac_mid; break
19110 else
19111 echo "$as_me: failed program was:" >&5
19112 sed 's/^/| /' conftest.$ac_ext >&5
19114 ac_hi=`expr '(' $ac_mid ')' - 1`
19115 if test $ac_mid -le $ac_hi; then
19116 ac_lo= ac_hi=
19117 break
19119 ac_mid=`expr 2 '*' $ac_mid`
19121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19122 done
19123 else
19124 echo "$as_me: failed program was:" >&5
19125 sed 's/^/| /' conftest.$ac_ext >&5
19127 ac_lo= ac_hi=
19129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19132 # Binary search between lo and hi bounds.
19133 while test "x$ac_lo" != "x$ac_hi"; do
19134 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19135 cat >conftest.$ac_ext <<_ACEOF
19136 /* confdefs.h. */
19137 _ACEOF
19138 cat confdefs.h >>conftest.$ac_ext
19139 cat >>conftest.$ac_ext <<_ACEOF
19140 /* end confdefs.h. */
19143 main ()
19145 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) <= $ac_mid)];
19146 test_array [0] = 0
19149 return 0;
19151 _ACEOF
19152 rm -f conftest.$ac_objext
19153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19154 (eval $ac_compile) 2>conftest.er1
19155 ac_status=$?
19156 grep -v '^ *+' conftest.er1 >conftest.err
19157 rm -f conftest.er1
19158 cat conftest.err >&5
19159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19160 (exit $ac_status); } &&
19161 { ac_try='test -z "$ac_c_werror_flag"
19162 || test ! -s conftest.err'
19163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19164 (eval $ac_try) 2>&5
19165 ac_status=$?
19166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19167 (exit $ac_status); }; } &&
19168 { ac_try='test -s conftest.$ac_objext'
19169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19170 (eval $ac_try) 2>&5
19171 ac_status=$?
19172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19173 (exit $ac_status); }; }; then
19174 ac_hi=$ac_mid
19175 else
19176 echo "$as_me: failed program was:" >&5
19177 sed 's/^/| /' conftest.$ac_ext >&5
19179 ac_lo=`expr '(' $ac_mid ')' + 1`
19181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19182 done
19183 case $ac_lo in
19184 ?*) OMP_LOCK_SIZE=$ac_lo;;
19185 '') { { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_t)" >&5
19186 echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_t)" >&2;}
19187 { (exit 1); exit 1; }; } ;;
19188 esac
19189 else
19190 if test "$cross_compiling" = yes; then
19191 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19192 echo "$as_me: error: in \`$ac_pwd':" >&2;}
19193 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19194 See \`config.log' for more details." >&5
19195 echo "$as_me: error: cannot run test program while cross compiling
19196 See \`config.log' for more details." >&2;}
19197 { (exit 1); exit 1; }; }; }
19198 else
19199 cat >conftest.$ac_ext <<_ACEOF
19200 /* confdefs.h. */
19201 _ACEOF
19202 cat confdefs.h >>conftest.$ac_ext
19203 cat >>conftest.$ac_ext <<_ACEOF
19204 /* end confdefs.h. */
19206 long longval () { return sizeof (omp_lock_t); }
19207 unsigned long ulongval () { return sizeof (omp_lock_t); }
19208 #include <stdio.h>
19209 #include <stdlib.h>
19211 main ()
19214 FILE *f = fopen ("conftest.val", "w");
19215 if (! f)
19216 exit (1);
19217 if ((sizeof (omp_lock_t)) < 0)
19219 long i = longval ();
19220 if (i != (sizeof (omp_lock_t)))
19221 exit (1);
19222 fprintf (f, "%ld\n", i);
19224 else
19226 unsigned long i = ulongval ();
19227 if (i != (sizeof (omp_lock_t)))
19228 exit (1);
19229 fprintf (f, "%lu\n", i);
19231 exit (ferror (f) || fclose (f) != 0);
19234 return 0;
19236 _ACEOF
19237 rm -f conftest$ac_exeext
19238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19239 (eval $ac_link) 2>&5
19240 ac_status=$?
19241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19242 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19244 (eval $ac_try) 2>&5
19245 ac_status=$?
19246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19247 (exit $ac_status); }; }; then
19248 OMP_LOCK_SIZE=`cat conftest.val`
19249 else
19250 echo "$as_me: program exited with status $ac_status" >&5
19251 echo "$as_me: failed program was:" >&5
19252 sed 's/^/| /' conftest.$ac_ext >&5
19254 ( exit $ac_status )
19255 { { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_t)" >&5
19256 echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_t)" >&2;}
19257 { (exit 1); exit 1; }; }
19259 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19262 rm -f conftest.val
19263 if test "$cross_compiling" = yes; then
19264 # Depending upon the size, compute the lo and hi bounds.
19265 cat >conftest.$ac_ext <<_ACEOF
19266 /* confdefs.h. */
19267 _ACEOF
19268 cat confdefs.h >>conftest.$ac_ext
19269 cat >>conftest.$ac_ext <<_ACEOF
19270 /* end confdefs.h. */
19273 main ()
19275 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) >= 0)];
19276 test_array [0] = 0
19279 return 0;
19281 _ACEOF
19282 rm -f conftest.$ac_objext
19283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19284 (eval $ac_compile) 2>conftest.er1
19285 ac_status=$?
19286 grep -v '^ *+' conftest.er1 >conftest.err
19287 rm -f conftest.er1
19288 cat conftest.err >&5
19289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19290 (exit $ac_status); } &&
19291 { ac_try='test -z "$ac_c_werror_flag"
19292 || test ! -s conftest.err'
19293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19294 (eval $ac_try) 2>&5
19295 ac_status=$?
19296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19297 (exit $ac_status); }; } &&
19298 { ac_try='test -s conftest.$ac_objext'
19299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19300 (eval $ac_try) 2>&5
19301 ac_status=$?
19302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19303 (exit $ac_status); }; }; then
19304 ac_lo=0 ac_mid=0
19305 while :; do
19306 cat >conftest.$ac_ext <<_ACEOF
19307 /* confdefs.h. */
19308 _ACEOF
19309 cat confdefs.h >>conftest.$ac_ext
19310 cat >>conftest.$ac_ext <<_ACEOF
19311 /* end confdefs.h. */
19314 main ()
19316 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) <= $ac_mid)];
19317 test_array [0] = 0
19320 return 0;
19322 _ACEOF
19323 rm -f conftest.$ac_objext
19324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19325 (eval $ac_compile) 2>conftest.er1
19326 ac_status=$?
19327 grep -v '^ *+' conftest.er1 >conftest.err
19328 rm -f conftest.er1
19329 cat conftest.err >&5
19330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19331 (exit $ac_status); } &&
19332 { ac_try='test -z "$ac_c_werror_flag"
19333 || test ! -s conftest.err'
19334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19335 (eval $ac_try) 2>&5
19336 ac_status=$?
19337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19338 (exit $ac_status); }; } &&
19339 { ac_try='test -s conftest.$ac_objext'
19340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19341 (eval $ac_try) 2>&5
19342 ac_status=$?
19343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19344 (exit $ac_status); }; }; then
19345 ac_hi=$ac_mid; break
19346 else
19347 echo "$as_me: failed program was:" >&5
19348 sed 's/^/| /' conftest.$ac_ext >&5
19350 ac_lo=`expr $ac_mid + 1`
19351 if test $ac_lo -le $ac_mid; then
19352 ac_lo= ac_hi=
19353 break
19355 ac_mid=`expr 2 '*' $ac_mid + 1`
19357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19358 done
19359 else
19360 echo "$as_me: failed program was:" >&5
19361 sed 's/^/| /' conftest.$ac_ext >&5
19363 cat >conftest.$ac_ext <<_ACEOF
19364 /* confdefs.h. */
19365 _ACEOF
19366 cat confdefs.h >>conftest.$ac_ext
19367 cat >>conftest.$ac_ext <<_ACEOF
19368 /* end confdefs.h. */
19371 main ()
19373 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) < 0)];
19374 test_array [0] = 0
19377 return 0;
19379 _ACEOF
19380 rm -f conftest.$ac_objext
19381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19382 (eval $ac_compile) 2>conftest.er1
19383 ac_status=$?
19384 grep -v '^ *+' conftest.er1 >conftest.err
19385 rm -f conftest.er1
19386 cat conftest.err >&5
19387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19388 (exit $ac_status); } &&
19389 { ac_try='test -z "$ac_c_werror_flag"
19390 || test ! -s conftest.err'
19391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19392 (eval $ac_try) 2>&5
19393 ac_status=$?
19394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19395 (exit $ac_status); }; } &&
19396 { ac_try='test -s conftest.$ac_objext'
19397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19398 (eval $ac_try) 2>&5
19399 ac_status=$?
19400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19401 (exit $ac_status); }; }; then
19402 ac_hi=-1 ac_mid=-1
19403 while :; do
19404 cat >conftest.$ac_ext <<_ACEOF
19405 /* confdefs.h. */
19406 _ACEOF
19407 cat confdefs.h >>conftest.$ac_ext
19408 cat >>conftest.$ac_ext <<_ACEOF
19409 /* end confdefs.h. */
19412 main ()
19414 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) >= $ac_mid)];
19415 test_array [0] = 0
19418 return 0;
19420 _ACEOF
19421 rm -f conftest.$ac_objext
19422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19423 (eval $ac_compile) 2>conftest.er1
19424 ac_status=$?
19425 grep -v '^ *+' conftest.er1 >conftest.err
19426 rm -f conftest.er1
19427 cat conftest.err >&5
19428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19429 (exit $ac_status); } &&
19430 { ac_try='test -z "$ac_c_werror_flag"
19431 || test ! -s conftest.err'
19432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19433 (eval $ac_try) 2>&5
19434 ac_status=$?
19435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19436 (exit $ac_status); }; } &&
19437 { ac_try='test -s conftest.$ac_objext'
19438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19439 (eval $ac_try) 2>&5
19440 ac_status=$?
19441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19442 (exit $ac_status); }; }; then
19443 ac_lo=$ac_mid; break
19444 else
19445 echo "$as_me: failed program was:" >&5
19446 sed 's/^/| /' conftest.$ac_ext >&5
19448 ac_hi=`expr '(' $ac_mid ')' - 1`
19449 if test $ac_mid -le $ac_hi; then
19450 ac_lo= ac_hi=
19451 break
19453 ac_mid=`expr 2 '*' $ac_mid`
19455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19456 done
19457 else
19458 echo "$as_me: failed program was:" >&5
19459 sed 's/^/| /' conftest.$ac_ext >&5
19461 ac_lo= ac_hi=
19463 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19466 # Binary search between lo and hi bounds.
19467 while test "x$ac_lo" != "x$ac_hi"; do
19468 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19469 cat >conftest.$ac_ext <<_ACEOF
19470 /* confdefs.h. */
19471 _ACEOF
19472 cat confdefs.h >>conftest.$ac_ext
19473 cat >>conftest.$ac_ext <<_ACEOF
19474 /* end confdefs.h. */
19477 main ()
19479 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) <= $ac_mid)];
19480 test_array [0] = 0
19483 return 0;
19485 _ACEOF
19486 rm -f conftest.$ac_objext
19487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19488 (eval $ac_compile) 2>conftest.er1
19489 ac_status=$?
19490 grep -v '^ *+' conftest.er1 >conftest.err
19491 rm -f conftest.er1
19492 cat conftest.err >&5
19493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19494 (exit $ac_status); } &&
19495 { ac_try='test -z "$ac_c_werror_flag"
19496 || test ! -s conftest.err'
19497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19498 (eval $ac_try) 2>&5
19499 ac_status=$?
19500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19501 (exit $ac_status); }; } &&
19502 { ac_try='test -s conftest.$ac_objext'
19503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19504 (eval $ac_try) 2>&5
19505 ac_status=$?
19506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19507 (exit $ac_status); }; }; then
19508 ac_hi=$ac_mid
19509 else
19510 echo "$as_me: failed program was:" >&5
19511 sed 's/^/| /' conftest.$ac_ext >&5
19513 ac_lo=`expr '(' $ac_mid ')' + 1`
19515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19516 done
19517 case $ac_lo in
19518 ?*) OMP_LOCK_ALIGN=$ac_lo;;
19519 '') ;;
19520 esac
19521 else
19522 if test "$cross_compiling" = yes; then
19523 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19524 echo "$as_me: error: in \`$ac_pwd':" >&2;}
19525 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19526 See \`config.log' for more details." >&5
19527 echo "$as_me: error: cannot run test program while cross compiling
19528 See \`config.log' for more details." >&2;}
19529 { (exit 1); exit 1; }; }; }
19530 else
19531 cat >conftest.$ac_ext <<_ACEOF
19532 /* confdefs.h. */
19533 _ACEOF
19534 cat confdefs.h >>conftest.$ac_ext
19535 cat >>conftest.$ac_ext <<_ACEOF
19536 /* end confdefs.h. */
19538 long longval () { return __alignof (omp_lock_t); }
19539 unsigned long ulongval () { return __alignof (omp_lock_t); }
19540 #include <stdio.h>
19541 #include <stdlib.h>
19543 main ()
19546 FILE *f = fopen ("conftest.val", "w");
19547 if (! f)
19548 exit (1);
19549 if ((__alignof (omp_lock_t)) < 0)
19551 long i = longval ();
19552 if (i != (__alignof (omp_lock_t)))
19553 exit (1);
19554 fprintf (f, "%ld\n", i);
19556 else
19558 unsigned long i = ulongval ();
19559 if (i != (__alignof (omp_lock_t)))
19560 exit (1);
19561 fprintf (f, "%lu\n", i);
19563 exit (ferror (f) || fclose (f) != 0);
19566 return 0;
19568 _ACEOF
19569 rm -f conftest$ac_exeext
19570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19571 (eval $ac_link) 2>&5
19572 ac_status=$?
19573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19574 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19576 (eval $ac_try) 2>&5
19577 ac_status=$?
19578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19579 (exit $ac_status); }; }; then
19580 OMP_LOCK_ALIGN=`cat conftest.val`
19581 else
19582 echo "$as_me: program exited with status $ac_status" >&5
19583 echo "$as_me: failed program was:" >&5
19584 sed 's/^/| /' conftest.$ac_ext >&5
19587 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19590 rm -f conftest.val
19591 if test "$cross_compiling" = yes; then
19592 # Depending upon the size, compute the lo and hi bounds.
19593 cat >conftest.$ac_ext <<_ACEOF
19594 /* confdefs.h. */
19595 _ACEOF
19596 cat confdefs.h >>conftest.$ac_ext
19597 cat >>conftest.$ac_ext <<_ACEOF
19598 /* end confdefs.h. */
19601 main ()
19603 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) >= 0)];
19604 test_array [0] = 0
19607 return 0;
19609 _ACEOF
19610 rm -f conftest.$ac_objext
19611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19612 (eval $ac_compile) 2>conftest.er1
19613 ac_status=$?
19614 grep -v '^ *+' conftest.er1 >conftest.err
19615 rm -f conftest.er1
19616 cat conftest.err >&5
19617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19618 (exit $ac_status); } &&
19619 { ac_try='test -z "$ac_c_werror_flag"
19620 || test ! -s conftest.err'
19621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19622 (eval $ac_try) 2>&5
19623 ac_status=$?
19624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19625 (exit $ac_status); }; } &&
19626 { ac_try='test -s conftest.$ac_objext'
19627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19628 (eval $ac_try) 2>&5
19629 ac_status=$?
19630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19631 (exit $ac_status); }; }; then
19632 ac_lo=0 ac_mid=0
19633 while :; do
19634 cat >conftest.$ac_ext <<_ACEOF
19635 /* confdefs.h. */
19636 _ACEOF
19637 cat confdefs.h >>conftest.$ac_ext
19638 cat >>conftest.$ac_ext <<_ACEOF
19639 /* end confdefs.h. */
19642 main ()
19644 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) <= $ac_mid)];
19645 test_array [0] = 0
19648 return 0;
19650 _ACEOF
19651 rm -f conftest.$ac_objext
19652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19653 (eval $ac_compile) 2>conftest.er1
19654 ac_status=$?
19655 grep -v '^ *+' conftest.er1 >conftest.err
19656 rm -f conftest.er1
19657 cat conftest.err >&5
19658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19659 (exit $ac_status); } &&
19660 { ac_try='test -z "$ac_c_werror_flag"
19661 || test ! -s conftest.err'
19662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19663 (eval $ac_try) 2>&5
19664 ac_status=$?
19665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19666 (exit $ac_status); }; } &&
19667 { ac_try='test -s conftest.$ac_objext'
19668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19669 (eval $ac_try) 2>&5
19670 ac_status=$?
19671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19672 (exit $ac_status); }; }; then
19673 ac_hi=$ac_mid; break
19674 else
19675 echo "$as_me: failed program was:" >&5
19676 sed 's/^/| /' conftest.$ac_ext >&5
19678 ac_lo=`expr $ac_mid + 1`
19679 if test $ac_lo -le $ac_mid; then
19680 ac_lo= ac_hi=
19681 break
19683 ac_mid=`expr 2 '*' $ac_mid + 1`
19685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19686 done
19687 else
19688 echo "$as_me: failed program was:" >&5
19689 sed 's/^/| /' conftest.$ac_ext >&5
19691 cat >conftest.$ac_ext <<_ACEOF
19692 /* confdefs.h. */
19693 _ACEOF
19694 cat confdefs.h >>conftest.$ac_ext
19695 cat >>conftest.$ac_ext <<_ACEOF
19696 /* end confdefs.h. */
19699 main ()
19701 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) < 0)];
19702 test_array [0] = 0
19705 return 0;
19707 _ACEOF
19708 rm -f conftest.$ac_objext
19709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19710 (eval $ac_compile) 2>conftest.er1
19711 ac_status=$?
19712 grep -v '^ *+' conftest.er1 >conftest.err
19713 rm -f conftest.er1
19714 cat conftest.err >&5
19715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19716 (exit $ac_status); } &&
19717 { ac_try='test -z "$ac_c_werror_flag"
19718 || test ! -s conftest.err'
19719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19720 (eval $ac_try) 2>&5
19721 ac_status=$?
19722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19723 (exit $ac_status); }; } &&
19724 { ac_try='test -s conftest.$ac_objext'
19725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19726 (eval $ac_try) 2>&5
19727 ac_status=$?
19728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19729 (exit $ac_status); }; }; then
19730 ac_hi=-1 ac_mid=-1
19731 while :; do
19732 cat >conftest.$ac_ext <<_ACEOF
19733 /* confdefs.h. */
19734 _ACEOF
19735 cat confdefs.h >>conftest.$ac_ext
19736 cat >>conftest.$ac_ext <<_ACEOF
19737 /* end confdefs.h. */
19740 main ()
19742 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) >= $ac_mid)];
19743 test_array [0] = 0
19746 return 0;
19748 _ACEOF
19749 rm -f conftest.$ac_objext
19750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19751 (eval $ac_compile) 2>conftest.er1
19752 ac_status=$?
19753 grep -v '^ *+' conftest.er1 >conftest.err
19754 rm -f conftest.er1
19755 cat conftest.err >&5
19756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19757 (exit $ac_status); } &&
19758 { ac_try='test -z "$ac_c_werror_flag"
19759 || test ! -s conftest.err'
19760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19761 (eval $ac_try) 2>&5
19762 ac_status=$?
19763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19764 (exit $ac_status); }; } &&
19765 { ac_try='test -s conftest.$ac_objext'
19766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19767 (eval $ac_try) 2>&5
19768 ac_status=$?
19769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19770 (exit $ac_status); }; }; then
19771 ac_lo=$ac_mid; break
19772 else
19773 echo "$as_me: failed program was:" >&5
19774 sed 's/^/| /' conftest.$ac_ext >&5
19776 ac_hi=`expr '(' $ac_mid ')' - 1`
19777 if test $ac_mid -le $ac_hi; then
19778 ac_lo= ac_hi=
19779 break
19781 ac_mid=`expr 2 '*' $ac_mid`
19783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19784 done
19785 else
19786 echo "$as_me: failed program was:" >&5
19787 sed 's/^/| /' conftest.$ac_ext >&5
19789 ac_lo= ac_hi=
19791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19794 # Binary search between lo and hi bounds.
19795 while test "x$ac_lo" != "x$ac_hi"; do
19796 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19797 cat >conftest.$ac_ext <<_ACEOF
19798 /* confdefs.h. */
19799 _ACEOF
19800 cat confdefs.h >>conftest.$ac_ext
19801 cat >>conftest.$ac_ext <<_ACEOF
19802 /* end confdefs.h. */
19805 main ()
19807 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) <= $ac_mid)];
19808 test_array [0] = 0
19811 return 0;
19813 _ACEOF
19814 rm -f conftest.$ac_objext
19815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19816 (eval $ac_compile) 2>conftest.er1
19817 ac_status=$?
19818 grep -v '^ *+' conftest.er1 >conftest.err
19819 rm -f conftest.er1
19820 cat conftest.err >&5
19821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19822 (exit $ac_status); } &&
19823 { ac_try='test -z "$ac_c_werror_flag"
19824 || test ! -s conftest.err'
19825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19826 (eval $ac_try) 2>&5
19827 ac_status=$?
19828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19829 (exit $ac_status); }; } &&
19830 { ac_try='test -s conftest.$ac_objext'
19831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19832 (eval $ac_try) 2>&5
19833 ac_status=$?
19834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19835 (exit $ac_status); }; }; then
19836 ac_hi=$ac_mid
19837 else
19838 echo "$as_me: failed program was:" >&5
19839 sed 's/^/| /' conftest.$ac_ext >&5
19841 ac_lo=`expr '(' $ac_mid ')' + 1`
19843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19844 done
19845 case $ac_lo in
19846 ?*) OMP_NEST_LOCK_SIZE=$ac_lo;;
19847 '') ;;
19848 esac
19849 else
19850 if test "$cross_compiling" = yes; then
19851 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19852 echo "$as_me: error: in \`$ac_pwd':" >&2;}
19853 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19854 See \`config.log' for more details." >&5
19855 echo "$as_me: error: cannot run test program while cross compiling
19856 See \`config.log' for more details." >&2;}
19857 { (exit 1); exit 1; }; }; }
19858 else
19859 cat >conftest.$ac_ext <<_ACEOF
19860 /* confdefs.h. */
19861 _ACEOF
19862 cat confdefs.h >>conftest.$ac_ext
19863 cat >>conftest.$ac_ext <<_ACEOF
19864 /* end confdefs.h. */
19866 long longval () { return sizeof (omp_nest_lock_t); }
19867 unsigned long ulongval () { return sizeof (omp_nest_lock_t); }
19868 #include <stdio.h>
19869 #include <stdlib.h>
19871 main ()
19874 FILE *f = fopen ("conftest.val", "w");
19875 if (! f)
19876 exit (1);
19877 if ((sizeof (omp_nest_lock_t)) < 0)
19879 long i = longval ();
19880 if (i != (sizeof (omp_nest_lock_t)))
19881 exit (1);
19882 fprintf (f, "%ld\n", i);
19884 else
19886 unsigned long i = ulongval ();
19887 if (i != (sizeof (omp_nest_lock_t)))
19888 exit (1);
19889 fprintf (f, "%lu\n", i);
19891 exit (ferror (f) || fclose (f) != 0);
19894 return 0;
19896 _ACEOF
19897 rm -f conftest$ac_exeext
19898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19899 (eval $ac_link) 2>&5
19900 ac_status=$?
19901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19902 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19904 (eval $ac_try) 2>&5
19905 ac_status=$?
19906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19907 (exit $ac_status); }; }; then
19908 OMP_NEST_LOCK_SIZE=`cat conftest.val`
19909 else
19910 echo "$as_me: program exited with status $ac_status" >&5
19911 echo "$as_me: failed program was:" >&5
19912 sed 's/^/| /' conftest.$ac_ext >&5
19915 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19918 rm -f conftest.val
19919 if test "$cross_compiling" = yes; then
19920 # Depending upon the size, compute the lo and hi bounds.
19921 cat >conftest.$ac_ext <<_ACEOF
19922 /* confdefs.h. */
19923 _ACEOF
19924 cat confdefs.h >>conftest.$ac_ext
19925 cat >>conftest.$ac_ext <<_ACEOF
19926 /* end confdefs.h. */
19929 main ()
19931 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) >= 0)];
19932 test_array [0] = 0
19935 return 0;
19937 _ACEOF
19938 rm -f conftest.$ac_objext
19939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19940 (eval $ac_compile) 2>conftest.er1
19941 ac_status=$?
19942 grep -v '^ *+' conftest.er1 >conftest.err
19943 rm -f conftest.er1
19944 cat conftest.err >&5
19945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19946 (exit $ac_status); } &&
19947 { ac_try='test -z "$ac_c_werror_flag"
19948 || test ! -s conftest.err'
19949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19950 (eval $ac_try) 2>&5
19951 ac_status=$?
19952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19953 (exit $ac_status); }; } &&
19954 { ac_try='test -s conftest.$ac_objext'
19955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19956 (eval $ac_try) 2>&5
19957 ac_status=$?
19958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19959 (exit $ac_status); }; }; then
19960 ac_lo=0 ac_mid=0
19961 while :; do
19962 cat >conftest.$ac_ext <<_ACEOF
19963 /* confdefs.h. */
19964 _ACEOF
19965 cat confdefs.h >>conftest.$ac_ext
19966 cat >>conftest.$ac_ext <<_ACEOF
19967 /* end confdefs.h. */
19970 main ()
19972 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) <= $ac_mid)];
19973 test_array [0] = 0
19976 return 0;
19978 _ACEOF
19979 rm -f conftest.$ac_objext
19980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19981 (eval $ac_compile) 2>conftest.er1
19982 ac_status=$?
19983 grep -v '^ *+' conftest.er1 >conftest.err
19984 rm -f conftest.er1
19985 cat conftest.err >&5
19986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19987 (exit $ac_status); } &&
19988 { ac_try='test -z "$ac_c_werror_flag"
19989 || test ! -s conftest.err'
19990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19991 (eval $ac_try) 2>&5
19992 ac_status=$?
19993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19994 (exit $ac_status); }; } &&
19995 { ac_try='test -s conftest.$ac_objext'
19996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19997 (eval $ac_try) 2>&5
19998 ac_status=$?
19999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20000 (exit $ac_status); }; }; then
20001 ac_hi=$ac_mid; break
20002 else
20003 echo "$as_me: failed program was:" >&5
20004 sed 's/^/| /' conftest.$ac_ext >&5
20006 ac_lo=`expr $ac_mid + 1`
20007 if test $ac_lo -le $ac_mid; then
20008 ac_lo= ac_hi=
20009 break
20011 ac_mid=`expr 2 '*' $ac_mid + 1`
20013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20014 done
20015 else
20016 echo "$as_me: failed program was:" >&5
20017 sed 's/^/| /' conftest.$ac_ext >&5
20019 cat >conftest.$ac_ext <<_ACEOF
20020 /* confdefs.h. */
20021 _ACEOF
20022 cat confdefs.h >>conftest.$ac_ext
20023 cat >>conftest.$ac_ext <<_ACEOF
20024 /* end confdefs.h. */
20027 main ()
20029 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) < 0)];
20030 test_array [0] = 0
20033 return 0;
20035 _ACEOF
20036 rm -f conftest.$ac_objext
20037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20038 (eval $ac_compile) 2>conftest.er1
20039 ac_status=$?
20040 grep -v '^ *+' conftest.er1 >conftest.err
20041 rm -f conftest.er1
20042 cat conftest.err >&5
20043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20044 (exit $ac_status); } &&
20045 { ac_try='test -z "$ac_c_werror_flag"
20046 || test ! -s conftest.err'
20047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20048 (eval $ac_try) 2>&5
20049 ac_status=$?
20050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20051 (exit $ac_status); }; } &&
20052 { ac_try='test -s conftest.$ac_objext'
20053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20054 (eval $ac_try) 2>&5
20055 ac_status=$?
20056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20057 (exit $ac_status); }; }; then
20058 ac_hi=-1 ac_mid=-1
20059 while :; do
20060 cat >conftest.$ac_ext <<_ACEOF
20061 /* confdefs.h. */
20062 _ACEOF
20063 cat confdefs.h >>conftest.$ac_ext
20064 cat >>conftest.$ac_ext <<_ACEOF
20065 /* end confdefs.h. */
20068 main ()
20070 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) >= $ac_mid)];
20071 test_array [0] = 0
20074 return 0;
20076 _ACEOF
20077 rm -f conftest.$ac_objext
20078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20079 (eval $ac_compile) 2>conftest.er1
20080 ac_status=$?
20081 grep -v '^ *+' conftest.er1 >conftest.err
20082 rm -f conftest.er1
20083 cat conftest.err >&5
20084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20085 (exit $ac_status); } &&
20086 { ac_try='test -z "$ac_c_werror_flag"
20087 || test ! -s conftest.err'
20088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20089 (eval $ac_try) 2>&5
20090 ac_status=$?
20091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20092 (exit $ac_status); }; } &&
20093 { ac_try='test -s conftest.$ac_objext'
20094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20095 (eval $ac_try) 2>&5
20096 ac_status=$?
20097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20098 (exit $ac_status); }; }; then
20099 ac_lo=$ac_mid; break
20100 else
20101 echo "$as_me: failed program was:" >&5
20102 sed 's/^/| /' conftest.$ac_ext >&5
20104 ac_hi=`expr '(' $ac_mid ')' - 1`
20105 if test $ac_mid -le $ac_hi; then
20106 ac_lo= ac_hi=
20107 break
20109 ac_mid=`expr 2 '*' $ac_mid`
20111 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20112 done
20113 else
20114 echo "$as_me: failed program was:" >&5
20115 sed 's/^/| /' conftest.$ac_ext >&5
20117 ac_lo= ac_hi=
20119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20122 # Binary search between lo and hi bounds.
20123 while test "x$ac_lo" != "x$ac_hi"; do
20124 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20125 cat >conftest.$ac_ext <<_ACEOF
20126 /* confdefs.h. */
20127 _ACEOF
20128 cat confdefs.h >>conftest.$ac_ext
20129 cat >>conftest.$ac_ext <<_ACEOF
20130 /* end confdefs.h. */
20133 main ()
20135 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) <= $ac_mid)];
20136 test_array [0] = 0
20139 return 0;
20141 _ACEOF
20142 rm -f conftest.$ac_objext
20143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20144 (eval $ac_compile) 2>conftest.er1
20145 ac_status=$?
20146 grep -v '^ *+' conftest.er1 >conftest.err
20147 rm -f conftest.er1
20148 cat conftest.err >&5
20149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20150 (exit $ac_status); } &&
20151 { ac_try='test -z "$ac_c_werror_flag"
20152 || test ! -s conftest.err'
20153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20154 (eval $ac_try) 2>&5
20155 ac_status=$?
20156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20157 (exit $ac_status); }; } &&
20158 { ac_try='test -s conftest.$ac_objext'
20159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20160 (eval $ac_try) 2>&5
20161 ac_status=$?
20162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20163 (exit $ac_status); }; }; then
20164 ac_hi=$ac_mid
20165 else
20166 echo "$as_me: failed program was:" >&5
20167 sed 's/^/| /' conftest.$ac_ext >&5
20169 ac_lo=`expr '(' $ac_mid ')' + 1`
20171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20172 done
20173 case $ac_lo in
20174 ?*) OMP_NEST_LOCK_ALIGN=$ac_lo;;
20175 '') ;;
20176 esac
20177 else
20178 if test "$cross_compiling" = yes; then
20179 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20180 echo "$as_me: error: in \`$ac_pwd':" >&2;}
20181 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20182 See \`config.log' for more details." >&5
20183 echo "$as_me: error: cannot run test program while cross compiling
20184 See \`config.log' for more details." >&2;}
20185 { (exit 1); exit 1; }; }; }
20186 else
20187 cat >conftest.$ac_ext <<_ACEOF
20188 /* confdefs.h. */
20189 _ACEOF
20190 cat confdefs.h >>conftest.$ac_ext
20191 cat >>conftest.$ac_ext <<_ACEOF
20192 /* end confdefs.h. */
20194 long longval () { return __alignof (omp_nest_lock_t); }
20195 unsigned long ulongval () { return __alignof (omp_nest_lock_t); }
20196 #include <stdio.h>
20197 #include <stdlib.h>
20199 main ()
20202 FILE *f = fopen ("conftest.val", "w");
20203 if (! f)
20204 exit (1);
20205 if ((__alignof (omp_nest_lock_t)) < 0)
20207 long i = longval ();
20208 if (i != (__alignof (omp_nest_lock_t)))
20209 exit (1);
20210 fprintf (f, "%ld\n", i);
20212 else
20214 unsigned long i = ulongval ();
20215 if (i != (__alignof (omp_nest_lock_t)))
20216 exit (1);
20217 fprintf (f, "%lu\n", i);
20219 exit (ferror (f) || fclose (f) != 0);
20222 return 0;
20224 _ACEOF
20225 rm -f conftest$ac_exeext
20226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20227 (eval $ac_link) 2>&5
20228 ac_status=$?
20229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20230 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20232 (eval $ac_try) 2>&5
20233 ac_status=$?
20234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20235 (exit $ac_status); }; }; then
20236 OMP_NEST_LOCK_ALIGN=`cat conftest.val`
20237 else
20238 echo "$as_me: program exited with status $ac_status" >&5
20239 echo "$as_me: failed program was:" >&5
20240 sed 's/^/| /' conftest.$ac_ext >&5
20243 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20246 rm -f conftest.val
20247 if test "$cross_compiling" = yes; then
20248 # Depending upon the size, compute the lo and hi bounds.
20249 cat >conftest.$ac_ext <<_ACEOF
20250 /* confdefs.h. */
20251 _ACEOF
20252 cat confdefs.h >>conftest.$ac_ext
20253 cat >>conftest.$ac_ext <<_ACEOF
20254 /* end confdefs.h. */
20257 main ()
20259 static int test_array [1 - 2 * !((sizeof (omp_lock_25_t)) >= 0)];
20260 test_array [0] = 0
20263 return 0;
20265 _ACEOF
20266 rm -f conftest.$ac_objext
20267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20268 (eval $ac_compile) 2>conftest.er1
20269 ac_status=$?
20270 grep -v '^ *+' conftest.er1 >conftest.err
20271 rm -f conftest.er1
20272 cat conftest.err >&5
20273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20274 (exit $ac_status); } &&
20275 { ac_try='test -z "$ac_c_werror_flag"
20276 || test ! -s conftest.err'
20277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20278 (eval $ac_try) 2>&5
20279 ac_status=$?
20280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20281 (exit $ac_status); }; } &&
20282 { ac_try='test -s conftest.$ac_objext'
20283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20284 (eval $ac_try) 2>&5
20285 ac_status=$?
20286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20287 (exit $ac_status); }; }; then
20288 ac_lo=0 ac_mid=0
20289 while :; do
20290 cat >conftest.$ac_ext <<_ACEOF
20291 /* confdefs.h. */
20292 _ACEOF
20293 cat confdefs.h >>conftest.$ac_ext
20294 cat >>conftest.$ac_ext <<_ACEOF
20295 /* end confdefs.h. */
20298 main ()
20300 static int test_array [1 - 2 * !((sizeof (omp_lock_25_t)) <= $ac_mid)];
20301 test_array [0] = 0
20304 return 0;
20306 _ACEOF
20307 rm -f conftest.$ac_objext
20308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20309 (eval $ac_compile) 2>conftest.er1
20310 ac_status=$?
20311 grep -v '^ *+' conftest.er1 >conftest.err
20312 rm -f conftest.er1
20313 cat conftest.err >&5
20314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20315 (exit $ac_status); } &&
20316 { ac_try='test -z "$ac_c_werror_flag"
20317 || test ! -s conftest.err'
20318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20319 (eval $ac_try) 2>&5
20320 ac_status=$?
20321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20322 (exit $ac_status); }; } &&
20323 { ac_try='test -s conftest.$ac_objext'
20324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20325 (eval $ac_try) 2>&5
20326 ac_status=$?
20327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20328 (exit $ac_status); }; }; then
20329 ac_hi=$ac_mid; break
20330 else
20331 echo "$as_me: failed program was:" >&5
20332 sed 's/^/| /' conftest.$ac_ext >&5
20334 ac_lo=`expr $ac_mid + 1`
20335 if test $ac_lo -le $ac_mid; then
20336 ac_lo= ac_hi=
20337 break
20339 ac_mid=`expr 2 '*' $ac_mid + 1`
20341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20342 done
20343 else
20344 echo "$as_me: failed program was:" >&5
20345 sed 's/^/| /' conftest.$ac_ext >&5
20347 cat >conftest.$ac_ext <<_ACEOF
20348 /* confdefs.h. */
20349 _ACEOF
20350 cat confdefs.h >>conftest.$ac_ext
20351 cat >>conftest.$ac_ext <<_ACEOF
20352 /* end confdefs.h. */
20355 main ()
20357 static int test_array [1 - 2 * !((sizeof (omp_lock_25_t)) < 0)];
20358 test_array [0] = 0
20361 return 0;
20363 _ACEOF
20364 rm -f conftest.$ac_objext
20365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20366 (eval $ac_compile) 2>conftest.er1
20367 ac_status=$?
20368 grep -v '^ *+' conftest.er1 >conftest.err
20369 rm -f conftest.er1
20370 cat conftest.err >&5
20371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20372 (exit $ac_status); } &&
20373 { ac_try='test -z "$ac_c_werror_flag"
20374 || test ! -s conftest.err'
20375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20376 (eval $ac_try) 2>&5
20377 ac_status=$?
20378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20379 (exit $ac_status); }; } &&
20380 { ac_try='test -s conftest.$ac_objext'
20381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20382 (eval $ac_try) 2>&5
20383 ac_status=$?
20384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20385 (exit $ac_status); }; }; then
20386 ac_hi=-1 ac_mid=-1
20387 while :; do
20388 cat >conftest.$ac_ext <<_ACEOF
20389 /* confdefs.h. */
20390 _ACEOF
20391 cat confdefs.h >>conftest.$ac_ext
20392 cat >>conftest.$ac_ext <<_ACEOF
20393 /* end confdefs.h. */
20396 main ()
20398 static int test_array [1 - 2 * !((sizeof (omp_lock_25_t)) >= $ac_mid)];
20399 test_array [0] = 0
20402 return 0;
20404 _ACEOF
20405 rm -f conftest.$ac_objext
20406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20407 (eval $ac_compile) 2>conftest.er1
20408 ac_status=$?
20409 grep -v '^ *+' conftest.er1 >conftest.err
20410 rm -f conftest.er1
20411 cat conftest.err >&5
20412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20413 (exit $ac_status); } &&
20414 { ac_try='test -z "$ac_c_werror_flag"
20415 || test ! -s conftest.err'
20416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20417 (eval $ac_try) 2>&5
20418 ac_status=$?
20419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20420 (exit $ac_status); }; } &&
20421 { ac_try='test -s conftest.$ac_objext'
20422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20423 (eval $ac_try) 2>&5
20424 ac_status=$?
20425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20426 (exit $ac_status); }; }; then
20427 ac_lo=$ac_mid; break
20428 else
20429 echo "$as_me: failed program was:" >&5
20430 sed 's/^/| /' conftest.$ac_ext >&5
20432 ac_hi=`expr '(' $ac_mid ')' - 1`
20433 if test $ac_mid -le $ac_hi; then
20434 ac_lo= ac_hi=
20435 break
20437 ac_mid=`expr 2 '*' $ac_mid`
20439 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20440 done
20441 else
20442 echo "$as_me: failed program was:" >&5
20443 sed 's/^/| /' conftest.$ac_ext >&5
20445 ac_lo= ac_hi=
20447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20450 # Binary search between lo and hi bounds.
20451 while test "x$ac_lo" != "x$ac_hi"; do
20452 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20453 cat >conftest.$ac_ext <<_ACEOF
20454 /* confdefs.h. */
20455 _ACEOF
20456 cat confdefs.h >>conftest.$ac_ext
20457 cat >>conftest.$ac_ext <<_ACEOF
20458 /* end confdefs.h. */
20461 main ()
20463 static int test_array [1 - 2 * !((sizeof (omp_lock_25_t)) <= $ac_mid)];
20464 test_array [0] = 0
20467 return 0;
20469 _ACEOF
20470 rm -f conftest.$ac_objext
20471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20472 (eval $ac_compile) 2>conftest.er1
20473 ac_status=$?
20474 grep -v '^ *+' conftest.er1 >conftest.err
20475 rm -f conftest.er1
20476 cat conftest.err >&5
20477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20478 (exit $ac_status); } &&
20479 { ac_try='test -z "$ac_c_werror_flag"
20480 || test ! -s conftest.err'
20481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20482 (eval $ac_try) 2>&5
20483 ac_status=$?
20484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20485 (exit $ac_status); }; } &&
20486 { ac_try='test -s conftest.$ac_objext'
20487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20488 (eval $ac_try) 2>&5
20489 ac_status=$?
20490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20491 (exit $ac_status); }; }; then
20492 ac_hi=$ac_mid
20493 else
20494 echo "$as_me: failed program was:" >&5
20495 sed 's/^/| /' conftest.$ac_ext >&5
20497 ac_lo=`expr '(' $ac_mid ')' + 1`
20499 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20500 done
20501 case $ac_lo in
20502 ?*) OMP_LOCK_25_SIZE=$ac_lo;;
20503 '') { { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_25_t)" >&5
20504 echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_25_t)" >&2;}
20505 { (exit 1); exit 1; }; } ;;
20506 esac
20507 else
20508 if test "$cross_compiling" = yes; then
20509 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20510 echo "$as_me: error: in \`$ac_pwd':" >&2;}
20511 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20512 See \`config.log' for more details." >&5
20513 echo "$as_me: error: cannot run test program while cross compiling
20514 See \`config.log' for more details." >&2;}
20515 { (exit 1); exit 1; }; }; }
20516 else
20517 cat >conftest.$ac_ext <<_ACEOF
20518 /* confdefs.h. */
20519 _ACEOF
20520 cat confdefs.h >>conftest.$ac_ext
20521 cat >>conftest.$ac_ext <<_ACEOF
20522 /* end confdefs.h. */
20524 long longval () { return sizeof (omp_lock_25_t); }
20525 unsigned long ulongval () { return sizeof (omp_lock_25_t); }
20526 #include <stdio.h>
20527 #include <stdlib.h>
20529 main ()
20532 FILE *f = fopen ("conftest.val", "w");
20533 if (! f)
20534 exit (1);
20535 if ((sizeof (omp_lock_25_t)) < 0)
20537 long i = longval ();
20538 if (i != (sizeof (omp_lock_25_t)))
20539 exit (1);
20540 fprintf (f, "%ld\n", i);
20542 else
20544 unsigned long i = ulongval ();
20545 if (i != (sizeof (omp_lock_25_t)))
20546 exit (1);
20547 fprintf (f, "%lu\n", i);
20549 exit (ferror (f) || fclose (f) != 0);
20552 return 0;
20554 _ACEOF
20555 rm -f conftest$ac_exeext
20556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20557 (eval $ac_link) 2>&5
20558 ac_status=$?
20559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20560 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20562 (eval $ac_try) 2>&5
20563 ac_status=$?
20564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20565 (exit $ac_status); }; }; then
20566 OMP_LOCK_25_SIZE=`cat conftest.val`
20567 else
20568 echo "$as_me: program exited with status $ac_status" >&5
20569 echo "$as_me: failed program was:" >&5
20570 sed 's/^/| /' conftest.$ac_ext >&5
20572 ( exit $ac_status )
20573 { { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_25_t)" >&5
20574 echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_25_t)" >&2;}
20575 { (exit 1); exit 1; }; }
20577 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20580 rm -f conftest.val
20581 if test "$cross_compiling" = yes; then
20582 # Depending upon the size, compute the lo and hi bounds.
20583 cat >conftest.$ac_ext <<_ACEOF
20584 /* confdefs.h. */
20585 _ACEOF
20586 cat confdefs.h >>conftest.$ac_ext
20587 cat >>conftest.$ac_ext <<_ACEOF
20588 /* end confdefs.h. */
20591 main ()
20593 static int test_array [1 - 2 * !((__alignof (omp_lock_25_t)) >= 0)];
20594 test_array [0] = 0
20597 return 0;
20599 _ACEOF
20600 rm -f conftest.$ac_objext
20601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20602 (eval $ac_compile) 2>conftest.er1
20603 ac_status=$?
20604 grep -v '^ *+' conftest.er1 >conftest.err
20605 rm -f conftest.er1
20606 cat conftest.err >&5
20607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20608 (exit $ac_status); } &&
20609 { ac_try='test -z "$ac_c_werror_flag"
20610 || test ! -s conftest.err'
20611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20612 (eval $ac_try) 2>&5
20613 ac_status=$?
20614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20615 (exit $ac_status); }; } &&
20616 { ac_try='test -s conftest.$ac_objext'
20617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20618 (eval $ac_try) 2>&5
20619 ac_status=$?
20620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20621 (exit $ac_status); }; }; then
20622 ac_lo=0 ac_mid=0
20623 while :; do
20624 cat >conftest.$ac_ext <<_ACEOF
20625 /* confdefs.h. */
20626 _ACEOF
20627 cat confdefs.h >>conftest.$ac_ext
20628 cat >>conftest.$ac_ext <<_ACEOF
20629 /* end confdefs.h. */
20632 main ()
20634 static int test_array [1 - 2 * !((__alignof (omp_lock_25_t)) <= $ac_mid)];
20635 test_array [0] = 0
20638 return 0;
20640 _ACEOF
20641 rm -f conftest.$ac_objext
20642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20643 (eval $ac_compile) 2>conftest.er1
20644 ac_status=$?
20645 grep -v '^ *+' conftest.er1 >conftest.err
20646 rm -f conftest.er1
20647 cat conftest.err >&5
20648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20649 (exit $ac_status); } &&
20650 { ac_try='test -z "$ac_c_werror_flag"
20651 || test ! -s conftest.err'
20652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20653 (eval $ac_try) 2>&5
20654 ac_status=$?
20655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20656 (exit $ac_status); }; } &&
20657 { ac_try='test -s conftest.$ac_objext'
20658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20659 (eval $ac_try) 2>&5
20660 ac_status=$?
20661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20662 (exit $ac_status); }; }; then
20663 ac_hi=$ac_mid; break
20664 else
20665 echo "$as_me: failed program was:" >&5
20666 sed 's/^/| /' conftest.$ac_ext >&5
20668 ac_lo=`expr $ac_mid + 1`
20669 if test $ac_lo -le $ac_mid; then
20670 ac_lo= ac_hi=
20671 break
20673 ac_mid=`expr 2 '*' $ac_mid + 1`
20675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20676 done
20677 else
20678 echo "$as_me: failed program was:" >&5
20679 sed 's/^/| /' conftest.$ac_ext >&5
20681 cat >conftest.$ac_ext <<_ACEOF
20682 /* confdefs.h. */
20683 _ACEOF
20684 cat confdefs.h >>conftest.$ac_ext
20685 cat >>conftest.$ac_ext <<_ACEOF
20686 /* end confdefs.h. */
20689 main ()
20691 static int test_array [1 - 2 * !((__alignof (omp_lock_25_t)) < 0)];
20692 test_array [0] = 0
20695 return 0;
20697 _ACEOF
20698 rm -f conftest.$ac_objext
20699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20700 (eval $ac_compile) 2>conftest.er1
20701 ac_status=$?
20702 grep -v '^ *+' conftest.er1 >conftest.err
20703 rm -f conftest.er1
20704 cat conftest.err >&5
20705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20706 (exit $ac_status); } &&
20707 { ac_try='test -z "$ac_c_werror_flag"
20708 || test ! -s conftest.err'
20709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20710 (eval $ac_try) 2>&5
20711 ac_status=$?
20712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20713 (exit $ac_status); }; } &&
20714 { ac_try='test -s conftest.$ac_objext'
20715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20716 (eval $ac_try) 2>&5
20717 ac_status=$?
20718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20719 (exit $ac_status); }; }; then
20720 ac_hi=-1 ac_mid=-1
20721 while :; do
20722 cat >conftest.$ac_ext <<_ACEOF
20723 /* confdefs.h. */
20724 _ACEOF
20725 cat confdefs.h >>conftest.$ac_ext
20726 cat >>conftest.$ac_ext <<_ACEOF
20727 /* end confdefs.h. */
20730 main ()
20732 static int test_array [1 - 2 * !((__alignof (omp_lock_25_t)) >= $ac_mid)];
20733 test_array [0] = 0
20736 return 0;
20738 _ACEOF
20739 rm -f conftest.$ac_objext
20740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20741 (eval $ac_compile) 2>conftest.er1
20742 ac_status=$?
20743 grep -v '^ *+' conftest.er1 >conftest.err
20744 rm -f conftest.er1
20745 cat conftest.err >&5
20746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20747 (exit $ac_status); } &&
20748 { ac_try='test -z "$ac_c_werror_flag"
20749 || test ! -s conftest.err'
20750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20751 (eval $ac_try) 2>&5
20752 ac_status=$?
20753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20754 (exit $ac_status); }; } &&
20755 { ac_try='test -s conftest.$ac_objext'
20756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20757 (eval $ac_try) 2>&5
20758 ac_status=$?
20759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20760 (exit $ac_status); }; }; then
20761 ac_lo=$ac_mid; break
20762 else
20763 echo "$as_me: failed program was:" >&5
20764 sed 's/^/| /' conftest.$ac_ext >&5
20766 ac_hi=`expr '(' $ac_mid ')' - 1`
20767 if test $ac_mid -le $ac_hi; then
20768 ac_lo= ac_hi=
20769 break
20771 ac_mid=`expr 2 '*' $ac_mid`
20773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20774 done
20775 else
20776 echo "$as_me: failed program was:" >&5
20777 sed 's/^/| /' conftest.$ac_ext >&5
20779 ac_lo= ac_hi=
20781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20784 # Binary search between lo and hi bounds.
20785 while test "x$ac_lo" != "x$ac_hi"; do
20786 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20787 cat >conftest.$ac_ext <<_ACEOF
20788 /* confdefs.h. */
20789 _ACEOF
20790 cat confdefs.h >>conftest.$ac_ext
20791 cat >>conftest.$ac_ext <<_ACEOF
20792 /* end confdefs.h. */
20795 main ()
20797 static int test_array [1 - 2 * !((__alignof (omp_lock_25_t)) <= $ac_mid)];
20798 test_array [0] = 0
20801 return 0;
20803 _ACEOF
20804 rm -f conftest.$ac_objext
20805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20806 (eval $ac_compile) 2>conftest.er1
20807 ac_status=$?
20808 grep -v '^ *+' conftest.er1 >conftest.err
20809 rm -f conftest.er1
20810 cat conftest.err >&5
20811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20812 (exit $ac_status); } &&
20813 { ac_try='test -z "$ac_c_werror_flag"
20814 || test ! -s conftest.err'
20815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20816 (eval $ac_try) 2>&5
20817 ac_status=$?
20818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20819 (exit $ac_status); }; } &&
20820 { ac_try='test -s conftest.$ac_objext'
20821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20822 (eval $ac_try) 2>&5
20823 ac_status=$?
20824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20825 (exit $ac_status); }; }; then
20826 ac_hi=$ac_mid
20827 else
20828 echo "$as_me: failed program was:" >&5
20829 sed 's/^/| /' conftest.$ac_ext >&5
20831 ac_lo=`expr '(' $ac_mid ')' + 1`
20833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20834 done
20835 case $ac_lo in
20836 ?*) OMP_LOCK_25_ALIGN=$ac_lo;;
20837 '') ;;
20838 esac
20839 else
20840 if test "$cross_compiling" = yes; then
20841 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20842 echo "$as_me: error: in \`$ac_pwd':" >&2;}
20843 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20844 See \`config.log' for more details." >&5
20845 echo "$as_me: error: cannot run test program while cross compiling
20846 See \`config.log' for more details." >&2;}
20847 { (exit 1); exit 1; }; }; }
20848 else
20849 cat >conftest.$ac_ext <<_ACEOF
20850 /* confdefs.h. */
20851 _ACEOF
20852 cat confdefs.h >>conftest.$ac_ext
20853 cat >>conftest.$ac_ext <<_ACEOF
20854 /* end confdefs.h. */
20856 long longval () { return __alignof (omp_lock_25_t); }
20857 unsigned long ulongval () { return __alignof (omp_lock_25_t); }
20858 #include <stdio.h>
20859 #include <stdlib.h>
20861 main ()
20864 FILE *f = fopen ("conftest.val", "w");
20865 if (! f)
20866 exit (1);
20867 if ((__alignof (omp_lock_25_t)) < 0)
20869 long i = longval ();
20870 if (i != (__alignof (omp_lock_25_t)))
20871 exit (1);
20872 fprintf (f, "%ld\n", i);
20874 else
20876 unsigned long i = ulongval ();
20877 if (i != (__alignof (omp_lock_25_t)))
20878 exit (1);
20879 fprintf (f, "%lu\n", i);
20881 exit (ferror (f) || fclose (f) != 0);
20884 return 0;
20886 _ACEOF
20887 rm -f conftest$ac_exeext
20888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20889 (eval $ac_link) 2>&5
20890 ac_status=$?
20891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20892 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20894 (eval $ac_try) 2>&5
20895 ac_status=$?
20896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20897 (exit $ac_status); }; }; then
20898 OMP_LOCK_25_ALIGN=`cat conftest.val`
20899 else
20900 echo "$as_me: program exited with status $ac_status" >&5
20901 echo "$as_me: failed program was:" >&5
20902 sed 's/^/| /' conftest.$ac_ext >&5
20905 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20908 rm -f conftest.val
20909 if test "$cross_compiling" = yes; then
20910 # Depending upon the size, compute the lo and hi bounds.
20911 cat >conftest.$ac_ext <<_ACEOF
20912 /* confdefs.h. */
20913 _ACEOF
20914 cat confdefs.h >>conftest.$ac_ext
20915 cat >>conftest.$ac_ext <<_ACEOF
20916 /* end confdefs.h. */
20919 main ()
20921 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_25_t)) >= 0)];
20922 test_array [0] = 0
20925 return 0;
20927 _ACEOF
20928 rm -f conftest.$ac_objext
20929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20930 (eval $ac_compile) 2>conftest.er1
20931 ac_status=$?
20932 grep -v '^ *+' conftest.er1 >conftest.err
20933 rm -f conftest.er1
20934 cat conftest.err >&5
20935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20936 (exit $ac_status); } &&
20937 { ac_try='test -z "$ac_c_werror_flag"
20938 || test ! -s conftest.err'
20939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20940 (eval $ac_try) 2>&5
20941 ac_status=$?
20942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20943 (exit $ac_status); }; } &&
20944 { ac_try='test -s conftest.$ac_objext'
20945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20946 (eval $ac_try) 2>&5
20947 ac_status=$?
20948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20949 (exit $ac_status); }; }; then
20950 ac_lo=0 ac_mid=0
20951 while :; do
20952 cat >conftest.$ac_ext <<_ACEOF
20953 /* confdefs.h. */
20954 _ACEOF
20955 cat confdefs.h >>conftest.$ac_ext
20956 cat >>conftest.$ac_ext <<_ACEOF
20957 /* end confdefs.h. */
20960 main ()
20962 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_25_t)) <= $ac_mid)];
20963 test_array [0] = 0
20966 return 0;
20968 _ACEOF
20969 rm -f conftest.$ac_objext
20970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20971 (eval $ac_compile) 2>conftest.er1
20972 ac_status=$?
20973 grep -v '^ *+' conftest.er1 >conftest.err
20974 rm -f conftest.er1
20975 cat conftest.err >&5
20976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20977 (exit $ac_status); } &&
20978 { ac_try='test -z "$ac_c_werror_flag"
20979 || test ! -s conftest.err'
20980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20981 (eval $ac_try) 2>&5
20982 ac_status=$?
20983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20984 (exit $ac_status); }; } &&
20985 { ac_try='test -s conftest.$ac_objext'
20986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20987 (eval $ac_try) 2>&5
20988 ac_status=$?
20989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20990 (exit $ac_status); }; }; then
20991 ac_hi=$ac_mid; break
20992 else
20993 echo "$as_me: failed program was:" >&5
20994 sed 's/^/| /' conftest.$ac_ext >&5
20996 ac_lo=`expr $ac_mid + 1`
20997 if test $ac_lo -le $ac_mid; then
20998 ac_lo= ac_hi=
20999 break
21001 ac_mid=`expr 2 '*' $ac_mid + 1`
21003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21004 done
21005 else
21006 echo "$as_me: failed program was:" >&5
21007 sed 's/^/| /' conftest.$ac_ext >&5
21009 cat >conftest.$ac_ext <<_ACEOF
21010 /* confdefs.h. */
21011 _ACEOF
21012 cat confdefs.h >>conftest.$ac_ext
21013 cat >>conftest.$ac_ext <<_ACEOF
21014 /* end confdefs.h. */
21017 main ()
21019 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_25_t)) < 0)];
21020 test_array [0] = 0
21023 return 0;
21025 _ACEOF
21026 rm -f conftest.$ac_objext
21027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21028 (eval $ac_compile) 2>conftest.er1
21029 ac_status=$?
21030 grep -v '^ *+' conftest.er1 >conftest.err
21031 rm -f conftest.er1
21032 cat conftest.err >&5
21033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21034 (exit $ac_status); } &&
21035 { ac_try='test -z "$ac_c_werror_flag"
21036 || test ! -s conftest.err'
21037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21038 (eval $ac_try) 2>&5
21039 ac_status=$?
21040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21041 (exit $ac_status); }; } &&
21042 { ac_try='test -s conftest.$ac_objext'
21043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21044 (eval $ac_try) 2>&5
21045 ac_status=$?
21046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21047 (exit $ac_status); }; }; then
21048 ac_hi=-1 ac_mid=-1
21049 while :; do
21050 cat >conftest.$ac_ext <<_ACEOF
21051 /* confdefs.h. */
21052 _ACEOF
21053 cat confdefs.h >>conftest.$ac_ext
21054 cat >>conftest.$ac_ext <<_ACEOF
21055 /* end confdefs.h. */
21058 main ()
21060 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_25_t)) >= $ac_mid)];
21061 test_array [0] = 0
21064 return 0;
21066 _ACEOF
21067 rm -f conftest.$ac_objext
21068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21069 (eval $ac_compile) 2>conftest.er1
21070 ac_status=$?
21071 grep -v '^ *+' conftest.er1 >conftest.err
21072 rm -f conftest.er1
21073 cat conftest.err >&5
21074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21075 (exit $ac_status); } &&
21076 { ac_try='test -z "$ac_c_werror_flag"
21077 || test ! -s conftest.err'
21078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21079 (eval $ac_try) 2>&5
21080 ac_status=$?
21081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21082 (exit $ac_status); }; } &&
21083 { ac_try='test -s conftest.$ac_objext'
21084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21085 (eval $ac_try) 2>&5
21086 ac_status=$?
21087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21088 (exit $ac_status); }; }; then
21089 ac_lo=$ac_mid; break
21090 else
21091 echo "$as_me: failed program was:" >&5
21092 sed 's/^/| /' conftest.$ac_ext >&5
21094 ac_hi=`expr '(' $ac_mid ')' - 1`
21095 if test $ac_mid -le $ac_hi; then
21096 ac_lo= ac_hi=
21097 break
21099 ac_mid=`expr 2 '*' $ac_mid`
21101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21102 done
21103 else
21104 echo "$as_me: failed program was:" >&5
21105 sed 's/^/| /' conftest.$ac_ext >&5
21107 ac_lo= ac_hi=
21109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21111 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21112 # Binary search between lo and hi bounds.
21113 while test "x$ac_lo" != "x$ac_hi"; do
21114 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21115 cat >conftest.$ac_ext <<_ACEOF
21116 /* confdefs.h. */
21117 _ACEOF
21118 cat confdefs.h >>conftest.$ac_ext
21119 cat >>conftest.$ac_ext <<_ACEOF
21120 /* end confdefs.h. */
21123 main ()
21125 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_25_t)) <= $ac_mid)];
21126 test_array [0] = 0
21129 return 0;
21131 _ACEOF
21132 rm -f conftest.$ac_objext
21133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21134 (eval $ac_compile) 2>conftest.er1
21135 ac_status=$?
21136 grep -v '^ *+' conftest.er1 >conftest.err
21137 rm -f conftest.er1
21138 cat conftest.err >&5
21139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21140 (exit $ac_status); } &&
21141 { ac_try='test -z "$ac_c_werror_flag"
21142 || test ! -s conftest.err'
21143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21144 (eval $ac_try) 2>&5
21145 ac_status=$?
21146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21147 (exit $ac_status); }; } &&
21148 { ac_try='test -s conftest.$ac_objext'
21149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21150 (eval $ac_try) 2>&5
21151 ac_status=$?
21152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21153 (exit $ac_status); }; }; then
21154 ac_hi=$ac_mid
21155 else
21156 echo "$as_me: failed program was:" >&5
21157 sed 's/^/| /' conftest.$ac_ext >&5
21159 ac_lo=`expr '(' $ac_mid ')' + 1`
21161 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21162 done
21163 case $ac_lo in
21164 ?*) OMP_NEST_LOCK_25_SIZE=$ac_lo;;
21165 '') ;;
21166 esac
21167 else
21168 if test "$cross_compiling" = yes; then
21169 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21170 echo "$as_me: error: in \`$ac_pwd':" >&2;}
21171 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21172 See \`config.log' for more details." >&5
21173 echo "$as_me: error: cannot run test program while cross compiling
21174 See \`config.log' for more details." >&2;}
21175 { (exit 1); exit 1; }; }; }
21176 else
21177 cat >conftest.$ac_ext <<_ACEOF
21178 /* confdefs.h. */
21179 _ACEOF
21180 cat confdefs.h >>conftest.$ac_ext
21181 cat >>conftest.$ac_ext <<_ACEOF
21182 /* end confdefs.h. */
21184 long longval () { return sizeof (omp_nest_lock_25_t); }
21185 unsigned long ulongval () { return sizeof (omp_nest_lock_25_t); }
21186 #include <stdio.h>
21187 #include <stdlib.h>
21189 main ()
21192 FILE *f = fopen ("conftest.val", "w");
21193 if (! f)
21194 exit (1);
21195 if ((sizeof (omp_nest_lock_25_t)) < 0)
21197 long i = longval ();
21198 if (i != (sizeof (omp_nest_lock_25_t)))
21199 exit (1);
21200 fprintf (f, "%ld\n", i);
21202 else
21204 unsigned long i = ulongval ();
21205 if (i != (sizeof (omp_nest_lock_25_t)))
21206 exit (1);
21207 fprintf (f, "%lu\n", i);
21209 exit (ferror (f) || fclose (f) != 0);
21212 return 0;
21214 _ACEOF
21215 rm -f conftest$ac_exeext
21216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21217 (eval $ac_link) 2>&5
21218 ac_status=$?
21219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21220 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21222 (eval $ac_try) 2>&5
21223 ac_status=$?
21224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21225 (exit $ac_status); }; }; then
21226 OMP_NEST_LOCK_25_SIZE=`cat conftest.val`
21227 else
21228 echo "$as_me: program exited with status $ac_status" >&5
21229 echo "$as_me: failed program was:" >&5
21230 sed 's/^/| /' conftest.$ac_ext >&5
21233 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21236 rm -f conftest.val
21237 if test "$cross_compiling" = yes; then
21238 # Depending upon the size, compute the lo and hi bounds.
21239 cat >conftest.$ac_ext <<_ACEOF
21240 /* confdefs.h. */
21241 _ACEOF
21242 cat confdefs.h >>conftest.$ac_ext
21243 cat >>conftest.$ac_ext <<_ACEOF
21244 /* end confdefs.h. */
21247 main ()
21249 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_25_t)) >= 0)];
21250 test_array [0] = 0
21253 return 0;
21255 _ACEOF
21256 rm -f conftest.$ac_objext
21257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21258 (eval $ac_compile) 2>conftest.er1
21259 ac_status=$?
21260 grep -v '^ *+' conftest.er1 >conftest.err
21261 rm -f conftest.er1
21262 cat conftest.err >&5
21263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21264 (exit $ac_status); } &&
21265 { ac_try='test -z "$ac_c_werror_flag"
21266 || test ! -s conftest.err'
21267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21268 (eval $ac_try) 2>&5
21269 ac_status=$?
21270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21271 (exit $ac_status); }; } &&
21272 { ac_try='test -s conftest.$ac_objext'
21273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21274 (eval $ac_try) 2>&5
21275 ac_status=$?
21276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21277 (exit $ac_status); }; }; then
21278 ac_lo=0 ac_mid=0
21279 while :; do
21280 cat >conftest.$ac_ext <<_ACEOF
21281 /* confdefs.h. */
21282 _ACEOF
21283 cat confdefs.h >>conftest.$ac_ext
21284 cat >>conftest.$ac_ext <<_ACEOF
21285 /* end confdefs.h. */
21288 main ()
21290 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_25_t)) <= $ac_mid)];
21291 test_array [0] = 0
21294 return 0;
21296 _ACEOF
21297 rm -f conftest.$ac_objext
21298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21299 (eval $ac_compile) 2>conftest.er1
21300 ac_status=$?
21301 grep -v '^ *+' conftest.er1 >conftest.err
21302 rm -f conftest.er1
21303 cat conftest.err >&5
21304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21305 (exit $ac_status); } &&
21306 { ac_try='test -z "$ac_c_werror_flag"
21307 || test ! -s conftest.err'
21308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21309 (eval $ac_try) 2>&5
21310 ac_status=$?
21311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21312 (exit $ac_status); }; } &&
21313 { ac_try='test -s conftest.$ac_objext'
21314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21315 (eval $ac_try) 2>&5
21316 ac_status=$?
21317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21318 (exit $ac_status); }; }; then
21319 ac_hi=$ac_mid; break
21320 else
21321 echo "$as_me: failed program was:" >&5
21322 sed 's/^/| /' conftest.$ac_ext >&5
21324 ac_lo=`expr $ac_mid + 1`
21325 if test $ac_lo -le $ac_mid; then
21326 ac_lo= ac_hi=
21327 break
21329 ac_mid=`expr 2 '*' $ac_mid + 1`
21331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21332 done
21333 else
21334 echo "$as_me: failed program was:" >&5
21335 sed 's/^/| /' conftest.$ac_ext >&5
21337 cat >conftest.$ac_ext <<_ACEOF
21338 /* confdefs.h. */
21339 _ACEOF
21340 cat confdefs.h >>conftest.$ac_ext
21341 cat >>conftest.$ac_ext <<_ACEOF
21342 /* end confdefs.h. */
21345 main ()
21347 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_25_t)) < 0)];
21348 test_array [0] = 0
21351 return 0;
21353 _ACEOF
21354 rm -f conftest.$ac_objext
21355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21356 (eval $ac_compile) 2>conftest.er1
21357 ac_status=$?
21358 grep -v '^ *+' conftest.er1 >conftest.err
21359 rm -f conftest.er1
21360 cat conftest.err >&5
21361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21362 (exit $ac_status); } &&
21363 { ac_try='test -z "$ac_c_werror_flag"
21364 || test ! -s conftest.err'
21365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21366 (eval $ac_try) 2>&5
21367 ac_status=$?
21368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21369 (exit $ac_status); }; } &&
21370 { ac_try='test -s conftest.$ac_objext'
21371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21372 (eval $ac_try) 2>&5
21373 ac_status=$?
21374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21375 (exit $ac_status); }; }; then
21376 ac_hi=-1 ac_mid=-1
21377 while :; do
21378 cat >conftest.$ac_ext <<_ACEOF
21379 /* confdefs.h. */
21380 _ACEOF
21381 cat confdefs.h >>conftest.$ac_ext
21382 cat >>conftest.$ac_ext <<_ACEOF
21383 /* end confdefs.h. */
21386 main ()
21388 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_25_t)) >= $ac_mid)];
21389 test_array [0] = 0
21392 return 0;
21394 _ACEOF
21395 rm -f conftest.$ac_objext
21396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21397 (eval $ac_compile) 2>conftest.er1
21398 ac_status=$?
21399 grep -v '^ *+' conftest.er1 >conftest.err
21400 rm -f conftest.er1
21401 cat conftest.err >&5
21402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21403 (exit $ac_status); } &&
21404 { ac_try='test -z "$ac_c_werror_flag"
21405 || test ! -s conftest.err'
21406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21407 (eval $ac_try) 2>&5
21408 ac_status=$?
21409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21410 (exit $ac_status); }; } &&
21411 { ac_try='test -s conftest.$ac_objext'
21412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21413 (eval $ac_try) 2>&5
21414 ac_status=$?
21415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21416 (exit $ac_status); }; }; then
21417 ac_lo=$ac_mid; break
21418 else
21419 echo "$as_me: failed program was:" >&5
21420 sed 's/^/| /' conftest.$ac_ext >&5
21422 ac_hi=`expr '(' $ac_mid ')' - 1`
21423 if test $ac_mid -le $ac_hi; then
21424 ac_lo= ac_hi=
21425 break
21427 ac_mid=`expr 2 '*' $ac_mid`
21429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21430 done
21431 else
21432 echo "$as_me: failed program was:" >&5
21433 sed 's/^/| /' conftest.$ac_ext >&5
21435 ac_lo= ac_hi=
21437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21439 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21440 # Binary search between lo and hi bounds.
21441 while test "x$ac_lo" != "x$ac_hi"; do
21442 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21443 cat >conftest.$ac_ext <<_ACEOF
21444 /* confdefs.h. */
21445 _ACEOF
21446 cat confdefs.h >>conftest.$ac_ext
21447 cat >>conftest.$ac_ext <<_ACEOF
21448 /* end confdefs.h. */
21451 main ()
21453 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_25_t)) <= $ac_mid)];
21454 test_array [0] = 0
21457 return 0;
21459 _ACEOF
21460 rm -f conftest.$ac_objext
21461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21462 (eval $ac_compile) 2>conftest.er1
21463 ac_status=$?
21464 grep -v '^ *+' conftest.er1 >conftest.err
21465 rm -f conftest.er1
21466 cat conftest.err >&5
21467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21468 (exit $ac_status); } &&
21469 { ac_try='test -z "$ac_c_werror_flag"
21470 || test ! -s conftest.err'
21471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21472 (eval $ac_try) 2>&5
21473 ac_status=$?
21474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21475 (exit $ac_status); }; } &&
21476 { ac_try='test -s conftest.$ac_objext'
21477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21478 (eval $ac_try) 2>&5
21479 ac_status=$?
21480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21481 (exit $ac_status); }; }; then
21482 ac_hi=$ac_mid
21483 else
21484 echo "$as_me: failed program was:" >&5
21485 sed 's/^/| /' conftest.$ac_ext >&5
21487 ac_lo=`expr '(' $ac_mid ')' + 1`
21489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21490 done
21491 case $ac_lo in
21492 ?*) OMP_NEST_LOCK_25_ALIGN=$ac_lo;;
21493 '') ;;
21494 esac
21495 else
21496 if test "$cross_compiling" = yes; then
21497 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21498 echo "$as_me: error: in \`$ac_pwd':" >&2;}
21499 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21500 See \`config.log' for more details." >&5
21501 echo "$as_me: error: cannot run test program while cross compiling
21502 See \`config.log' for more details." >&2;}
21503 { (exit 1); exit 1; }; }; }
21504 else
21505 cat >conftest.$ac_ext <<_ACEOF
21506 /* confdefs.h. */
21507 _ACEOF
21508 cat confdefs.h >>conftest.$ac_ext
21509 cat >>conftest.$ac_ext <<_ACEOF
21510 /* end confdefs.h. */
21512 long longval () { return __alignof (omp_nest_lock_25_t); }
21513 unsigned long ulongval () { return __alignof (omp_nest_lock_25_t); }
21514 #include <stdio.h>
21515 #include <stdlib.h>
21517 main ()
21520 FILE *f = fopen ("conftest.val", "w");
21521 if (! f)
21522 exit (1);
21523 if ((__alignof (omp_nest_lock_25_t)) < 0)
21525 long i = longval ();
21526 if (i != (__alignof (omp_nest_lock_25_t)))
21527 exit (1);
21528 fprintf (f, "%ld\n", i);
21530 else
21532 unsigned long i = ulongval ();
21533 if (i != (__alignof (omp_nest_lock_25_t)))
21534 exit (1);
21535 fprintf (f, "%lu\n", i);
21537 exit (ferror (f) || fclose (f) != 0);
21540 return 0;
21542 _ACEOF
21543 rm -f conftest$ac_exeext
21544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21545 (eval $ac_link) 2>&5
21546 ac_status=$?
21547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21548 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21550 (eval $ac_try) 2>&5
21551 ac_status=$?
21552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21553 (exit $ac_status); }; }; then
21554 OMP_NEST_LOCK_25_ALIGN=`cat conftest.val`
21555 else
21556 echo "$as_me: program exited with status $ac_status" >&5
21557 echo "$as_me: failed program was:" >&5
21558 sed 's/^/| /' conftest.$ac_ext >&5
21561 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21564 rm -f conftest.val
21566 # If the lock fits in an integer, then arrange for Fortran to use that
21567 # integer. If it doesn't, then arrange for Fortran to use a pointer.
21568 # Except that we don't have a way at present to multi-lib the installed
21569 # Fortran modules, so we assume 8 bytes for pointers, regardless of the
21570 # actual target.
21571 OMP_LOCK_KIND=$OMP_LOCK_SIZE
21572 OMP_NEST_LOCK_KIND=$OMP_NEST_LOCK_SIZE
21573 if test $OMP_LOCK_SIZE -gt 8 || test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then
21574 OMP_LOCK_KIND=8
21576 if test $OMP_NEST_LOCK_SIZE -gt 8 || test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then
21577 OMP_NEST_LOCK_KIND=8
21579 OMP_LOCK_25_KIND=$OMP_LOCK_25_SIZE
21580 OMP_NEST_LOCK_25_KIND=$OMP_NEST_LOCK_25_SIZE
21581 if test $OMP_LOCK_25_SIZE -gt 8 || test $OMP_LOCK_25_ALIGN -gt $OMP_LOCK_25_SIZE; then
21582 OMP_LOCK_25_KIND=8
21584 if test $OMP_NEST_LOCK_25_SIZE -gt 8 || test $OMP_NEST_LOCK_25_ALIGN -gt $OMP_NEST_LOCK_25_SIZE; then
21585 OMP_NEST_LOCK_25_KIND=8
21600 CFLAGS="$save_CFLAGS"
21602 ac_config_files="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h"
21604 ac_config_files="$ac_config_files Makefile testsuite/Makefile libgomp.spec"
21606 cat >confcache <<\_ACEOF
21607 # This file is a shell script that caches the results of configure
21608 # tests run on this system so they can be shared between configure
21609 # scripts and configure runs, see configure's option --config-cache.
21610 # It is not useful on other systems. If it contains results you don't
21611 # want to keep, you may remove or edit it.
21613 # config.status only pays attention to the cache file if you give it
21614 # the --recheck option to rerun configure.
21616 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21617 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21618 # following values.
21620 _ACEOF
21622 # The following way of writing the cache mishandles newlines in values,
21623 # but we know of no workaround that is simple, portable, and efficient.
21624 # So, don't put newlines in cache variables' values.
21625 # Ultrix sh set writes to stderr and can't be redirected directly,
21626 # and sets the high bit in the cache file unless we assign to the vars.
21628 (set) 2>&1 |
21629 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21630 *ac_space=\ *)
21631 # `set' does not quote correctly, so add quotes (double-quote
21632 # substitution turns \\\\ into \\, and sed turns \\ into \).
21633 sed -n \
21634 "s/'/'\\\\''/g;
21635 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21638 # `set' quotes correctly as required by POSIX, so do not add quotes.
21639 sed -n \
21640 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21642 esac;
21644 sed '
21645 t clear
21646 : clear
21647 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21648 t end
21649 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21650 : end' >>confcache
21651 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21652 if test -w $cache_file; then
21653 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21654 cat confcache >$cache_file
21655 else
21656 echo "not updating unwritable cache $cache_file"
21659 rm -f confcache
21661 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21662 # Let make expand exec_prefix.
21663 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21665 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21666 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21667 # trailing colons and then remove the whole line if VPATH becomes empty
21668 # (actually we leave an empty line to preserve line numbers).
21669 if test "x$srcdir" = x.; then
21670 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21671 s/:*\$(srcdir):*/:/;
21672 s/:*\${srcdir}:*/:/;
21673 s/:*@srcdir@:*/:/;
21674 s/^\([^=]*=[ ]*\):*/\1/;
21675 s/:*$//;
21676 s/^[^=]*=[ ]*$//;
21680 DEFS=-DHAVE_CONFIG_H
21682 ac_libobjs=
21683 ac_ltlibobjs=
21684 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21685 # 1. Remove the extension, and $U if already installed.
21686 ac_i=`echo "$ac_i" |
21687 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21688 # 2. Add them.
21689 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21690 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21691 done
21692 LIBOBJS=$ac_libobjs
21694 LTLIBOBJS=$ac_ltlibobjs
21697 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
21698 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC\" was never defined.
21699 Usually this means the macro was only invoked conditionally." >&5
21700 echo "$as_me: error: conditional \"GENINSRC\" was never defined.
21701 Usually this means the macro was only invoked conditionally." >&2;}
21702 { (exit 1); exit 1; }; }
21704 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21705 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21706 Usually this means the macro was only invoked conditionally." >&5
21707 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21708 Usually this means the macro was only invoked conditionally." >&2;}
21709 { (exit 1); exit 1; }; }
21711 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21712 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21713 Usually this means the macro was only invoked conditionally." >&5
21714 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21715 Usually this means the macro was only invoked conditionally." >&2;}
21716 { (exit 1); exit 1; }; }
21718 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
21719 { { echo "$as_me:$LINENO: error: conditional \"BUILD_INFO\" was never defined.
21720 Usually this means the macro was only invoked conditionally." >&5
21721 echo "$as_me: error: conditional \"BUILD_INFO\" was never defined.
21722 Usually this means the macro was only invoked conditionally." >&2;}
21723 { (exit 1); exit 1; }; }
21725 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21726 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21727 Usually this means the macro was only invoked conditionally." >&5
21728 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21729 Usually this means the macro was only invoked conditionally." >&2;}
21730 { (exit 1); exit 1; }; }
21732 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
21733 { { echo "$as_me:$LINENO: error: conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
21734 Usually this means the macro was only invoked conditionally." >&5
21735 echo "$as_me: error: conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
21736 Usually this means the macro was only invoked conditionally." >&2;}
21737 { (exit 1); exit 1; }; }
21739 if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
21740 { { echo "$as_me:$LINENO: error: conditional \"USE_FORTRAN\" was never defined.
21741 Usually this means the macro was only invoked conditionally." >&5
21742 echo "$as_me: error: conditional \"USE_FORTRAN\" was never defined.
21743 Usually this means the macro was only invoked conditionally." >&2;}
21744 { (exit 1); exit 1; }; }
21747 : ${CONFIG_STATUS=./config.status}
21748 ac_clean_files_save=$ac_clean_files
21749 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21750 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21751 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21752 cat >$CONFIG_STATUS <<_ACEOF
21753 #! $SHELL
21754 # Generated by $as_me.
21755 # Run this file to recreate the current configuration.
21756 # Compiler output produced by configure, useful for debugging
21757 # configure, is in config.log if it exists.
21759 debug=false
21760 ac_cs_recheck=false
21761 ac_cs_silent=false
21762 SHELL=\${CONFIG_SHELL-$SHELL}
21763 _ACEOF
21765 cat >>$CONFIG_STATUS <<\_ACEOF
21766 ## --------------------- ##
21767 ## M4sh Initialization. ##
21768 ## --------------------- ##
21770 # Be Bourne compatible
21771 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21772 emulate sh
21773 NULLCMD=:
21774 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21775 # is contrary to our usage. Disable this feature.
21776 alias -g '${1+"$@"}'='"$@"'
21777 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21778 set -o posix
21780 DUALCASE=1; export DUALCASE # for MKS sh
21782 # Support unset when possible.
21783 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21784 as_unset=unset
21785 else
21786 as_unset=false
21790 # Work around bugs in pre-3.0 UWIN ksh.
21791 $as_unset ENV MAIL MAILPATH
21792 PS1='$ '
21793 PS2='> '
21794 PS4='+ '
21796 # NLS nuisances.
21797 for as_var in \
21798 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21799 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21800 LC_TELEPHONE LC_TIME
21802 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21803 eval $as_var=C; export $as_var
21804 else
21805 $as_unset $as_var
21807 done
21809 # Required to use basename.
21810 if expr a : '\(a\)' >/dev/null 2>&1; then
21811 as_expr=expr
21812 else
21813 as_expr=false
21816 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21817 as_basename=basename
21818 else
21819 as_basename=false
21823 # Name of the executable.
21824 as_me=`$as_basename "$0" ||
21825 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21826 X"$0" : 'X\(//\)$' \| \
21827 X"$0" : 'X\(/\)$' \| \
21828 . : '\(.\)' 2>/dev/null ||
21829 echo X/"$0" |
21830 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21831 /^X\/\(\/\/\)$/{ s//\1/; q; }
21832 /^X\/\(\/\).*/{ s//\1/; q; }
21833 s/.*/./; q'`
21836 # PATH needs CR, and LINENO needs CR and PATH.
21837 # Avoid depending upon Character Ranges.
21838 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21839 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21840 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21841 as_cr_digits='0123456789'
21842 as_cr_alnum=$as_cr_Letters$as_cr_digits
21844 # The user is always right.
21845 if test "${PATH_SEPARATOR+set}" != set; then
21846 echo "#! /bin/sh" >conf$$.sh
21847 echo "exit 0" >>conf$$.sh
21848 chmod +x conf$$.sh
21849 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21850 PATH_SEPARATOR=';'
21851 else
21852 PATH_SEPARATOR=:
21854 rm -f conf$$.sh
21858 as_lineno_1=$LINENO
21859 as_lineno_2=$LINENO
21860 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21861 test "x$as_lineno_1" != "x$as_lineno_2" &&
21862 test "x$as_lineno_3" = "x$as_lineno_2" || {
21863 # Find who we are. Look in the path if we contain no path at all
21864 # relative or not.
21865 case $0 in
21866 *[\\/]* ) as_myself=$0 ;;
21867 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21868 for as_dir in $PATH
21870 IFS=$as_save_IFS
21871 test -z "$as_dir" && as_dir=.
21872 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21873 done
21876 esac
21877 # We did not find ourselves, most probably we were run as `sh COMMAND'
21878 # in which case we are not to be found in the path.
21879 if test "x$as_myself" = x; then
21880 as_myself=$0
21882 if test ! -f "$as_myself"; then
21883 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21884 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21885 { (exit 1); exit 1; }; }
21887 case $CONFIG_SHELL in
21889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21890 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21892 IFS=$as_save_IFS
21893 test -z "$as_dir" && as_dir=.
21894 for as_base in sh bash ksh sh5; do
21895 case $as_dir in
21897 if ("$as_dir/$as_base" -c '
21898 as_lineno_1=$LINENO
21899 as_lineno_2=$LINENO
21900 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21901 test "x$as_lineno_1" != "x$as_lineno_2" &&
21902 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
21903 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21904 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21905 CONFIG_SHELL=$as_dir/$as_base
21906 export CONFIG_SHELL
21907 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21908 fi;;
21909 esac
21910 done
21911 done
21913 esac
21915 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21916 # uniformly replaced by the line number. The first 'sed' inserts a
21917 # line-number line before each line; the second 'sed' does the real
21918 # work. The second script uses 'N' to pair each line-number line
21919 # with the numbered line, and appends trailing '-' during
21920 # substitution so that $LINENO is not a special case at line end.
21921 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21922 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21923 sed '=' <$as_myself |
21924 sed '
21926 s,$,-,
21927 : loop
21928 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21929 t loop
21930 s,-$,,
21931 s,^['$as_cr_digits']*\n,,
21932 ' >$as_me.lineno &&
21933 chmod +x $as_me.lineno ||
21934 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21935 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21936 { (exit 1); exit 1; }; }
21938 # Don't try to exec as it changes $[0], causing all sort of problems
21939 # (the dirname of $[0] is not the place where we might find the
21940 # original and so on. Autoconf is especially sensible to this).
21941 . ./$as_me.lineno
21942 # Exit status is that of the last command.
21943 exit
21947 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21948 *c*,-n*) ECHO_N= ECHO_C='
21949 ' ECHO_T=' ' ;;
21950 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21951 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21952 esac
21954 if expr a : '\(a\)' >/dev/null 2>&1; then
21955 as_expr=expr
21956 else
21957 as_expr=false
21960 rm -f conf$$ conf$$.exe conf$$.file
21961 echo >conf$$.file
21962 if ln -s conf$$.file conf$$ 2>/dev/null; then
21963 # We could just check for DJGPP; but this test a) works b) is more generic
21964 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21965 if test -f conf$$.exe; then
21966 # Don't use ln at all; we don't have any links
21967 as_ln_s='cp -p'
21968 else
21969 as_ln_s='ln -s'
21971 elif ln conf$$.file conf$$ 2>/dev/null; then
21972 as_ln_s=ln
21973 else
21974 as_ln_s='cp -p'
21976 rm -f conf$$ conf$$.exe conf$$.file
21978 if mkdir -p . 2>/dev/null; then
21979 as_mkdir_p=:
21980 else
21981 test -d ./-p && rmdir ./-p
21982 as_mkdir_p=false
21985 as_executable_p="test -f"
21987 # Sed expression to map a string onto a valid CPP name.
21988 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21990 # Sed expression to map a string onto a valid variable name.
21991 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21994 # IFS
21995 # We need space, tab and new line, in precisely that order.
21996 as_nl='
21998 IFS=" $as_nl"
22000 # CDPATH.
22001 $as_unset CDPATH
22003 exec 6>&1
22005 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22006 # report actual input values of CONFIG_FILES etc. instead of their
22007 # values after options handling. Logging --version etc. is OK.
22008 exec 5>>config.log
22010 echo
22011 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22012 ## Running $as_me. ##
22013 _ASBOX
22014 } >&5
22015 cat >&5 <<_CSEOF
22017 This file was extended by GNU OpenMP Runtime Library $as_me 1.0, which was
22018 generated by GNU Autoconf 2.59. Invocation command line was
22020 CONFIG_FILES = $CONFIG_FILES
22021 CONFIG_HEADERS = $CONFIG_HEADERS
22022 CONFIG_LINKS = $CONFIG_LINKS
22023 CONFIG_COMMANDS = $CONFIG_COMMANDS
22024 $ $0 $@
22026 _CSEOF
22027 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22028 echo >&5
22029 _ACEOF
22031 # Files that config.status was made for.
22032 if test -n "$ac_config_files"; then
22033 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22036 if test -n "$ac_config_headers"; then
22037 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22040 if test -n "$ac_config_links"; then
22041 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22044 if test -n "$ac_config_commands"; then
22045 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22048 cat >>$CONFIG_STATUS <<\_ACEOF
22050 ac_cs_usage="\
22051 \`$as_me' instantiates files from templates according to the
22052 current configuration.
22054 Usage: $0 [OPTIONS] [FILE]...
22056 -h, --help print this help, then exit
22057 -V, --version print version number, then exit
22058 -q, --quiet do not print progress messages
22059 -d, --debug don't remove temporary files
22060 --recheck update $as_me by reconfiguring in the same conditions
22061 --file=FILE[:TEMPLATE]
22062 instantiate the configuration file FILE
22063 --header=FILE[:TEMPLATE]
22064 instantiate the configuration header FILE
22066 Configuration files:
22067 $config_files
22069 Configuration headers:
22070 $config_headers
22072 Configuration commands:
22073 $config_commands
22075 Report bugs to <bug-autoconf@gnu.org>."
22076 _ACEOF
22078 cat >>$CONFIG_STATUS <<_ACEOF
22079 ac_cs_version="\\
22080 GNU OpenMP Runtime Library config.status 1.0
22081 configured by $0, generated by GNU Autoconf 2.59,
22082 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22084 Copyright (C) 2003 Free Software Foundation, Inc.
22085 This config.status script is free software; the Free Software Foundation
22086 gives unlimited permission to copy, distribute and modify it."
22087 srcdir=$srcdir
22088 INSTALL="$INSTALL"
22089 _ACEOF
22091 cat >>$CONFIG_STATUS <<\_ACEOF
22092 # If no file are specified by the user, then we need to provide default
22093 # value. By we need to know if files were specified by the user.
22094 ac_need_defaults=:
22095 while test $# != 0
22097 case $1 in
22098 --*=*)
22099 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22100 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22101 ac_shift=:
22104 ac_option=$1
22105 ac_optarg=$2
22106 ac_shift=shift
22108 *) # This is not an option, so the user has probably given explicit
22109 # arguments.
22110 ac_option=$1
22111 ac_need_defaults=false;;
22112 esac
22114 case $ac_option in
22115 # Handling of the options.
22116 _ACEOF
22117 cat >>$CONFIG_STATUS <<\_ACEOF
22118 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22119 ac_cs_recheck=: ;;
22120 --version | --vers* | -V )
22121 echo "$ac_cs_version"; exit 0 ;;
22122 --he | --h)
22123 # Conflict between --help and --header
22124 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22125 Try \`$0 --help' for more information." >&5
22126 echo "$as_me: error: ambiguous option: $1
22127 Try \`$0 --help' for more information." >&2;}
22128 { (exit 1); exit 1; }; };;
22129 --help | --hel | -h )
22130 echo "$ac_cs_usage"; exit 0 ;;
22131 --debug | --d* | -d )
22132 debug=: ;;
22133 --file | --fil | --fi | --f )
22134 $ac_shift
22135 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22136 ac_need_defaults=false;;
22137 --header | --heade | --head | --hea )
22138 $ac_shift
22139 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22140 ac_need_defaults=false;;
22141 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22142 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22143 ac_cs_silent=: ;;
22145 # This is an error.
22146 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22147 Try \`$0 --help' for more information." >&5
22148 echo "$as_me: error: unrecognized option: $1
22149 Try \`$0 --help' for more information." >&2;}
22150 { (exit 1); exit 1; }; } ;;
22152 *) ac_config_targets="$ac_config_targets $1" ;;
22154 esac
22155 shift
22156 done
22158 ac_configure_extra_args=
22160 if $ac_cs_silent; then
22161 exec 6>/dev/null
22162 ac_configure_extra_args="$ac_configure_extra_args --silent"
22165 _ACEOF
22166 cat >>$CONFIG_STATUS <<_ACEOF
22167 if \$ac_cs_recheck; then
22168 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22169 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22172 _ACEOF
22174 cat >>$CONFIG_STATUS <<_ACEOF
22176 # INIT-COMMANDS section.
22180 srcdir="$srcdir"
22181 host="$host"
22182 target="$target"
22183 with_multisubdir="$with_multisubdir"
22184 with_multisrctop="$with_multisrctop"
22185 with_target_subdir="$with_target_subdir"
22186 ac_configure_args="${multilib_arg} ${ac_configure_args}"
22187 multi_basedir="$multi_basedir"
22188 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
22189 CC="$CC"
22190 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22193 # The HP-UX ksh and POSIX shell print the target directory to stdout
22194 # if CDPATH is set.
22195 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22197 sed_quote_subst='$sed_quote_subst'
22198 double_quote_subst='$double_quote_subst'
22199 delay_variable_subst='$delay_variable_subst'
22200 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
22201 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
22202 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
22203 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
22204 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
22205 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
22206 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
22207 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
22208 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
22209 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
22210 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
22211 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
22212 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
22213 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
22214 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
22215 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
22216 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
22217 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
22218 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
22219 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
22220 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
22221 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
22222 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
22223 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
22224 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
22225 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
22226 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
22227 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22228 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
22229 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
22230 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
22231 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
22232 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
22233 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
22234 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
22235 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22236 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22237 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22238 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
22239 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
22240 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
22241 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
22242 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
22243 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
22244 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"`'
22245 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
22246 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
22247 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
22248 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
22249 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
22250 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
22251 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
22252 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
22253 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
22254 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
22255 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
22256 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
22257 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
22258 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
22259 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
22260 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
22261 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
22262 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22263 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22264 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
22265 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
22266 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
22267 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
22268 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
22269 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22270 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22271 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22272 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22273 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22274 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22275 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
22276 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
22277 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
22278 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
22279 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
22280 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
22281 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
22282 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
22283 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
22284 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
22285 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
22286 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
22287 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
22288 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
22289 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
22290 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22291 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
22292 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
22293 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22294 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
22295 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
22296 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
22297 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
22298 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
22299 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
22300 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
22301 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
22302 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
22303 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
22304 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
22305 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22306 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22307 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22308 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
22309 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
22310 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
22311 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
22312 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
22313 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
22314 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
22315 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
22316 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
22317 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
22318 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
22319 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
22320 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
22321 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
22322 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
22323 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
22324 LD_FC='`$ECHO "X$LD_FC" | $Xsed -e "$delay_single_quote_subst"`'
22325 old_archive_cmds_FC='`$ECHO "X$old_archive_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
22326 compiler_FC='`$ECHO "X$compiler_FC" | $Xsed -e "$delay_single_quote_subst"`'
22327 GCC_FC='`$ECHO "X$GCC_FC" | $Xsed -e "$delay_single_quote_subst"`'
22328 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "X$lt_prog_compiler_no_builtin_flag_FC" | $Xsed -e "$delay_single_quote_subst"`'
22329 lt_prog_compiler_wl_FC='`$ECHO "X$lt_prog_compiler_wl_FC" | $Xsed -e "$delay_single_quote_subst"`'
22330 lt_prog_compiler_pic_FC='`$ECHO "X$lt_prog_compiler_pic_FC" | $Xsed -e "$delay_single_quote_subst"`'
22331 lt_prog_compiler_static_FC='`$ECHO "X$lt_prog_compiler_static_FC" | $Xsed -e "$delay_single_quote_subst"`'
22332 lt_cv_prog_compiler_c_o_FC='`$ECHO "X$lt_cv_prog_compiler_c_o_FC" | $Xsed -e "$delay_single_quote_subst"`'
22333 archive_cmds_need_lc_FC='`$ECHO "X$archive_cmds_need_lc_FC" | $Xsed -e "$delay_single_quote_subst"`'
22334 enable_shared_with_static_runtimes_FC='`$ECHO "X$enable_shared_with_static_runtimes_FC" | $Xsed -e "$delay_single_quote_subst"`'
22335 export_dynamic_flag_spec_FC='`$ECHO "X$export_dynamic_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
22336 whole_archive_flag_spec_FC='`$ECHO "X$whole_archive_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
22337 compiler_needs_object_FC='`$ECHO "X$compiler_needs_object_FC" | $Xsed -e "$delay_single_quote_subst"`'
22338 old_archive_from_new_cmds_FC='`$ECHO "X$old_archive_from_new_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
22339 old_archive_from_expsyms_cmds_FC='`$ECHO "X$old_archive_from_expsyms_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
22340 archive_cmds_FC='`$ECHO "X$archive_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
22341 archive_expsym_cmds_FC='`$ECHO "X$archive_expsym_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
22342 module_cmds_FC='`$ECHO "X$module_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
22343 module_expsym_cmds_FC='`$ECHO "X$module_expsym_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
22344 with_gnu_ld_FC='`$ECHO "X$with_gnu_ld_FC" | $Xsed -e "$delay_single_quote_subst"`'
22345 allow_undefined_flag_FC='`$ECHO "X$allow_undefined_flag_FC" | $Xsed -e "$delay_single_quote_subst"`'
22346 no_undefined_flag_FC='`$ECHO "X$no_undefined_flag_FC" | $Xsed -e "$delay_single_quote_subst"`'
22347 hardcode_libdir_flag_spec_FC='`$ECHO "X$hardcode_libdir_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
22348 hardcode_libdir_flag_spec_ld_FC='`$ECHO "X$hardcode_libdir_flag_spec_ld_FC" | $Xsed -e "$delay_single_quote_subst"`'
22349 hardcode_libdir_separator_FC='`$ECHO "X$hardcode_libdir_separator_FC" | $Xsed -e "$delay_single_quote_subst"`'
22350 hardcode_direct_FC='`$ECHO "X$hardcode_direct_FC" | $Xsed -e "$delay_single_quote_subst"`'
22351 hardcode_direct_absolute_FC='`$ECHO "X$hardcode_direct_absolute_FC" | $Xsed -e "$delay_single_quote_subst"`'
22352 hardcode_minus_L_FC='`$ECHO "X$hardcode_minus_L_FC" | $Xsed -e "$delay_single_quote_subst"`'
22353 hardcode_shlibpath_var_FC='`$ECHO "X$hardcode_shlibpath_var_FC" | $Xsed -e "$delay_single_quote_subst"`'
22354 hardcode_automatic_FC='`$ECHO "X$hardcode_automatic_FC" | $Xsed -e "$delay_single_quote_subst"`'
22355 inherit_rpath_FC='`$ECHO "X$inherit_rpath_FC" | $Xsed -e "$delay_single_quote_subst"`'
22356 link_all_deplibs_FC='`$ECHO "X$link_all_deplibs_FC" | $Xsed -e "$delay_single_quote_subst"`'
22357 fix_srcfile_path_FC='`$ECHO "X$fix_srcfile_path_FC" | $Xsed -e "$delay_single_quote_subst"`'
22358 always_export_symbols_FC='`$ECHO "X$always_export_symbols_FC" | $Xsed -e "$delay_single_quote_subst"`'
22359 export_symbols_cmds_FC='`$ECHO "X$export_symbols_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
22360 exclude_expsyms_FC='`$ECHO "X$exclude_expsyms_FC" | $Xsed -e "$delay_single_quote_subst"`'
22361 include_expsyms_FC='`$ECHO "X$include_expsyms_FC" | $Xsed -e "$delay_single_quote_subst"`'
22362 prelink_cmds_FC='`$ECHO "X$prelink_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
22363 file_list_spec_FC='`$ECHO "X$file_list_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
22364 hardcode_action_FC='`$ECHO "X$hardcode_action_FC" | $Xsed -e "$delay_single_quote_subst"`'
22365 compiler_lib_search_dirs_FC='`$ECHO "X$compiler_lib_search_dirs_FC" | $Xsed -e "$delay_single_quote_subst"`'
22366 predep_objects_FC='`$ECHO "X$predep_objects_FC" | $Xsed -e "$delay_single_quote_subst"`'
22367 postdep_objects_FC='`$ECHO "X$postdep_objects_FC" | $Xsed -e "$delay_single_quote_subst"`'
22368 predeps_FC='`$ECHO "X$predeps_FC" | $Xsed -e "$delay_single_quote_subst"`'
22369 postdeps_FC='`$ECHO "X$postdeps_FC" | $Xsed -e "$delay_single_quote_subst"`'
22370 compiler_lib_search_path_FC='`$ECHO "X$compiler_lib_search_path_FC" | $Xsed -e "$delay_single_quote_subst"`'
22372 LTCC='$LTCC'
22373 LTCFLAGS='$LTCFLAGS'
22374 compiler='$compiler_DEFAULT'
22376 # Quote evaled strings.
22377 for var in SED \
22378 GREP \
22379 EGREP \
22380 FGREP \
22381 LD \
22382 NM \
22383 LN_S \
22384 lt_SP2NL \
22385 lt_NL2SP \
22386 reload_flag \
22387 OBJDUMP \
22388 deplibs_check_method \
22389 file_magic_cmd \
22390 AR \
22391 AR_FLAGS \
22392 STRIP \
22393 RANLIB \
22394 CC \
22395 CFLAGS \
22396 compiler \
22397 lt_cv_sys_global_symbol_pipe \
22398 lt_cv_sys_global_symbol_to_cdecl \
22399 lt_cv_sys_global_symbol_to_c_name_address \
22400 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22401 SHELL \
22402 ECHO \
22403 lt_prog_compiler_no_builtin_flag \
22404 lt_prog_compiler_wl \
22405 lt_prog_compiler_pic \
22406 lt_prog_compiler_static \
22407 lt_cv_prog_compiler_c_o \
22408 need_locks \
22409 DSYMUTIL \
22410 NMEDIT \
22411 LIPO \
22412 OTOOL \
22413 OTOOL64 \
22414 shrext_cmds \
22415 export_dynamic_flag_spec \
22416 whole_archive_flag_spec \
22417 compiler_needs_object \
22418 with_gnu_ld \
22419 allow_undefined_flag \
22420 no_undefined_flag \
22421 hardcode_libdir_flag_spec \
22422 hardcode_libdir_flag_spec_ld \
22423 hardcode_libdir_separator \
22424 fix_srcfile_path \
22425 exclude_expsyms \
22426 include_expsyms \
22427 file_list_spec \
22428 variables_saved_for_relink \
22429 libname_spec \
22430 library_names_spec \
22431 soname_spec \
22432 finish_eval \
22433 old_striplib \
22434 striplib \
22435 compiler_lib_search_dirs \
22436 predep_objects \
22437 postdep_objects \
22438 predeps \
22439 postdeps \
22440 compiler_lib_search_path \
22441 LD_FC \
22442 compiler_FC \
22443 lt_prog_compiler_no_builtin_flag_FC \
22444 lt_prog_compiler_wl_FC \
22445 lt_prog_compiler_pic_FC \
22446 lt_prog_compiler_static_FC \
22447 lt_cv_prog_compiler_c_o_FC \
22448 export_dynamic_flag_spec_FC \
22449 whole_archive_flag_spec_FC \
22450 compiler_needs_object_FC \
22451 with_gnu_ld_FC \
22452 allow_undefined_flag_FC \
22453 no_undefined_flag_FC \
22454 hardcode_libdir_flag_spec_FC \
22455 hardcode_libdir_flag_spec_ld_FC \
22456 hardcode_libdir_separator_FC \
22457 fix_srcfile_path_FC \
22458 exclude_expsyms_FC \
22459 include_expsyms_FC \
22460 file_list_spec_FC \
22461 compiler_lib_search_dirs_FC \
22462 predep_objects_FC \
22463 postdep_objects_FC \
22464 predeps_FC \
22465 postdeps_FC \
22466 compiler_lib_search_path_FC; do
22467 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
22468 *[\\\\\\\`\\"\\\$]*)
22469 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
22472 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22474 esac
22475 done
22477 # Double-quote double-evaled strings.
22478 for var in reload_cmds \
22479 old_postinstall_cmds \
22480 old_postuninstall_cmds \
22481 old_archive_cmds \
22482 extract_expsyms_cmds \
22483 old_archive_from_new_cmds \
22484 old_archive_from_expsyms_cmds \
22485 archive_cmds \
22486 archive_expsym_cmds \
22487 module_cmds \
22488 module_expsym_cmds \
22489 export_symbols_cmds \
22490 prelink_cmds \
22491 postinstall_cmds \
22492 postuninstall_cmds \
22493 finish_cmds \
22494 sys_lib_search_path_spec \
22495 sys_lib_dlsearch_path_spec \
22496 old_archive_cmds_FC \
22497 old_archive_from_new_cmds_FC \
22498 old_archive_from_expsyms_cmds_FC \
22499 archive_cmds_FC \
22500 archive_expsym_cmds_FC \
22501 module_cmds_FC \
22502 module_expsym_cmds_FC \
22503 export_symbols_cmds_FC \
22504 prelink_cmds_FC; do
22505 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
22506 *[\\\\\\\`\\"\\\$]*)
22507 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
22510 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22512 esac
22513 done
22515 # Fix-up fallback echo if it was mangled by the above quoting rules.
22516 case \$lt_ECHO in
22517 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
22519 esac
22521 ac_aux_dir='$ac_aux_dir'
22522 xsi_shell='$xsi_shell'
22523 lt_shell_append='$lt_shell_append'
22525 # See if we are running on zsh, and set the options which allow our
22526 # commands through without removal of \ escapes INIT.
22527 if test -n "\${ZSH_VERSION+set}" ; then
22528 setopt NO_GLOB_SUBST
22532 PACKAGE='$PACKAGE'
22533 VERSION='$VERSION'
22534 TIMESTAMP='$TIMESTAMP'
22535 RM='$RM'
22536 ofile='$ofile'
22543 GCC="$GCC"
22544 CC="$CC"
22545 acx_cv_header_stdint="$acx_cv_header_stdint"
22546 acx_cv_type_int8_t="$acx_cv_type_int8_t"
22547 acx_cv_type_int16_t="$acx_cv_type_int16_t"
22548 acx_cv_type_int32_t="$acx_cv_type_int32_t"
22549 acx_cv_type_int64_t="$acx_cv_type_int64_t"
22550 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
22551 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
22552 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
22553 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
22554 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
22555 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
22556 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
22557 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
22558 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
22561 _ACEOF
22565 cat >>$CONFIG_STATUS <<\_ACEOF
22566 for ac_config_target in $ac_config_targets
22568 case "$ac_config_target" in
22569 # Handling of arguments.
22570 "omp.h" ) CONFIG_FILES="$CONFIG_FILES omp.h" ;;
22571 "omp_lib.h" ) CONFIG_FILES="$CONFIG_FILES omp_lib.h" ;;
22572 "omp_lib.f90" ) CONFIG_FILES="$CONFIG_FILES omp_lib.f90" ;;
22573 "libgomp_f.h" ) CONFIG_FILES="$CONFIG_FILES libgomp_f.h" ;;
22574 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22575 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
22576 "libgomp.spec" ) CONFIG_FILES="$CONFIG_FILES libgomp.spec" ;;
22577 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
22578 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22579 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22580 "gstdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
22581 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22582 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22583 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22584 { (exit 1); exit 1; }; };;
22585 esac
22586 done
22588 # If the user did not use the arguments to specify the items to instantiate,
22589 # then the envvar interface is used. Set only those that are not.
22590 # We use the long form for the default assignment because of an extremely
22591 # bizarre bug on SunOS 4.1.3.
22592 if $ac_need_defaults; then
22593 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22594 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22595 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22598 # Have a temporary directory for convenience. Make it in the build tree
22599 # simply because there is no reason to put it here, and in addition,
22600 # creating and moving files from /tmp can sometimes cause problems.
22601 # Create a temporary directory, and hook for its removal unless debugging.
22602 $debug ||
22604 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22605 trap '{ (exit 1); exit 1; }' 1 2 13 15
22608 # Create a (secure) tmp directory for tmp files.
22611 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22612 test -n "$tmp" && test -d "$tmp"
22613 } ||
22615 tmp=./confstat$$-$RANDOM
22616 (umask 077 && mkdir $tmp)
22617 } ||
22619 echo "$me: cannot create a temporary directory in ." >&2
22620 { (exit 1); exit 1; }
22623 _ACEOF
22625 cat >>$CONFIG_STATUS <<_ACEOF
22628 # CONFIG_FILES section.
22631 # No need to generate the scripts if there are no CONFIG_FILES.
22632 # This happens for instance when ./config.status config.h
22633 if test -n "\$CONFIG_FILES"; then
22634 # Protect against being on the right side of a sed subst in config.status.
22635 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22636 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22637 s,@SHELL@,$SHELL,;t t
22638 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22639 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22640 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22641 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22642 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22643 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22644 s,@exec_prefix@,$exec_prefix,;t t
22645 s,@prefix@,$prefix,;t t
22646 s,@program_transform_name@,$program_transform_name,;t t
22647 s,@bindir@,$bindir,;t t
22648 s,@sbindir@,$sbindir,;t t
22649 s,@libexecdir@,$libexecdir,;t t
22650 s,@datadir@,$datadir,;t t
22651 s,@sysconfdir@,$sysconfdir,;t t
22652 s,@sharedstatedir@,$sharedstatedir,;t t
22653 s,@localstatedir@,$localstatedir,;t t
22654 s,@libdir@,$libdir,;t t
22655 s,@includedir@,$includedir,;t t
22656 s,@oldincludedir@,$oldincludedir,;t t
22657 s,@infodir@,$infodir,;t t
22658 s,@mandir@,$mandir,;t t
22659 s,@build_alias@,$build_alias,;t t
22660 s,@host_alias@,$host_alias,;t t
22661 s,@target_alias@,$target_alias,;t t
22662 s,@DEFS@,$DEFS,;t t
22663 s,@ECHO_C@,$ECHO_C,;t t
22664 s,@ECHO_N@,$ECHO_N,;t t
22665 s,@ECHO_T@,$ECHO_T,;t t
22666 s,@LIBS@,$LIBS,;t t
22667 s,@GENINSRC_TRUE@,$GENINSRC_TRUE,;t t
22668 s,@GENINSRC_FALSE@,$GENINSRC_FALSE,;t t
22669 s,@build@,$build,;t t
22670 s,@build_cpu@,$build_cpu,;t t
22671 s,@build_vendor@,$build_vendor,;t t
22672 s,@build_os@,$build_os,;t t
22673 s,@host@,$host,;t t
22674 s,@host_cpu@,$host_cpu,;t t
22675 s,@host_vendor@,$host_vendor,;t t
22676 s,@host_os@,$host_os,;t t
22677 s,@target@,$target,;t t
22678 s,@target_cpu@,$target_cpu,;t t
22679 s,@target_vendor@,$target_vendor,;t t
22680 s,@target_os@,$target_os,;t t
22681 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22682 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22683 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22684 s,@CYGPATH_W@,$CYGPATH_W,;t t
22685 s,@PACKAGE@,$PACKAGE,;t t
22686 s,@VERSION@,$VERSION,;t t
22687 s,@ACLOCAL@,$ACLOCAL,;t t
22688 s,@AUTOCONF@,$AUTOCONF,;t t
22689 s,@AUTOMAKE@,$AUTOMAKE,;t t
22690 s,@AUTOHEADER@,$AUTOHEADER,;t t
22691 s,@MAKEINFO@,$MAKEINFO,;t t
22692 s,@install_sh@,$install_sh,;t t
22693 s,@STRIP@,$STRIP,;t t
22694 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22695 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
22696 s,@mkdir_p@,$mkdir_p,;t t
22697 s,@AWK@,$AWK,;t t
22698 s,@SET_MAKE@,$SET_MAKE,;t t
22699 s,@am__leading_dot@,$am__leading_dot,;t t
22700 s,@AMTAR@,$AMTAR,;t t
22701 s,@am__tar@,$am__tar,;t t
22702 s,@am__untar@,$am__untar,;t t
22703 s,@multi_basedir@,$multi_basedir,;t t
22704 s,@toolexecdir@,$toolexecdir,;t t
22705 s,@toolexeclibdir@,$toolexeclibdir,;t t
22706 s,@CC@,$CC,;t t
22707 s,@ac_ct_CC@,$ac_ct_CC,;t t
22708 s,@EXEEXT@,$EXEEXT,;t t
22709 s,@OBJEXT@,$OBJEXT,;t t
22710 s,@DEPDIR@,$DEPDIR,;t t
22711 s,@am__include@,$am__include,;t t
22712 s,@am__quote@,$am__quote,;t t
22713 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
22714 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
22715 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
22716 s,@CCDEPMODE@,$CCDEPMODE,;t t
22717 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
22718 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
22719 s,@CFLAGS@,$CFLAGS,;t t
22720 s,@AR@,$AR,;t t
22721 s,@ac_ct_AR@,$ac_ct_AR,;t t
22722 s,@RANLIB@,$RANLIB,;t t
22723 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22724 s,@PERL@,$PERL,;t t
22725 s,@BUILD_INFO_TRUE@,$BUILD_INFO_TRUE,;t t
22726 s,@BUILD_INFO_FALSE@,$BUILD_INFO_FALSE,;t t
22727 s,@LIBTOOL@,$LIBTOOL,;t t
22728 s,@SED@,$SED,;t t
22729 s,@EGREP@,$EGREP,;t t
22730 s,@FGREP@,$FGREP,;t t
22731 s,@GREP@,$GREP,;t t
22732 s,@LD@,$LD,;t t
22733 s,@DUMPBIN@,$DUMPBIN,;t t
22734 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
22735 s,@NM@,$NM,;t t
22736 s,@LN_S@,$LN_S,;t t
22737 s,@OBJDUMP@,$OBJDUMP,;t t
22738 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
22739 s,@lt_ECHO@,$lt_ECHO,;t t
22740 s,@DSYMUTIL@,$DSYMUTIL,;t t
22741 s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
22742 s,@NMEDIT@,$NMEDIT,;t t
22743 s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
22744 s,@LIPO@,$LIPO,;t t
22745 s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
22746 s,@OTOOL@,$OTOOL,;t t
22747 s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
22748 s,@OTOOL64@,$OTOOL64,;t t
22749 s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
22750 s,@CPP@,$CPP,;t t
22751 s,@CPPFLAGS@,$CPPFLAGS,;t t
22752 s,@enable_shared@,$enable_shared,;t t
22753 s,@enable_static@,$enable_static,;t t
22754 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
22755 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
22756 s,@MAINT@,$MAINT,;t t
22757 s,@FC@,$FC,;t t
22758 s,@FCFLAGS@,$FCFLAGS,;t t
22759 s,@LDFLAGS@,$LDFLAGS,;t t
22760 s,@ac_ct_FC@,$ac_ct_FC,;t t
22761 s,@libtool_VERSION@,$libtool_VERSION,;t t
22762 s,@SECTION_LDFLAGS@,$SECTION_LDFLAGS,;t t
22763 s,@OPT_LDFLAGS@,$OPT_LDFLAGS,;t t
22764 s,@LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE@,$LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE,;t t
22765 s,@LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE@,$LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE,;t t
22766 s,@config_path@,$config_path,;t t
22767 s,@XCFLAGS@,$XCFLAGS,;t t
22768 s,@XLDFLAGS@,$XLDFLAGS,;t t
22769 s,@link_gomp@,$link_gomp,;t t
22770 s,@USE_FORTRAN_TRUE@,$USE_FORTRAN_TRUE,;t t
22771 s,@USE_FORTRAN_FALSE@,$USE_FORTRAN_FALSE,;t t
22772 s,@OMP_LOCK_SIZE@,$OMP_LOCK_SIZE,;t t
22773 s,@OMP_LOCK_ALIGN@,$OMP_LOCK_ALIGN,;t t
22774 s,@OMP_NEST_LOCK_SIZE@,$OMP_NEST_LOCK_SIZE,;t t
22775 s,@OMP_NEST_LOCK_ALIGN@,$OMP_NEST_LOCK_ALIGN,;t t
22776 s,@OMP_LOCK_KIND@,$OMP_LOCK_KIND,;t t
22777 s,@OMP_NEST_LOCK_KIND@,$OMP_NEST_LOCK_KIND,;t t
22778 s,@OMP_LOCK_25_SIZE@,$OMP_LOCK_25_SIZE,;t t
22779 s,@OMP_LOCK_25_ALIGN@,$OMP_LOCK_25_ALIGN,;t t
22780 s,@OMP_NEST_LOCK_25_SIZE@,$OMP_NEST_LOCK_25_SIZE,;t t
22781 s,@OMP_NEST_LOCK_25_ALIGN@,$OMP_NEST_LOCK_25_ALIGN,;t t
22782 s,@OMP_LOCK_25_KIND@,$OMP_LOCK_25_KIND,;t t
22783 s,@OMP_NEST_LOCK_25_KIND@,$OMP_NEST_LOCK_25_KIND,;t t
22784 s,@LIBOBJS@,$LIBOBJS,;t t
22785 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22786 CEOF
22788 _ACEOF
22790 cat >>$CONFIG_STATUS <<\_ACEOF
22791 # Split the substitutions into bite-sized pieces for seds with
22792 # small command number limits, like on Digital OSF/1 and HP-UX.
22793 ac_max_sed_lines=48
22794 ac_sed_frag=1 # Number of current file.
22795 ac_beg=1 # First line for current file.
22796 ac_end=$ac_max_sed_lines # Line after last line for current file.
22797 ac_more_lines=:
22798 ac_sed_cmds=
22799 while $ac_more_lines; do
22800 if test $ac_beg -gt 1; then
22801 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22802 else
22803 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22805 if test ! -s $tmp/subs.frag; then
22806 ac_more_lines=false
22807 else
22808 # The purpose of the label and of the branching condition is to
22809 # speed up the sed processing (if there are no `@' at all, there
22810 # is no need to browse any of the substitutions).
22811 # These are the two extra sed commands mentioned above.
22812 (echo ':t
22813 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22814 if test -z "$ac_sed_cmds"; then
22815 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22816 else
22817 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22819 ac_sed_frag=`expr $ac_sed_frag + 1`
22820 ac_beg=$ac_end
22821 ac_end=`expr $ac_end + $ac_max_sed_lines`
22823 done
22824 if test -z "$ac_sed_cmds"; then
22825 ac_sed_cmds=cat
22827 fi # test -n "$CONFIG_FILES"
22829 _ACEOF
22830 cat >>$CONFIG_STATUS <<\_ACEOF
22831 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22832 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22833 case $ac_file in
22834 - | *:- | *:-:* ) # input from stdin
22835 cat >$tmp/stdin
22836 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22837 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22838 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22839 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22840 * ) ac_file_in=$ac_file.in ;;
22841 esac
22843 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22844 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22845 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22846 X"$ac_file" : 'X\(//\)[^/]' \| \
22847 X"$ac_file" : 'X\(//\)$' \| \
22848 X"$ac_file" : 'X\(/\)' \| \
22849 . : '\(.\)' 2>/dev/null ||
22850 echo X"$ac_file" |
22851 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22852 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22853 /^X\(\/\/\)$/{ s//\1/; q; }
22854 /^X\(\/\).*/{ s//\1/; q; }
22855 s/.*/./; q'`
22856 { if $as_mkdir_p; then
22857 mkdir -p "$ac_dir"
22858 else
22859 as_dir="$ac_dir"
22860 as_dirs=
22861 while test ! -d "$as_dir"; do
22862 as_dirs="$as_dir $as_dirs"
22863 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22864 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22865 X"$as_dir" : 'X\(//\)[^/]' \| \
22866 X"$as_dir" : 'X\(//\)$' \| \
22867 X"$as_dir" : 'X\(/\)' \| \
22868 . : '\(.\)' 2>/dev/null ||
22869 echo X"$as_dir" |
22870 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22871 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22872 /^X\(\/\/\)$/{ s//\1/; q; }
22873 /^X\(\/\).*/{ s//\1/; q; }
22874 s/.*/./; q'`
22875 done
22876 test ! -n "$as_dirs" || mkdir $as_dirs
22877 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22878 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22879 { (exit 1); exit 1; }; }; }
22881 ac_builddir=.
22883 if test "$ac_dir" != .; then
22884 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22885 # A "../" for each directory in $ac_dir_suffix.
22886 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22887 else
22888 ac_dir_suffix= ac_top_builddir=
22891 case $srcdir in
22892 .) # No --srcdir option. We are building in place.
22893 ac_srcdir=.
22894 if test -z "$ac_top_builddir"; then
22895 ac_top_srcdir=.
22896 else
22897 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22898 fi ;;
22899 [\\/]* | ?:[\\/]* ) # Absolute path.
22900 ac_srcdir=$srcdir$ac_dir_suffix;
22901 ac_top_srcdir=$srcdir ;;
22902 *) # Relative path.
22903 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22904 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22905 esac
22907 # Do not use `cd foo && pwd` to compute absolute paths, because
22908 # the directories may not exist.
22909 case `pwd` in
22910 .) ac_abs_builddir="$ac_dir";;
22912 case "$ac_dir" in
22913 .) ac_abs_builddir=`pwd`;;
22914 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22915 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22916 esac;;
22917 esac
22918 case $ac_abs_builddir in
22919 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22921 case ${ac_top_builddir}. in
22922 .) ac_abs_top_builddir=$ac_abs_builddir;;
22923 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22924 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22925 esac;;
22926 esac
22927 case $ac_abs_builddir in
22928 .) ac_abs_srcdir=$ac_srcdir;;
22930 case $ac_srcdir in
22931 .) ac_abs_srcdir=$ac_abs_builddir;;
22932 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22933 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22934 esac;;
22935 esac
22936 case $ac_abs_builddir in
22937 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22939 case $ac_top_srcdir in
22940 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22941 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22942 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22943 esac;;
22944 esac
22947 case $INSTALL in
22948 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22949 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22950 esac
22952 if test x"$ac_file" != x-; then
22953 { echo "$as_me:$LINENO: creating $ac_file" >&5
22954 echo "$as_me: creating $ac_file" >&6;}
22955 rm -f "$ac_file"
22957 # Let's still pretend it is `configure' which instantiates (i.e., don't
22958 # use $as_me), people would be surprised to read:
22959 # /* config.h. Generated by config.status. */
22960 if test x"$ac_file" = x-; then
22961 configure_input=
22962 else
22963 configure_input="$ac_file. "
22965 configure_input=$configure_input"Generated from `echo $ac_file_in |
22966 sed 's,.*/,,'` by configure."
22968 # First look for the input files in the build tree, otherwise in the
22969 # src tree.
22970 ac_file_inputs=`IFS=:
22971 for f in $ac_file_in; do
22972 case $f in
22973 -) echo $tmp/stdin ;;
22974 [\\/$]*)
22975 # Absolute (can't be DOS-style, as IFS=:)
22976 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22977 echo "$as_me: error: cannot find input file: $f" >&2;}
22978 { (exit 1); exit 1; }; }
22979 echo "$f";;
22980 *) # Relative
22981 if test -f "$f"; then
22982 # Build tree
22983 echo "$f"
22984 elif test -f "$srcdir/$f"; then
22985 # Source tree
22986 echo "$srcdir/$f"
22987 else
22988 # /dev/null tree
22989 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22990 echo "$as_me: error: cannot find input file: $f" >&2;}
22991 { (exit 1); exit 1; }; }
22992 fi;;
22993 esac
22994 done` || { (exit 1); exit 1; }
22995 _ACEOF
22996 cat >>$CONFIG_STATUS <<_ACEOF
22997 sed "$ac_vpsub
22998 $extrasub
22999 _ACEOF
23000 cat >>$CONFIG_STATUS <<\_ACEOF
23002 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23003 s,@configure_input@,$configure_input,;t t
23004 s,@srcdir@,$ac_srcdir,;t t
23005 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23006 s,@top_srcdir@,$ac_top_srcdir,;t t
23007 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23008 s,@builddir@,$ac_builddir,;t t
23009 s,@abs_builddir@,$ac_abs_builddir,;t t
23010 s,@top_builddir@,$ac_top_builddir,;t t
23011 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23012 s,@INSTALL@,$ac_INSTALL,;t t
23013 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23014 rm -f $tmp/stdin
23015 if test x"$ac_file" != x-; then
23016 mv $tmp/out $ac_file
23017 else
23018 cat $tmp/out
23019 rm -f $tmp/out
23022 done
23023 _ACEOF
23024 cat >>$CONFIG_STATUS <<\_ACEOF
23027 # CONFIG_HEADER section.
23030 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23031 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23033 # ac_d sets the value in "#define NAME VALUE" lines.
23034 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23035 ac_dB='[ ].*$,\1#\2'
23036 ac_dC=' '
23037 ac_dD=',;t'
23038 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23039 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23040 ac_uB='$,\1#\2define\3'
23041 ac_uC=' '
23042 ac_uD=',;t'
23044 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23045 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23046 case $ac_file in
23047 - | *:- | *:-:* ) # input from stdin
23048 cat >$tmp/stdin
23049 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23050 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23051 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23052 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23053 * ) ac_file_in=$ac_file.in ;;
23054 esac
23056 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23057 echo "$as_me: creating $ac_file" >&6;}
23059 # First look for the input files in the build tree, otherwise in the
23060 # src tree.
23061 ac_file_inputs=`IFS=:
23062 for f in $ac_file_in; do
23063 case $f in
23064 -) echo $tmp/stdin ;;
23065 [\\/$]*)
23066 # Absolute (can't be DOS-style, as IFS=:)
23067 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23068 echo "$as_me: error: cannot find input file: $f" >&2;}
23069 { (exit 1); exit 1; }; }
23070 # Do quote $f, to prevent DOS paths from being IFS'd.
23071 echo "$f";;
23072 *) # Relative
23073 if test -f "$f"; then
23074 # Build tree
23075 echo "$f"
23076 elif test -f "$srcdir/$f"; then
23077 # Source tree
23078 echo "$srcdir/$f"
23079 else
23080 # /dev/null tree
23081 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23082 echo "$as_me: error: cannot find input file: $f" >&2;}
23083 { (exit 1); exit 1; }; }
23084 fi;;
23085 esac
23086 done` || { (exit 1); exit 1; }
23087 # Remove the trailing spaces.
23088 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23090 _ACEOF
23092 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23093 # `conftest.undefs', that substitutes the proper values into
23094 # config.h.in to produce config.h. The first handles `#define'
23095 # templates, and the second `#undef' templates.
23096 # And first: Protect against being on the right side of a sed subst in
23097 # config.status. Protect against being in an unquoted here document
23098 # in config.status.
23099 rm -f conftest.defines conftest.undefs
23100 # Using a here document instead of a string reduces the quoting nightmare.
23101 # Putting comments in sed scripts is not portable.
23103 # `end' is used to avoid that the second main sed command (meant for
23104 # 0-ary CPP macros) applies to n-ary macro definitions.
23105 # See the Autoconf documentation for `clear'.
23106 cat >confdef2sed.sed <<\_ACEOF
23107 s/[\\&,]/\\&/g
23108 s,[\\$`],\\&,g
23109 t clear
23110 : clear
23111 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23112 t end
23113 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23114 : end
23115 _ACEOF
23116 # If some macros were called several times there might be several times
23117 # the same #defines, which is useless. Nevertheless, we may not want to
23118 # sort them, since we want the *last* AC-DEFINE to be honored.
23119 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23120 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23121 rm -f confdef2sed.sed
23123 # This sed command replaces #undef with comments. This is necessary, for
23124 # example, in the case of _POSIX_SOURCE, which is predefined and required
23125 # on some systems where configure will not decide to define it.
23126 cat >>conftest.undefs <<\_ACEOF
23127 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23128 _ACEOF
23130 # Break up conftest.defines because some shells have a limit on the size
23131 # of here documents, and old seds have small limits too (100 cmds).
23132 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23133 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23134 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23135 echo ' :' >>$CONFIG_STATUS
23136 rm -f conftest.tail
23137 while grep . conftest.defines >/dev/null
23139 # Write a limited-size here document to $tmp/defines.sed.
23140 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23141 # Speed up: don't consider the non `#define' lines.
23142 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23143 # Work around the forget-to-reset-the-flag bug.
23144 echo 't clr' >>$CONFIG_STATUS
23145 echo ': clr' >>$CONFIG_STATUS
23146 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23147 echo 'CEOF
23148 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23149 rm -f $tmp/in
23150 mv $tmp/out $tmp/in
23151 ' >>$CONFIG_STATUS
23152 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23153 rm -f conftest.defines
23154 mv conftest.tail conftest.defines
23155 done
23156 rm -f conftest.defines
23157 echo ' fi # grep' >>$CONFIG_STATUS
23158 echo >>$CONFIG_STATUS
23160 # Break up conftest.undefs because some shells have a limit on the size
23161 # of here documents, and old seds have small limits too (100 cmds).
23162 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23163 rm -f conftest.tail
23164 while grep . conftest.undefs >/dev/null
23166 # Write a limited-size here document to $tmp/undefs.sed.
23167 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23168 # Speed up: don't consider the non `#undef'
23169 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23170 # Work around the forget-to-reset-the-flag bug.
23171 echo 't clr' >>$CONFIG_STATUS
23172 echo ': clr' >>$CONFIG_STATUS
23173 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23174 echo 'CEOF
23175 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23176 rm -f $tmp/in
23177 mv $tmp/out $tmp/in
23178 ' >>$CONFIG_STATUS
23179 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23180 rm -f conftest.undefs
23181 mv conftest.tail conftest.undefs
23182 done
23183 rm -f conftest.undefs
23185 cat >>$CONFIG_STATUS <<\_ACEOF
23186 # Let's still pretend it is `configure' which instantiates (i.e., don't
23187 # use $as_me), people would be surprised to read:
23188 # /* config.h. Generated by config.status. */
23189 if test x"$ac_file" = x-; then
23190 echo "/* Generated by configure. */" >$tmp/config.h
23191 else
23192 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23194 cat $tmp/in >>$tmp/config.h
23195 rm -f $tmp/in
23196 if test x"$ac_file" != x-; then
23197 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23198 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23199 echo "$as_me: $ac_file is unchanged" >&6;}
23200 else
23201 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23202 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23203 X"$ac_file" : 'X\(//\)[^/]' \| \
23204 X"$ac_file" : 'X\(//\)$' \| \
23205 X"$ac_file" : 'X\(/\)' \| \
23206 . : '\(.\)' 2>/dev/null ||
23207 echo X"$ac_file" |
23208 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23209 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23210 /^X\(\/\/\)$/{ s//\1/; q; }
23211 /^X\(\/\).*/{ s//\1/; q; }
23212 s/.*/./; q'`
23213 { if $as_mkdir_p; then
23214 mkdir -p "$ac_dir"
23215 else
23216 as_dir="$ac_dir"
23217 as_dirs=
23218 while test ! -d "$as_dir"; do
23219 as_dirs="$as_dir $as_dirs"
23220 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23221 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23222 X"$as_dir" : 'X\(//\)[^/]' \| \
23223 X"$as_dir" : 'X\(//\)$' \| \
23224 X"$as_dir" : 'X\(/\)' \| \
23225 . : '\(.\)' 2>/dev/null ||
23226 echo X"$as_dir" |
23227 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23228 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23229 /^X\(\/\/\)$/{ s//\1/; q; }
23230 /^X\(\/\).*/{ s//\1/; q; }
23231 s/.*/./; q'`
23232 done
23233 test ! -n "$as_dirs" || mkdir $as_dirs
23234 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23235 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23236 { (exit 1); exit 1; }; }; }
23238 rm -f $ac_file
23239 mv $tmp/config.h $ac_file
23241 else
23242 cat $tmp/config.h
23243 rm -f $tmp/config.h
23245 # Compute $ac_file's index in $config_headers.
23246 _am_stamp_count=1
23247 for _am_header in $config_headers :; do
23248 case $_am_header in
23249 $ac_file | $ac_file:* )
23250 break ;;
23252 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23253 esac
23254 done
23255 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
23256 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23257 X$ac_file : 'X\(//\)[^/]' \| \
23258 X$ac_file : 'X\(//\)$' \| \
23259 X$ac_file : 'X\(/\)' \| \
23260 . : '\(.\)' 2>/dev/null ||
23261 echo X$ac_file |
23262 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23263 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23264 /^X\(\/\/\)$/{ s//\1/; q; }
23265 /^X\(\/\).*/{ s//\1/; q; }
23266 s/.*/./; q'`/stamp-h$_am_stamp_count
23267 done
23268 _ACEOF
23269 cat >>$CONFIG_STATUS <<\_ACEOF
23272 # CONFIG_COMMANDS section.
23274 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23275 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23276 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23277 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23278 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23279 X"$ac_dest" : 'X\(//\)[^/]' \| \
23280 X"$ac_dest" : 'X\(//\)$' \| \
23281 X"$ac_dest" : 'X\(/\)' \| \
23282 . : '\(.\)' 2>/dev/null ||
23283 echo X"$ac_dest" |
23284 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23285 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23286 /^X\(\/\/\)$/{ s//\1/; q; }
23287 /^X\(\/\).*/{ s//\1/; q; }
23288 s/.*/./; q'`
23289 { if $as_mkdir_p; then
23290 mkdir -p "$ac_dir"
23291 else
23292 as_dir="$ac_dir"
23293 as_dirs=
23294 while test ! -d "$as_dir"; do
23295 as_dirs="$as_dir $as_dirs"
23296 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23298 X"$as_dir" : 'X\(//\)[^/]' \| \
23299 X"$as_dir" : 'X\(//\)$' \| \
23300 X"$as_dir" : 'X\(/\)' \| \
23301 . : '\(.\)' 2>/dev/null ||
23302 echo X"$as_dir" |
23303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23304 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23305 /^X\(\/\/\)$/{ s//\1/; q; }
23306 /^X\(\/\).*/{ s//\1/; q; }
23307 s/.*/./; q'`
23308 done
23309 test ! -n "$as_dirs" || mkdir $as_dirs
23310 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23311 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23312 { (exit 1); exit 1; }; }; }
23314 ac_builddir=.
23316 if test "$ac_dir" != .; then
23317 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23318 # A "../" for each directory in $ac_dir_suffix.
23319 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23320 else
23321 ac_dir_suffix= ac_top_builddir=
23324 case $srcdir in
23325 .) # No --srcdir option. We are building in place.
23326 ac_srcdir=.
23327 if test -z "$ac_top_builddir"; then
23328 ac_top_srcdir=.
23329 else
23330 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23331 fi ;;
23332 [\\/]* | ?:[\\/]* ) # Absolute path.
23333 ac_srcdir=$srcdir$ac_dir_suffix;
23334 ac_top_srcdir=$srcdir ;;
23335 *) # Relative path.
23336 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23337 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23338 esac
23340 # Do not use `cd foo && pwd` to compute absolute paths, because
23341 # the directories may not exist.
23342 case `pwd` in
23343 .) ac_abs_builddir="$ac_dir";;
23345 case "$ac_dir" in
23346 .) ac_abs_builddir=`pwd`;;
23347 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23348 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23349 esac;;
23350 esac
23351 case $ac_abs_builddir in
23352 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23354 case ${ac_top_builddir}. in
23355 .) ac_abs_top_builddir=$ac_abs_builddir;;
23356 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23357 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23358 esac;;
23359 esac
23360 case $ac_abs_builddir in
23361 .) ac_abs_srcdir=$ac_srcdir;;
23363 case $ac_srcdir in
23364 .) ac_abs_srcdir=$ac_abs_builddir;;
23365 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23366 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23367 esac;;
23368 esac
23369 case $ac_abs_builddir in
23370 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23372 case $ac_top_srcdir in
23373 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23374 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23375 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23376 esac;;
23377 esac
23380 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23381 echo "$as_me: executing $ac_dest commands" >&6;}
23382 case $ac_dest in
23383 default-1 )
23384 # Only add multilib support code if we just rebuilt the top-level
23385 # Makefile.
23386 case " $CONFIG_FILES " in
23387 *" Makefile "*)
23388 ac_file=Makefile . ${multi_basedir}/config-ml.in
23390 esac ;;
23391 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23392 # Strip MF so we end up with the name of the file.
23393 mf=`echo "$mf" | sed -e 's/:.*$//'`
23394 # Check whether this is an Automake generated Makefile or not.
23395 # We used to match only the files named `Makefile.in', but
23396 # some people rename them; so instead we look at the file content.
23397 # Grep'ing the first line is not enough: some people post-process
23398 # each Makefile.in and add a new line on top of each file to say so.
23399 # So let's grep whole file.
23400 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23401 dirpart=`(dirname "$mf") 2>/dev/null ||
23402 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23403 X"$mf" : 'X\(//\)[^/]' \| \
23404 X"$mf" : 'X\(//\)$' \| \
23405 X"$mf" : 'X\(/\)' \| \
23406 . : '\(.\)' 2>/dev/null ||
23407 echo X"$mf" |
23408 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23409 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23410 /^X\(\/\/\)$/{ s//\1/; q; }
23411 /^X\(\/\).*/{ s//\1/; q; }
23412 s/.*/./; q'`
23413 else
23414 continue
23416 # Extract the definition of DEPDIR, am__include, and am__quote
23417 # from the Makefile without running `make'.
23418 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23419 test -z "$DEPDIR" && continue
23420 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23421 test -z "am__include" && continue
23422 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23423 # When using ansi2knr, U may be empty or an underscore; expand it
23424 U=`sed -n 's/^U = //p' < "$mf"`
23425 # Find all dependency output files, they are included files with
23426 # $(DEPDIR) in their names. We invoke sed twice because it is the
23427 # simplest approach to changing $(DEPDIR) to its actual value in the
23428 # expansion.
23429 for file in `sed -n "
23430 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23431 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23432 # Make sure the directory exists.
23433 test -f "$dirpart/$file" && continue
23434 fdir=`(dirname "$file") 2>/dev/null ||
23435 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23436 X"$file" : 'X\(//\)[^/]' \| \
23437 X"$file" : 'X\(//\)$' \| \
23438 X"$file" : 'X\(/\)' \| \
23439 . : '\(.\)' 2>/dev/null ||
23440 echo X"$file" |
23441 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23442 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23443 /^X\(\/\/\)$/{ s//\1/; q; }
23444 /^X\(\/\).*/{ s//\1/; q; }
23445 s/.*/./; q'`
23446 { if $as_mkdir_p; then
23447 mkdir -p $dirpart/$fdir
23448 else
23449 as_dir=$dirpart/$fdir
23450 as_dirs=
23451 while test ! -d "$as_dir"; do
23452 as_dirs="$as_dir $as_dirs"
23453 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23454 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23455 X"$as_dir" : 'X\(//\)[^/]' \| \
23456 X"$as_dir" : 'X\(//\)$' \| \
23457 X"$as_dir" : 'X\(/\)' \| \
23458 . : '\(.\)' 2>/dev/null ||
23459 echo X"$as_dir" |
23460 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23461 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23462 /^X\(\/\/\)$/{ s//\1/; q; }
23463 /^X\(\/\).*/{ s//\1/; q; }
23464 s/.*/./; q'`
23465 done
23466 test ! -n "$as_dirs" || mkdir $as_dirs
23467 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
23468 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
23469 { (exit 1); exit 1; }; }; }
23471 # echo "creating $dirpart/$file"
23472 echo '# dummy' > "$dirpart/$file"
23473 done
23474 done
23476 libtool )
23478 # See if we are running on zsh, and set the options which allow our
23479 # commands through without removal of \ escapes.
23480 if test -n "${ZSH_VERSION+set}" ; then
23481 setopt NO_GLOB_SUBST
23484 cfgfile="${ofile}T"
23485 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23486 $RM "$cfgfile"
23488 cat <<_LT_EOF >> "$cfgfile"
23489 #! $SHELL
23491 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
23492 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
23493 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23494 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
23496 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
23497 # 2006, 2007, 2008 Free Software Foundation, Inc.
23498 # Written by Gordon Matzigkeit, 1996
23500 # This file is part of GNU Libtool.
23502 # GNU Libtool is free software; you can redistribute it and/or
23503 # modify it under the terms of the GNU General Public License as
23504 # published by the Free Software Foundation; either version 2 of
23505 # the License, or (at your option) any later version.
23507 # As a special exception to the GNU General Public License,
23508 # if you distribute this file as part of a program or library that
23509 # is built using GNU Libtool, you may include this file under the
23510 # same distribution terms that you use for the rest of that program.
23512 # GNU Libtool is distributed in the hope that it will be useful,
23513 # but WITHOUT ANY WARRANTY; without even the implied warranty of
23514 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23515 # GNU General Public License for more details.
23517 # You should have received a copy of the GNU General Public License
23518 # along with GNU Libtool; see the file COPYING. If not, a copy
23519 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
23520 # obtained by writing to the Free Software Foundation, Inc.,
23521 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23524 # The names of the tagged configurations supported by this script.
23525 available_tags="FC "
23527 # ### BEGIN LIBTOOL CONFIG
23529 # Which release of libtool.m4 was used?
23530 macro_version=$macro_version
23531 macro_revision=$macro_revision
23533 # Whether or not to build shared libraries.
23534 build_libtool_libs=$enable_shared
23536 # Whether or not to build static libraries.
23537 build_old_libs=$enable_static
23539 # What type of objects to build.
23540 pic_mode=$pic_mode
23542 # Whether or not to optimize for fast installation.
23543 fast_install=$enable_fast_install
23545 # The host system.
23546 host_alias=$host_alias
23547 host=$host
23548 host_os=$host_os
23550 # The build system.
23551 build_alias=$build_alias
23552 build=$build
23553 build_os=$build_os
23555 # A sed program that does not truncate output.
23556 SED=$lt_SED
23558 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
23559 Xsed="\$SED -e 1s/^X//"
23561 # A grep program that handles long lines.
23562 GREP=$lt_GREP
23564 # An ERE matcher.
23565 EGREP=$lt_EGREP
23567 # A literal string matcher.
23568 FGREP=$lt_FGREP
23570 # A BSD- or MS-compatible name lister.
23571 NM=$lt_NM
23573 # Whether we need soft or hard links.
23574 LN_S=$lt_LN_S
23576 # What is the maximum length of a command?
23577 max_cmd_len=$max_cmd_len
23579 # Object file suffix (normally "o").
23580 objext=$ac_objext
23582 # Executable file suffix (normally "").
23583 exeext=$exeext
23585 # whether the shell understands "unset".
23586 lt_unset=$lt_unset
23588 # turn spaces into newlines.
23589 SP2NL=$lt_lt_SP2NL
23591 # turn newlines into spaces.
23592 NL2SP=$lt_lt_NL2SP
23594 # How to create reloadable object files.
23595 reload_flag=$lt_reload_flag
23596 reload_cmds=$lt_reload_cmds
23598 # An object symbol dumper.
23599 OBJDUMP=$lt_OBJDUMP
23601 # Method to check whether dependent libraries are shared objects.
23602 deplibs_check_method=$lt_deplibs_check_method
23604 # Command to use when deplibs_check_method == "file_magic".
23605 file_magic_cmd=$lt_file_magic_cmd
23607 # The archiver.
23608 AR=$lt_AR
23609 AR_FLAGS=$lt_AR_FLAGS
23611 # A symbol stripping program.
23612 STRIP=$lt_STRIP
23614 # Commands used to install an old-style archive.
23615 RANLIB=$lt_RANLIB
23616 old_postinstall_cmds=$lt_old_postinstall_cmds
23617 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23619 # A C compiler.
23620 LTCC=$lt_CC
23622 # LTCC compiler flags.
23623 LTCFLAGS=$lt_CFLAGS
23625 # Take the output of nm and produce a listing of raw symbols and C names.
23626 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23628 # Transform the output of nm in a proper C declaration.
23629 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23631 # Transform the output of nm in a C name address pair.
23632 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23634 # Transform the output of nm in a C name address pair when lib prefix is needed.
23635 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23637 # The name of the directory that contains temporary libtool files.
23638 objdir=$objdir
23640 # Shell to use when invoking shell scripts.
23641 SHELL=$lt_SHELL
23643 # An echo program that does not interpret backslashes.
23644 ECHO=$lt_ECHO
23646 # Used to examine libraries when file_magic_cmd begins with "file".
23647 MAGIC_CMD=$MAGIC_CMD
23649 # Must we lock files when doing compilation?
23650 need_locks=$lt_need_locks
23652 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23653 DSYMUTIL=$lt_DSYMUTIL
23655 # Tool to change global to local symbols on Mac OS X.
23656 NMEDIT=$lt_NMEDIT
23658 # Tool to manipulate fat objects and archives on Mac OS X.
23659 LIPO=$lt_LIPO
23661 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
23662 OTOOL=$lt_OTOOL
23664 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23665 OTOOL64=$lt_OTOOL64
23667 # Old archive suffix (normally "a").
23668 libext=$libext
23670 # Shared library suffix (normally ".so").
23671 shrext_cmds=$lt_shrext_cmds
23673 # The commands to extract the exported symbol list from a shared archive.
23674 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23676 # Variables whose values should be saved in libtool wrapper scripts and
23677 # restored at link time.
23678 variables_saved_for_relink=$lt_variables_saved_for_relink
23680 # Do we need the "lib" prefix for modules?
23681 need_lib_prefix=$need_lib_prefix
23683 # Do we need a version for libraries?
23684 need_version=$need_version
23686 # Library versioning type.
23687 version_type=$version_type
23689 # Shared library runtime path variable.
23690 runpath_var=$runpath_var
23692 # Shared library path variable.
23693 shlibpath_var=$shlibpath_var
23695 # Is shlibpath searched before the hard-coded library search path?
23696 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23698 # Format of library name prefix.
23699 libname_spec=$lt_libname_spec
23701 # List of archive names. First name is the real one, the rest are links.
23702 # The last name is the one that the linker finds with -lNAME
23703 library_names_spec=$lt_library_names_spec
23705 # The coded name of the library, if different from the real name.
23706 soname_spec=$lt_soname_spec
23708 # Command to use after installation of a shared archive.
23709 postinstall_cmds=$lt_postinstall_cmds
23711 # Command to use after uninstallation of a shared archive.
23712 postuninstall_cmds=$lt_postuninstall_cmds
23714 # Commands used to finish a libtool library installation in a directory.
23715 finish_cmds=$lt_finish_cmds
23717 # As "finish_cmds", except a single script fragment to be evaled but
23718 # not shown.
23719 finish_eval=$lt_finish_eval
23721 # Whether we should hardcode library paths into libraries.
23722 hardcode_into_libs=$hardcode_into_libs
23724 # Compile-time system search path for libraries.
23725 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23727 # Run-time system search path for libraries.
23728 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23730 # Whether dlopen is supported.
23731 dlopen_support=$enable_dlopen
23733 # Whether dlopen of programs is supported.
23734 dlopen_self=$enable_dlopen_self
23736 # Whether dlopen of statically linked programs is supported.
23737 dlopen_self_static=$enable_dlopen_self_static
23739 # Commands to strip libraries.
23740 old_striplib=$lt_old_striplib
23741 striplib=$lt_striplib
23744 # The linker used to build libraries.
23745 LD=$lt_LD
23747 # Commands used to build an old-style archive.
23748 old_archive_cmds=$lt_old_archive_cmds
23750 # A language specific compiler.
23751 CC=$lt_compiler
23753 # Is the compiler the GNU compiler?
23754 with_gcc=$GCC
23756 # Compiler flag to turn off builtin functions.
23757 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23759 # How to pass a linker flag through the compiler.
23760 wl=$lt_lt_prog_compiler_wl
23762 # Additional compiler flags for building library objects.
23763 pic_flag=$lt_lt_prog_compiler_pic
23765 # Compiler flag to prevent dynamic linking.
23766 link_static_flag=$lt_lt_prog_compiler_static
23768 # Does compiler simultaneously support -c and -o options?
23769 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23771 # Whether or not to add -lc for building shared libraries.
23772 build_libtool_need_lc=$archive_cmds_need_lc
23774 # Whether or not to disallow shared libs when runtime libs are static.
23775 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23777 # Compiler flag to allow reflexive dlopens.
23778 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23780 # Compiler flag to generate shared objects directly from archives.
23781 whole_archive_flag_spec=$lt_whole_archive_flag_spec
23783 # Whether the compiler copes with passing no objects directly.
23784 compiler_needs_object=$lt_compiler_needs_object
23786 # Create an old-style archive from a shared archive.
23787 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23789 # Create a temporary old-style archive to link instead of a shared archive.
23790 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23792 # Commands used to build a shared archive.
23793 archive_cmds=$lt_archive_cmds
23794 archive_expsym_cmds=$lt_archive_expsym_cmds
23796 # Commands used to build a loadable module if different from building
23797 # a shared archive.
23798 module_cmds=$lt_module_cmds
23799 module_expsym_cmds=$lt_module_expsym_cmds
23801 # Whether we are building with GNU ld or not.
23802 with_gnu_ld=$lt_with_gnu_ld
23804 # Flag that allows shared libraries with undefined symbols to be built.
23805 allow_undefined_flag=$lt_allow_undefined_flag
23807 # Flag that enforces no undefined symbols.
23808 no_undefined_flag=$lt_no_undefined_flag
23810 # Flag to hardcode \$libdir into a binary during linking.
23811 # This must work even if \$libdir does not exist
23812 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23814 # If ld is used when linking, flag to hardcode \$libdir into a binary
23815 # during linking. This must work even if \$libdir does not exist.
23816 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
23818 # Whether we need a single "-rpath" flag with a separated argument.
23819 hardcode_libdir_separator=$lt_hardcode_libdir_separator
23821 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23822 # DIR into the resulting binary.
23823 hardcode_direct=$hardcode_direct
23825 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23826 # DIR into the resulting binary and the resulting library dependency is
23827 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
23828 # library is relocated.
23829 hardcode_direct_absolute=$hardcode_direct_absolute
23831 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23832 # into the resulting binary.
23833 hardcode_minus_L=$hardcode_minus_L
23835 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23836 # into the resulting binary.
23837 hardcode_shlibpath_var=$hardcode_shlibpath_var
23839 # Set to "yes" if building a shared library automatically hardcodes DIR
23840 # into the library and all subsequent libraries and executables linked
23841 # against it.
23842 hardcode_automatic=$hardcode_automatic
23844 # Set to yes if linker adds runtime paths of dependent libraries
23845 # to runtime path list.
23846 inherit_rpath=$inherit_rpath
23848 # Whether libtool must link a program against all its dependency libraries.
23849 link_all_deplibs=$link_all_deplibs
23851 # Fix the shell variable \$srcfile for the compiler.
23852 fix_srcfile_path=$lt_fix_srcfile_path
23854 # Set to "yes" if exported symbols are required.
23855 always_export_symbols=$always_export_symbols
23857 # The commands to list exported symbols.
23858 export_symbols_cmds=$lt_export_symbols_cmds
23860 # Symbols that should not be listed in the preloaded symbols.
23861 exclude_expsyms=$lt_exclude_expsyms
23863 # Symbols that must always be exported.
23864 include_expsyms=$lt_include_expsyms
23866 # Commands necessary for linking programs (against libraries) with templates.
23867 prelink_cmds=$lt_prelink_cmds
23869 # Specify filename containing input files.
23870 file_list_spec=$lt_file_list_spec
23872 # How to hardcode a shared library path into an executable.
23873 hardcode_action=$hardcode_action
23875 # The directories searched by this compiler when creating a shared library.
23876 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
23878 # Dependencies to place before and after the objects being linked to
23879 # create a shared library.
23880 predep_objects=$lt_predep_objects
23881 postdep_objects=$lt_postdep_objects
23882 predeps=$lt_predeps
23883 postdeps=$lt_postdeps
23885 # The library search path used internally by the compiler when linking
23886 # a shared library.
23887 compiler_lib_search_path=$lt_compiler_lib_search_path
23889 # ### END LIBTOOL CONFIG
23891 _LT_EOF
23893 case $host_os in
23894 aix3*)
23895 cat <<\_LT_EOF >> "$cfgfile"
23896 # AIX sometimes has problems with the GCC collect2 program. For some
23897 # reason, if we set the COLLECT_NAMES environment variable, the problems
23898 # vanish in a puff of smoke.
23899 if test "X${COLLECT_NAMES+set}" != Xset; then
23900 COLLECT_NAMES=
23901 export COLLECT_NAMES
23903 _LT_EOF
23905 esac
23908 ltmain="$ac_aux_dir/ltmain.sh"
23911 # We use sed instead of cat because bash on DJGPP gets confused if
23912 # if finds mixed CR/LF and LF-only lines. Since sed operates in
23913 # text mode, it properly converts lines to CR/LF. This bash problem
23914 # is reportedly fixed, but why not run on old versions too?
23915 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
23916 || (rm -f "$cfgfile"; exit 1)
23918 case $xsi_shell in
23919 yes)
23920 cat << \_LT_EOF >> "$cfgfile"
23922 # func_dirname file append nondir_replacement
23923 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
23924 # otherwise set result to NONDIR_REPLACEMENT.
23925 func_dirname ()
23927 case ${1} in
23928 */*) func_dirname_result="${1%/*}${2}" ;;
23929 * ) func_dirname_result="${3}" ;;
23930 esac
23933 # func_basename file
23934 func_basename ()
23936 func_basename_result="${1##*/}"
23939 # func_dirname_and_basename file append nondir_replacement
23940 # perform func_basename and func_dirname in a single function
23941 # call:
23942 # dirname: Compute the dirname of FILE. If nonempty,
23943 # add APPEND to the result, otherwise set result
23944 # to NONDIR_REPLACEMENT.
23945 # value returned in "$func_dirname_result"
23946 # basename: Compute filename of FILE.
23947 # value retuned in "$func_basename_result"
23948 # Implementation must be kept synchronized with func_dirname
23949 # and func_basename. For efficiency, we do not delegate to
23950 # those functions but instead duplicate the functionality here.
23951 func_dirname_and_basename ()
23953 case ${1} in
23954 */*) func_dirname_result="${1%/*}${2}" ;;
23955 * ) func_dirname_result="${3}" ;;
23956 esac
23957 func_basename_result="${1##*/}"
23960 # func_stripname prefix suffix name
23961 # strip PREFIX and SUFFIX off of NAME.
23962 # PREFIX and SUFFIX must not contain globbing or regex special
23963 # characters, hashes, percent signs, but SUFFIX may contain a leading
23964 # dot (in which case that matches only a dot).
23965 func_stripname ()
23967 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
23968 # positional parameters, so assign one to ordinary parameter first.
23969 func_stripname_result=${3}
23970 func_stripname_result=${func_stripname_result#"${1}"}
23971 func_stripname_result=${func_stripname_result%"${2}"}
23974 # func_opt_split
23975 func_opt_split ()
23977 func_opt_split_opt=${1%%=*}
23978 func_opt_split_arg=${1#*=}
23981 # func_lo2o object
23982 func_lo2o ()
23984 case ${1} in
23985 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
23986 *) func_lo2o_result=${1} ;;
23987 esac
23990 # func_xform libobj-or-source
23991 func_xform ()
23993 func_xform_result=${1%.*}.lo
23996 # func_arith arithmetic-term...
23997 func_arith ()
23999 func_arith_result=$(( $* ))
24002 # func_len string
24003 # STRING may not start with a hyphen.
24004 func_len ()
24006 func_len_result=${#1}
24009 _LT_EOF
24011 *) # Bourne compatible functions.
24012 cat << \_LT_EOF >> "$cfgfile"
24014 # func_dirname file append nondir_replacement
24015 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
24016 # otherwise set result to NONDIR_REPLACEMENT.
24017 func_dirname ()
24019 # Extract subdirectory from the argument.
24020 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
24021 if test "X$func_dirname_result" = "X${1}"; then
24022 func_dirname_result="${3}"
24023 else
24024 func_dirname_result="$func_dirname_result${2}"
24028 # func_basename file
24029 func_basename ()
24031 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
24035 # func_stripname prefix suffix name
24036 # strip PREFIX and SUFFIX off of NAME.
24037 # PREFIX and SUFFIX must not contain globbing or regex special
24038 # characters, hashes, percent signs, but SUFFIX may contain a leading
24039 # dot (in which case that matches only a dot).
24040 # func_strip_suffix prefix name
24041 func_stripname ()
24043 case ${2} in
24044 .*) func_stripname_result=`$ECHO "X${3}" \
24045 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
24046 *) func_stripname_result=`$ECHO "X${3}" \
24047 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
24048 esac
24051 # sed scripts:
24052 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
24053 my_sed_long_arg='1s/^-[^=]*=//'
24055 # func_opt_split
24056 func_opt_split ()
24058 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
24059 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
24062 # func_lo2o object
24063 func_lo2o ()
24065 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
24068 # func_xform libobj-or-source
24069 func_xform ()
24071 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
24074 # func_arith arithmetic-term...
24075 func_arith ()
24077 func_arith_result=`expr "$@"`
24080 # func_len string
24081 # STRING may not start with a hyphen.
24082 func_len ()
24084 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
24087 _LT_EOF
24088 esac
24090 case $lt_shell_append in
24091 yes)
24092 cat << \_LT_EOF >> "$cfgfile"
24094 # func_append var value
24095 # Append VALUE to the end of shell variable VAR.
24096 func_append ()
24098 eval "$1+=\$2"
24100 _LT_EOF
24103 cat << \_LT_EOF >> "$cfgfile"
24105 # func_append var value
24106 # Append VALUE to the end of shell variable VAR.
24107 func_append ()
24109 eval "$1=\$$1\$2"
24112 _LT_EOF
24114 esac
24117 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
24118 || (rm -f "$cfgfile"; exit 1)
24120 mv -f "$cfgfile" "$ofile" ||
24121 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
24122 chmod +x "$ofile"
24125 cat <<_LT_EOF >> "$ofile"
24127 # ### BEGIN LIBTOOL TAG CONFIG: FC
24129 # The linker used to build libraries.
24130 LD=$lt_LD_FC
24132 # Commands used to build an old-style archive.
24133 old_archive_cmds=$lt_old_archive_cmds_FC
24135 # A language specific compiler.
24136 CC=$lt_compiler_FC
24138 # Is the compiler the GNU compiler?
24139 with_gcc=$GCC_FC
24141 # Compiler flag to turn off builtin functions.
24142 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
24144 # How to pass a linker flag through the compiler.
24145 wl=$lt_lt_prog_compiler_wl_FC
24147 # Additional compiler flags for building library objects.
24148 pic_flag=$lt_lt_prog_compiler_pic_FC
24150 # Compiler flag to prevent dynamic linking.
24151 link_static_flag=$lt_lt_prog_compiler_static_FC
24153 # Does compiler simultaneously support -c and -o options?
24154 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
24156 # Whether or not to add -lc for building shared libraries.
24157 build_libtool_need_lc=$archive_cmds_need_lc_FC
24159 # Whether or not to disallow shared libs when runtime libs are static.
24160 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
24162 # Compiler flag to allow reflexive dlopens.
24163 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
24165 # Compiler flag to generate shared objects directly from archives.
24166 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
24168 # Whether the compiler copes with passing no objects directly.
24169 compiler_needs_object=$lt_compiler_needs_object_FC
24171 # Create an old-style archive from a shared archive.
24172 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
24174 # Create a temporary old-style archive to link instead of a shared archive.
24175 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
24177 # Commands used to build a shared archive.
24178 archive_cmds=$lt_archive_cmds_FC
24179 archive_expsym_cmds=$lt_archive_expsym_cmds_FC
24181 # Commands used to build a loadable module if different from building
24182 # a shared archive.
24183 module_cmds=$lt_module_cmds_FC
24184 module_expsym_cmds=$lt_module_expsym_cmds_FC
24186 # Whether we are building with GNU ld or not.
24187 with_gnu_ld=$lt_with_gnu_ld_FC
24189 # Flag that allows shared libraries with undefined symbols to be built.
24190 allow_undefined_flag=$lt_allow_undefined_flag_FC
24192 # Flag that enforces no undefined symbols.
24193 no_undefined_flag=$lt_no_undefined_flag_FC
24195 # Flag to hardcode \$libdir into a binary during linking.
24196 # This must work even if \$libdir does not exist
24197 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
24199 # If ld is used when linking, flag to hardcode \$libdir into a binary
24200 # during linking. This must work even if \$libdir does not exist.
24201 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
24203 # Whether we need a single "-rpath" flag with a separated argument.
24204 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
24206 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24207 # DIR into the resulting binary.
24208 hardcode_direct=$hardcode_direct_FC
24210 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24211 # DIR into the resulting binary and the resulting library dependency is
24212 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
24213 # library is relocated.
24214 hardcode_direct_absolute=$hardcode_direct_absolute_FC
24216 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24217 # into the resulting binary.
24218 hardcode_minus_L=$hardcode_minus_L_FC
24220 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24221 # into the resulting binary.
24222 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
24224 # Set to "yes" if building a shared library automatically hardcodes DIR
24225 # into the library and all subsequent libraries and executables linked
24226 # against it.
24227 hardcode_automatic=$hardcode_automatic_FC
24229 # Set to yes if linker adds runtime paths of dependent libraries
24230 # to runtime path list.
24231 inherit_rpath=$inherit_rpath_FC
24233 # Whether libtool must link a program against all its dependency libraries.
24234 link_all_deplibs=$link_all_deplibs_FC
24236 # Fix the shell variable \$srcfile for the compiler.
24237 fix_srcfile_path=$lt_fix_srcfile_path_FC
24239 # Set to "yes" if exported symbols are required.
24240 always_export_symbols=$always_export_symbols_FC
24242 # The commands to list exported symbols.
24243 export_symbols_cmds=$lt_export_symbols_cmds_FC
24245 # Symbols that should not be listed in the preloaded symbols.
24246 exclude_expsyms=$lt_exclude_expsyms_FC
24248 # Symbols that must always be exported.
24249 include_expsyms=$lt_include_expsyms_FC
24251 # Commands necessary for linking programs (against libraries) with templates.
24252 prelink_cmds=$lt_prelink_cmds_FC
24254 # Specify filename containing input files.
24255 file_list_spec=$lt_file_list_spec_FC
24257 # How to hardcode a shared library path into an executable.
24258 hardcode_action=$hardcode_action_FC
24260 # The directories searched by this compiler when creating a shared library.
24261 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
24263 # Dependencies to place before and after the objects being linked to
24264 # create a shared library.
24265 predep_objects=$lt_predep_objects_FC
24266 postdep_objects=$lt_postdep_objects_FC
24267 predeps=$lt_predeps_FC
24268 postdeps=$lt_postdeps_FC
24270 # The library search path used internally by the compiler when linking
24271 # a shared library.
24272 compiler_lib_search_path=$lt_compiler_lib_search_path_FC
24274 # ### END LIBTOOL TAG CONFIG: FC
24275 _LT_EOF
24278 gstdint.h )
24279 if test "$GCC" = yes; then
24280 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
24281 else
24282 echo "/* generated for $CC */" > tmp-stdint.h
24285 sed 's/^ *//' >> tmp-stdint.h <<EOF
24287 #ifndef GCC_GENERATED_STDINT_H
24288 #define GCC_GENERATED_STDINT_H 1
24290 #include <sys/types.h>
24293 if test "$acx_cv_header_stdint" != stdint.h; then
24294 echo "#include <stddef.h>" >> tmp-stdint.h
24296 if test "$acx_cv_header_stdint" != stddef.h; then
24297 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
24300 sed 's/^ *//' >> tmp-stdint.h <<EOF
24301 /* glibc uses these symbols as guards to prevent redefinitions. */
24302 #ifdef __int8_t_defined
24303 #define _INT8_T
24304 #define _INT16_T
24305 #define _INT32_T
24306 #endif
24307 #ifdef __uint32_t_defined
24308 #define _UINT32_T
24309 #endif
24313 # ----------------- done header, emit basic int types -------------
24314 if test "$acx_cv_header_stdint" = stddef.h; then
24315 sed 's/^ *//' >> tmp-stdint.h <<EOF
24317 #ifndef _UINT8_T
24318 #define _UINT8_T
24319 #ifndef __uint8_t_defined
24320 #define __uint8_t_defined
24321 typedef unsigned $acx_cv_type_int8_t uint8_t;
24322 #endif
24323 #endif
24325 #ifndef _UINT16_T
24326 #define _UINT16_T
24327 #ifndef __uint16_t_defined
24328 #define __uint16_t_defined
24329 typedef unsigned $acx_cv_type_int16_t uint16_t;
24330 #endif
24331 #endif
24333 #ifndef _UINT32_T
24334 #define _UINT32_T
24335 #ifndef __uint32_t_defined
24336 #define __uint32_t_defined
24337 typedef unsigned $acx_cv_type_int32_t uint32_t;
24338 #endif
24339 #endif
24341 #ifndef _INT8_T
24342 #define _INT8_T
24343 #ifndef __int8_t_defined
24344 #define __int8_t_defined
24345 typedef $acx_cv_type_int8_t int8_t;
24346 #endif
24347 #endif
24349 #ifndef _INT16_T
24350 #define _INT16_T
24351 #ifndef __int16_t_defined
24352 #define __int16_t_defined
24353 typedef $acx_cv_type_int16_t int16_t;
24354 #endif
24355 #endif
24357 #ifndef _INT32_T
24358 #define _INT32_T
24359 #ifndef __int32_t_defined
24360 #define __int32_t_defined
24361 typedef $acx_cv_type_int32_t int32_t;
24362 #endif
24363 #endif
24365 elif test "$ac_cv_type_u_int32_t" = yes; then
24366 sed 's/^ *//' >> tmp-stdint.h <<EOF
24368 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
24369 #ifndef _INT8_T
24370 #define _INT8_T
24371 #endif
24372 #ifndef _INT16_T
24373 #define _INT16_T
24374 #endif
24375 #ifndef _INT32_T
24376 #define _INT32_T
24377 #endif
24379 #ifndef _UINT8_T
24380 #define _UINT8_T
24381 #ifndef __uint8_t_defined
24382 #define __uint8_t_defined
24383 typedef u_int8_t uint8_t;
24384 #endif
24385 #endif
24387 #ifndef _UINT16_T
24388 #define _UINT16_T
24389 #ifndef __uint16_t_defined
24390 #define __uint16_t_defined
24391 typedef u_int16_t uint16_t;
24392 #endif
24393 #endif
24395 #ifndef _UINT32_T
24396 #define _UINT32_T
24397 #ifndef __uint32_t_defined
24398 #define __uint32_t_defined
24399 typedef u_int32_t uint32_t;
24400 #endif
24401 #endif
24403 else
24404 sed 's/^ *//' >> tmp-stdint.h <<EOF
24406 /* Some systems have guard macros to prevent redefinitions, define them. */
24407 #ifndef _INT8_T
24408 #define _INT8_T
24409 #endif
24410 #ifndef _INT16_T
24411 #define _INT16_T
24412 #endif
24413 #ifndef _INT32_T
24414 #define _INT32_T
24415 #endif
24416 #ifndef _UINT8_T
24417 #define _UINT8_T
24418 #endif
24419 #ifndef _UINT16_T
24420 #define _UINT16_T
24421 #endif
24422 #ifndef _UINT32_T
24423 #define _UINT32_T
24424 #endif
24428 # ------------- done basic int types, emit int64_t types ------------
24429 if test "$ac_cv_type_uint64_t" = yes; then
24430 sed 's/^ *//' >> tmp-stdint.h <<EOF
24432 /* system headers have good uint64_t and int64_t */
24433 #ifndef _INT64_T
24434 #define _INT64_T
24435 #endif
24436 #ifndef _UINT64_T
24437 #define _UINT64_T
24438 #endif
24440 elif test "$ac_cv_type_u_int64_t" = yes; then
24441 sed 's/^ *//' >> tmp-stdint.h <<EOF
24443 /* system headers have an u_int64_t (and int64_t) */
24444 #ifndef _INT64_T
24445 #define _INT64_T
24446 #endif
24447 #ifndef _UINT64_T
24448 #define _UINT64_T
24449 #ifndef __uint64_t_defined
24450 #define __uint64_t_defined
24451 typedef u_int64_t uint64_t;
24452 #endif
24453 #endif
24455 elif test -n "$acx_cv_type_int64_t"; then
24456 sed 's/^ *//' >> tmp-stdint.h <<EOF
24458 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
24459 #ifndef _INT64_T
24460 #define _INT64_T
24461 typedef $acx_cv_type_int64_t int64_t;
24462 #endif
24463 #ifndef _UINT64_T
24464 #define _UINT64_T
24465 #ifndef __uint64_t_defined
24466 #define __uint64_t_defined
24467 typedef unsigned $acx_cv_type_int64_t uint64_t;
24468 #endif
24469 #endif
24471 else
24472 sed 's/^ *//' >> tmp-stdint.h <<EOF
24474 /* some common heuristics for int64_t, using compiler-specific tests */
24475 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
24476 #ifndef _INT64_T
24477 #define _INT64_T
24478 #ifndef __int64_t_defined
24479 typedef long long int64_t;
24480 #endif
24481 #endif
24482 #ifndef _UINT64_T
24483 #define _UINT64_T
24484 typedef unsigned long long uint64_t;
24485 #endif
24487 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
24488 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
24489 does not implement __extension__. But that compiler doesn't define
24490 __GNUC_MINOR__. */
24491 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
24492 # define __extension__
24493 # endif
24495 # ifndef _INT64_T
24496 # define _INT64_T
24497 __extension__ typedef long long int64_t;
24498 # endif
24499 # ifndef _UINT64_T
24500 # define _UINT64_T
24501 __extension__ typedef unsigned long long uint64_t;
24502 # endif
24504 #elif !defined __STRICT_ANSI__
24505 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
24507 # ifndef _INT64_T
24508 # define _INT64_T
24509 typedef __int64 int64_t;
24510 # endif
24511 # ifndef _UINT64_T
24512 # define _UINT64_T
24513 typedef unsigned __int64 uint64_t;
24514 # endif
24515 # endif /* compiler */
24517 #endif /* ANSI version */
24521 # ------------- done int64_t types, emit intptr types ------------
24522 if test "$ac_cv_type_uintptr_t" != yes; then
24523 sed 's/^ *//' >> tmp-stdint.h <<EOF
24525 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
24526 #ifndef __uintptr_t_defined
24527 typedef u$acx_cv_type_intptr_t uintptr_t;
24528 #endif
24529 #ifndef __intptr_t_defined
24530 typedef $acx_cv_type_intptr_t intptr_t;
24531 #endif
24535 # ------------- done intptr types, emit int_least types ------------
24536 if test "$ac_cv_type_int_least32_t" != yes; then
24537 sed 's/^ *//' >> tmp-stdint.h <<EOF
24539 /* Define int_least types */
24540 typedef int8_t int_least8_t;
24541 typedef int16_t int_least16_t;
24542 typedef int32_t int_least32_t;
24543 #ifdef _INT64_T
24544 typedef int64_t int_least64_t;
24545 #endif
24547 typedef uint8_t uint_least8_t;
24548 typedef uint16_t uint_least16_t;
24549 typedef uint32_t uint_least32_t;
24550 #ifdef _UINT64_T
24551 typedef uint64_t uint_least64_t;
24552 #endif
24556 # ------------- done intptr types, emit int_fast types ------------
24557 if test "$ac_cv_type_int_fast32_t" != yes; then
24558 sed 's/^ *//' >> tmp-stdint.h <<EOF
24560 /* Define int_fast types. short is often slow */
24561 typedef int8_t int_fast8_t;
24562 typedef int int_fast16_t;
24563 typedef int32_t int_fast32_t;
24564 #ifdef _INT64_T
24565 typedef int64_t int_fast64_t;
24566 #endif
24568 typedef uint8_t uint_fast8_t;
24569 typedef unsigned int uint_fast16_t;
24570 typedef uint32_t uint_fast32_t;
24571 #ifdef _UINT64_T
24572 typedef uint64_t uint_fast64_t;
24573 #endif
24577 if test "$ac_cv_type_uintmax_t" != yes; then
24578 sed 's/^ *//' >> tmp-stdint.h <<EOF
24580 /* Define intmax based on what we found */
24581 #ifdef _INT64_T
24582 typedef int64_t intmax_t;
24583 #else
24584 typedef long intmax_t;
24585 #endif
24586 #ifdef _UINT64_T
24587 typedef uint64_t uintmax_t;
24588 #else
24589 typedef unsigned long uintmax_t;
24590 #endif
24594 sed 's/^ *//' >> tmp-stdint.h <<EOF
24596 #endif /* GCC_GENERATED_STDINT_H */
24599 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
24600 rm -f tmp-stdint.h
24601 else
24602 mv -f tmp-stdint.h gstdint.h
24606 esac
24607 done
24608 _ACEOF
24610 cat >>$CONFIG_STATUS <<\_ACEOF
24612 { (exit 0); exit 0; }
24613 _ACEOF
24614 chmod +x $CONFIG_STATUS
24615 ac_clean_files=$ac_clean_files_save
24618 # configure is writing to config.log, and then calls config.status.
24619 # config.status does its own redirection, appending to config.log.
24620 # Unfortunately, on DOS this fails, as config.log is still kept open
24621 # by configure, so config.status won't be able to write to it; its
24622 # output is simply discarded. So we exec the FD to /dev/null,
24623 # effectively closing config.log, so it can be properly (re)opened and
24624 # appended to by config.status. When coming back to configure, we
24625 # need to make the FD available again.
24626 if test "$no_create" != yes; then
24627 ac_cs_success=:
24628 ac_config_status_args=
24629 test "$silent" = yes &&
24630 ac_config_status_args="$ac_config_status_args --quiet"
24631 exec 5>/dev/null
24632 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24633 exec 5>>config.log
24634 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24635 # would make configure fail if this is the last instruction.
24636 $ac_cs_success || { (exit 1); exit 1; }