]> git.ipfire.org Git - thirdparty/gcc.git/blame - libgomp/configure
* libtool.m4: Update to libtool 2.2.6.
[thirdparty/gcc.git] / libgomp / configure
CommitLineData
1e8e9920 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.
4#
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## --------------------- ##
11
12# Be Bourne compatible
13if 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+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for 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
43do
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
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if 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=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
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
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
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
123 fi
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; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
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
137 /*)
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
152done
153;;
154 esac
155
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 '
166 N
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; }; }
177
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
184}
185
186
187case `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= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if 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'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
542f9784 244
245# Check that we are running under the correct shell.
246SHELL=${CONFIG_SHELL-/bin/sh}
247
248case X$lt_ECHO in
249X*--fallback-echo)
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
252 ;;
253esac
254
255ECHO=${lt_ECHO-echo}
256if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
258 shift
259elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
261 :
262elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $ECHO works!
264 :
265else
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
268fi
269
270if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
272 shift
273 cat <<_LT_EOF
274$*
275_LT_EOF
276 exit 0
277fi
278
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
282
283if 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
292 fi
293 done
294 fi
295
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
299 :
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'
304 #
305 # So, first we look for a working echo in the user's PATH.
306
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
316 fi
317 done
318 IFS="$lt_save_ifs"
319
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
342 :
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=:
360
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
365 fi
366 prev="$cmd"
367 done
368
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
376 fi
377 fi
378 fi
379 fi
380 fi
381fi
382
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.
385lt_ECHO=$ECHO
386if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
388fi
389
390
391
392
1e8e9920 393# Name of the host.
394# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395# so uname gets run too.
396ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
397
398exec 6>&1
399
400#
401# Initializations.
402#
403ac_default_prefix=/usr/local
404ac_config_libobj_dir=.
405cross_compiling=no
406subdirs=
407MFLAGS=
408MAKEFLAGS=
409SHELL=${CONFIG_SHELL-/bin/sh}
410
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}
415
416# Identity of this package.
417PACKAGE_NAME='GNU OpenMP Runtime Library'
418PACKAGE_TARNAME='libgomp'
419PACKAGE_VERSION='1.0'
420PACKAGE_STRING='GNU OpenMP Runtime Library 1.0'
421PACKAGE_BUGREPORT=''
422
423# Factoring default headers for most tests.
424ac_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"
459
fd6481cf 460ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS GENINSRC_TRUE GENINSRC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar multi_basedir toolexecdir toolexeclibdir CC ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CFLAGS AR ac_ct_AR RANLIB ac_ct_RANLIB PERL BUILD_INFO_TRUE BUILD_INFO_FALSE LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S lt_ECHO CPP CPPFLAGS enable_shared enable_static MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT FC FCFLAGS LDFLAGS ac_ct_FC libtool_VERSION SECTION_LDFLAGS OPT_LDFLAGS LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE config_path XCFLAGS XLDFLAGS link_gomp USE_FORTRAN_TRUE USE_FORTRAN_FALSE OMP_LOCK_SIZE OMP_LOCK_ALIGN OMP_NEST_LOCK_SIZE OMP_NEST_LOCK_ALIGN OMP_LOCK_KIND OMP_NEST_LOCK_KIND 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'
1e8e9920 461ac_subst_files=''
5b2c7553 462ac_pwd=`pwd`
1e8e9920 463
464# Initialize some variables set by options.
465ac_init_help=
466ac_init_version=false
467# The variables have the same names as the options, with
468# dashes changed to underlines.
469cache_file=/dev/null
470exec_prefix=NONE
471no_create=
472no_recursion=
473prefix=NONE
474program_prefix=NONE
475program_suffix=NONE
476program_transform_name=s,x,x,
477silent=
478site=
479srcdir=
480verbose=
481x_includes=NONE
482x_libraries=NONE
483
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.
489bindir='${exec_prefix}/bin'
490sbindir='${exec_prefix}/sbin'
491libexecdir='${exec_prefix}/libexec'
492datadir='${prefix}/share'
493sysconfdir='${prefix}/etc'
494sharedstatedir='${prefix}/com'
495localstatedir='${prefix}/var'
496libdir='${exec_prefix}/lib'
497includedir='${prefix}/include'
498oldincludedir='/usr/include'
499infodir='${prefix}/info'
500mandir='${prefix}/man'
501
502ac_prev=
503for ac_option
504do
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
510 fi
511
512 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
513
514 # Accept the important Cygnus configure options, so we can diagnose typos.
515
516 case $ac_option in
517
518 -bindir | --bindir | --bindi | --bind | --bin | --bi)
519 ac_prev=bindir ;;
520 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
521 bindir=$ac_optarg ;;
522
523 -build | --build | --buil | --bui | --bu)
524 ac_prev=build_alias ;;
525 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
526 build_alias=$ac_optarg ;;
527
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 ;;
534
535 --config-cache | -C)
536 cache_file=config.cache ;;
537
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 ;;
543
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" ;;
552
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'" ;;
565
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 ;;
574
575 -gas | --gas | --ga | --g)
576 # Obsolete; use --with-gas.
577 with_gas=yes ;;
578
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 ;;
585
586 -host | --host | --hos | --ho)
587 ac_prev=host_alias ;;
588 -host=* | --host=* | --hos=* | --ho=*)
589 host_alias=$ac_optarg ;;
590
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 ;;
597
598 -infodir | --infodir | --infodi | --infod | --info | --inf)
599 ac_prev=infodir ;;
600 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
601 infodir=$ac_optarg ;;
602
603 -libdir | --libdir | --libdi | --libd)
604 ac_prev=libdir ;;
605 -libdir=* | --libdir=* | --libdi=* | --libd=*)
606 libdir=$ac_optarg ;;
607
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 ;;
614
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 ;;
623
624 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
625 ac_prev=mandir ;;
626 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
627 mandir=$ac_optarg ;;
628
629 -nfp | --nfp | --nf)
630 # Obsolete; use --without-fp.
631 with_fp=no ;;
632
633 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
634 | --no-cr | --no-c | -n)
635 no_create=yes ;;
636
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 ;;
640
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 ;;
649
650 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
651 ac_prev=prefix ;;
652 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
653 prefix=$ac_optarg ;;
654
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 ;;
661
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 ;;
668
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 ;;
685
686 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
687 | -silent | --silent | --silen | --sile | --sil)
688 silent=yes ;;
689
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 ;;
695
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 ;;
706
707 -site | --site | --sit)
708 ac_prev=site ;;
709 -site=* | --site=* | --sit=*)
710 site=$ac_optarg ;;
711
712 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
713 ac_prev=srcdir ;;
714 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
715 srcdir=$ac_optarg ;;
716
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 ;;
723
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 ;;
728
729 -v | -verbose | --verbose | --verbos | --verbo | --verb)
730 verbose=yes ;;
731
732 -version | --version | --versio | --versi | --vers | -V)
733 ac_init_version=: ;;
734
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'" ;;
747
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" ;;
756
757 --x)
758 # Obsolete; use --with-x.
759 with_x=yes ;;
760
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 ;;
767
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 ;;
774
775 -*) { echo "$as_me: error: unrecognized option: $ac_option
776Try \`$0 --help' for more information." >&2
777 { (exit 1); exit 1; }; }
778 ;;
779
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 ;;
789
790 *)
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}
796 ;;
797
798 esac
799done
800
801if 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; }; }
805fi
806
807# Be sure to have absolute paths.
808for ac_var in exec_prefix prefix
809do
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
816done
817
818# Be sure to have absolute paths.
819for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
820 localstatedir libdir includedir oldincludedir infodir mandir
821do
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
828done
829
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.
833build=$build_alias
834host=$host_alias
835target=$target_alias
836
837# FIXME: To remove some day.
838if 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
845 fi
846fi
847
848ac_tool_prefix=
849test -n "$host_alias" && ac_tool_prefix=$host_alias-
850
851test "$silent" = yes && exec 6>/dev/null
852
853
854# Find the source files, if location was not specified.
855if 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 ||
864echo 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
542f9784 871 if test ! -r $srcdir/$ac_unique_file; then
1e8e9920 872 srcdir=..
873 fi
874else
875 ac_srcdir_defaulted=no
876fi
542f9784 877if test ! -r $srcdir/$ac_unique_file; then
1e8e9920 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; }; }
884 fi
885fi
542f9784 886(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
1e8e9920 887 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
888 { (exit 1); exit 1; }; }
889srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
890ac_env_build_alias_set=${build_alias+set}
891ac_env_build_alias_value=$build_alias
892ac_cv_env_build_alias_set=${build_alias+set}
893ac_cv_env_build_alias_value=$build_alias
894ac_env_host_alias_set=${host_alias+set}
895ac_env_host_alias_value=$host_alias
896ac_cv_env_host_alias_set=${host_alias+set}
897ac_cv_env_host_alias_value=$host_alias
898ac_env_target_alias_set=${target_alias+set}
899ac_env_target_alias_value=$target_alias
900ac_cv_env_target_alias_set=${target_alias+set}
901ac_cv_env_target_alias_value=$target_alias
542f9784 902ac_env_CPP_set=${CPP+set}
903ac_env_CPP_value=$CPP
904ac_cv_env_CPP_set=${CPP+set}
905ac_cv_env_CPP_value=$CPP
906ac_env_CPPFLAGS_set=${CPPFLAGS+set}
907ac_env_CPPFLAGS_value=$CPPFLAGS
908ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
909ac_cv_env_CPPFLAGS_value=$CPPFLAGS
1e8e9920 910ac_env_FC_set=${FC+set}
911ac_env_FC_value=$FC
912ac_cv_env_FC_set=${FC+set}
913ac_cv_env_FC_value=$FC
914ac_env_FCFLAGS_set=${FCFLAGS+set}
915ac_env_FCFLAGS_value=$FCFLAGS
916ac_cv_env_FCFLAGS_set=${FCFLAGS+set}
917ac_cv_env_FCFLAGS_value=$FCFLAGS
918ac_env_LDFLAGS_set=${LDFLAGS+set}
919ac_env_LDFLAGS_value=$LDFLAGS
920ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
921ac_cv_env_LDFLAGS_value=$LDFLAGS
1e8e9920 922
923#
924# Report the --help message.
925#
926if 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.
931
932Usage: $0 [OPTION]... [VAR=VALUE]...
933
934To assign environment variables (e.g., CC, CFLAGS...), specify them as
935VAR=VALUE. See below for descriptions of some of the useful variables.
936
937Defaults for the options are specified in brackets.
938
939Configuration:
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 \`..']
949
950_ACEOF
951
952 cat <<_ACEOF
953Installation 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]
958
959By default, \`make install' will install all the files in
960\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
961an installation prefix other than \`$ac_default_prefix' using \`--prefix',
962for instance \`--prefix=\$HOME'.
963
964For better control, use the options below.
965
966Fine 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
980
981 cat <<\_ACEOF
982
983Program 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
987
988System 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
993fi
994
995if 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
1000
1001Optional 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]
aeda7a78 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]
1e8e9920 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
542f9784 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]
1e8e9920 1020 --disable-libtool-lock avoid locking (might break parallel builds)
a263d1ab 1021 --enable-maintainer-mode enable make rules and dependencies not useful
1022 (and sometimes confusing) to the casual installer
cfbdd7de 1023 --enable-linux-futex use the Linux futex system call
1024 [default=default]
e564ddd8 1025 --enable-tls Use thread-local storage [default=yes]
1e8e9920 1026 --enable-symvers=STYLE enables symbol versioning of the shared library
1027 [default=yes]
1028
1029Optional Packages:
1030 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1031 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
542f9784 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]
1e8e9920 1035
1036Some 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>
542f9784 1043 CPP C preprocessor
1e8e9920 1044 FC Fortran compiler command
1045 FCFLAGS Fortran compiler flags
1e8e9920 1046
1047Use these variables to override the choices made by `configure' or to help
1048it to find libraries and programs with nonstandard names/locations.
1049
1050_ACEOF
1051fi
1052
1053if 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=.
1059
1060if 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'`
1064else
1065 ac_dir_suffix= ac_top_builddir=
1066fi
1067
1068case $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 ;;
1082esac
1083
1084# Do not use `cd foo && pwd` to compute absolute paths, because
1085# the directories may not exist.
1086case `pwd` in
1087.) ac_abs_builddir="$ac_dir";;
1088*)
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;;
1094esac
1095case $ac_abs_builddir in
1096.) ac_abs_top_builddir=${ac_top_builddir}.;;
1097*)
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;;
1103esac
1104case $ac_abs_builddir in
1105.) ac_abs_srcdir=$ac_srcdir;;
1106*)
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;;
1112esac
1113case $ac_abs_builddir in
1114.) ac_abs_top_srcdir=$ac_top_srcdir;;
1115*)
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;;
1121esac
1122
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
1137 fi
59da30e1 1138 cd $ac_popdir
1e8e9920 1139 done
1140fi
1141
1142test -n "$ac_init_help" && exit 0
1143if $ac_init_version; then
1144 cat <<\_ACEOF
1145GNU OpenMP Runtime Library configure 1.0
1146generated by GNU Autoconf 2.59
1147
1148Copyright (C) 2003 Free Software Foundation, Inc.
1149This configure script is free software; the Free Software Foundation
1150gives unlimited permission to copy, distribute and modify it.
1151_ACEOF
1152 exit 0
1153fi
1154exec 5>config.log
1155cat >&5 <<_ACEOF
1156This file contains any messages produced by compilers while
1157running configure, to aid debugging if configure makes a mistake.
1158
1159It was created by GNU OpenMP Runtime Library $as_me 1.0, which was
1160generated by GNU Autoconf 2.59. Invocation command line was
1161
1162 $ $0 $@
1163
1164_ACEOF
1165{
1166cat <<_ASUNAME
1167## --------- ##
1168## Platform. ##
1169## --------- ##
1170
1171hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1172uname -m = `(uname -m) 2>/dev/null || echo unknown`
1173uname -r = `(uname -r) 2>/dev/null || echo unknown`
1174uname -s = `(uname -s) 2>/dev/null || echo unknown`
1175uname -v = `(uname -v) 2>/dev/null || echo unknown`
1176
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`
1179
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`
1183hostinfo = `(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`
1187
1188_ASUNAME
1189
1190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1191for as_dir in $PATH
1192do
1193 IFS=$as_save_IFS
1194 test -z "$as_dir" && as_dir=.
1195 echo "PATH: $as_dir"
1196done
1197
1198} >&5
1199
1200cat >&5 <<_ACEOF
1201
1202
1203## ----------- ##
1204## Core tests. ##
1205## ----------- ##
1206
1207_ACEOF
1208
1209
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.
1215ac_configure_args=
1216ac_configure_args0=
1217ac_configure_args1=
1218ac_sep=
1219ac_must_keep_next=false
1220for ac_pass in 1 2
1221do
1222 for ac_arg
1223 do
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'" ;;
1234 2)
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
1247 ;;
1248 -* ) ac_must_keep_next=true ;;
1249 esac
1250 fi
1251 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1252 # Get rid of the leading space.
1253 ac_sep=" "
1254 ;;
1255 esac
1256 done
1257done
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; }
1260
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.
1266trap 'exit_status=$?
1267 # Save into config.log some information that might help in debugging.
1268 {
1269 echo
1270
1271 cat <<\_ASBOX
1272## ---------------- ##
1273## Cache variables. ##
1274## ---------------- ##
1275_ASBOX
1276 echo
1277 # The following way of writing the cache mishandles newlines in values,
1278{
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"
1285 ;;
1286 *)
1287 sed -n \
1288 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1289 ;;
1290 esac;
1291}
1292 echo
1293
1294 cat <<\_ASBOX
1295## ----------------- ##
1296## Output variables. ##
1297## ----------------- ##
1298_ASBOX
1299 echo
1300 for ac_var in $ac_subst_vars
1301 do
1302 eval ac_val=$`echo $ac_var`
1303 echo "$ac_var='"'"'$ac_val'"'"'"
1304 done | sort
1305 echo
1306
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
1315 do
1316 eval ac_val=$`echo $ac_var`
1317 echo "$ac_var='"'"'$ac_val'"'"'"
1318 done | sort
1319 echo
1320 fi
1321
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
1331 fi
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
1339 ' 0
1340for ac_signal in 1 2 13 15; do
1341 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1342done
1343ac_signal=0
1344
1345# confdefs.h avoids OS command line length limits that DEFS can exceed.
1346rm -rf conftest* confdefs.h
1347# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1348echo >confdefs.h
1349
1350# Predefined preprocessor variables.
1351
1352cat >>confdefs.h <<_ACEOF
1353#define PACKAGE_NAME "$PACKAGE_NAME"
1354_ACEOF
1355
1356
1357cat >>confdefs.h <<_ACEOF
1358#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1359_ACEOF
1360
1361
1362cat >>confdefs.h <<_ACEOF
1363#define PACKAGE_VERSION "$PACKAGE_VERSION"
1364_ACEOF
1365
1366
1367cat >>confdefs.h <<_ACEOF
1368#define PACKAGE_STRING "$PACKAGE_STRING"
1369_ACEOF
1370
1371
1372cat >>confdefs.h <<_ACEOF
1373#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1374_ACEOF
1375
1376
1377# Let the site file select an alternate cache file if it wants to.
1378# Prefer explicitly selected file to automatically selected ones.
1379if 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"
1384 fi
1385fi
1386for 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
1389echo "$as_me: loading site script $ac_site_file" >&6;}
1390 sed 's/^/| /' "$ac_site_file" >&5
1391 . "$ac_site_file"
1392 fi
1393done
1394
1395if 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
1400echo "$as_me: loading cache $cache_file" >&6;}
1401 case $cache_file in
1402 [\\/]* | ?:[\\/]* ) . $cache_file;;
1403 *) . ./$cache_file;;
1404 esac
1405 fi
1406else
1407 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1408echo "$as_me: creating cache $cache_file" >&6;}
1409 >$cache_file
1410fi
1411
1412# Check that the precious variables saved in the cache have kept the same
1413# value.
1414ac_cache_corrupted=false
1415for 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
1424echo "$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
1428echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1429 ac_cache_corrupted=: ;;
1430 ,);;
1431 *)
1432 if test "x$ac_old_val" != "x$ac_new_val"; then
6a88da51 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
1e8e9920 1438echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
6a88da51 1439 ac_cache_corrupted=:
1440 else
1441 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1442echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1443 eval $ac_var=\$ac_old_val
1444 fi
1445 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1446echo "$as_me: former value: \`$ac_old_val'" >&2;}
1447 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1448echo "$as_me: current value: \`$ac_new_val'" >&2;}
1e8e9920 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
1462 fi
1463done
1464if $ac_cache_corrupted; then
5b2c7553 1465 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1466echo "$as_me: error: in \`$ac_pwd':" >&2;}
1e8e9920 1467 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1468echo "$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
1470echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1471 { (exit 1); exit 1; }; }
1472fi
1473
1474ac_ext=c
1475ac_cpp='$CPP $CPPFLAGS'
1476ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1477ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1478ac_compiler_gnu=$ac_cv_c_compiler_gnu
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
5b2c7553 1502
1503
1504
1e8e9920 1505
1506
1507
1508
1509 ac_config_headers="$ac_config_headers config.h"
1510
1511
1512# -------
1513# Options
1514# -------
1515
1516echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
1517echo $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.
1519if test "${enable_version_specific_runtime_libs+set}" = set; then
1520 enableval="$enable_version_specific_runtime_libs"
1521
1522 case "$enableval" in
1523 yes|no) ;;
1524 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific-runtime-libs" >&5
1525echo "$as_me: error: Unknown argument to enable/disable version-specific-runtime-libs" >&2;}
1526 { (exit 1); exit 1; }; } ;;
1527 esac
1528
1529else
1530 enable_version_specific_runtime_libs=no
1531fi;
1532
1533echo "$as_me:$LINENO: result: $enable_version_specific_runtime_libs" >&5
1534echo "${ECHO_T}$enable_version_specific_runtime_libs" >&6
1535
aeda7a78 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.
1541echo "$as_me:$LINENO: checking for --enable-generated-files-in-srcdir" >&5
1542echo $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.
1544if test "${enable_generated_files_in_srcdir+set}" = set; then
1545 enableval="$enable_generated_files_in_srcdir"
1546
1547 case "$enableval" in
1548 yes|no) ;;
1549 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable generated-files-in-srcdir" >&5
1550echo "$as_me: error: Unknown argument to enable/disable generated-files-in-srcdir" >&2;}
1551 { (exit 1); exit 1; }; } ;;
1552 esac
1553
1554else
1555 enable_generated_files_in_srcdir=no
1556fi;
1557
1558echo "$as_me:$LINENO: result: $enable_generated_files_in_srcdir" >&5
1559echo "${ECHO_T}$enable_generated_files_in_srcdir" >&6
1560
1561
1562if test "$enable_generated_files_in_srcdir" = yes; then
1563 GENINSRC_TRUE=
1564 GENINSRC_FALSE='#'
1565else
1566 GENINSRC_TRUE='#'
1567 GENINSRC_FALSE=
1568fi
1569
1570
1571
1e8e9920 1572# -------
1573# -------
1574
1575# Gets build, host, target, *_vendor, *_cpu, *_os, etc.
1576#
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/.
1579#
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. :-)
1584#
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.
1587#
1588# Do not delete or change the following two lines. For why, see
1589# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
1590ac_aux_dir=
1591for 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
1604 fi
1605done
1606if test -z "$ac_aux_dir"; then
1607 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1608echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1609 { (exit 1); exit 1; }; }
1610fi
1611ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1612ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1613ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1614
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
1618echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1619 { (exit 1); exit 1; }; }
1620
1621echo "$as_me:$LINENO: checking build system type" >&5
1622echo $ECHO_N "checking build system type... $ECHO_C" >&6
1623if test "${ac_cv_build+set}" = set; then
1624 echo $ECHO_N "(cached) $ECHO_C" >&6
1625else
1626 ac_cv_build_alias=$build_alias
1627test -z "$ac_cv_build_alias" &&
1628 ac_cv_build_alias=`$ac_config_guess`
1629test -z "$ac_cv_build_alias" &&
1630 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1631echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1632 { (exit 1); exit 1; }; }
1633ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1634 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1635echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1636 { (exit 1); exit 1; }; }
1637
1638fi
1639echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1640echo "${ECHO_T}$ac_cv_build" >&6
1641build=$ac_cv_build
1642build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1643build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1644build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1645
1646
1647echo "$as_me:$LINENO: checking host system type" >&5
1648echo $ECHO_N "checking host system type... $ECHO_C" >&6
1649if test "${ac_cv_host+set}" = set; then
1650 echo $ECHO_N "(cached) $ECHO_C" >&6
1651else
1652 ac_cv_host_alias=$host_alias
1653test -z "$ac_cv_host_alias" &&
1654 ac_cv_host_alias=$ac_cv_build_alias
1655ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1656 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1657echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1658 { (exit 1); exit 1; }; }
1659
1660fi
1661echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1662echo "${ECHO_T}$ac_cv_host" >&6
1663host=$ac_cv_host
1664host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1665host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1666host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1667
1668
1669echo "$as_me:$LINENO: checking target system type" >&5
1670echo $ECHO_N "checking target system type... $ECHO_C" >&6
1671if test "${ac_cv_target+set}" = set; then
1672 echo $ECHO_N "(cached) $ECHO_C" >&6
1673else
1674 ac_cv_target_alias=$target_alias
1675test "x$ac_cv_target_alias" = "x" &&
1676 ac_cv_target_alias=$ac_cv_host_alias
1677ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1678 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1679echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1680 { (exit 1); exit 1; }; }
1681
1682fi
1683echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1684echo "${ECHO_T}$ac_cv_target" >&6
1685target=$ac_cv_target
1686target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1687target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1688target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1689
1690
1691# The aliases save the names the user supplied, while $host etc.
1692# will get canonicalized.
1693test -n "$target_alias" &&
1694 test "$program_prefix$program_suffix$program_transform_name" = \
1695 NONENONEs,x,x, &&
1696 program_prefix=${target_alias}-
1697target_alias=${target_alias-$host_alias}
1698
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.
1e8e9920 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.
1710am__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.
82eaf560 1724# Reject install programs that cannot install multiple files.
1e8e9920 1725echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1726echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1727if test -z "$INSTALL"; then
1728if test "${ac_cv_path_install+set}" = set; then
1729 echo $ECHO_N "(cached) $ECHO_C" >&6
1730else
1731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1732for as_dir in $PATH
1733do
1734 IFS=$as_save_IFS
1735 test -z "$as_dir" && as_dir=.
1736 # Account for people who put trailing slashes in PATH elements.
1737case $as_dir/ in
1738 ./ | .// | /cC/* | \
1739 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1740 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1741 /usr/ucb/* ) ;;
1742 *)
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.
1752 :
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.
1756 :
1757 else
82eaf560 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
1769 fi
1e8e9920 1770 fi
1771 fi
1772 done
1773 done
1774 ;;
1775esac
1776done
1777
82eaf560 1778rm -rf conftest.one conftest.two conftest.dir
1e8e9920 1779
1780fi
1781 if test "${ac_cv_path_install+set}" = set; then
1782 INSTALL=$ac_cv_path_install
1783 else
82eaf560 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
1e8e9920 1786 # break other packages using the cache if that directory is
82eaf560 1787 # removed, or if the value is a relative name.
1e8e9920 1788 INSTALL=$ac_install_sh
1789 fi
1790fi
1791echo "$as_me:$LINENO: result: $INSTALL" >&5
1792echo "${ECHO_T}$INSTALL" >&6
1793
1794# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1795# It thinks the first close brace ends the variable substitution.
1796test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1797
1798test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1799
1800test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1801
1802echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1803echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1804# Just in case
1805sleep 1
1806echo 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).
1812if (
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`
1817 fi
1818 rm -f conftest.file
1819 if test "$*" != "X $srcdir/configure conftest.file" \
1820 && test "$*" != "X conftest.file $srcdir/configure"; then
1821
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
1827alias in your environment" >&5
1828echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1829alias in your environment" >&2;}
1830 { (exit 1); exit 1; }; }
1831 fi
1832
1833 test "$2" = conftest.file
1834 )
1835then
1836 # Ok.
1837 :
1838else
1839 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1840Check your system clock" >&5
1841echo "$as_me: error: newly created file is older than distributed files!
1842Check your system clock" >&2;}
1843 { (exit 1); exit 1; }; }
1844fi
1845echo "$as_me:$LINENO: result: yes" >&5
1846echo "${ECHO_T}yes" >&6
1847test "$program_prefix" != NONE &&
1848 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1849# Use a double $ so make ignores it.
1850test "$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.
1854cat <<\_ACEOF >conftest.sed
1855s/[\\$]/&&/g;s/;s,x,x,$//
1856_ACEOF
1857program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1858rm conftest.sed
1859
1860# expand $ac_aux_dir to an absolute path
1861am_aux_dir=`cd $ac_aux_dir && pwd`
1862
1863test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1864# Use eval to expand $SHELL
1865if eval "$MISSING --run true"; then
1866 am_missing_run="$MISSING --run "
1867else
1868 am_missing_run=
1869 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1870echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1871fi
1872
1873if 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 --'
1889else
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;
1895 do
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'
1903 fi
1904fi
1905
1906for ac_prog in gawk mawk nawk awk
1907do
1908 # Extract the first word of "$ac_prog", so it can be a program name with args.
1909set dummy $ac_prog; ac_word=$2
1910echo "$as_me:$LINENO: checking for $ac_word" >&5
1911echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1912if test "${ac_cv_prog_AWK+set}" = set; then
1913 echo $ECHO_N "(cached) $ECHO_C" >&6
1914else
1915 if test -n "$AWK"; then
1916 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1917else
1918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1919for as_dir in $PATH
1920do
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
1928 fi
1929done
1930done
1931
1932fi
1933fi
1934AWK=$ac_cv_prog_AWK
1935if test -n "$AWK"; then
1936 echo "$as_me:$LINENO: result: $AWK" >&5
1937echo "${ECHO_T}$AWK" >&6
1938else
1939 echo "$as_me:$LINENO: result: no" >&5
1940echo "${ECHO_T}no" >&6
1941fi
1942
1943 test -n "$AWK" && break
1944done
1945
1946echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1947echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1948set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1949if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1950 echo $ECHO_N "(cached) $ECHO_C" >&6
1951else
1952 cat >conftest.make <<\_ACEOF
1953all:
1954 @echo 'ac_maketemp="$(MAKE)"'
1955_ACEOF
1956# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1957eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1958if test -n "$ac_maketemp"; then
1959 eval ac_cv_prog_make_${ac_make}_set=yes
1960else
1961 eval ac_cv_prog_make_${ac_make}_set=no
1962fi
1963rm -f conftest.make
1964fi
1965if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1966 echo "$as_me:$LINENO: result: yes" >&5
1967echo "${ECHO_T}yes" >&6
1968 SET_MAKE=
1969else
1970 echo "$as_me:$LINENO: result: no" >&5
1971echo "${ECHO_T}no" >&6
1972 SET_MAKE="MAKE=${MAKE-make}"
1973fi
1974
1975rm -rf .tst 2>/dev/null
1976mkdir .tst 2>/dev/null
1977if test -d .tst; then
1978 am__leading_dot=.
1979else
1980 am__leading_dot=_
1981fi
1982rmdir .tst 2>/dev/null
1983
1984# test to see if srcdir already configured
1985if 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
1988echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1989 { (exit 1); exit 1; }; }
1990fi
1991
1992# test whether we have cygpath
1993if 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
1998 fi
1999fi
2000
2001
2002# Define the identity of the package.
2003 PACKAGE='libgomp'
2004 VERSION='1.0'
2005
2006
2007cat >>confdefs.h <<_ACEOF
2008#define PACKAGE "$PACKAGE"
2009_ACEOF
2010
2011
2012cat >>confdefs.h <<_ACEOF
2013#define VERSION "$VERSION"
2014_ACEOF
2015
2016# Some tools Automake needs.
2017
2018ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2019
2020
2021AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2022
2023
2024AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2025
2026
2027AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2028
2029
2030MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2031
2032install_sh=${install_sh-"$am_aux_dir/install-sh"}
2033
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.
2038if 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.
2041set dummy ${ac_tool_prefix}strip; ac_word=$2
2042echo "$as_me:$LINENO: checking for $ac_word" >&5
2043echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2044if test "${ac_cv_prog_STRIP+set}" = set; then
2045 echo $ECHO_N "(cached) $ECHO_C" >&6
2046else
2047 if test -n "$STRIP"; then
2048 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2049else
2050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2051for as_dir in $PATH
2052do
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
2060 fi
2061done
2062done
2063
2064fi
2065fi
2066STRIP=$ac_cv_prog_STRIP
2067if test -n "$STRIP"; then
2068 echo "$as_me:$LINENO: result: $STRIP" >&5
2069echo "${ECHO_T}$STRIP" >&6
2070else
2071 echo "$as_me:$LINENO: result: no" >&5
2072echo "${ECHO_T}no" >&6
2073fi
2074
2075fi
2076if 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.
2079set dummy strip; ac_word=$2
2080echo "$as_me:$LINENO: checking for $ac_word" >&5
2081echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2082if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2083 echo $ECHO_N "(cached) $ECHO_C" >&6
2084else
2085 if test -n "$ac_ct_STRIP"; then
2086 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2087else
2088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2089for as_dir in $PATH
2090do
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
2098 fi
2099done
2100done
2101
2102 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2103fi
2104fi
2105ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2106if test -n "$ac_ct_STRIP"; then
2107 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2108echo "${ECHO_T}$ac_ct_STRIP" >&6
2109else
2110 echo "$as_me:$LINENO: result: no" >&5
2111echo "${ECHO_T}no" >&6
2112fi
2113
2114 STRIP=$ac_ct_STRIP
2115else
2116 STRIP="$ac_cv_prog_STRIP"
2117fi
2118
2119fi
2120INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2121
2122# We need awk for the "check" target. The system "awk" is bad on
2123# some platforms.
2124# Always define AMTAR for backward compatibility.
2125
2126AMTAR=${AMTAR-"${am_missing_run}tar"}
2127
2128am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2129
2130
2131
2132
2133
2134# Default to --enable-multilib
2135# Check whether --enable-multilib or --disable-multilib was given.
2136if 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
2142echo "$as_me: error: bad value $enableval for multilib option" >&2;}
2143 { (exit 1); exit 1; }; } ;;
2144 esac
2145else
2146 multilib=yes
2147fi;
2148
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.
2152
2153if test "$srcdir" = "."; then
2154 if test "$with_target_subdir" != "."; then
2155 multi_basedir="$srcdir/$with_multisrctop../.."
2156 else
2157 multi_basedir="$srcdir/$with_multisrctop.."
2158 fi
2159else
2160 multi_basedir="$srcdir/.."
2161fi
2162
2163
ff434425 2164# Even if the default multilib is not a cross compilation,
2165# it may be that some of the other multilibs are.
2166if test $cross_compiling = no && test $multilib = yes \
2167 && test "x${with_multisubdir}" != x ; then
2168 cross_compiling=maybe
2169fi
2170
1e8e9920 2171 ac_config_commands="$ac_config_commands default-1"
2172
2173
2174# Calculate toolexeclibdir
2175# Also toolexecdir, though it's only used in toolexeclibdir
2176case ${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)'
2183 ;;
2184 no)
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)'
2193 fi
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
2199 ;;
2200esac
2201
2202
2203
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.
2209
2210
2211
2212ac_ext=c
2213ac_cpp='$CPP $CPPFLAGS'
2214ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2215ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2216ac_compiler_gnu=$ac_cv_c_compiler_gnu
2217if 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.
2219set dummy ${ac_tool_prefix}gcc; ac_word=$2
2220echo "$as_me:$LINENO: checking for $ac_word" >&5
2221echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2222if test "${ac_cv_prog_CC+set}" = set; then
2223 echo $ECHO_N "(cached) $ECHO_C" >&6
2224else
2225 if test -n "$CC"; then
2226 ac_cv_prog_CC="$CC" # Let the user override the test.
2227else
2228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2229for as_dir in $PATH
2230do
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
2238 fi
2239done
2240done
2241
2242fi
2243fi
2244CC=$ac_cv_prog_CC
2245if test -n "$CC"; then
2246 echo "$as_me:$LINENO: result: $CC" >&5
2247echo "${ECHO_T}$CC" >&6
2248else
2249 echo "$as_me:$LINENO: result: no" >&5
2250echo "${ECHO_T}no" >&6
2251fi
2252
2253fi
2254if 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.
2257set dummy gcc; ac_word=$2
2258echo "$as_me:$LINENO: checking for $ac_word" >&5
2259echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2260if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2261 echo $ECHO_N "(cached) $ECHO_C" >&6
2262else
2263 if test -n "$ac_ct_CC"; then
2264 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2265else
2266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2267for as_dir in $PATH
2268do
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
2276 fi
2277done
2278done
2279
2280fi
2281fi
2282ac_ct_CC=$ac_cv_prog_ac_ct_CC
2283if test -n "$ac_ct_CC"; then
2284 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2285echo "${ECHO_T}$ac_ct_CC" >&6
2286else
2287 echo "$as_me:$LINENO: result: no" >&5
2288echo "${ECHO_T}no" >&6
2289fi
2290
2291 CC=$ac_ct_CC
2292else
2293 CC="$ac_cv_prog_CC"
2294fi
2295
2296if 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.
2299set dummy ${ac_tool_prefix}cc; ac_word=$2
2300echo "$as_me:$LINENO: checking for $ac_word" >&5
2301echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2302if test "${ac_cv_prog_CC+set}" = set; then
2303 echo $ECHO_N "(cached) $ECHO_C" >&6
2304else
2305 if test -n "$CC"; then
2306 ac_cv_prog_CC="$CC" # Let the user override the test.
2307else
2308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2309for as_dir in $PATH
2310do
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
2318 fi
2319done
2320done
2321
2322fi
2323fi
2324CC=$ac_cv_prog_CC
2325if test -n "$CC"; then
2326 echo "$as_me:$LINENO: result: $CC" >&5
2327echo "${ECHO_T}$CC" >&6
2328else
2329 echo "$as_me:$LINENO: result: no" >&5
2330echo "${ECHO_T}no" >&6
2331fi
2332
2333fi
2334if 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.
2337set dummy cc; ac_word=$2
2338echo "$as_me:$LINENO: checking for $ac_word" >&5
2339echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2340if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2341 echo $ECHO_N "(cached) $ECHO_C" >&6
2342else
2343 if test -n "$ac_ct_CC"; then
2344 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2345else
2346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2347for as_dir in $PATH
2348do
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
2356 fi
2357done
2358done
2359
2360fi
2361fi
2362ac_ct_CC=$ac_cv_prog_ac_ct_CC
2363if test -n "$ac_ct_CC"; then
2364 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2365echo "${ECHO_T}$ac_ct_CC" >&6
2366else
2367 echo "$as_me:$LINENO: result: no" >&5
2368echo "${ECHO_T}no" >&6
2369fi
2370
2371 CC=$ac_ct_CC
2372else
2373 CC="$ac_cv_prog_CC"
2374fi
2375
2376fi
2377if test -z "$CC"; then
2378 # Extract the first word of "cc", so it can be a program name with args.
2379set dummy cc; ac_word=$2
2380echo "$as_me:$LINENO: checking for $ac_word" >&5
2381echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2382if test "${ac_cv_prog_CC+set}" = set; then
2383 echo $ECHO_N "(cached) $ECHO_C" >&6
2384else
2385 if test -n "$CC"; then
2386 ac_cv_prog_CC="$CC" # Let the user override the test.
2387else
2388 ac_prog_rejected=no
2389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2390for as_dir in $PATH
2391do
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
2399 fi
2400 ac_cv_prog_CC="cc"
2401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2402 break 2
2403 fi
2404done
2405done
2406
2407if 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+' '}$@"
2417 fi
2418fi
2419fi
2420fi
2421CC=$ac_cv_prog_CC
2422if test -n "$CC"; then
2423 echo "$as_me:$LINENO: result: $CC" >&5
2424echo "${ECHO_T}$CC" >&6
2425else
2426 echo "$as_me:$LINENO: result: no" >&5
2427echo "${ECHO_T}no" >&6
2428fi
2429
2430fi
2431if test -z "$CC"; then
2432 if test -n "$ac_tool_prefix"; then
2433 for ac_prog in cl
2434 do
2435 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2436set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2437echo "$as_me:$LINENO: checking for $ac_word" >&5
2438echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2439if test "${ac_cv_prog_CC+set}" = set; then
2440 echo $ECHO_N "(cached) $ECHO_C" >&6
2441else
2442 if test -n "$CC"; then
2443 ac_cv_prog_CC="$CC" # Let the user override the test.
2444else
2445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2446for as_dir in $PATH
2447do
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
2455 fi
2456done
2457done
2458
2459fi
2460fi
2461CC=$ac_cv_prog_CC
2462if test -n "$CC"; then
2463 echo "$as_me:$LINENO: result: $CC" >&5
2464echo "${ECHO_T}$CC" >&6
2465else
2466 echo "$as_me:$LINENO: result: no" >&5
2467echo "${ECHO_T}no" >&6
2468fi
2469
2470 test -n "$CC" && break
2471 done
2472fi
2473if test -z "$CC"; then
2474 ac_ct_CC=$CC
2475 for ac_prog in cl
2476do
2477 # Extract the first word of "$ac_prog", so it can be a program name with args.
2478set dummy $ac_prog; ac_word=$2
2479echo "$as_me:$LINENO: checking for $ac_word" >&5
2480echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2481if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2482 echo $ECHO_N "(cached) $ECHO_C" >&6
2483else
2484 if test -n "$ac_ct_CC"; then
2485 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2486else
2487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2488for as_dir in $PATH
2489do
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
2497 fi
2498done
2499done
2500
2501fi
2502fi
2503ac_ct_CC=$ac_cv_prog_ac_ct_CC
2504if test -n "$ac_ct_CC"; then
2505 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2506echo "${ECHO_T}$ac_ct_CC" >&6
2507else
2508 echo "$as_me:$LINENO: result: no" >&5
2509echo "${ECHO_T}no" >&6
2510fi
2511
2512 test -n "$ac_ct_CC" && break
2513done
2514
2515 CC=$ac_ct_CC
2516fi
2517
2518fi
2519
2520
5b2c7553 2521test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2522echo "$as_me: error: in \`$ac_pwd':" >&2;}
2523{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1e8e9920 2524See \`config.log' for more details." >&5
2525echo "$as_me: error: no acceptable C compiler found in \$PATH
2526See \`config.log' for more details." >&2;}
5b2c7553 2527 { (exit 1); exit 1; }; }; }
1e8e9920 2528
2529# Provide some information about the compiler.
2530echo "$as_me:$LINENO:" \
2531 "checking for C compiler version" >&5
2532ac_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); }
2548
2549cat >conftest.$ac_ext <<_ACEOF
2550/* confdefs.h. */
2551_ACEOF
2552cat confdefs.h >>conftest.$ac_ext
2553cat >>conftest.$ac_ext <<_ACEOF
2554/* end confdefs.h. */
2555
2556int
2557main ()
2558{
2559
2560 ;
2561 return 0;
2562}
2563_ACEOF
2564ac_clean_files_save=$ac_clean_files
2565ac_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.
2569echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2570echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2571ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2572if { (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.
2580
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.
2583ac_cv_exeext=
2584# b.out is created by i960 compilers.
2585for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2586do
2587 test -f "$ac_file" || continue
2588 case $ac_file in
2589 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2590 ;;
2591 conftest.$ac_ext )
2592 # This is the source file.
2593 ;;
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;;
2605 * )
2606 break;;
2607 esac
2608done
2609else
2610 echo "$as_me: failed program was:" >&5
2611sed 's/^/| /' conftest.$ac_ext >&5
2612
5b2c7553 2613{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2614echo "$as_me: error: in \`$ac_pwd':" >&2;}
1e8e9920 2615{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2616See \`config.log' for more details." >&5
2617echo "$as_me: error: C compiler cannot create executables
2618See \`config.log' for more details." >&2;}
5b2c7553 2619 { (exit 77); exit 77; }; }; }
1e8e9920 2620fi
2621
2622ac_exeext=$ac_cv_exeext
2623echo "$as_me:$LINENO: result: $ac_file" >&5
2624echo "${ECHO_T}$ac_file" >&6
2625
2626# Check the compiler produces executables we can run. If not, either
2627# the compiler is broken, or we cross compile.
2628echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2629echo $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.
2632if 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
5b2c7553 2644 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2645echo "$as_me: error: in \`$ac_pwd':" >&2;}
2646{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1e8e9920 2647If you meant to cross compile, use \`--host'.
2648See \`config.log' for more details." >&5
2649echo "$as_me: error: cannot run C compiled programs.
2650If you meant to cross compile, use \`--host'.
2651See \`config.log' for more details." >&2;}
5b2c7553 2652 { (exit 1); exit 1; }; }; }
1e8e9920 2653 fi
2654 fi
2655fi
2656echo "$as_me:$LINENO: result: yes" >&5
2657echo "${ECHO_T}yes" >&6
2658
2659rm -f a.out a.exe conftest$ac_cv_exeext b.out
2660ac_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.
2663echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2664echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2665echo "$as_me:$LINENO: result: $cross_compiling" >&5
2666echo "${ECHO_T}$cross_compiling" >&6
2667
2668echo "$as_me:$LINENO: checking for suffix of executables" >&5
2669echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2670if { (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'.
2679for 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
2688done
2689else
5b2c7553 2690 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2691echo "$as_me: error: in \`$ac_pwd':" >&2;}
2692{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1e8e9920 2693See \`config.log' for more details." >&5
2694echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2695See \`config.log' for more details." >&2;}
5b2c7553 2696 { (exit 1); exit 1; }; }; }
1e8e9920 2697fi
2698
2699rm -f conftest$ac_cv_exeext
2700echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2701echo "${ECHO_T}$ac_cv_exeext" >&6
2702
2703rm -f conftest.$ac_ext
2704EXEEXT=$ac_cv_exeext
2705ac_exeext=$EXEEXT
2706echo "$as_me:$LINENO: checking for suffix of object files" >&5
2707echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2708if test "${ac_cv_objext+set}" = set; then
2709 echo $ECHO_N "(cached) $ECHO_C" >&6
2710else
2711 cat >conftest.$ac_ext <<_ACEOF
2712/* confdefs.h. */
2713_ACEOF
2714cat confdefs.h >>conftest.$ac_ext
2715cat >>conftest.$ac_ext <<_ACEOF
2716/* end confdefs.h. */
2717
2718int
2719main ()
2720{
2721
2722 ;
2723 return 0;
2724}
2725_ACEOF
2726rm -f conftest.o conftest.obj
2727if { (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
2738done
2739else
2740 echo "$as_me: failed program was:" >&5
2741sed 's/^/| /' conftest.$ac_ext >&5
2742
5b2c7553 2743{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2744echo "$as_me: error: in \`$ac_pwd':" >&2;}
1e8e9920 2745{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2746See \`config.log' for more details." >&5
2747echo "$as_me: error: cannot compute suffix of object files: cannot compile
2748See \`config.log' for more details." >&2;}
5b2c7553 2749 { (exit 1); exit 1; }; }; }
1e8e9920 2750fi
2751
2752rm -f conftest.$ac_cv_objext conftest.$ac_ext
2753fi
2754echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2755echo "${ECHO_T}$ac_cv_objext" >&6
2756OBJEXT=$ac_cv_objext
2757ac_objext=$OBJEXT
2758echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2759echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2760if test "${ac_cv_c_compiler_gnu+set}" = set; then
2761 echo $ECHO_N "(cached) $ECHO_C" >&6
2762else
2763 cat >conftest.$ac_ext <<_ACEOF
2764/* confdefs.h. */
2765_ACEOF
2766cat confdefs.h >>conftest.$ac_ext
2767cat >>conftest.$ac_ext <<_ACEOF
2768/* end confdefs.h. */
2769
2770int
2771main ()
2772{
2773#ifndef __GNUC__
2774 choke me
2775#endif
2776
2777 ;
2778 return 0;
2779}
2780_ACEOF
2781rm -f conftest.$ac_objext
2782if { (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); } &&
59da30e1 2790 { ac_try='test -z "$ac_c_werror_flag"
2791 || test ! -s conftest.err'
1e8e9920 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
2804else
2805 echo "$as_me: failed program was:" >&5
2806sed 's/^/| /' conftest.$ac_ext >&5
2807
2808ac_compiler_gnu=no
2809fi
2810rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2811ac_cv_c_compiler_gnu=$ac_compiler_gnu
2812
2813fi
2814echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2815echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2816GCC=`test $ac_compiler_gnu = yes && echo yes`
2817ac_test_CFLAGS=${CFLAGS+set}
2818ac_save_CFLAGS=$CFLAGS
2819CFLAGS="-g"
2820echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2821echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2822if test "${ac_cv_prog_cc_g+set}" = set; then
2823 echo $ECHO_N "(cached) $ECHO_C" >&6
2824else
2825 cat >conftest.$ac_ext <<_ACEOF
2826/* confdefs.h. */
2827_ACEOF
2828cat confdefs.h >>conftest.$ac_ext
2829cat >>conftest.$ac_ext <<_ACEOF
2830/* end confdefs.h. */
2831
2832int
2833main ()
2834{
2835
2836 ;
2837 return 0;
2838}
2839_ACEOF
2840rm -f conftest.$ac_objext
2841if { (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); } &&
59da30e1 2849 { ac_try='test -z "$ac_c_werror_flag"
2850 || test ! -s conftest.err'
1e8e9920 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
2863else
2864 echo "$as_me: failed program was:" >&5
2865sed 's/^/| /' conftest.$ac_ext >&5
2866
2867ac_cv_prog_cc_g=no
2868fi
2869rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2870fi
2871echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2872echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2873if test "$ac_test_CFLAGS" = set; then
2874 CFLAGS=$ac_save_CFLAGS
2875elif test $ac_cv_prog_cc_g = yes; then
2876 if test "$GCC" = yes; then
2877 CFLAGS="-g -O2"
2878 else
2879 CFLAGS="-g"
2880 fi
2881else
2882 if test "$GCC" = yes; then
2883 CFLAGS="-O2"
2884 else
2885 CFLAGS=
2886 fi
2887fi
2888echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2889echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2890if test "${ac_cv_prog_cc_stdc+set}" = set; then
2891 echo $ECHO_N "(cached) $ECHO_C" >&6
2892else
2893 ac_cv_prog_cc_stdc=no
2894ac_save_CC=$CC
2895cat >conftest.$ac_ext <<_ACEOF
2896/* confdefs.h. */
2897_ACEOF
2898cat confdefs.h >>conftest.$ac_ext
2899cat >>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. */
2906struct buf { int x; };
2907FILE * (*rcsopen) (struct buf *, struct stat *, int);
2908static char *e (p, i)
2909 char **p;
2910 int i;
2911{
2912 return p[i];
2913}
2914static char *f (char * (*g) (char **, int), char **p, ...)
2915{
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;
2922}
2923
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. */
2931int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2932
2933int test (int i, double x);
2934struct s1 {int (*f) (int a);};
2935struct s2 {int (*f) (double a);};
2936int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2937int argc;
2938char **argv;
2939int
2940main ()
2941{
2942return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2943 ;
2944 return 0;
2945}
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__
2954for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2955do
2956 CC="$ac_save_CC $ac_arg"
2957 rm -f conftest.$ac_objext
2958if { (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); } &&
59da30e1 2966 { ac_try='test -z "$ac_c_werror_flag"
2967 || test ! -s conftest.err'
1e8e9920 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
2980break
2981else
2982 echo "$as_me: failed program was:" >&5
2983sed 's/^/| /' conftest.$ac_ext >&5
2984
2985fi
2986rm -f conftest.err conftest.$ac_objext
2987done
2988rm -f conftest.$ac_ext conftest.$ac_objext
2989CC=$ac_save_CC
2990
2991fi
2992
2993case "x$ac_cv_prog_cc_stdc" in
2994 x|xno)
2995 echo "$as_me:$LINENO: result: none needed" >&5
2996echo "${ECHO_T}none needed" >&6 ;;
2997 *)
2998 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2999echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3000 CC="$CC $ac_cv_prog_cc_stdc" ;;
3001esac
3002
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.
3007cat >conftest.$ac_ext <<_ACEOF
3008#ifndef __cplusplus
3009 choke me
3010#endif
3011_ACEOF
3012rm -f conftest.$ac_objext
3013if { (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); } &&
59da30e1 3021 { ac_try='test -z "$ac_c_werror_flag"
3022 || test ! -s conftest.err'
1e8e9920 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);'
3041do
3042 cat >conftest.$ac_ext <<_ACEOF
3043/* confdefs.h. */
3044_ACEOF
3045cat confdefs.h >>conftest.$ac_ext
3046cat >>conftest.$ac_ext <<_ACEOF
3047/* end confdefs.h. */
3048$ac_declaration
3049#include <stdlib.h>
3050int
3051main ()
3052{
3053exit (42);
3054 ;
3055 return 0;
3056}
3057_ACEOF
3058rm -f conftest.$ac_objext
3059if { (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); } &&
59da30e1 3067 { ac_try='test -z "$ac_c_werror_flag"
3068 || test ! -s conftest.err'
1e8e9920 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
3080 :
3081else
3082 echo "$as_me: failed program was:" >&5
3083sed 's/^/| /' conftest.$ac_ext >&5
3084
3085continue
3086fi
3087rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3088 cat >conftest.$ac_ext <<_ACEOF
3089/* confdefs.h. */
3090_ACEOF
3091cat confdefs.h >>conftest.$ac_ext
3092cat >>conftest.$ac_ext <<_ACEOF
3093/* end confdefs.h. */
3094$ac_declaration
3095int
3096main ()
3097{
3098exit (42);
3099 ;
3100 return 0;
3101}
3102_ACEOF
3103rm -f conftest.$ac_objext
3104if { (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); } &&
59da30e1 3112 { ac_try='test -z "$ac_c_werror_flag"
3113 || test ! -s conftest.err'
1e8e9920 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
3126else
3127 echo "$as_me: failed program was:" >&5
3128sed 's/^/| /' conftest.$ac_ext >&5
3129
3130fi
3131rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3132done
3133rm -f conftest*
3134if test -n "$ac_declaration"; then
3135 echo '#ifdef __cplusplus' >>confdefs.h
3136 echo $ac_declaration >>confdefs.h
3137 echo '#endif' >>confdefs.h
3138fi
3139
3140else
3141 echo "$as_me: failed program was:" >&5
3142sed 's/^/| /' conftest.$ac_ext >&5
3143
3144fi
3145rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3146ac_ext=c
3147ac_cpp='$CPP $CPPFLAGS'
3148ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3149ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3150ac_compiler_gnu=$ac_cv_c_compiler_gnu
3151DEPDIR="${am__leading_dot}deps"
3152
3153 ac_config_commands="$ac_config_commands depfiles"
3154
3155
3156am_make=${MAKE-make}
3157cat > confinc << 'END'
3158am__doit:
3159 @echo done
3160.PHONY: am__doit
3161END
3162# If we don't find an include directive, just comment out the code.
3163echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3164echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3165am__include="#"
3166am__quote=
3167_am_result=none
3168# First try GNU make style include.
3169echo "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'.
3175if 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
3179fi
3180# Now try BSD make style include.
3181if 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
3187 fi
3188fi
3189
3190
3191echo "$as_me:$LINENO: result: $_am_result" >&5
3192echo "${ECHO_T}$_am_result" >&6
3193rm -f confinc confmf
3194
3195# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3196if test "${enable_dependency_tracking+set}" = set; then
3197 enableval="$enable_dependency_tracking"
3198
3199fi;
3200if test "x$enable_dependency_tracking" != xno; then
3201 am_depcomp="$ac_aux_dir/depcomp"
3202 AMDEPBACKSLASH='\'
3203fi
3204
3205
3206if test "x$enable_dependency_tracking" != xno; then
3207 AMDEP_TRUE=
3208 AMDEP_FALSE='#'
3209else
3210 AMDEP_TRUE='#'
3211 AMDEP_FALSE=
3212fi
3213
3214
3215
3216
3217depcc="$CC" am_compiler_list=
3218
3219echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3220echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3221if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3222 echo $ECHO_N "(cached) $ECHO_C" >&6
3223else
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
3242
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`
3246 fi
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.
3251 #
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
3263
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
3272 fi
3273 ;;
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
3298 fi
3299 fi
3300 done
3301
3302 cd ..
3303 rm -rf conftest.dir
3304else
3305 am_cv_CC_dependencies_compiler_type=none
3306fi
3307
3308fi
3309echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3310echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3311CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3312
3313
3314
3315if
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='#'
3320else
3321 am__fastdepCC_TRUE='#'
3322 am__fastdepCC_FALSE=
3323fi
3324
3325
3326
3327
3328
3329
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.
3333save_CFLAGS="$CFLAGS"
3334
3335# Add -Wall -Werror if we are using GCC.
3336if test "x$GCC" = "xyes"; then
3337 XCFLAGS="$XCFLAGS -Wall -Werror"
3338fi
3339
3340# Find other programs we need.
3341if 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.
3343set dummy ${ac_tool_prefix}ar; ac_word=$2
3344echo "$as_me:$LINENO: checking for $ac_word" >&5
3345echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3346if test "${ac_cv_prog_AR+set}" = set; then
3347 echo $ECHO_N "(cached) $ECHO_C" >&6
3348else
3349 if test -n "$AR"; then
3350 ac_cv_prog_AR="$AR" # Let the user override the test.
3351else
3352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3353for as_dir in $PATH
3354do
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
3362 fi
3363done
3364done
3365
3366fi
3367fi
3368AR=$ac_cv_prog_AR
3369if test -n "$AR"; then
3370 echo "$as_me:$LINENO: result: $AR" >&5
3371echo "${ECHO_T}$AR" >&6
3372else
3373 echo "$as_me:$LINENO: result: no" >&5
3374echo "${ECHO_T}no" >&6
3375fi
3376
3377fi
3378if 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.
3381set dummy ar; ac_word=$2
3382echo "$as_me:$LINENO: checking for $ac_word" >&5
3383echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3384if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3385 echo $ECHO_N "(cached) $ECHO_C" >&6
3386else
3387 if test -n "$ac_ct_AR"; then
3388 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3389else
3390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3391for as_dir in $PATH
3392do
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
3400 fi
3401done
3402done
3403
3404fi
3405fi
3406ac_ct_AR=$ac_cv_prog_ac_ct_AR
3407if test -n "$ac_ct_AR"; then
3408 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3409echo "${ECHO_T}$ac_ct_AR" >&6
3410else
3411 echo "$as_me:$LINENO: result: no" >&5
3412echo "${ECHO_T}no" >&6
3413fi
3414
3415 AR=$ac_ct_AR
3416else
3417 AR="$ac_cv_prog_AR"
3418fi
3419
3420if 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.
3422set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3423echo "$as_me:$LINENO: checking for $ac_word" >&5
3424echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3425if test "${ac_cv_prog_RANLIB+set}" = set; then
3426 echo $ECHO_N "(cached) $ECHO_C" >&6
3427else
3428 if test -n "$RANLIB"; then
3429 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3430else
3431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3432for as_dir in $PATH
3433do
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
3441 fi
3442done
3443done
3444
3445fi
3446fi
3447RANLIB=$ac_cv_prog_RANLIB
3448if test -n "$RANLIB"; then
3449 echo "$as_me:$LINENO: result: $RANLIB" >&5
3450echo "${ECHO_T}$RANLIB" >&6
3451else
3452 echo "$as_me:$LINENO: result: no" >&5
3453echo "${ECHO_T}no" >&6
3454fi
3455
3456fi
3457if 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.
3460set dummy ranlib; ac_word=$2
3461echo "$as_me:$LINENO: checking for $ac_word" >&5
3462echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3463if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3464 echo $ECHO_N "(cached) $ECHO_C" >&6
3465else
3466 if test -n "$ac_ct_RANLIB"; then
3467 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3468else
3469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3470for as_dir in $PATH
3471do
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
3479 fi
3480done
3481done
3482
3483 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error"
3484fi
3485fi
3486ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3487if test -n "$ac_ct_RANLIB"; then
3488 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3489echo "${ECHO_T}$ac_ct_RANLIB" >&6
3490else
3491 echo "$as_me:$LINENO: result: no" >&5
3492echo "${ECHO_T}no" >&6
3493fi
3494
3495 RANLIB=$ac_ct_RANLIB
3496else
3497 RANLIB="$ac_cv_prog_RANLIB"
3498fi
3499
3500# Extract the first word of "perl", so it can be a program name with args.
3501set dummy perl; ac_word=$2
3502echo "$as_me:$LINENO: checking for $ac_word" >&5
3503echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3504if test "${ac_cv_path_PERL+set}" = set; then
3505 echo $ECHO_N "(cached) $ECHO_C" >&6
3506else
3507 case $PERL in
3508 [\\/]* | ?:[\\/]*)
3509 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3510 ;;
3511 *)
3512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3513for as_dir in $PATH
3514do
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
3522 fi
3523done
3524done
3525
3526 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
3527 ;;
3528esac
3529fi
3530PERL=$ac_cv_path_PERL
3531
3532if test -n "$PERL"; then
3533 echo "$as_me:$LINENO: result: $PERL" >&5
3534echo "${ECHO_T}$PERL" >&6
3535else
3536 echo "$as_me:$LINENO: result: no" >&5
3537echo "${ECHO_T}no" >&6
3538fi
3539
3540echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3541echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3542set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3543if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3544 echo $ECHO_N "(cached) $ECHO_C" >&6
3545else
3546 cat >conftest.make <<\_ACEOF
3547all:
3548 @echo 'ac_maketemp="$(MAKE)"'
3549_ACEOF
3550# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3551eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3552if test -n "$ac_maketemp"; then
3553 eval ac_cv_prog_make_${ac_make}_set=yes
3554else
3555 eval ac_cv_prog_make_${ac_make}_set=no
3556fi
3557rm -f conftest.make
3558fi
3559if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3560 echo "$as_me:$LINENO: result: yes" >&5
3561echo "${ECHO_T}yes" >&6
3562 SET_MAKE=
3563else
3564 echo "$as_me:$LINENO: result: no" >&5
3565echo "${ECHO_T}no" >&6
3566 SET_MAKE="MAKE=${MAKE-make}"
3567fi
3568
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.
82eaf560 3582# Reject install programs that cannot install multiple files.
1e8e9920 3583echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3584echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3585if test -z "$INSTALL"; then
3586if test "${ac_cv_path_install+set}" = set; then
3587 echo $ECHO_N "(cached) $ECHO_C" >&6
3588else
3589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3590for as_dir in $PATH
3591do
3592 IFS=$as_save_IFS
3593 test -z "$as_dir" && as_dir=.
3594 # Account for people who put trailing slashes in PATH elements.
3595case $as_dir/ in
3596 ./ | .// | /cC/* | \
3597 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3598 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3599 /usr/ucb/* ) ;;
3600 *)
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.
3610 :
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.
3614 :
3615 else
82eaf560 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
3627 fi
1e8e9920 3628 fi
3629 fi
3630 done
3631 done
3632 ;;
3633esac
3634done
3635
82eaf560 3636rm -rf conftest.one conftest.two conftest.dir
1e8e9920 3637
3638fi
3639 if test "${ac_cv_path_install+set}" = set; then
3640 INSTALL=$ac_cv_path_install
3641 else
82eaf560 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
1e8e9920 3644 # break other packages using the cache if that directory is
82eaf560 3645 # removed, or if the value is a relative name.
1e8e9920 3646 INSTALL=$ac_install_sh
3647 fi
3648fi
3649echo "$as_me:$LINENO: result: $INSTALL" >&5
3650echo "${ECHO_T}$INSTALL" >&6
3651
3652# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3653# It thinks the first close brace ends the variable substitution.
3654test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3655
3656test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3657
3658test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3659
3660
439d698f 3661# See if makeinfo has been installed and is modern enough
3662# that we can use it.
3663
3664 # Extract the first word of "makeinfo", so it can be a program name with args.
3665set dummy makeinfo; ac_word=$2
3666echo "$as_me:$LINENO: checking for $ac_word" >&5
3667echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3668if test "${ac_cv_prog_MAKEINFO+set}" = set; then
3669 echo $ECHO_N "(cached) $ECHO_C" >&6
3670else
3671 if test -n "$MAKEINFO"; then
3672 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3673else
3674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3675for as_dir in $PATH
3676do
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
3684 fi
3685done
3686done
3687
3688fi
3689fi
3690MAKEINFO=$ac_cv_prog_MAKEINFO
3691if test -n "$MAKEINFO"; then
3692 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
3693echo "${ECHO_T}$MAKEINFO" >&6
3694else
3695 echo "$as_me:$LINENO: result: no" >&5
3696echo "${ECHO_T}no" >&6
3697fi
3698
3699 if test -n "$MAKEINFO"; then
3700 # Found it, now check the version.
3701 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
3702echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
3703if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
3704 echo $ECHO_N "(cached) $ECHO_C" >&6
3705else
3706 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
3707 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
3708
3709 case $ac_prog_version in
3710 '') gcc_cv_prog_makeinfo_modern=no;;
41b2fb5d 3711 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
439d698f 3712 *) gcc_cv_prog_makeinfo_modern=no;;
3713 esac
3714
3715fi
3716echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
3717echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
3718 else
3719 gcc_cv_prog_makeinfo_modern=no
3720 fi
542f9784 3721 if test $gcc_cv_prog_makeinfo_modern = no; then
3722 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
3723 fi
439d698f 3724
3725
3726
3727if test $gcc_cv_prog_makeinfo_modern = "yes"; then
3728 BUILD_INFO_TRUE=
3729 BUILD_INFO_FALSE='#'
3730else
3731 BUILD_INFO_TRUE='#'
3732 BUILD_INFO_FALSE=
3733fi
3734
3735
3736
1e8e9920 3737# Configure libtool
542f9784 3738
3739
3740macro_version='2.1a'
3741macro_revision='1.2435'
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754ltmain="$ac_aux_dir/ltmain.sh"
3755
3756# Set options
3757
3758enable_dlopen=no
3759
3760
3761enable_win32_dll=no
3762
3763
1e8e9920 3764# Check whether --enable-shared or --disable-shared was given.
3765if test "${enable_shared+set}" = set; then
3766 enableval="$enable_shared"
3767 p=${PACKAGE-default}
542f9784 3768 case $enableval in
3769 yes) enable_shared=yes ;;
3770 no) enable_shared=no ;;
3771 *)
3772 enable_shared=no
3773 # Look at the argument we got. We use all the common list separators.
3774 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3775 for pkg in $enableval; do
3776 IFS="$lt_save_ifs"
3777 if test "X$pkg" = "X$p"; then
3778 enable_shared=yes
3779 fi
3780 done
3781 IFS="$lt_save_ifs"
3782 ;;
3783 esac
1e8e9920 3784else
3785 enable_shared=yes
3786fi;
542f9784 3787
3788
3789
3790
3791
3792
3793
3794
1e8e9920 3795# Check whether --enable-static or --disable-static was given.
3796if test "${enable_static+set}" = set; then
3797 enableval="$enable_static"
3798 p=${PACKAGE-default}
542f9784 3799 case $enableval in
3800 yes) enable_static=yes ;;
3801 no) enable_static=no ;;
3802 *)
3803 enable_static=no
3804 # Look at the argument we got. We use all the common list separators.
3805 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3806 for pkg in $enableval; do
3807 IFS="$lt_save_ifs"
3808 if test "X$pkg" = "X$p"; then
3809 enable_static=yes
3810 fi
3811 done
3812 IFS="$lt_save_ifs"
3813 ;;
3814 esac
1e8e9920 3815else
3816 enable_static=yes
3817fi;
542f9784 3818
3819
3820
3821
3822
3823
3824
3825
3826
3827# Check whether --with-pic or --without-pic was given.
3828if test "${with_pic+set}" = set; then
3829 withval="$with_pic"
3830 pic_mode="$withval"
3831else
3832 pic_mode=default
3833fi;
3834
3835test -z "$pic_mode" && pic_mode=default
3836
3837
3838
3839
3840
3841
3842
1e8e9920 3843# Check whether --enable-fast-install or --disable-fast-install was given.
3844if test "${enable_fast_install+set}" = set; then
3845 enableval="$enable_fast_install"
3846 p=${PACKAGE-default}
542f9784 3847 case $enableval in
3848 yes) enable_fast_install=yes ;;
3849 no) enable_fast_install=no ;;
3850 *)
3851 enable_fast_install=no
3852 # Look at the argument we got. We use all the common list separators.
3853 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3854 for pkg in $enableval; do
3855 IFS="$lt_save_ifs"
3856 if test "X$pkg" = "X$p"; then
3857 enable_fast_install=yes
3858 fi
3859 done
3860 IFS="$lt_save_ifs"
3861 ;;
3862 esac
1e8e9920 3863else
3864 enable_fast_install=yes
3865fi;
3866
542f9784 3867
3868
3869
3870
3871
3872
3873
3874echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3875echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3876if test "${lt_cv_path_SED+set}" = set; then
3877 echo $ECHO_N "(cached) $ECHO_C" >&6
3878else
3879 # Loop through the user's path and test for sed and gsed.
3880# Then use that list of sed's as ones to test for truncation.
3881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3882for as_dir in $PATH
3883do
3884 IFS=$as_save_IFS
3885 test -z "$as_dir" && as_dir=.
3886 for lt_ac_prog in sed gsed; do
3887 for ac_exec_ext in '' $ac_executable_extensions; do
3888 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3889 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3890 fi
3891 done
3892 done
3893done
3894IFS=$as_save_IFS
3895lt_ac_max=0
3896lt_ac_count=0
3897# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3898# along with /bin/sed that truncates output.
3899for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3900 test ! -f $lt_ac_sed && continue
3901 cat /dev/null > conftest.in
3902 lt_ac_count=0
3903 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3904 # Check for GNU sed and select it if it is found.
3905 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3906 lt_cv_path_SED=$lt_ac_sed
3907 break
3908 fi
3909 while true; do
3910 cat conftest.in conftest.in >conftest.tmp
3911 mv conftest.tmp conftest.in
3912 cp conftest.in conftest.nl
3913 echo >>conftest.nl
3914 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3915 cmp -s conftest.out conftest.nl || break
3916 # 10000 chars as input seems more than enough
3917 test $lt_ac_count -gt 10 && break
3918 lt_ac_count=`expr $lt_ac_count + 1`
3919 if test $lt_ac_count -gt $lt_ac_max; then
3920 lt_ac_max=$lt_ac_count
3921 lt_cv_path_SED=$lt_ac_sed
3922 fi
3923 done
3924done
3925
3926fi
3927
3928SED=$lt_cv_path_SED
3929
3930echo "$as_me:$LINENO: result: $SED" >&5
3931echo "${ECHO_T}$SED" >&6
3932
3933test -z "$SED" && SED=sed
3934Xsed="$SED -e 1s/^X//"
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946echo "$as_me:$LINENO: checking for egrep" >&5
3947echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3948if test "${ac_cv_prog_egrep+set}" = set; then
3949 echo $ECHO_N "(cached) $ECHO_C" >&6
3950else
3951 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3952 then ac_cv_prog_egrep='grep -E'
3953 else ac_cv_prog_egrep='egrep'
3954 fi
3955fi
3956echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3957echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3958 EGREP=$ac_cv_prog_egrep
3959
3960
3961echo "$as_me:$LINENO: checking for fgrep" >&5
3962echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
3963if test "${ac_cv_prog_fgrep+set}" = set; then
3964 echo $ECHO_N "(cached) $ECHO_C" >&6
3965else
3966 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
3967 then ac_cv_prog_fgrep='grep -F'
3968 else ac_cv_prog_fgrep='fgrep'
3969 fi
3970fi
3971echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
3972echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
3973 FGREP=$ac_cv_prog_fgrep
3974
3975
3976test -z "$GREP" && GREP=grep
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
1e8e9920 3996# Check whether --with-gnu-ld or --without-gnu-ld was given.
3997if test "${with_gnu_ld+set}" = set; then
3998 withval="$with_gnu_ld"
3999 test "$withval" = no || with_gnu_ld=yes
4000else
4001 with_gnu_ld=no
4002fi;
4003ac_prog=ld
4004if test "$GCC" = yes; then
4005 # Check if gcc -print-prog-name=ld gives a path.
542f9784 4006 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4007echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
1e8e9920 4008 case $host in
4009 *-*-mingw*)
4010 # gcc leaves a trailing carriage return which upsets mingw
4011 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4012 *)
4013 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4014 esac
4015 case $ac_prog in
4016 # Accept absolute paths.
542f9784 4017 [\\/]* | ?:[\\/]*)
1e8e9920 4018 re_direlt='/[^/][^/]*/\.\./'
542f9784 4019 # Canonicalize the pathname of ld
4020 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4021 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4022 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
1e8e9920 4023 done
4024 test -z "$LD" && LD="$ac_prog"
4025 ;;
4026 "")
4027 # If it fails, then pretend we aren't using GCC.
4028 ac_prog=ld
4029 ;;
4030 *)
4031 # If it is relative, then search for the first ld in PATH.
4032 with_gnu_ld=unknown
4033 ;;
4034 esac
4035elif test "$with_gnu_ld" = yes; then
4036 echo "$as_me:$LINENO: checking for GNU ld" >&5
4037echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4038else
4039 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4040echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4041fi
4042if test "${lt_cv_path_LD+set}" = set; then
4043 echo $ECHO_N "(cached) $ECHO_C" >&6
4044else
4045 if test -z "$LD"; then
542f9784 4046 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1e8e9920 4047 for ac_dir in $PATH; do
542f9784 4048 IFS="$lt_save_ifs"
1e8e9920 4049 test -z "$ac_dir" && ac_dir=.
4050 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4051 lt_cv_path_LD="$ac_dir/$ac_prog"
4052 # Check to see if the program is GNU ld. I'd rather use --version,
542f9784 4053 # but apparently some variants of GNU ld only accept -v.
1e8e9920 4054 # Break only if it was the GNU/non-GNU ld that we prefer.
542f9784 4055 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4056 *GNU* | *'with BFD'*)
1e8e9920 4057 test "$with_gnu_ld" != no && break
542f9784 4058 ;;
4059 *)
1e8e9920 4060 test "$with_gnu_ld" != yes && break
542f9784 4061 ;;
4062 esac
1e8e9920 4063 fi
4064 done
542f9784 4065 IFS="$lt_save_ifs"
1e8e9920 4066else
4067 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4068fi
4069fi
4070
4071LD="$lt_cv_path_LD"
4072if test -n "$LD"; then
4073 echo "$as_me:$LINENO: result: $LD" >&5
4074echo "${ECHO_T}$LD" >&6
4075else
4076 echo "$as_me:$LINENO: result: no" >&5
4077echo "${ECHO_T}no" >&6
4078fi
4079test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4080echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4081 { (exit 1); exit 1; }; }
4082echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4083echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4084if test "${lt_cv_prog_gnu_ld+set}" = set; then
4085 echo $ECHO_N "(cached) $ECHO_C" >&6
4086else
542f9784 4087 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4088case `$LD -v 2>&1 </dev/null` in
4089*GNU* | *'with BFD'*)
1e8e9920 4090 lt_cv_prog_gnu_ld=yes
542f9784 4091 ;;
4092*)
1e8e9920 4093 lt_cv_prog_gnu_ld=no
542f9784 4094 ;;
4095esac
1e8e9920 4096fi
4097echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4098echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4099with_gnu_ld=$lt_cv_prog_gnu_ld
4100
4101
1e8e9920 4102
542f9784 4103
4104
4105
4106
4107
4108
4109
4110echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4111echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
1e8e9920 4112if test "${lt_cv_path_NM+set}" = set; then
4113 echo $ECHO_N "(cached) $ECHO_C" >&6
4114else
4115 if test -n "$NM"; then
4116 # Let the user override the test.
4117 lt_cv_path_NM="$NM"
4118else
542f9784 4119 lt_nm_to_check="${ac_tool_prefix}nm"
4120 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4121 lt_nm_to_check="$lt_nm_to_check nm"
4122 fi
4123 for lt_tmp_nm in $lt_nm_to_check; do
4124 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4125 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4126 IFS="$lt_save_ifs"
4127 test -z "$ac_dir" && ac_dir=.
4128 tmp_nm="$ac_dir/$lt_tmp_nm"
4129 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4130 # Check to see if the nm accepts a BSD-compat flag.
4131 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4132 # nm: unknown option "B" ignored
4133 # Tru64's nm complains that /dev/null is an invalid object file
4134 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4135 */dev/null* | *'Invalid file or object type'*)
4136 lt_cv_path_NM="$tmp_nm -B"
4137 break
4138 ;;
4139 *)
4140 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4141 */dev/null*)
4142 lt_cv_path_NM="$tmp_nm -p"
4143 break
4144 ;;
4145 *)
4146 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4147 continue # so that we can try to find one that supports BSD flags
4148 ;;
4149 esac
4150 ;;
4151 esac
4152 fi
4153 done
4154 IFS="$lt_save_ifs"
4155 done
4156 : ${lt_cv_path_NM=no}
4157fi
4158fi
4159echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4160echo "${ECHO_T}$lt_cv_path_NM" >&6
4161if test "$lt_cv_path_NM" != "no"; then
4162 NM="$lt_cv_path_NM"
4163else
4164 # Didn't find any BSD compatible name lister, look for dumpbin.
4165 if test -n "$ac_tool_prefix"; then
4166 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4167 do
4168 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4169set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4170echo "$as_me:$LINENO: checking for $ac_word" >&5
4171echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4172if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4173 echo $ECHO_N "(cached) $ECHO_C" >&6
4174else
4175 if test -n "$DUMPBIN"; then
4176 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4177else
4178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4179for as_dir in $PATH
4180do
4181 IFS=$as_save_IFS
4182 test -z "$as_dir" && as_dir=.
4183 for ac_exec_ext in '' $ac_executable_extensions; do
4184 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4185 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4187 break 2
4188 fi
4189done
4190done
4191
4192fi
4193fi
4194DUMPBIN=$ac_cv_prog_DUMPBIN
4195if test -n "$DUMPBIN"; then
4196 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4197echo "${ECHO_T}$DUMPBIN" >&6
4198else
4199 echo "$as_me:$LINENO: result: no" >&5
4200echo "${ECHO_T}no" >&6
4201fi
4202
4203 test -n "$DUMPBIN" && break
4204 done
4205fi
4206if test -z "$DUMPBIN"; then
4207 ac_ct_DUMPBIN=$DUMPBIN
4208 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4209do
4210 # Extract the first word of "$ac_prog", so it can be a program name with args.
4211set dummy $ac_prog; ac_word=$2
4212echo "$as_me:$LINENO: checking for $ac_word" >&5
4213echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4214if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4215 echo $ECHO_N "(cached) $ECHO_C" >&6
4216else
4217 if test -n "$ac_ct_DUMPBIN"; then
4218 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4219else
4220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4221for as_dir in $PATH
4222do
4223 IFS=$as_save_IFS
4224 test -z "$as_dir" && as_dir=.
4225 for ac_exec_ext in '' $ac_executable_extensions; do
4226 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4227 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4229 break 2
4230 fi
4231done
4232done
4233
4234fi
1e8e9920 4235fi
542f9784 4236ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4237if test -n "$ac_ct_DUMPBIN"; then
4238 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4239echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4240else
4241 echo "$as_me:$LINENO: result: no" >&5
4242echo "${ECHO_T}no" >&6
4243fi
4244
4245 test -n "$ac_ct_DUMPBIN" && break
4246done
4247test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
4248
4249 DUMPBIN=$ac_ct_DUMPBIN
4250fi
4251
4252
4253 if test "$DUMPBIN" != ":"; then
4254 NM="$DUMPBIN"
4255 fi
1e8e9920 4256fi
542f9784 4257test -z "$NM" && NM=nm
4258
4259
4260
4261
4262
1e8e9920 4263
542f9784 4264echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4265echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4266if test "${lt_cv_nm_interface+set}" = set; then
4267 echo $ECHO_N "(cached) $ECHO_C" >&6
4268else
4269 lt_cv_nm_interface="BSD nm"
4270 echo "int some_variable = 0;" > conftest.$ac_ext
5b2c7553 4271 (eval echo "\"\$as_me:4271: $ac_compile\"" >&5)
542f9784 4272 (eval "$ac_compile" 2>conftest.err)
4273 cat conftest.err >&5
5b2c7553 4274 (eval echo "\"\$as_me:4274: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
542f9784 4275 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4276 cat conftest.err >&5
5b2c7553 4277 (eval echo "\"\$as_me:4277: output\"" >&5)
542f9784 4278 cat conftest.out >&5
4279 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4280 lt_cv_nm_interface="MS dumpbin"
4281 fi
4282 rm -f conftest*
4283fi
4284echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4285echo "${ECHO_T}$lt_cv_nm_interface" >&6
1e8e9920 4286
4287echo "$as_me:$LINENO: checking whether ln -s works" >&5
4288echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4289LN_S=$as_ln_s
4290if test "$LN_S" = "ln -s"; then
4291 echo "$as_me:$LINENO: result: yes" >&5
4292echo "${ECHO_T}yes" >&6
4293else
4294 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4295echo "${ECHO_T}no, using $LN_S" >&6
4296fi
4297
542f9784 4298# find the maximum length of command line arguments
4299echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4300echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4301if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4302 echo $ECHO_N "(cached) $ECHO_C" >&6
4303else
4304 i=0
4305 teststring="ABCD"
4306
4307 case $build_os in
4308 msdosdjgpp*)
4309 # On DJGPP, this test can blow up pretty badly due to problems in libc
4310 # (any single argument exceeding 2000 bytes causes a buffer overrun
4311 # during glob expansion). Even if it were fixed, the result of this
4312 # check would be larger than it should be.
4313 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4314 ;;
4315
4316 gnu*)
4317 # Under GNU Hurd, this test is not required because there is
4318 # no limit to the length of command line arguments.
4319 # Libtool will interpret -1 as no limit whatsoever
4320 lt_cv_sys_max_cmd_len=-1;
4321 ;;
4322
4323 cygwin* | mingw*)
4324 # On Win9x/ME, this test blows up -- it succeeds, but takes
4325 # about 5 minutes as the teststring grows exponentially.
4326 # Worse, since 9x/ME are not pre-emptively multitasking,
4327 # you end up with a "frozen" computer, even though with patience
4328 # the test eventually succeeds (with a max line length of 256k).
4329 # Instead, let's just punt: use the minimum linelength reported by
4330 # all of the supported platforms: 8192 (on NT/2K/XP).
4331 lt_cv_sys_max_cmd_len=8192;
4332 ;;
4333
4334 amigaos*)
4335 # On AmigaOS with pdksh, this test takes hours, literally.
4336 # So we just punt and use a minimum line length of 8192.
4337 lt_cv_sys_max_cmd_len=8192;
4338 ;;
4339
4340 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4341 # This has been around since 386BSD, at least. Likely further.
4342 if test -x /sbin/sysctl; then
4343 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4344 elif test -x /usr/sbin/sysctl; then
4345 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4346 else
4347 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4348 fi
4349 # And add a safety zone
4350 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4351 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4352 ;;
4353
4354 interix*)
4355 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4356 lt_cv_sys_max_cmd_len=196608
4357 ;;
4358
4359 osf*)
4360 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4361 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4362 # nice to cause kernel panics so lets avoid the loop below.
4363 # First set a reasonable default.
4364 lt_cv_sys_max_cmd_len=16384
4365 #
4366 if test -x /sbin/sysconfig; then
4367 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4368 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4369 esac
4370 fi
4371 ;;
4372 sco3.2v5*)
4373 lt_cv_sys_max_cmd_len=102400
4374 ;;
4375 sysv5* | sco5v6* | sysv4.2uw2*)
4376 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4377 if test -n "$kargmax"; then
4378 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4379 else
4380 lt_cv_sys_max_cmd_len=32768
4381 fi
4382 ;;
4383 *)
07c46636 4384 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
4385 if test -n $lt_cv_sys_max_cmd_len; then
4386 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4387 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4388 else
4389 # Make teststring a little bigger before we do anything with it.
4390 # a 1K string should be a reasonable start.
4391 for i in 1 2 3 4 5 6 7 8 ; do
4392 teststring=$teststring$teststring
4393 done
4394 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4395 # If test is not a shell built-in, we'll probably end up computing a
4396 # maximum length that is only half of the actual maximum length, but
4397 # we can't tell.
4398 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4399 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4400 test $i != 17 # 1/2 MB should be enough
4401 do
4402 i=`expr $i + 1`
4403 teststring=$teststring$teststring
4404 done
4405 # Only check the string length outside the loop.
4406 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4407 teststring=
4408 # Add a significant safety factor because C++ compilers can tack on
4409 # massive amounts of additional arguments before passing them to the
4410 # linker. It appears as though 1/2 is a usable value.
4411 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4412 fi
542f9784 4413 ;;
4414 esac
4415
4416fi
4417
4418if test -n $lt_cv_sys_max_cmd_len ; then
4419 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4420echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4421else
4422 echo "$as_me:$LINENO: result: none" >&5
4423echo "${ECHO_T}none" >&6
4424fi
4425max_cmd_len=$lt_cv_sys_max_cmd_len
4426
4427
4428
4429
4430
4431
4432
4433: ${CP="cp -f"}
4434: ${MV="mv -f"}
4435: ${RM="rm -f"}
4436
4437echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4438echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4439# Try some XSI features
4440xsi_shell=no
4441( _lt_dummy="a/b/c"
4442 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4443 = c,a/b,, ) >/dev/null 2>&1 \
4444 && xsi_shell=yes
4445echo "$as_me:$LINENO: result: $xsi_shell" >&5
4446echo "${ECHO_T}$xsi_shell" >&6
4447
4448
4449echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4450echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4451lt_shell_append=no
4452( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4453 >/dev/null 2>&1 \
4454 && lt_shell_append=yes
4455echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4456echo "${ECHO_T}$lt_shell_append" >&6
4457
4458
4459if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4460 lt_unset=unset
4461else
4462 lt_unset=false
4463fi
4464
4465
4466
4467
4468
4469# test EBCDIC or ASCII
4470case `echo X|tr X '\101'` in
4471 A) # ASCII based system
4472 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4473 lt_SP2NL='tr \040 \012'
4474 lt_NL2SP='tr \015\012 \040\040'
4475 ;;
4476 *) # EBCDIC based system
4477 lt_SP2NL='tr \100 \n'
4478 lt_NL2SP='tr \r\n \100\100'
4479 ;;
4480esac
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4491echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4492if test "${lt_cv_ld_reload_flag+set}" = set; then
4493 echo $ECHO_N "(cached) $ECHO_C" >&6
4494else
4495 lt_cv_ld_reload_flag='-r'
4496fi
4497echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4498echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4499reload_flag=$lt_cv_ld_reload_flag
4500case $reload_flag in
4501"" | " "*) ;;
4502*) reload_flag=" $reload_flag" ;;
4503esac
4504reload_cmds='$LD$reload_flag -o $output$reload_objs'
4505case $host_os in
4506 darwin*)
4507 if test "$GCC" = yes; then
4508 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4509 else
4510 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4511 fi
4512 ;;
4513esac
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4525echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
1e8e9920 4526if test "${lt_cv_deplibs_check_method+set}" = set; then
4527 echo $ECHO_N "(cached) $ECHO_C" >&6
4528else
4529 lt_cv_file_magic_cmd='$MAGIC_CMD'
4530lt_cv_file_magic_test_file=
4531lt_cv_deplibs_check_method='unknown'
4532# Need to set the preceding variable on all platforms that support
4533# interlibrary dependencies.
4534# 'none' -- dependencies not supported.
4535# `unknown' -- same as none, but documents that we really don't know.
4536# 'pass_all' -- all dependencies passed with no checks.
4537# 'test_compile' -- check by making test program.
542f9784 4538# 'file_magic [[regex]]' -- check by looking for files in library path
4539# which responds to the $file_magic_cmd with a given extended regex.
1e8e9920 4540# If you have `file' or equivalent on your system and you're not sure
4541# whether `pass_all' will *always* work, you probably want this one.
4542
4543case $host_os in
c8db569e 4544aix[4-9]*)
1e8e9920 4545 lt_cv_deplibs_check_method=pass_all
4546 ;;
4547
4548beos*)
4549 lt_cv_deplibs_check_method=pass_all
4550 ;;
4551
542f9784 4552bsdi[45]*)
1e8e9920 4553 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4554 lt_cv_file_magic_cmd='/usr/bin/file -L'
4555 lt_cv_file_magic_test_file=/shlib/libc.so
4556 ;;
4557
542f9784 4558cygwin*)
4559 # func_win32_libid is a shell function defined in ltmain.sh
4560 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4561 lt_cv_file_magic_cmd='func_win32_libid'
4562 ;;
4563
4564mingw* | pw32*)
4565 # Base MSYS/MinGW do not provide the 'file' command needed by
4566 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4567 # unless we find 'file', for example because we are cross-compiling.
4568 if ( file / ) >/dev/null 2>&1; then
4569 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4570 lt_cv_file_magic_cmd='func_win32_libid'
4571 else
4572 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4573 lt_cv_file_magic_cmd='$OBJDUMP -f'
4574 fi
1e8e9920 4575 ;;
4576
4577darwin* | rhapsody*)
1e8e9920 4578 lt_cv_deplibs_check_method=pass_all
4579 ;;
4580
542f9784 4581freebsd* | dragonfly*)
4582 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
1e8e9920 4583 case $host_cpu in
4584 i*86 )
4585 # Not sure whether the presence of OpenBSD here was a mistake.
4586 # Let's accept both of them until this is cleared up.
542f9784 4587 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
1e8e9920 4588 lt_cv_file_magic_cmd=/usr/bin/file
4589 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4590 ;;
4591 esac
4592 else
4593 lt_cv_deplibs_check_method=pass_all
4594 fi
4595 ;;
4596
4597gnu*)
4598 lt_cv_deplibs_check_method=pass_all
4599 ;;
4600
542f9784 4601hpux10.20* | hpux11*)
4602 lt_cv_file_magic_cmd=/usr/bin/file
1e8e9920 4603 case $host_cpu in
1e8e9920 4604 ia64*)
4605 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
1e8e9920 4606 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4607 ;;
542f9784 4608 hppa*64*)
4609 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]'
4610 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
1e8e9920 4611 ;;
4612 *)
542f9784 4613 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4614 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1e8e9920 4615 ;;
4616 esac
542f9784 4617 ;;
4618
4619interix[3-9]*)
4620 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4621 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4622 ;;
4623
4624irix5* | irix6* | nonstopux*)
4625 case $LD in
4626 *-32|*"-32 ") libmagic=32-bit;;
4627 *-n32|*"-n32 ") libmagic=N32;;
4628 *-64|*"-64 ") libmagic=64-bit;;
4629 *) libmagic=never-match;;
4630 esac
1e8e9920 4631 lt_cv_deplibs_check_method=pass_all
4632 ;;
4633
4634# This must be Linux ELF.
542f9784 4635linux* | k*bsd*-gnu)
1e8e9920 4636 lt_cv_deplibs_check_method=pass_all
4637 ;;
4638
542f9784 4639netbsd*)
4640 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4641 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
1e8e9920 4642 else
542f9784 4643 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
1e8e9920 4644 fi
4645 ;;
4646
542f9784 4647newos6*)
1e8e9920 4648 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4649 lt_cv_file_magic_cmd=/usr/bin/file
4650 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4651 ;;
4652
542f9784 4653*nto* | *qnx*)
4654 lt_cv_deplibs_check_method=pass_all
4655 ;;
4656
4657openbsd*)
4658 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4659 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4660 else
4661 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4662 fi
4663 ;;
4664
1e8e9920 4665osf3* | osf4* | osf5*)
1e8e9920 4666 lt_cv_deplibs_check_method=pass_all
4667 ;;
4668
542f9784 4669rdos*)
1e8e9920 4670 lt_cv_deplibs_check_method=pass_all
4671 ;;
4672
4673solaris*)
4674 lt_cv_deplibs_check_method=pass_all
1e8e9920 4675 ;;
4676
542f9784 4677sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
1e8e9920 4678 lt_cv_deplibs_check_method=pass_all
4679 ;;
4680
542f9784 4681sysv4 | sysv4.3*)
1e8e9920 4682 case $host_vendor in
1e8e9920 4683 motorola)
4684 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]'
4685 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4686 ;;
542f9784 4687 ncr)
4688 lt_cv_deplibs_check_method=pass_all
4689 ;;
4690 sequent)
4691 lt_cv_file_magic_cmd='/bin/file'
4692 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4693 ;;
4694 sni)
4695 lt_cv_file_magic_cmd='/bin/file'
4696 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4697 lt_cv_file_magic_test_file=/lib/libc.so
4698 ;;
4699 siemens)
4700 lt_cv_deplibs_check_method=pass_all
4701 ;;
4702 pc)
4703 lt_cv_deplibs_check_method=pass_all
4704 ;;
1e8e9920 4705 esac
4706 ;;
542f9784 4707
4708tpf*)
4709 lt_cv_deplibs_check_method=pass_all
4710 ;;
1e8e9920 4711esac
4712
4713fi
4714echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4715echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4716file_magic_cmd=$lt_cv_file_magic_cmd
4717deplibs_check_method=$lt_cv_deplibs_check_method
542f9784 4718test -z "$deplibs_check_method" && deplibs_check_method=unknown
1e8e9920 4719
4720
4721
4722
4723
1e8e9920 4724
1e8e9920 4725
1e8e9920 4726
1e8e9920 4727
1e8e9920 4728
1e8e9920 4729
1e8e9920 4730
4731if test -n "$ac_tool_prefix"; then
542f9784 4732 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4733set dummy ${ac_tool_prefix}ar; ac_word=$2
1e8e9920 4734echo "$as_me:$LINENO: checking for $ac_word" >&5
4735echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
542f9784 4736if test "${ac_cv_prog_AR+set}" = set; then
1e8e9920 4737 echo $ECHO_N "(cached) $ECHO_C" >&6
4738else
542f9784 4739 if test -n "$AR"; then
4740 ac_cv_prog_AR="$AR" # Let the user override the test.
1e8e9920 4741else
4742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4743for as_dir in $PATH
4744do
4745 IFS=$as_save_IFS
4746 test -z "$as_dir" && as_dir=.
4747 for ac_exec_ext in '' $ac_executable_extensions; do
4748 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
542f9784 4749 ac_cv_prog_AR="${ac_tool_prefix}ar"
1e8e9920 4750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4751 break 2
4752 fi
4753done
4754done
4755
4756fi
4757fi
542f9784 4758AR=$ac_cv_prog_AR
4759if test -n "$AR"; then
4760 echo "$as_me:$LINENO: result: $AR" >&5
4761echo "${ECHO_T}$AR" >&6
1e8e9920 4762else
4763 echo "$as_me:$LINENO: result: no" >&5
4764echo "${ECHO_T}no" >&6
4765fi
4766
4767fi
542f9784 4768if test -z "$ac_cv_prog_AR"; then
4769 ac_ct_AR=$AR
4770 # Extract the first word of "ar", so it can be a program name with args.
4771set dummy ar; ac_word=$2
1e8e9920 4772echo "$as_me:$LINENO: checking for $ac_word" >&5
4773echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
542f9784 4774if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
1e8e9920 4775 echo $ECHO_N "(cached) $ECHO_C" >&6
4776else
542f9784 4777 if test -n "$ac_ct_AR"; then
4778 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
1e8e9920 4779else
4780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4781for as_dir in $PATH
4782do
4783 IFS=$as_save_IFS
4784 test -z "$as_dir" && as_dir=.
4785 for ac_exec_ext in '' $ac_executable_extensions; do
4786 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
542f9784 4787 ac_cv_prog_ac_ct_AR="ar"
1e8e9920 4788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4789 break 2
4790 fi
4791done
4792done
4793
542f9784 4794 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
1e8e9920 4795fi
4796fi
542f9784 4797ac_ct_AR=$ac_cv_prog_ac_ct_AR
4798if test -n "$ac_ct_AR"; then
4799 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4800echo "${ECHO_T}$ac_ct_AR" >&6
1e8e9920 4801else
4802 echo "$as_me:$LINENO: result: no" >&5
4803echo "${ECHO_T}no" >&6
4804fi
4805
542f9784 4806 AR=$ac_ct_AR
1e8e9920 4807else
542f9784 4808 AR="$ac_cv_prog_AR"
1e8e9920 4809fi
4810
542f9784 4811test -z "$AR" && AR=ar
4812test -z "$AR_FLAGS" && AR_FLAGS=cru
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
1e8e9920 4824if test -n "$ac_tool_prefix"; then
4825 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4826set dummy ${ac_tool_prefix}strip; ac_word=$2
4827echo "$as_me:$LINENO: checking for $ac_word" >&5
4828echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4829if test "${ac_cv_prog_STRIP+set}" = set; then
4830 echo $ECHO_N "(cached) $ECHO_C" >&6
4831else
4832 if test -n "$STRIP"; then
4833 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4834else
4835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4836for as_dir in $PATH
4837do
4838 IFS=$as_save_IFS
4839 test -z "$as_dir" && as_dir=.
4840 for ac_exec_ext in '' $ac_executable_extensions; do
4841 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4842 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4844 break 2
4845 fi
4846done
4847done
4848
4849fi
4850fi
4851STRIP=$ac_cv_prog_STRIP
4852if test -n "$STRIP"; then
4853 echo "$as_me:$LINENO: result: $STRIP" >&5
4854echo "${ECHO_T}$STRIP" >&6
4855else
4856 echo "$as_me:$LINENO: result: no" >&5
4857echo "${ECHO_T}no" >&6
4858fi
4859
4860fi
4861if test -z "$ac_cv_prog_STRIP"; then
4862 ac_ct_STRIP=$STRIP
4863 # Extract the first word of "strip", so it can be a program name with args.
4864set dummy strip; ac_word=$2
4865echo "$as_me:$LINENO: checking for $ac_word" >&5
4866echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4867if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4868 echo $ECHO_N "(cached) $ECHO_C" >&6
4869else
4870 if test -n "$ac_ct_STRIP"; then
4871 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4872else
4873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4874for as_dir in $PATH
4875do
4876 IFS=$as_save_IFS
4877 test -z "$as_dir" && as_dir=.
4878 for ac_exec_ext in '' $ac_executable_extensions; do
4879 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4880 ac_cv_prog_ac_ct_STRIP="strip"
4881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4882 break 2
4883 fi
4884done
4885done
4886
4887 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4888fi
4889fi
4890ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4891if test -n "$ac_ct_STRIP"; then
4892 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4893echo "${ECHO_T}$ac_ct_STRIP" >&6
4894else
4895 echo "$as_me:$LINENO: result: no" >&5
4896echo "${ECHO_T}no" >&6
4897fi
4898
4899 STRIP=$ac_ct_STRIP
4900else
4901 STRIP="$ac_cv_prog_STRIP"
4902fi
4903
542f9784 4904test -z "$STRIP" && STRIP=:
1e8e9920 4905
4906
1e8e9920 4907
1e8e9920 4908
4909
1e8e9920 4910
542f9784 4911if test -n "$ac_tool_prefix"; then
4912 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4913set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4914echo "$as_me:$LINENO: checking for $ac_word" >&5
4915echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4916if test "${ac_cv_prog_RANLIB+set}" = set; then
4917 echo $ECHO_N "(cached) $ECHO_C" >&6
4918else
4919 if test -n "$RANLIB"; then
4920 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4921else
4922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4923for as_dir in $PATH
4924do
4925 IFS=$as_save_IFS
4926 test -z "$as_dir" && as_dir=.
4927 for ac_exec_ext in '' $ac_executable_extensions; do
4928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4929 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4931 break 2
4932 fi
4933done
4934done
4935
4936fi
4937fi
4938RANLIB=$ac_cv_prog_RANLIB
4939if test -n "$RANLIB"; then
4940 echo "$as_me:$LINENO: result: $RANLIB" >&5
4941echo "${ECHO_T}$RANLIB" >&6
4942else
4943 echo "$as_me:$LINENO: result: no" >&5
4944echo "${ECHO_T}no" >&6
4945fi
4946
4947fi
4948if test -z "$ac_cv_prog_RANLIB"; then
4949 ac_ct_RANLIB=$RANLIB
4950 # Extract the first word of "ranlib", so it can be a program name with args.
4951set dummy ranlib; ac_word=$2
4952echo "$as_me:$LINENO: checking for $ac_word" >&5
4953echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4954if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4955 echo $ECHO_N "(cached) $ECHO_C" >&6
4956else
4957 if test -n "$ac_ct_RANLIB"; then
4958 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4959else
4960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4961for as_dir in $PATH
4962do
4963 IFS=$as_save_IFS
4964 test -z "$as_dir" && as_dir=.
4965 for ac_exec_ext in '' $ac_executable_extensions; do
4966 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4967 ac_cv_prog_ac_ct_RANLIB="ranlib"
4968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4969 break 2
4970 fi
4971done
4972done
4973
4974 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4975fi
4976fi
4977ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4978if test -n "$ac_ct_RANLIB"; then
4979 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4980echo "${ECHO_T}$ac_ct_RANLIB" >&6
4981else
4982 echo "$as_me:$LINENO: result: no" >&5
4983echo "${ECHO_T}no" >&6
4984fi
4985
4986 RANLIB=$ac_ct_RANLIB
4987else
4988 RANLIB="$ac_cv_prog_RANLIB"
4989fi
4990
4991test -z "$RANLIB" && RANLIB=:
4992
4993
4994
4995
4996
4997
4998# Determine commands to create old-style static archives.
4999old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5000old_postinstall_cmds='chmod 644 $oldlib'
5001old_postuninstall_cmds=
5002
5003if test -n "$RANLIB"; then
5004 case $host_os in
5005 openbsd*)
5006 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5007 ;;
5008 *)
5009 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5010 ;;
5011 esac
5012 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5013fi
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048# If no C compiler was specified, use CC.
5049LTCC=${LTCC-"$CC"}
5050
5051# If no C compiler flags were specified, use CFLAGS.
5052LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5053
5054# Allow CC to be a program name with arguments.
5055compiler=$CC
5056
5057
5058# Check for command to grab the raw symbol name followed by C symbol from nm.
5059echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5060echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5061if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5062 echo $ECHO_N "(cached) $ECHO_C" >&6
5063else
5064
5065# These are sane defaults that work on at least a few old systems.
5066# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5067
5068# Character class describing NM global symbol codes.
5069symcode='[BCDEGRST]'
5070
5071# Regexp to match symbols that can be accessed directly from C.
5072sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5073
5074# Define system-specific variables.
5075case $host_os in
5076aix*)
5077 symcode='[BCDT]'
5078 ;;
5079cygwin* | mingw* | pw32*)
5080 symcode='[ABCDGISTW]'
5081 ;;
5082hpux*)
5083 if test "$host_cpu" = ia64; then
5084 symcode='[ABCDEGRST]'
5085 fi
5086 ;;
5087irix* | nonstopux*)
5088 symcode='[BCDEGRST]'
5089 ;;
5090osf*)
5091 symcode='[BCDEGQRST]'
5092 ;;
5093solaris*)
5094 symcode='[BDRT]'
5095 ;;
5096sco3.2v5*)
5097 symcode='[DT]'
5098 ;;
5099sysv4.2uw2*)
5100 symcode='[DT]'
5101 ;;
5102sysv5* | sco5v6* | unixware* | OpenUNIX*)
5103 symcode='[ABDT]'
5104 ;;
5105sysv4)
5106 symcode='[DFNSTU]'
5107 ;;
5108esac
5109
5110# If we're using GNU nm, then use its standard symbol codes.
5111case `$NM -V 2>&1` in
5112*GNU* | *'with BFD'*)
5113 symcode='[ABCDGIRSTW]' ;;
5114esac
5115
5116# Transform an extracted symbol line into a proper C declaration.
5117# Some systems (esp. on ia64) link data and code symbols differently,
5118# so use this general approach.
5119lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5120
5121# Transform an extracted symbol line into symbol name and symbol address
5122lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5123
5124# Handle CRLF in mingw tool chain
5125opt_cr=
5126case $build_os in
5127mingw*)
5128 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5129 ;;
5130esac
5131
5132# Try without a prefix underscore, then with it.
5133for ac_symprfx in "" "_"; do
5134
5135 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5136 symxfrm="\\1 $ac_symprfx\\2 \\2"
5137
5138 # Write the raw and C identifiers.
5139 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5140 # Fake it for dumpbin and say T for any non-static function
5141 # and D for any global variable.
5142 # Also find C++ and __fastcall symbols from MSVC++,
5143 # which start with @ or ?.
5144 lt_cv_sys_global_symbol_pipe="$AWK '"\
5145" {last_section=section; section=\$ 3};"\
5146" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5147" \$ 0!~/External *\|/{next};"\
5148" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5149" {if(hide[section]) next};"\
5150" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5151" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5152" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5153" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5154" ' prfx=^$ac_symprfx"
5155 else
5156 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5157 fi
5158
5159 # Check to see that the pipe works correctly.
5160 pipe_works=no
5161
5162 rm -f conftest*
5163 cat > conftest.$ac_ext <<_LT_EOF
5164#ifdef __cplusplus
5165extern "C" {
5166#endif
5167char nm_test_var;
5168void nm_test_func(void);
5169void nm_test_func(void){}
5170#ifdef __cplusplus
5171}
5172#endif
5173int main(){nm_test_var='a';nm_test_func();return(0);}
5174_LT_EOF
5175
5176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5177 (eval $ac_compile) 2>&5
5178 ac_status=$?
5179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5180 (exit $ac_status); }; then
5181 # Now try to grab the symbols.
5182 nlist=conftest.nm
5183 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5184 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5185 ac_status=$?
5186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5187 (exit $ac_status); } && test -s "$nlist"; then
5188 # Try sorting and uniquifying the output.
5189 if sort "$nlist" | uniq > "$nlist"T; then
5190 mv -f "$nlist"T "$nlist"
5191 else
5192 rm -f "$nlist"T
5193 fi
5194
5195 # Make sure that we snagged all the symbols we need.
5196 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5197 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5198 cat <<_LT_EOF > conftest.$ac_ext
5199#ifdef __cplusplus
5200extern "C" {
5201#endif
5202
5203_LT_EOF
5204 # Now generate the symbol file.
5205 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5206
5207 cat <<_LT_EOF >> conftest.$ac_ext
5208
5209/* The mapping between symbol names and symbols. */
5210const struct {
5211 const char *name;
5212 void *address;
5213}
5214lt__PROGRAM__LTX_preloaded_symbols[] =
5215{
5216 { "@PROGRAM@", (void *) 0 },
5217_LT_EOF
5218 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5219 cat <<\_LT_EOF >> conftest.$ac_ext
5220 {0, (void *) 0}
5221};
5222
5223/* This works around a problem in FreeBSD linker */
5224#ifdef FREEBSD_WORKAROUND
5225static const void *lt_preloaded_setup() {
5226 return lt__PROGRAM__LTX_preloaded_symbols;
5227}
5228#endif
5229
5230#ifdef __cplusplus
5231}
5232#endif
5233_LT_EOF
5234 # Now try linking the two files.
5235 mv conftest.$ac_objext conftstm.$ac_objext
5236 lt_save_LIBS="$LIBS"
5237 lt_save_CFLAGS="$CFLAGS"
5238 LIBS="conftstm.$ac_objext"
5239 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5241 (eval $ac_link) 2>&5
5242 ac_status=$?
5243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5245 pipe_works=yes
5246 fi
5247 LIBS="$lt_save_LIBS"
5248 CFLAGS="$lt_save_CFLAGS"
5249 else
5250 echo "cannot find nm_test_func in $nlist" >&5
5251 fi
5252 else
5253 echo "cannot find nm_test_var in $nlist" >&5
5254 fi
5255 else
5256 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5257 fi
5258 else
5259 echo "$progname: failed program was:" >&5
5260 cat conftest.$ac_ext >&5
5261 fi
5262 rm -f conftest* conftst*
5263
5264 # Do not use the global_symbol_pipe unless it works.
5265 if test "$pipe_works" = yes; then
5266 break
5267 else
5268 lt_cv_sys_global_symbol_pipe=
5269 fi
5270done
5271
5272fi
5273
5274if test -z "$lt_cv_sys_global_symbol_pipe"; then
5275 lt_cv_sys_global_symbol_to_cdecl=
5276fi
5277if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5278 echo "$as_me:$LINENO: result: failed" >&5
5279echo "${ECHO_T}failed" >&6
5280else
5281 echo "$as_me:$LINENO: result: ok" >&5
5282echo "${ECHO_T}ok" >&6
5283fi
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5303if test "${enable_libtool_lock+set}" = set; then
5304 enableval="$enable_libtool_lock"
5305
5306fi;
5307test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5308
5309# Some flags need to be propagated to the compiler or linker for good
1e8e9920 5310# libtool support.
5311case $host in
542f9784 5312ia64-*-hpux*)
1e8e9920 5313 # Find out which ABI we are using.
542f9784 5314 echo 'int i;' > conftest.$ac_ext
1e8e9920 5315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5316 (eval $ac_compile) 2>&5
5317 ac_status=$?
5318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
542f9784 5319 (exit $ac_status); }; then
5320 case `/usr/bin/file conftest.$ac_objext` in
5321 *ELF-32*)
5322 HPUX_IA64_MODE="32"
5323 ;;
5324 *ELF-64*)
5325 HPUX_IA64_MODE="64"
5326 ;;
5327 esac
5328 fi
5329 rm -rf conftest*
5330 ;;
5331*-*-irix6*)
5332 # Find out which ABI we are using.
5b2c7553 5333 echo '#line 5333 "configure"' > conftest.$ac_ext
542f9784 5334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5335 (eval $ac_compile) 2>&5
5336 ac_status=$?
5337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5338 (exit $ac_status); }; then
5339 if test "$lt_cv_prog_gnu_ld" = yes; then
5340 case `/usr/bin/file conftest.$ac_objext` in
5341 *32-bit*)
5342 LD="${LD-ld} -melf32bsmip"
5343 ;;
5344 *N32*)
5345 LD="${LD-ld} -melf32bmipn32"
5346 ;;
5347 *64-bit*)
5348 LD="${LD-ld} -melf64bmip"
5349 ;;
5350 esac
5351 else
5352 case `/usr/bin/file conftest.$ac_objext` in
5353 *32-bit*)
5354 LD="${LD-ld} -32"
5355 ;;
5356 *N32*)
5357 LD="${LD-ld} -n32"
5358 ;;
5359 *64-bit*)
5360 LD="${LD-ld} -64"
5361 ;;
5362 esac
5363 fi
5364 fi
5365 rm -rf conftest*
5366 ;;
5367
5368x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5369s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5370 # Find out which ABI we are using.
5371 echo 'int i;' > conftest.$ac_ext
5372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5373 (eval $ac_compile) 2>&5
5374 ac_status=$?
5375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376 (exit $ac_status); }; then
5377 case `/usr/bin/file conftest.o` in
5378 *32-bit*)
5379 case $host in
5380 x86_64-*kfreebsd*-gnu)
5381 LD="${LD-ld} -m elf_i386_fbsd"
5382 ;;
5383 x86_64-*linux*)
5384 LD="${LD-ld} -m elf_i386"
5385 ;;
5386 ppc64-*linux*|powerpc64-*linux*)
5387 LD="${LD-ld} -m elf32ppclinux"
5388 ;;
5389 s390x-*linux*)
5390 LD="${LD-ld} -m elf_s390"
5391 ;;
5392 sparc64-*linux*)
5393 LD="${LD-ld} -m elf32_sparc"
5394 ;;
5395 esac
5396 ;;
5397 *64-bit*)
5398 case $host in
5399 x86_64-*kfreebsd*-gnu)
5400 LD="${LD-ld} -m elf_x86_64_fbsd"
5401 ;;
5402 x86_64-*linux*)
5403 LD="${LD-ld} -m elf_x86_64"
5404 ;;
5405 ppc*-*linux*|powerpc*-*linux*)
5406 LD="${LD-ld} -m elf64ppc"
5407 ;;
5408 s390*-*linux*|s390*-*tpf*)
5409 LD="${LD-ld} -m elf64_s390"
5410 ;;
5411 sparc*-*linux*)
5412 LD="${LD-ld} -m elf64_sparc"
5413 ;;
5414 esac
5415 ;;
5416 esac
5417 fi
5418 rm -rf conftest*
5419 ;;
5420
5421*-*-sco3.2v5*)
5422 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5423 SAVE_CFLAGS="$CFLAGS"
5424 CFLAGS="$CFLAGS -belf"
5425 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5426echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5427if test "${lt_cv_cc_needs_belf+set}" = set; then
5428 echo $ECHO_N "(cached) $ECHO_C" >&6
5429else
5430 ac_ext=c
5431ac_cpp='$CPP $CPPFLAGS'
5432ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5433ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5434ac_compiler_gnu=$ac_cv_c_compiler_gnu
5435
5436 cat >conftest.$ac_ext <<_ACEOF
5437/* confdefs.h. */
5438_ACEOF
5439cat confdefs.h >>conftest.$ac_ext
5440cat >>conftest.$ac_ext <<_ACEOF
5441/* end confdefs.h. */
5442
5443int
5444main ()
5445{
5446
5447 ;
5448 return 0;
5449}
5450_ACEOF
5451rm -f conftest.$ac_objext conftest$ac_exeext
5452if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5453 (eval $ac_link) 2>conftest.er1
5454 ac_status=$?
5455 grep -v '^ *+' conftest.er1 >conftest.err
5456 rm -f conftest.er1
5457 cat conftest.err >&5
5458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459 (exit $ac_status); } &&
5460 { ac_try='test -z "$ac_c_werror_flag"
5461 || test ! -s conftest.err'
5462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5463 (eval $ac_try) 2>&5
5464 ac_status=$?
5465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5466 (exit $ac_status); }; } &&
5467 { ac_try='test -s conftest$ac_exeext'
5468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5469 (eval $ac_try) 2>&5
5470 ac_status=$?
5471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472 (exit $ac_status); }; }; then
5473 lt_cv_cc_needs_belf=yes
5474else
5475 echo "$as_me: failed program was:" >&5
5476sed 's/^/| /' conftest.$ac_ext >&5
5477
5478lt_cv_cc_needs_belf=no
5479fi
5480rm -f conftest.err conftest.$ac_objext \
5481 conftest$ac_exeext conftest.$ac_ext
5482 ac_ext=c
5483ac_cpp='$CPP $CPPFLAGS'
5484ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5485ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5486ac_compiler_gnu=$ac_cv_c_compiler_gnu
5487
5488fi
5489echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5490echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5491 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5492 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5493 CFLAGS="$SAVE_CFLAGS"
5494 fi
5495 ;;
5496sparc*-*solaris*)
5497 # Find out which ABI we are using.
5498 echo 'int i;' > conftest.$ac_ext
5499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5500 (eval $ac_compile) 2>&5
5501 ac_status=$?
5502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5503 (exit $ac_status); }; then
5504 case `/usr/bin/file conftest.o` in
5505 *64-bit*)
5506 case $lt_cv_prog_gnu_ld in
5507 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5508 *) LD="${LD-ld} -64" ;;
5509 esac
5510 ;;
5511 esac
5512 fi
5513 rm -rf conftest*
5514 ;;
5515esac
5516
5517need_locks="$enable_libtool_lock"
5518
5519ac_ext=c
5520ac_cpp='$CPP $CPPFLAGS'
5521ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5522ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5523ac_compiler_gnu=$ac_cv_c_compiler_gnu
5524echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5525echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5526# On Suns, sometimes $CPP names a directory.
5527if test -n "$CPP" && test -d "$CPP"; then
5528 CPP=
5529fi
5530if test -z "$CPP"; then
5531 if test "${ac_cv_prog_CPP+set}" = set; then
5532 echo $ECHO_N "(cached) $ECHO_C" >&6
5533else
5534 # Double quotes because CPP needs to be expanded
5535 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5536 do
5537 ac_preproc_ok=false
5538for ac_c_preproc_warn_flag in '' yes
5539do
5540 # Use a header file that comes with gcc, so configuring glibc
5541 # with a fresh cross-compiler works.
5542 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5543 # <limits.h> exists even on freestanding compilers.
5544 # On the NeXT, cc -E runs the code through the compiler's parser,
5545 # not just through cpp. "Syntax error" is here to catch this case.
5546 cat >conftest.$ac_ext <<_ACEOF
5547/* confdefs.h. */
5548_ACEOF
5549cat confdefs.h >>conftest.$ac_ext
5550cat >>conftest.$ac_ext <<_ACEOF
5551/* end confdefs.h. */
5552#ifdef __STDC__
5553# include <limits.h>
5554#else
5555# include <assert.h>
5556#endif
5557 Syntax error
5558_ACEOF
5559if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5560 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5561 ac_status=$?
5562 grep -v '^ *+' conftest.er1 >conftest.err
5563 rm -f conftest.er1
5564 cat conftest.err >&5
5565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5566 (exit $ac_status); } >/dev/null; then
5567 if test -s conftest.err; then
5568 ac_cpp_err=$ac_c_preproc_warn_flag
5569 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5570 else
5571 ac_cpp_err=
5572 fi
5573else
5574 ac_cpp_err=yes
5575fi
5576if test -z "$ac_cpp_err"; then
5577 :
5578else
5579 echo "$as_me: failed program was:" >&5
5580sed 's/^/| /' conftest.$ac_ext >&5
5581
5582 # Broken: fails on valid input.
5583continue
5584fi
5585rm -f conftest.err conftest.$ac_ext
5586
5587 # OK, works on sane cases. Now check whether non-existent headers
5588 # can be detected and how.
5589 cat >conftest.$ac_ext <<_ACEOF
5590/* confdefs.h. */
5591_ACEOF
5592cat confdefs.h >>conftest.$ac_ext
5593cat >>conftest.$ac_ext <<_ACEOF
5594/* end confdefs.h. */
5595#include <ac_nonexistent.h>
5596_ACEOF
5597if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5598 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5599 ac_status=$?
5600 grep -v '^ *+' conftest.er1 >conftest.err
5601 rm -f conftest.er1
5602 cat conftest.err >&5
5603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604 (exit $ac_status); } >/dev/null; then
5605 if test -s conftest.err; then
5606 ac_cpp_err=$ac_c_preproc_warn_flag
5607 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5608 else
5609 ac_cpp_err=
5610 fi
5611else
5612 ac_cpp_err=yes
5613fi
5614if test -z "$ac_cpp_err"; then
5615 # Broken: success on invalid input.
5616continue
5617else
5618 echo "$as_me: failed program was:" >&5
5619sed 's/^/| /' conftest.$ac_ext >&5
5620
5621 # Passes both tests.
5622ac_preproc_ok=:
5623break
5624fi
5625rm -f conftest.err conftest.$ac_ext
5626
5627done
5628# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5629rm -f conftest.err conftest.$ac_ext
5630if $ac_preproc_ok; then
5631 break
5632fi
5633
5634 done
5635 ac_cv_prog_CPP=$CPP
5636
5637fi
5638 CPP=$ac_cv_prog_CPP
5639else
5640 ac_cv_prog_CPP=$CPP
5641fi
5642echo "$as_me:$LINENO: result: $CPP" >&5
5643echo "${ECHO_T}$CPP" >&6
5644ac_preproc_ok=false
5645for ac_c_preproc_warn_flag in '' yes
5646do
5647 # Use a header file that comes with gcc, so configuring glibc
5648 # with a fresh cross-compiler works.
5649 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5650 # <limits.h> exists even on freestanding compilers.
5651 # On the NeXT, cc -E runs the code through the compiler's parser,
5652 # not just through cpp. "Syntax error" is here to catch this case.
5653 cat >conftest.$ac_ext <<_ACEOF
5654/* confdefs.h. */
5655_ACEOF
5656cat confdefs.h >>conftest.$ac_ext
5657cat >>conftest.$ac_ext <<_ACEOF
5658/* end confdefs.h. */
5659#ifdef __STDC__
5660# include <limits.h>
5661#else
5662# include <assert.h>
5663#endif
5664 Syntax error
5665_ACEOF
5666if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5667 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5668 ac_status=$?
5669 grep -v '^ *+' conftest.er1 >conftest.err
5670 rm -f conftest.er1
5671 cat conftest.err >&5
5672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673 (exit $ac_status); } >/dev/null; then
5674 if test -s conftest.err; then
5675 ac_cpp_err=$ac_c_preproc_warn_flag
5676 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5677 else
5678 ac_cpp_err=
5679 fi
5680else
5681 ac_cpp_err=yes
5682fi
5683if test -z "$ac_cpp_err"; then
5684 :
5685else
5686 echo "$as_me: failed program was:" >&5
5687sed 's/^/| /' conftest.$ac_ext >&5
5688
5689 # Broken: fails on valid input.
5690continue
5691fi
5692rm -f conftest.err conftest.$ac_ext
5693
5694 # OK, works on sane cases. Now check whether non-existent headers
5695 # can be detected and how.
5696 cat >conftest.$ac_ext <<_ACEOF
5697/* confdefs.h. */
5698_ACEOF
5699cat confdefs.h >>conftest.$ac_ext
5700cat >>conftest.$ac_ext <<_ACEOF
5701/* end confdefs.h. */
5702#include <ac_nonexistent.h>
5703_ACEOF
5704if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5705 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5706 ac_status=$?
5707 grep -v '^ *+' conftest.er1 >conftest.err
5708 rm -f conftest.er1
5709 cat conftest.err >&5
5710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5711 (exit $ac_status); } >/dev/null; then
5712 if test -s conftest.err; then
5713 ac_cpp_err=$ac_c_preproc_warn_flag
5714 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5715 else
5716 ac_cpp_err=
5717 fi
5718else
5719 ac_cpp_err=yes
5720fi
5721if test -z "$ac_cpp_err"; then
5722 # Broken: success on invalid input.
5723continue
5724else
5725 echo "$as_me: failed program was:" >&5
5726sed 's/^/| /' conftest.$ac_ext >&5
5727
5728 # Passes both tests.
5729ac_preproc_ok=:
5730break
5731fi
5732rm -f conftest.err conftest.$ac_ext
5733
5734done
5735# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5736rm -f conftest.err conftest.$ac_ext
5737if $ac_preproc_ok; then
5738 :
5739else
5b2c7553 5740 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5741echo "$as_me: error: in \`$ac_pwd':" >&2;}
5742{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
542f9784 5743See \`config.log' for more details." >&5
5744echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5745See \`config.log' for more details." >&2;}
5b2c7553 5746 { (exit 1); exit 1; }; }; }
542f9784 5747fi
5748
5749ac_ext=c
5750ac_cpp='$CPP $CPPFLAGS'
5751ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5752ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5753ac_compiler_gnu=$ac_cv_c_compiler_gnu
5754
5755
5756echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5757echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5758if test "${ac_cv_header_stdc+set}" = set; then
5759 echo $ECHO_N "(cached) $ECHO_C" >&6
5760else
5761 cat >conftest.$ac_ext <<_ACEOF
5762/* confdefs.h. */
5763_ACEOF
5764cat confdefs.h >>conftest.$ac_ext
5765cat >>conftest.$ac_ext <<_ACEOF
5766/* end confdefs.h. */
5767#include <stdlib.h>
5768#include <stdarg.h>
5769#include <string.h>
5770#include <float.h>
5771
5772int
5773main ()
5774{
5775
5776 ;
5777 return 0;
5778}
5779_ACEOF
5780rm -f conftest.$ac_objext
5781if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5782 (eval $ac_compile) 2>conftest.er1
5783 ac_status=$?
5784 grep -v '^ *+' conftest.er1 >conftest.err
5785 rm -f conftest.er1
5786 cat conftest.err >&5
5787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788 (exit $ac_status); } &&
5789 { ac_try='test -z "$ac_c_werror_flag"
5790 || test ! -s conftest.err'
5791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5792 (eval $ac_try) 2>&5
5793 ac_status=$?
5794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795 (exit $ac_status); }; } &&
5796 { ac_try='test -s conftest.$ac_objext'
5797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5798 (eval $ac_try) 2>&5
5799 ac_status=$?
5800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801 (exit $ac_status); }; }; then
5802 ac_cv_header_stdc=yes
5803else
5804 echo "$as_me: failed program was:" >&5
5805sed 's/^/| /' conftest.$ac_ext >&5
5806
5807ac_cv_header_stdc=no
5808fi
5809rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5810
5811if test $ac_cv_header_stdc = yes; then
5812 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5813 cat >conftest.$ac_ext <<_ACEOF
5814/* confdefs.h. */
5815_ACEOF
5816cat confdefs.h >>conftest.$ac_ext
5817cat >>conftest.$ac_ext <<_ACEOF
5818/* end confdefs.h. */
5819#include <string.h>
5820
5821_ACEOF
5822if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5823 $EGREP "memchr" >/dev/null 2>&1; then
5824 :
5825else
5826 ac_cv_header_stdc=no
5827fi
5828rm -f conftest*
5829
5830fi
5831
5832if test $ac_cv_header_stdc = yes; then
5833 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5834 cat >conftest.$ac_ext <<_ACEOF
5835/* confdefs.h. */
5836_ACEOF
5837cat confdefs.h >>conftest.$ac_ext
5838cat >>conftest.$ac_ext <<_ACEOF
5839/* end confdefs.h. */
5840#include <stdlib.h>
5841
5842_ACEOF
5843if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5844 $EGREP "free" >/dev/null 2>&1; then
5845 :
5846else
5847 ac_cv_header_stdc=no
5848fi
5849rm -f conftest*
5850
5851fi
5852
5853if test $ac_cv_header_stdc = yes; then
5854 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5855 if test "$cross_compiling" = yes; then
5856 :
5857else
5858 cat >conftest.$ac_ext <<_ACEOF
5859/* confdefs.h. */
5860_ACEOF
5861cat confdefs.h >>conftest.$ac_ext
5862cat >>conftest.$ac_ext <<_ACEOF
5863/* end confdefs.h. */
5864#include <ctype.h>
5865#if ((' ' & 0x0FF) == 0x020)
5866# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5867# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5868#else
5869# define ISLOWER(c) \
5870 (('a' <= (c) && (c) <= 'i') \
5871 || ('j' <= (c) && (c) <= 'r') \
5872 || ('s' <= (c) && (c) <= 'z'))
5873# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5874#endif
5875
5876#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5877int
5878main ()
5879{
5880 int i;
5881 for (i = 0; i < 256; i++)
5882 if (XOR (islower (i), ISLOWER (i))
5883 || toupper (i) != TOUPPER (i))
5884 exit(2);
5885 exit (0);
5886}
5887_ACEOF
5888rm -f conftest$ac_exeext
5889if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5890 (eval $ac_link) 2>&5
5891 ac_status=$?
5892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5895 (eval $ac_try) 2>&5
5896 ac_status=$?
5897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5898 (exit $ac_status); }; }; then
5899 :
5900else
5901 echo "$as_me: program exited with status $ac_status" >&5
5902echo "$as_me: failed program was:" >&5
5903sed 's/^/| /' conftest.$ac_ext >&5
5904
5905( exit $ac_status )
5906ac_cv_header_stdc=no
5907fi
5908rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5909fi
5910fi
5911fi
5912echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5913echo "${ECHO_T}$ac_cv_header_stdc" >&6
5914if test $ac_cv_header_stdc = yes; then
5915
5916cat >>confdefs.h <<\_ACEOF
5917#define STDC_HEADERS 1
5918_ACEOF
5919
5920fi
5921
5922# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5933 inttypes.h stdint.h unistd.h
5934do
5935as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5936echo "$as_me:$LINENO: checking for $ac_header" >&5
5937echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5938if eval "test \"\${$as_ac_Header+set}\" = set"; then
5939 echo $ECHO_N "(cached) $ECHO_C" >&6
5940else
5941 cat >conftest.$ac_ext <<_ACEOF
5942/* confdefs.h. */
5943_ACEOF
5944cat confdefs.h >>conftest.$ac_ext
5945cat >>conftest.$ac_ext <<_ACEOF
5946/* end confdefs.h. */
5947$ac_includes_default
5948
5949#include <$ac_header>
5950_ACEOF
5951rm -f conftest.$ac_objext
5952if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5953 (eval $ac_compile) 2>conftest.er1
5954 ac_status=$?
5955 grep -v '^ *+' conftest.er1 >conftest.err
5956 rm -f conftest.er1
5957 cat conftest.err >&5
5958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959 (exit $ac_status); } &&
5960 { ac_try='test -z "$ac_c_werror_flag"
5961 || test ! -s conftest.err'
5962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5963 (eval $ac_try) 2>&5
5964 ac_status=$?
5965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966 (exit $ac_status); }; } &&
5967 { ac_try='test -s conftest.$ac_objext'
5968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5969 (eval $ac_try) 2>&5
5970 ac_status=$?
5971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5972 (exit $ac_status); }; }; then
5973 eval "$as_ac_Header=yes"
5974else
5975 echo "$as_me: failed program was:" >&5
5976sed 's/^/| /' conftest.$ac_ext >&5
5977
5978eval "$as_ac_Header=no"
5979fi
5980rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5981fi
5982echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5983echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5984if test `eval echo '${'$as_ac_Header'}'` = yes; then
5985 cat >>confdefs.h <<_ACEOF
5986#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5987_ACEOF
5988
5989fi
5990
5991done
5992
5993
5994
5995for ac_header in dlfcn.h
5996do
5997as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5998echo "$as_me:$LINENO: checking for $ac_header" >&5
5999echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6000if eval "test \"\${$as_ac_Header+set}\" = set"; then
6001 echo $ECHO_N "(cached) $ECHO_C" >&6
6002else
6003 cat >conftest.$ac_ext <<_ACEOF
6004/* confdefs.h. */
6005_ACEOF
6006cat confdefs.h >>conftest.$ac_ext
6007cat >>conftest.$ac_ext <<_ACEOF
6008/* end confdefs.h. */
6009$ac_includes_default
6010
6011#include <$ac_header>
6012_ACEOF
6013rm -f conftest.$ac_objext
6014if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6015 (eval $ac_compile) 2>conftest.er1
6016 ac_status=$?
6017 grep -v '^ *+' conftest.er1 >conftest.err
6018 rm -f conftest.er1
6019 cat conftest.err >&5
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); } &&
6022 { ac_try='test -z "$ac_c_werror_flag"
6023 || test ! -s conftest.err'
6024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6025 (eval $ac_try) 2>&5
6026 ac_status=$?
6027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028 (exit $ac_status); }; } &&
6029 { ac_try='test -s conftest.$ac_objext'
6030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6031 (eval $ac_try) 2>&5
6032 ac_status=$?
6033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034 (exit $ac_status); }; }; then
6035 eval "$as_ac_Header=yes"
6036else
6037 echo "$as_me: failed program was:" >&5
6038sed 's/^/| /' conftest.$ac_ext >&5
6039
6040eval "$as_ac_Header=no"
6041fi
6042rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6043fi
6044echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6045echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6046if test `eval echo '${'$as_ac_Header'}'` = yes; then
6047 cat >>confdefs.h <<_ACEOF
6048#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6049_ACEOF
6050
6051fi
6052
6053done
6054
6055
6056
6057# This can be used to rebuild libtool when needed
6058LIBTOOL_DEPS="$ltmain"
6059
6060# Always use our own libtool.
6061LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087test -z "$LN_S" && LN_S="ln -s"
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102if test -n "${ZSH_VERSION+set}" ; then
6103 setopt NO_GLOB_SUBST
6104fi
6105
6106echo "$as_me:$LINENO: checking for objdir" >&5
6107echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6108if test "${lt_cv_objdir+set}" = set; then
6109 echo $ECHO_N "(cached) $ECHO_C" >&6
6110else
6111 rm -f .libs 2>/dev/null
6112mkdir .libs 2>/dev/null
6113if test -d .libs; then
6114 lt_cv_objdir=.libs
6115else
6116 # MS-DOS does not allow filenames that begin with a dot.
6117 lt_cv_objdir=_libs
6118fi
6119rmdir .libs 2>/dev/null
6120fi
6121echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6122echo "${ECHO_T}$lt_cv_objdir" >&6
6123objdir=$lt_cv_objdir
6124
6125
6126
6127
6128
6129cat >>confdefs.h <<_ACEOF
6130#define LT_OBJDIR "$lt_cv_objdir/"
6131_ACEOF
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149case $host_os in
6150aix3*)
6151 # AIX sometimes has problems with the GCC collect2 program. For some
6152 # reason, if we set the COLLECT_NAMES environment variable, the problems
6153 # vanish in a puff of smoke.
6154 if test "X${COLLECT_NAMES+set}" != Xset; then
6155 COLLECT_NAMES=
6156 export COLLECT_NAMES
6157 fi
6158 ;;
6159esac
6160
6161# Sed substitution that helps us do robust quoting. It backslashifies
6162# metacharacters that are still active within double-quoted strings.
6163sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6164
6165# Same as above, but do not quote variable references.
6166double_quote_subst='s/\(["`\\]\)/\\\1/g'
6167
6168# Sed substitution to delay expansion of an escaped shell variable in a
6169# double_quote_subst'ed string.
6170delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6171
6172# Sed substitution to delay expansion of an escaped single quote.
6173delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6174
6175# Sed substitution to avoid accidental globbing in evaled expressions
6176no_glob_subst='s/\*/\\\*/g'
6177
6178# Global variables:
6179ofile=libtool
6180can_build_shared=yes
6181
6182# All known linkers require a `.a' archive for static linking (except MSVC,
6183# which needs '.lib').
6184libext=a
6185
6186with_gnu_ld="$lt_cv_prog_gnu_ld"
6187
6188old_CC="$CC"
6189old_CFLAGS="$CFLAGS"
6190
6191# Set sane defaults for various variables
6192test -z "$CC" && CC=cc
6193test -z "$LTCC" && LTCC=$CC
6194test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6195test -z "$LD" && LD=ld
6196test -z "$ac_objext" && ac_objext=o
6197
6198for cc_temp in $compiler""; do
6199 case $cc_temp in
6200 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6201 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6202 \-*) ;;
6203 *) break;;
6204 esac
6205done
6206cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6207
6208
6209# Only perform the check for file, if the check method requires it
6210test -z "$MAGIC_CMD" && MAGIC_CMD=file
6211case $deplibs_check_method in
6212file_magic*)
6213 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6214 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6215echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6216if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6217 echo $ECHO_N "(cached) $ECHO_C" >&6
6218else
6219 case $MAGIC_CMD in
6220[\\/*] | ?:[\\/]*)
6221 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6222 ;;
6223*)
6224 lt_save_MAGIC_CMD="$MAGIC_CMD"
6225 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6226 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6227 for ac_dir in $ac_dummy; do
6228 IFS="$lt_save_ifs"
6229 test -z "$ac_dir" && ac_dir=.
6230 if test -f $ac_dir/${ac_tool_prefix}file; then
6231 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6232 if test -n "$file_magic_test_file"; then
6233 case $deplibs_check_method in
6234 "file_magic "*)
6235 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6236 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6237 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6238 $EGREP "$file_magic_regex" > /dev/null; then
6239 :
6240 else
6241 cat <<_LT_EOF 1>&2
6242
6243*** Warning: the command libtool uses to detect shared libraries,
6244*** $file_magic_cmd, produces output that libtool cannot recognize.
6245*** The result is that libtool may fail to recognize shared libraries
6246*** as such. This will affect the creation of libtool libraries that
6247*** depend on shared libraries, but programs linked with such libtool
6248*** libraries will work regardless of this problem. Nevertheless, you
6249*** may want to report the problem to your system manager and/or to
6250*** bug-libtool@gnu.org
6251
6252_LT_EOF
6253 fi ;;
6254 esac
6255 fi
6256 break
6257 fi
6258 done
6259 IFS="$lt_save_ifs"
6260 MAGIC_CMD="$lt_save_MAGIC_CMD"
6261 ;;
6262esac
6263fi
6264
6265MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6266if test -n "$MAGIC_CMD"; then
6267 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6268echo "${ECHO_T}$MAGIC_CMD" >&6
6269else
6270 echo "$as_me:$LINENO: result: no" >&5
6271echo "${ECHO_T}no" >&6
6272fi
6273
6274
6275
6276
6277
6278if test -z "$lt_cv_path_MAGIC_CMD"; then
6279 if test -n "$ac_tool_prefix"; then
6280 echo "$as_me:$LINENO: checking for file" >&5
6281echo $ECHO_N "checking for file... $ECHO_C" >&6
6282if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6283 echo $ECHO_N "(cached) $ECHO_C" >&6
6284else
6285 case $MAGIC_CMD in
6286[\\/*] | ?:[\\/]*)
6287 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6288 ;;
6289*)
6290 lt_save_MAGIC_CMD="$MAGIC_CMD"
6291 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6292 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6293 for ac_dir in $ac_dummy; do
6294 IFS="$lt_save_ifs"
6295 test -z "$ac_dir" && ac_dir=.
6296 if test -f $ac_dir/file; then
6297 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6298 if test -n "$file_magic_test_file"; then
6299 case $deplibs_check_method in
6300 "file_magic "*)
6301 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6302 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6303 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6304 $EGREP "$file_magic_regex" > /dev/null; then
6305 :
6306 else
6307 cat <<_LT_EOF 1>&2
6308
6309*** Warning: the command libtool uses to detect shared libraries,
6310*** $file_magic_cmd, produces output that libtool cannot recognize.
6311*** The result is that libtool may fail to recognize shared libraries
6312*** as such. This will affect the creation of libtool libraries that
6313*** depend on shared libraries, but programs linked with such libtool
6314*** libraries will work regardless of this problem. Nevertheless, you
6315*** may want to report the problem to your system manager and/or to
6316*** bug-libtool@gnu.org
6317
6318_LT_EOF
6319 fi ;;
6320 esac
6321 fi
6322 break
6323 fi
6324 done
6325 IFS="$lt_save_ifs"
6326 MAGIC_CMD="$lt_save_MAGIC_CMD"
6327 ;;
6328esac
6329fi
6330
6331MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6332if test -n "$MAGIC_CMD"; then
6333 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6334echo "${ECHO_T}$MAGIC_CMD" >&6
6335else
6336 echo "$as_me:$LINENO: result: no" >&5
6337echo "${ECHO_T}no" >&6
6338fi
6339
6340
6341 else
6342 MAGIC_CMD=:
6343 fi
6344fi
6345
6346 fi
6347 ;;
6348esac
6349
6350# Use C for the default configuration in the libtool script
6351
6352lt_save_CC="$CC"
6353ac_ext=c
6354ac_cpp='$CPP $CPPFLAGS'
6355ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6356ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6357ac_compiler_gnu=$ac_cv_c_compiler_gnu
6358
6359
6360# Source file extension for C test sources.
6361ac_ext=c
6362
6363# Object file extension for compiled C test sources.
6364objext=o
6365objext=$objext
6366
6367# Code to be used in simple compile tests
6368lt_simple_compile_test_code="int some_variable = 0;"
6369
6370# Code to be used in simple link tests
6371lt_simple_link_test_code='int main(){return(0);}'
6372
6373
6374
6375
6376
6377
6378
6379# If no C compiler was specified, use CC.
6380LTCC=${LTCC-"$CC"}
6381
6382# If no C compiler flags were specified, use CFLAGS.
6383LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6384
6385# Allow CC to be a program name with arguments.
6386compiler=$CC
6387
6388# Save the default compiler, since it gets overwritten when the other
6389# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6390compiler_DEFAULT=$CC
6391
6392# save warnings/boilerplate of simple test code
6393ac_outfile=conftest.$ac_objext
6394echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6395eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6396_lt_compiler_boilerplate=`cat conftest.err`
6397$RM conftest*
6398
6399ac_outfile=conftest.$ac_objext
6400echo "$lt_simple_link_test_code" >conftest.$ac_ext
6401eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6402_lt_linker_boilerplate=`cat conftest.err`
6403$RM conftest*
6404
6405
6406## CAVEAT EMPTOR:
6407## There is no encapsulation within the following macros, do not change
6408## the running order or otherwise move them around unless you know exactly
6409## what you are doing...
6410if test -n "$compiler"; then
6411
6412lt_prog_compiler_no_builtin_flag=
6413
6414if test "$GCC" = yes; then
6415 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6416
6417 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6418echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6419if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6420 echo $ECHO_N "(cached) $ECHO_C" >&6
6421else
6422 lt_cv_prog_compiler_rtti_exceptions=no
6423 ac_outfile=conftest.$ac_objext
6424 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6425 lt_compiler_flag="-fno-rtti -fno-exceptions"
6426 # Insert the option either (1) after the last *FLAGS variable, or
6427 # (2) before a word containing "conftest.", or (3) at the end.
6428 # Note that $ac_compile itself does not contain backslashes and begins
6429 # with a dollar sign (not a hyphen), so the echo should work correctly.
6430 # The option is referenced via a variable to avoid confusing sed.
6431 lt_compile=`echo "$ac_compile" | $SED \
6432 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6433 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6434 -e 's:$: $lt_compiler_flag:'`
5b2c7553 6435 (eval echo "\"\$as_me:6435: $lt_compile\"" >&5)
542f9784 6436 (eval "$lt_compile" 2>conftest.err)
6437 ac_status=$?
6438 cat conftest.err >&5
5b2c7553 6439 echo "$as_me:6439: \$? = $ac_status" >&5
542f9784 6440 if (exit $ac_status) && test -s "$ac_outfile"; then
6441 # The compiler can only warn and ignore the option if not recognized
6442 # So say no if there are warnings other than the usual output.
6443 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6444 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6445 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6446 lt_cv_prog_compiler_rtti_exceptions=yes
6447 fi
6448 fi
6449 $RM conftest*
6450
6451fi
6452echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6453echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6454
6455if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6456 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6457else
6458 :
6459fi
6460
6461fi
6462
6463
6464
6465
6466
6467
6468 lt_prog_compiler_wl=
6469lt_prog_compiler_pic=
6470lt_prog_compiler_static=
6471
6472echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6473echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6474
6475 if test "$GCC" = yes; then
6476 lt_prog_compiler_wl='-Wl,'
6477 lt_prog_compiler_static='-static'
6478
6479 case $host_os in
6480 aix*)
6481 # All AIX code is PIC.
6482 if test "$host_cpu" = ia64; then
6483 # AIX 5 now supports IA64 processor
6484 lt_prog_compiler_static='-Bstatic'
6485 fi
6486 ;;
6487
6488 amigaos*)
6489 if test "$host_cpu" = m68k; then
6490 # FIXME: we need at least 68020 code to build shared libraries, but
6491 # adding the `-m68020' flag to GCC prevents building anything better,
6492 # like `-m68040'.
6493 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6494 fi
6495 ;;
6496
6497 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6498 # PIC is the default for these OSes.
6499 ;;
6500
6501 mingw* | cygwin* | pw32* | os2*)
6502 # This hack is so that the source file can tell whether it is being
6503 # built for inclusion in a dll (and should export symbols for example).
6504 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6505 # (--disable-auto-import) libraries
6506 lt_prog_compiler_pic='-DDLL_EXPORT'
6507 ;;
6508
6509 darwin* | rhapsody*)
6510 # PIC is the default on this platform
6511 # Common symbols not allowed in MH_DYLIB files
6512 lt_prog_compiler_pic='-fno-common'
6513 ;;
6514
6515 hpux*)
6516 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6517 # not for PA HP-UX.
6518 case $host_cpu in
6519 hppa*64*|ia64*)
6520 # +Z the default
6521 ;;
6522 *)
6523 lt_prog_compiler_pic='-fPIC'
6524 ;;
6525 esac
6526 ;;
6527
6528 interix[3-9]*)
6529 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6530 # Instead, we relocate shared libraries at runtime.
6531 ;;
6532
6533 msdosdjgpp*)
6534 # Just because we use GCC doesn't mean we suddenly get shared libraries
6535 # on systems that don't support them.
6536 lt_prog_compiler_can_build_shared=no
6537 enable_shared=no
6538 ;;
6539
6540 *nto* | *qnx*)
6541 # QNX uses GNU C++, but need to define -shared option too, otherwise
6542 # it will coredump.
6543 lt_prog_compiler_pic='-fPIC -shared'
6544 ;;
6545
6546 sysv4*MP*)
6547 if test -d /usr/nec; then
6548 lt_prog_compiler_pic=-Kconform_pic
6549 fi
6550 ;;
6551
6552 *)
6553 lt_prog_compiler_pic='-fPIC'
6554 ;;
6555 esac
6556 else
6557 # PORTME Check for flag to pass linker flags through the system compiler.
6558 case $host_os in
6559 aix*)
6560 lt_prog_compiler_wl='-Wl,'
6561 if test "$host_cpu" = ia64; then
6562 # AIX 5 now supports IA64 processor
6563 lt_prog_compiler_static='-Bstatic'
6564 else
6565 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6566 fi
6567 ;;
6568 darwin*)
6569 # PIC is the default on this platform
6570 # Common symbols not allowed in MH_DYLIB files
6571 case $cc_basename in
6572 xlc*)
6573 lt_prog_compiler_pic='-qnocommon'
6574 lt_prog_compiler_wl='-Wl,'
6575 ;;
6576 esac
6577 ;;
6578
6579 mingw* | cygwin* | pw32* | os2*)
6580 # This hack is so that the source file can tell whether it is being
6581 # built for inclusion in a dll (and should export symbols for example).
6582 lt_prog_compiler_pic='-DDLL_EXPORT'
6583 ;;
6584
6585 hpux9* | hpux10* | hpux11*)
6586 lt_prog_compiler_wl='-Wl,'
6587 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6588 # not for PA HP-UX.
6589 case $host_cpu in
6590 hppa*64*|ia64*)
6591 # +Z the default
6592 ;;
6593 *)
6594 lt_prog_compiler_pic='+Z'
6595 ;;
6596 esac
6597 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6598 lt_prog_compiler_static='${wl}-a ${wl}archive'
6599 ;;
6600
6601 irix5* | irix6* | nonstopux*)
6602 lt_prog_compiler_wl='-Wl,'
6603 # PIC (with -KPIC) is the default.
6604 lt_prog_compiler_static='-non_shared'
6605 ;;
6606
6607 linux* | k*bsd*-gnu)
6608 case $cc_basename in
6609 icc* | ecc*)
6610 lt_prog_compiler_wl='-Wl,'
6611 lt_prog_compiler_pic='-KPIC'
6612 lt_prog_compiler_static='-static'
6613 ;;
6614 pgcc* | pgf77* | pgf90* | pgf95*)
6615 # Portland Group compilers (*not* the Pentium gcc compiler,
6616 # which looks to be a dead project)
6617 lt_prog_compiler_wl='-Wl,'
6618 lt_prog_compiler_pic='-fpic'
6619 lt_prog_compiler_static='-Bstatic'
6620 ;;
6621 ccc*)
6622 lt_prog_compiler_wl='-Wl,'
6623 # All Alpha code is PIC.
6624 lt_prog_compiler_static='-non_shared'
6625 ;;
6626 *)
6627 case `$CC -V 2>&1 | sed 5q` in
6628 *Sun\ C*)
6629 # Sun C 5.9
6630 lt_prog_compiler_pic='-KPIC'
6631 lt_prog_compiler_static='-Bstatic'
6632 lt_prog_compiler_wl='-Wl,'
6633 ;;
6634 *Sun\ F*)
6635 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6636 lt_prog_compiler_pic='-KPIC'
6637 lt_prog_compiler_static='-Bstatic'
6638 lt_prog_compiler_wl=''
6639 ;;
6640 esac
6641 ;;
6642 esac
6643 ;;
6644
6645 newsos6)
6646 lt_prog_compiler_pic='-KPIC'
6647 lt_prog_compiler_static='-Bstatic'
6648 ;;
6649
6650 *nto* | *qnx*)
6651 # QNX uses GNU C++, but need to define -shared option too, otherwise
6652 # it will coredump.
6653 lt_prog_compiler_pic='-fPIC -shared'
6654 ;;
6655
6656 osf3* | osf4* | osf5*)
6657 lt_prog_compiler_wl='-Wl,'
6658 # All OSF/1 code is PIC.
6659 lt_prog_compiler_static='-non_shared'
6660 ;;
6661
6662 rdos*)
6663 lt_prog_compiler_static='-non_shared'
6664 ;;
6665
6666 solaris*)
6667 lt_prog_compiler_pic='-KPIC'
6668 lt_prog_compiler_static='-Bstatic'
6669 case $cc_basename in
6670 f77* | f90* | f95*)
6671 lt_prog_compiler_wl='-Qoption ld ';;
6672 *)
6673 lt_prog_compiler_wl='-Wl,';;
6674 esac
6675 ;;
6676
6677 sunos4*)
6678 lt_prog_compiler_wl='-Qoption ld '
6679 lt_prog_compiler_pic='-PIC'
6680 lt_prog_compiler_static='-Bstatic'
6681 ;;
6682
6683 sysv4 | sysv4.2uw2* | sysv4.3*)
6684 lt_prog_compiler_wl='-Wl,'
6685 lt_prog_compiler_pic='-KPIC'
6686 lt_prog_compiler_static='-Bstatic'
6687 ;;
6688
6689 sysv4*MP*)
6690 if test -d /usr/nec ;then
6691 lt_prog_compiler_pic='-Kconform_pic'
6692 lt_prog_compiler_static='-Bstatic'
6693 fi
6694 ;;
6695
6696 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6697 lt_prog_compiler_wl='-Wl,'
6698 lt_prog_compiler_pic='-KPIC'
6699 lt_prog_compiler_static='-Bstatic'
6700 ;;
6701
6702 unicos*)
6703 lt_prog_compiler_wl='-Wl,'
6704 lt_prog_compiler_can_build_shared=no
6705 ;;
6706
6707 uts4*)
6708 lt_prog_compiler_pic='-pic'
6709 lt_prog_compiler_static='-Bstatic'
6710 ;;
6711
6712 *)
6713 lt_prog_compiler_can_build_shared=no
6714 ;;
6715 esac
6716 fi
6717
6718case $host_os in
6719 # For platforms which do not support PIC, -DPIC is meaningless:
6720 *djgpp*)
6721 lt_prog_compiler_pic=
6722 ;;
6723 *)
6724 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6725 ;;
6726esac
6727echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6728echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6729
6730
6731
6732
6733
6734
6735#
6736# Check to make sure the PIC flag actually works.
6737#
6738if test -n "$lt_prog_compiler_pic"; then
6739 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6740echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6741if test "${lt_prog_compiler_pic_works+set}" = set; then
6742 echo $ECHO_N "(cached) $ECHO_C" >&6
6743else
6744 lt_prog_compiler_pic_works=no
6745 ac_outfile=conftest.$ac_objext
6746 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6747 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6748 # Insert the option either (1) after the last *FLAGS variable, or
6749 # (2) before a word containing "conftest.", or (3) at the end.
6750 # Note that $ac_compile itself does not contain backslashes and begins
6751 # with a dollar sign (not a hyphen), so the echo should work correctly.
6752 # The option is referenced via a variable to avoid confusing sed.
6753 lt_compile=`echo "$ac_compile" | $SED \
6754 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6755 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6756 -e 's:$: $lt_compiler_flag:'`
5b2c7553 6757 (eval echo "\"\$as_me:6757: $lt_compile\"" >&5)
542f9784 6758 (eval "$lt_compile" 2>conftest.err)
6759 ac_status=$?
6760 cat conftest.err >&5
5b2c7553 6761 echo "$as_me:6761: \$? = $ac_status" >&5
542f9784 6762 if (exit $ac_status) && test -s "$ac_outfile"; then
6763 # The compiler can only warn and ignore the option if not recognized
6764 # So say no if there are warnings other than the usual output.
6765 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6766 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6767 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6768 lt_prog_compiler_pic_works=yes
6769 fi
6770 fi
6771 $RM conftest*
6772
6773fi
6774echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6775echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6776
6777if test x"$lt_prog_compiler_pic_works" = xyes; then
6778 case $lt_prog_compiler_pic in
6779 "" | " "*) ;;
6780 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6781 esac
6782else
6783 lt_prog_compiler_pic=
6784 lt_prog_compiler_can_build_shared=no
6785fi
6786
6787fi
6788
6789
6790
6791
6792
6793
6794#
6795# Check to make sure the static flag actually works.
6796#
6797wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6798echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6799echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6800if test "${lt_prog_compiler_static_works+set}" = set; then
6801 echo $ECHO_N "(cached) $ECHO_C" >&6
6802else
6803 lt_prog_compiler_static_works=no
6804 save_LDFLAGS="$LDFLAGS"
6805 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6806 echo "$lt_simple_link_test_code" > conftest.$ac_ext
6807 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6808 # The linker can only warn and ignore the option if not recognized
6809 # So say no if there are warnings
6810 if test -s conftest.err; then
6811 # Append any errors to the config.log.
6812 cat conftest.err 1>&5
6813 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6814 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6815 if diff conftest.exp conftest.er2 >/dev/null; then
6816 lt_prog_compiler_static_works=yes
6817 fi
6818 else
6819 lt_prog_compiler_static_works=yes
6820 fi
6821 fi
6822 $RM conftest*
6823 LDFLAGS="$save_LDFLAGS"
6824
6825fi
6826echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6827echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6828
6829if test x"$lt_prog_compiler_static_works" = xyes; then
6830 :
6831else
6832 lt_prog_compiler_static=
6833fi
6834
6835
6836
6837
6838
6839
6840
6841 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6842echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6843if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6844 echo $ECHO_N "(cached) $ECHO_C" >&6
6845else
6846 lt_cv_prog_compiler_c_o=no
6847 $RM -r conftest 2>/dev/null
6848 mkdir conftest
6849 cd conftest
6850 mkdir out
6851 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6852
6853 lt_compiler_flag="-o out/conftest2.$ac_objext"
6854 # Insert the option either (1) after the last *FLAGS variable, or
6855 # (2) before a word containing "conftest.", or (3) at the end.
6856 # Note that $ac_compile itself does not contain backslashes and begins
6857 # with a dollar sign (not a hyphen), so the echo should work correctly.
6858 lt_compile=`echo "$ac_compile" | $SED \
6859 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6860 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6861 -e 's:$: $lt_compiler_flag:'`
5b2c7553 6862 (eval echo "\"\$as_me:6862: $lt_compile\"" >&5)
542f9784 6863 (eval "$lt_compile" 2>out/conftest.err)
6864 ac_status=$?
6865 cat out/conftest.err >&5
5b2c7553 6866 echo "$as_me:6866: \$? = $ac_status" >&5
542f9784 6867 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6868 then
6869 # The compiler can only warn and ignore the option if not recognized
6870 # So say no if there are warnings
6871 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6872 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6873 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6874 lt_cv_prog_compiler_c_o=yes
6875 fi
6876 fi
6877 chmod u+w . 2>&5
6878 $RM conftest*
6879 # SGI C++ compiler will create directory out/ii_files/ for
6880 # template instantiation
6881 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6882 $RM out/* && rmdir out
6883 cd ..
6884 $RM -r conftest
6885 $RM conftest*
6886
6887fi
6888echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6889echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6890
6891
6892
6893
6894
6895
6896 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6897echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6898if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6899 echo $ECHO_N "(cached) $ECHO_C" >&6
6900else
6901 lt_cv_prog_compiler_c_o=no
6902 $RM -r conftest 2>/dev/null
6903 mkdir conftest
6904 cd conftest
6905 mkdir out
6906 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6907
6908 lt_compiler_flag="-o out/conftest2.$ac_objext"
6909 # Insert the option either (1) after the last *FLAGS variable, or
6910 # (2) before a word containing "conftest.", or (3) at the end.
6911 # Note that $ac_compile itself does not contain backslashes and begins
6912 # with a dollar sign (not a hyphen), so the echo should work correctly.
6913 lt_compile=`echo "$ac_compile" | $SED \
6914 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6915 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6916 -e 's:$: $lt_compiler_flag:'`
5b2c7553 6917 (eval echo "\"\$as_me:6917: $lt_compile\"" >&5)
542f9784 6918 (eval "$lt_compile" 2>out/conftest.err)
6919 ac_status=$?
6920 cat out/conftest.err >&5
5b2c7553 6921 echo "$as_me:6921: \$? = $ac_status" >&5
542f9784 6922 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6923 then
6924 # The compiler can only warn and ignore the option if not recognized
6925 # So say no if there are warnings
6926 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6927 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6928 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6929 lt_cv_prog_compiler_c_o=yes
6930 fi
6931 fi
6932 chmod u+w . 2>&5
6933 $RM conftest*
6934 # SGI C++ compiler will create directory out/ii_files/ for
6935 # template instantiation
6936 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6937 $RM out/* && rmdir out
6938 cd ..
6939 $RM -r conftest
6940 $RM conftest*
6941
6942fi
6943echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6944echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6945
6946
6947
6948
6949hard_links="nottested"
6950if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6951 # do not overwrite the value of need_locks provided by the user
6952 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6953echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6954 hard_links=yes
6955 $RM conftest*
6956 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6957 touch conftest.a
6958 ln conftest.a conftest.b 2>&5 || hard_links=no
6959 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6960 echo "$as_me:$LINENO: result: $hard_links" >&5
6961echo "${ECHO_T}$hard_links" >&6
6962 if test "$hard_links" = no; then
6963 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6964echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6965 need_locks=warn
6966 fi
6967else
6968 need_locks=no
6969fi
6970
6971
6972
6973
6974
6975
6976 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6977echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6978
6979 runpath_var=
6980 allow_undefined_flag=
6981 always_export_symbols=no
6982 archive_cmds=
6983 archive_expsym_cmds=
6984 compiler_needs_object=no
6985 enable_shared_with_static_runtimes=no
6986 export_dynamic_flag_spec=
6987 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6988 hardcode_automatic=no
6989 hardcode_direct=no
6990 hardcode_direct_absolute=no
6991 hardcode_libdir_flag_spec=
6992 hardcode_libdir_flag_spec_ld=
6993 hardcode_libdir_separator=
6994 hardcode_minus_L=no
6995 hardcode_shlibpath_var=unsupported
6996 inherit_rpath=no
6997 link_all_deplibs=unknown
6998 module_cmds=
6999 module_expsym_cmds=
7000 old_archive_from_new_cmds=
7001 old_archive_from_expsyms_cmds=
7002 thread_safe_flag_spec=
7003 whole_archive_flag_spec=
7004 # include_expsyms should be a list of space-separated symbols to be *always*
7005 # included in the symbol list
7006 include_expsyms=
7007 # exclude_expsyms can be an extended regexp of symbols to exclude
7008 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7009 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7010 # as well as any symbol that contains `d'.
7011 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7012 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7013 # platforms (ab)use it in PIC code, but their linkers get confused if
7014 # the symbol is explicitly referenced. Since portable code cannot
7015 # rely on this symbol name, it's probably fine to never include it in
7016 # preloaded symbol tables.
7017 extract_expsyms_cmds=
7018
7019 case $host_os in
7020 cygwin* | mingw* | pw32*)
7021 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7022 # When not using gcc, we currently assume that we are using
7023 # Microsoft Visual C++.
7024 if test "$GCC" != yes; then
7025 with_gnu_ld=no
7026 fi
7027 ;;
7028 interix*)
7029 # we just hope/assume this is gcc and not c89 (= MSVC++)
7030 with_gnu_ld=yes
7031 ;;
7032 openbsd*)
7033 with_gnu_ld=no
7034 ;;
7035 esac
7036
7037 ld_shlibs=yes
7038 if test "$with_gnu_ld" = yes; then
7039 # If archive_cmds runs LD, not CC, wlarc should be empty
7040 wlarc='${wl}'
7041
7042 # Set some defaults for GNU ld with shared library support. These
7043 # are reset later if shared libraries are not supported. Putting them
7044 # here allows them to be overridden if necessary.
7045 runpath_var=LD_RUN_PATH
7046 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7047 export_dynamic_flag_spec='${wl}--export-dynamic'
7048 # ancient GNU ld didn't support --whole-archive et. al.
7049 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7050 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7051 else
7052 whole_archive_flag_spec=
7053 fi
7054 supports_anon_versioning=no
7055 case `$LD -v 2>&1` in
7056 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7057 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7058 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7059 *\ 2.11.*) ;; # other 2.11 versions
7060 *) supports_anon_versioning=yes ;;
7061 esac
7062
7063 # See if GNU ld supports shared libraries.
7064 case $host_os in
c8db569e 7065 aix[3-9]*)
542f9784 7066 # On AIX/PPC, the GNU linker is very broken
7067 if test "$host_cpu" != ia64; then
7068 ld_shlibs=no
7069 cat <<_LT_EOF 1>&2
7070
7071*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7072*** to be unable to reliably create shared libraries on AIX.
7073*** Therefore, libtool is disabling shared libraries support. If you
7074*** really care for shared libraries, you may want to modify your PATH
7075*** so that a non-GNU linker is found, and then restart.
7076
7077_LT_EOF
7078 fi
7079 ;;
7080
7081 amigaos*)
7082 if test "$host_cpu" = m68k; then
7083 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)'
7084 hardcode_libdir_flag_spec='-L$libdir'
7085 hardcode_minus_L=yes
7086 fi
7087
7088 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7089 # that the semantics of dynamic libraries on AmigaOS, at least up
7090 # to version 4, is to share data among multiple programs linked
7091 # with the same dynamic library. Since this doesn't match the
7092 # behavior of shared libraries on other platforms, we can't use
7093 # them.
7094 ld_shlibs=no
7095 ;;
7096
7097 beos*)
7098 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7099 allow_undefined_flag=unsupported
7100 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7101 # support --undefined. This deserves some investigation. FIXME
7102 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7103 else
7104 ld_shlibs=no
7105 fi
7106 ;;
7107
7108 cygwin* | mingw* | pw32*)
7109 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7110 # as there is no search path for DLLs.
7111 hardcode_libdir_flag_spec='-L$libdir'
7112 allow_undefined_flag=unsupported
7113 always_export_symbols=no
7114 enable_shared_with_static_runtimes=yes
7115 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7116
7117 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7118 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7119 # If the export-symbols file already is a .def file (1st line
7120 # is EXPORTS), use it as is; otherwise, prepend...
7121 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7122 cp $export_symbols $output_objdir/$soname.def;
7123 else
7124 echo EXPORTS > $output_objdir/$soname.def;
7125 cat $export_symbols >> $output_objdir/$soname.def;
7126 fi~
7127 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7128 else
7129 ld_shlibs=no
7130 fi
7131 ;;
7132
7133 interix[3-9]*)
7134 hardcode_direct=no
7135 hardcode_shlibpath_var=no
7136 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7137 export_dynamic_flag_spec='${wl}-E'
7138 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7139 # Instead, shared libraries are loaded at an image base (0x10000000 by
7140 # default) and relocated if they conflict, which is a slow very memory
7141 # consuming and fragmenting process. To avoid this, we pick a random,
7142 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7143 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7144 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7145 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'
7146 ;;
7147
7148 gnu* | linux* | tpf* | k*bsd*-gnu)
7149 tmp_diet=no
7150 if test "$host_os" = linux-dietlibc; then
7151 case $cc_basename in
7152 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7153 esac
7154 fi
7155 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7156 && test "$tmp_diet" = no
7157 then
7158 tmp_addflag=
7159 case $cc_basename,$host_cpu in
7160 pgcc*) # Portland Group C compiler
7161 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'
7162 tmp_addflag=' $pic_flag'
7163 ;;
7164 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7165 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'
7166 tmp_addflag=' $pic_flag -Mnomain' ;;
7167 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7168 tmp_addflag=' -i_dynamic' ;;
7169 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7170 tmp_addflag=' -i_dynamic -nofor_main' ;;
7171 ifc* | ifort*) # Intel Fortran compiler
7172 tmp_addflag=' -nofor_main' ;;
7173 esac
7174 case `$CC -V 2>&1 | sed 5q` in
7175 *Sun\ C*) # Sun C 5.9
7176 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'
7177 compiler_needs_object=yes
7178 tmp_sharedflag='-G' ;;
7179 *Sun\ F*) # Sun Fortran 8.3
7180 tmp_sharedflag='-G' ;;
7181 *)
7182 tmp_sharedflag='-shared' ;;
7183 esac
7184 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7185
7186 if test "x$supports_anon_versioning" = xyes; then
7187 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7188 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7189 echo "local: *; };" >> $output_objdir/$libname.ver~
7190 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7191 fi
7192 else
7193 ld_shlibs=no
7194 fi
7195 ;;
7196
7197 netbsd*)
7198 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7199 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7200 wlarc=
7201 else
7202 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7203 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7204 fi
7205 ;;
7206
7207 solaris*)
7208 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7209 ld_shlibs=no
7210 cat <<_LT_EOF 1>&2
7211
7212*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7213*** create shared libraries on Solaris systems. Therefore, libtool
7214*** is disabling shared libraries support. We urge you to upgrade GNU
7215*** binutils to release 2.9.1 or newer. Another option is to modify
7216*** your PATH or compiler configuration so that the native linker is
7217*** used, and then restart.
7218
7219_LT_EOF
7220 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7221 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7222 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7223 else
7224 ld_shlibs=no
7225 fi
7226 ;;
7227
7228 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7229 case `$LD -v 2>&1` in
7230 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7231 ld_shlibs=no
7232 cat <<_LT_EOF 1>&2
7233
7234*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7235*** reliably create shared libraries on SCO systems. Therefore, libtool
7236*** is disabling shared libraries support. We urge you to upgrade GNU
7237*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7238*** your PATH or compiler configuration so that the native linker is
7239*** used, and then restart.
7240
7241_LT_EOF
7242 ;;
7243 *)
7244 # For security reasons, it is highly recommended that you always
7245 # use absolute paths for naming shared libraries, and exclude the
7246 # DT_RUNPATH tag from executables and libraries. But doing so
7247 # requires that you compile everything twice, which is a pain.
7248 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7249 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7250 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7251 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7252 else
7253 ld_shlibs=no
7254 fi
7255 ;;
7256 esac
7257 ;;
7258
7259 sunos4*)
7260 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7261 wlarc=
7262 hardcode_direct=yes
7263 hardcode_shlibpath_var=no
7264 ;;
7265
7266 *)
7267 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7268 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7269 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7270 else
7271 ld_shlibs=no
7272 fi
7273 ;;
7274 esac
7275
7276 if test "$ld_shlibs" = no; then
7277 runpath_var=
7278 hardcode_libdir_flag_spec=
7279 export_dynamic_flag_spec=
7280 whole_archive_flag_spec=
7281 fi
7282 else
7283 # PORTME fill in a description of your system's linker (not GNU ld)
7284 case $host_os in
7285 aix3*)
7286 allow_undefined_flag=unsupported
7287 always_export_symbols=yes
7288 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'
7289 # Note: this linker hardcodes the directories in LIBPATH if there
7290 # are no directories specified by -L.
7291 hardcode_minus_L=yes
7292 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7293 # Neither direct hardcoding nor static linking is supported with a
7294 # broken collect2.
7295 hardcode_direct=unsupported
7296 fi
7297 ;;
7298
c8db569e 7299 aix[4-9]*)
542f9784 7300 if test "$host_cpu" = ia64; then
7301 # On IA64, the linker does run time linking by default, so we don't
7302 # have to do anything special.
7303 aix_use_runtimelinking=no
7304 exp_sym_flag='-Bexport'
7305 no_entry_flag=""
7306 else
7307 # If we're using GNU nm, then we don't want the "-C" option.
7308 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7309 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7310 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'
7311 else
7312 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'
7313 fi
7314 aix_use_runtimelinking=no
7315
7316 # Test if we are trying to use run time linking or normal
7317 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7318 # need to do runtime linking.
c8db569e 7319 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
542f9784 7320 for ld_flag in $LDFLAGS; do
7321 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7322 aix_use_runtimelinking=yes
7323 break
7324 fi
7325 done
7326 ;;
7327 esac
7328
7329 exp_sym_flag='-bexport'
7330 no_entry_flag='-bnoentry'
7331 fi
7332
7333 # When large executables or shared objects are built, AIX ld can
7334 # have problems creating the table of contents. If linking a library
7335 # or program results in "error TOC overflow" add -mminimal-toc to
7336 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7337 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7338
7339 archive_cmds=''
7340 hardcode_direct=yes
7341 hardcode_direct_absolute=yes
7342 hardcode_libdir_separator=':'
7343 link_all_deplibs=yes
7344 file_list_spec='${wl}-f,'
7345
7346 if test "$GCC" = yes; then
7347 case $host_os in aix4.[012]|aix4.[012].*)
7348 # We only want to do this on AIX 4.2 and lower, the check
7349 # below for broken collect2 doesn't work under 4.3+
7350 collect2name=`${CC} -print-prog-name=collect2`
7351 if test -f "$collect2name" &&
7352 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7353 then
7354 # We have reworked collect2
7355 :
7356 else
7357 # We have old collect2
7358 hardcode_direct=unsupported
7359 # It fails to find uninstalled libraries when the uninstalled
7360 # path is not listed in the libpath. Setting hardcode_minus_L
7361 # to unsupported forces relinking
7362 hardcode_minus_L=yes
7363 hardcode_libdir_flag_spec='-L$libdir'
7364 hardcode_libdir_separator=
7365 fi
7366 ;;
7367 esac
7368 shared_flag='-shared'
7369 if test "$aix_use_runtimelinking" = yes; then
7370 shared_flag="$shared_flag "'${wl}-G'
7371 fi
7372 else
7373 # not using gcc
7374 if test "$host_cpu" = ia64; then
7375 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7376 # chokes on -Wl,-G. The following line is correct:
7377 shared_flag='-G'
7378 else
7379 if test "$aix_use_runtimelinking" = yes; then
7380 shared_flag='${wl}-G'
7381 else
7382 shared_flag='${wl}-bM:SRE'
7383 fi
7384 fi
7385 fi
7386
7387 # It seems that -bexpall does not export symbols beginning with
7388 # underscore (_), so it is better to generate a list of symbols to export.
7389 always_export_symbols=yes
7390 if test "$aix_use_runtimelinking" = yes; then
7391 # Warning - without using the other runtime loading flags (-brtl),
7392 # -berok will link without error, but may produce a broken library.
7393 allow_undefined_flag='-berok'
7394 # Determine the default libpath from the value encoded in an
7395 # empty executable.
7396 cat >conftest.$ac_ext <<_ACEOF
7397/* confdefs.h. */
7398_ACEOF
7399cat confdefs.h >>conftest.$ac_ext
7400cat >>conftest.$ac_ext <<_ACEOF
7401/* end confdefs.h. */
7402
7403int
7404main ()
7405{
7406
7407 ;
7408 return 0;
7409}
7410_ACEOF
7411rm -f conftest.$ac_objext conftest$ac_exeext
7412if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7413 (eval $ac_link) 2>conftest.er1
7414 ac_status=$?
7415 grep -v '^ *+' conftest.er1 >conftest.err
7416 rm -f conftest.er1
7417 cat conftest.err >&5
7418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419 (exit $ac_status); } &&
7420 { ac_try='test -z "$ac_c_werror_flag"
7421 || test ! -s conftest.err'
7422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7423 (eval $ac_try) 2>&5
7424 ac_status=$?
7425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7426 (exit $ac_status); }; } &&
7427 { ac_try='test -s conftest$ac_exeext'
7428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7429 (eval $ac_try) 2>&5
7430 ac_status=$?
7431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7432 (exit $ac_status); }; }; then
7433
7434lt_aix_libpath_sed='
7435 /Import File Strings/,/^$/ {
7436 /^0/ {
7437 s/^0 *\(.*\)$/\1/
7438 p
7439 }
7440 }'
7441aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7442# Check for a 64-bit object if we didn't find anything.
7443if test -z "$aix_libpath"; then
7444 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7445fi
7446else
7447 echo "$as_me: failed program was:" >&5
7448sed 's/^/| /' conftest.$ac_ext >&5
7449
7450fi
7451rm -f conftest.err conftest.$ac_objext \
7452 conftest$ac_exeext conftest.$ac_ext
7453if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7454
7455 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7456 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"
7457 else
7458 if test "$host_cpu" = ia64; then
7459 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7460 allow_undefined_flag="-z nodefs"
7461 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"
7462 else
7463 # Determine the default libpath from the value encoded in an
7464 # empty executable.
7465 cat >conftest.$ac_ext <<_ACEOF
7466/* confdefs.h. */
7467_ACEOF
7468cat confdefs.h >>conftest.$ac_ext
7469cat >>conftest.$ac_ext <<_ACEOF
7470/* end confdefs.h. */
7471
7472int
7473main ()
7474{
7475
7476 ;
7477 return 0;
7478}
7479_ACEOF
7480rm -f conftest.$ac_objext conftest$ac_exeext
7481if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7482 (eval $ac_link) 2>conftest.er1
7483 ac_status=$?
7484 grep -v '^ *+' conftest.er1 >conftest.err
7485 rm -f conftest.er1
7486 cat conftest.err >&5
7487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7488 (exit $ac_status); } &&
7489 { ac_try='test -z "$ac_c_werror_flag"
7490 || test ! -s conftest.err'
7491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7492 (eval $ac_try) 2>&5
7493 ac_status=$?
7494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7495 (exit $ac_status); }; } &&
7496 { ac_try='test -s conftest$ac_exeext'
7497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7498 (eval $ac_try) 2>&5
7499 ac_status=$?
7500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7501 (exit $ac_status); }; }; then
7502
7503lt_aix_libpath_sed='
7504 /Import File Strings/,/^$/ {
7505 /^0/ {
7506 s/^0 *\(.*\)$/\1/
7507 p
7508 }
7509 }'
7510aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7511# Check for a 64-bit object if we didn't find anything.
7512if test -z "$aix_libpath"; then
7513 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7514fi
7515else
7516 echo "$as_me: failed program was:" >&5
7517sed 's/^/| /' conftest.$ac_ext >&5
7518
7519fi
7520rm -f conftest.err conftest.$ac_objext \
7521 conftest$ac_exeext conftest.$ac_ext
7522if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7523
7524 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7525 # Warning - without using the other run time loading flags,
7526 # -berok will link without error, but may produce a broken library.
7527 no_undefined_flag=' ${wl}-bernotok'
7528 allow_undefined_flag=' ${wl}-berok'
7529 # Exported symbols can be pulled into shared objects from archives
7530 whole_archive_flag_spec='$convenience'
7531 archive_cmds_need_lc=yes
7532 # This is similar to how AIX traditionally builds its shared libraries.
7533 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'
7534 fi
7535 fi
7536 ;;
7537
7538 amigaos*)
7539 if test "$host_cpu" = m68k; then
7540 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)'
7541 hardcode_libdir_flag_spec='-L$libdir'
7542 hardcode_minus_L=yes
7543 fi
7544 # see comment about different semantics on the GNU ld section
7545 ld_shlibs=no
7546 ;;
7547
7548 bsdi[45]*)
7549 export_dynamic_flag_spec=-rdynamic
7550 ;;
7551
7552 cygwin* | mingw* | pw32*)
7553 # When not using gcc, we currently assume that we are using
7554 # Microsoft Visual C++.
7555 # hardcode_libdir_flag_spec is actually meaningless, as there is
7556 # no search path for DLLs.
7557 hardcode_libdir_flag_spec=' '
7558 allow_undefined_flag=unsupported
7559 # Tell ltmain to make .lib files, not .a files.
7560 libext=lib
7561 # Tell ltmain to make .dll files, not .so files.
7562 shrext_cmds=".dll"
7563 # FIXME: Setting linknames here is a bad hack.
7564 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7565 # The linker will automatically build a .lib file if we build a DLL.
7566 old_archive_from_new_cmds='true'
7567 # FIXME: Should let the user specify the lib program.
7568 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7569 fix_srcfile_path='`cygpath -w "$srcfile"`'
7570 enable_shared_with_static_runtimes=yes
7571 ;;
7572
7573 darwin* | rhapsody*)
7574 case $host_os in
7575 rhapsody* | darwin1.[012])
7576 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7577 ;;
7578 *) # Darwin 1.3 on
7579 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7580 10.[012])
7581 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7582 ;;
7583 10.*)
7584 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7585 ;;
7586 esac
7587 ;;
7588 esac
7589 archive_cmds_need_lc=no
7590 hardcode_direct=no
7591 hardcode_automatic=yes
7592 hardcode_shlibpath_var=unsupported
7593 whole_archive_flag_spec=''
7594 link_all_deplibs=yes
7595 if test "$GCC" = yes ; then
7596 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7597 echo $ECHO_N "(cached) $ECHO_C" >&6
7598else
7599 lt_cv_apple_cc_single_mod=no
7600 if test -z "${LT_MULTI_MODULE}"; then
7601 # By default we will add the -single_module flag. You can override
7602 # by either setting the environment variable LT_MULTI_MODULE
7603 # non-empty at configure time, or by adding -multi-module to the
7604 # link flags.
7605 echo "int foo(void){return 1;}" > conftest.c
7606 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7607 -dynamiclib ${wl}-single_module conftest.c
7608 if test -f libconftest.dylib; then
7609 lt_cv_apple_cc_single_mod=yes
7610 rm libconftest.dylib
7611 fi
7612 rm conftest.$ac_ext
7613 fi
7614fi
7615
7616 output_verbose_link_cmd=echo
7617 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
7618 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7619 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7620 else
7621 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7622 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7623 fi
7624 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7625 module_expsym_cmds='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7626 else
7627 case $cc_basename in
7628 xlc*)
7629 output_verbose_link_cmd=echo
7630 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
7631 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7632 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7633 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7634 module_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7635 ;;
7636 *)
7637 ld_shlibs=no
7638 ;;
7639 esac
7640 fi
7641 ;;
7642
7643 dgux*)
7644 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7645 hardcode_libdir_flag_spec='-L$libdir'
7646 hardcode_shlibpath_var=no
7647 ;;
7648
7649 freebsd1*)
7650 ld_shlibs=no
7651 ;;
7652
7653 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7654 # support. Future versions do this automatically, but an explicit c++rt0.o
7655 # does not break anything, and helps significantly (at the cost of a little
7656 # extra space).
7657 freebsd2.2*)
7658 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7659 hardcode_libdir_flag_spec='-R$libdir'
7660 hardcode_direct=yes
7661 hardcode_shlibpath_var=no
7662 ;;
7663
7664 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7665 freebsd2*)
7666 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7667 hardcode_direct=yes
7668 hardcode_minus_L=yes
7669 hardcode_shlibpath_var=no
7670 ;;
7671
7672 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7673 freebsd* | dragonfly*)
7674 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7675 hardcode_libdir_flag_spec='-R$libdir'
7676 hardcode_direct=yes
7677 hardcode_shlibpath_var=no
7678 ;;
7679
7680 hpux9*)
7681 if test "$GCC" = yes; then
7682 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'
7683 else
7684 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'
7685 fi
7686 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7687 hardcode_libdir_separator=:
7688 hardcode_direct=yes
7689
7690 # hardcode_minus_L: Not really in the search PATH,
7691 # but as the default location of the library.
7692 hardcode_minus_L=yes
7693 export_dynamic_flag_spec='${wl}-E'
7694 ;;
7695
7696 hpux10*)
7697 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7698 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7699 else
7700 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7701 fi
7702 if test "$with_gnu_ld" = no; then
7703 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7704 hardcode_libdir_flag_spec_ld='+b $libdir'
7705 hardcode_libdir_separator=:
7706 hardcode_direct=yes
7707 hardcode_direct_absolute=yes
7708 export_dynamic_flag_spec='${wl}-E'
7709 # hardcode_minus_L: Not really in the search PATH,
7710 # but as the default location of the library.
7711 hardcode_minus_L=yes
7712 fi
7713 ;;
7714
7715 hpux11*)
7716 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7717 case $host_cpu in
7718 hppa*64*)
7719 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7720 ;;
7721 ia64*)
7722 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7723 ;;
7724 *)
7725 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7726 ;;
7727 esac
7728 else
7729 case $host_cpu in
7730 hppa*64*)
7731 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7732 ;;
7733 ia64*)
7734 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7735 ;;
7736 *)
7737 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7738 ;;
7739 esac
7740 fi
7741 if test "$with_gnu_ld" = no; then
7742 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7743 hardcode_libdir_separator=:
7744
7745 case $host_cpu in
7746 hppa*64*|ia64*)
7747 hardcode_direct=no
7748 hardcode_shlibpath_var=no
7749 ;;
7750 *)
7751 hardcode_direct=yes
7752 hardcode_direct_absolute=yes
7753 export_dynamic_flag_spec='${wl}-E'
7754
7755 # hardcode_minus_L: Not really in the search PATH,
7756 # but as the default location of the library.
7757 hardcode_minus_L=yes
7758 ;;
7759 esac
7760 fi
7761 ;;
7762
7763 irix5* | irix6* | nonstopux*)
7764 if test "$GCC" = yes; then
7765 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'
7766 # Try to use the -exported_symbol ld option, if it does not
7767 # work, assume that -exports_file does not work either and
7768 # implicitly export all symbols.
7769 save_LDFLAGS="$LDFLAGS"
7770 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
7771 cat >conftest.$ac_ext <<_ACEOF
7772int foo(void) {}
7773_ACEOF
7774rm -f conftest.$ac_objext conftest$ac_exeext
7775if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7776 (eval $ac_link) 2>conftest.er1
7777 ac_status=$?
7778 grep -v '^ *+' conftest.er1 >conftest.err
7779 rm -f conftest.er1
7780 cat conftest.err >&5
7781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7782 (exit $ac_status); } &&
7783 { ac_try='test -z "$ac_c_werror_flag"
7784 || test ! -s conftest.err'
7785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7786 (eval $ac_try) 2>&5
7787 ac_status=$?
7788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7789 (exit $ac_status); }; } &&
7790 { ac_try='test -s conftest$ac_exeext'
7791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7792 (eval $ac_try) 2>&5
7793 ac_status=$?
7794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7795 (exit $ac_status); }; }; then
7796 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'
7797
7798else
7799 echo "$as_me: failed program was:" >&5
7800sed 's/^/| /' conftest.$ac_ext >&5
7801
7802fi
7803rm -f conftest.err conftest.$ac_objext \
7804 conftest$ac_exeext conftest.$ac_ext
7805 LDFLAGS="$save_LDFLAGS"
7806 else
7807 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'
7808 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'
7809 fi
7810 archive_cmds_need_lc='no'
7811 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7812 hardcode_libdir_separator=:
7813 inherit_rpath=yes
7814 link_all_deplibs=yes
7815 ;;
7816
7817 netbsd*)
7818 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7819 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7820 else
7821 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7822 fi
7823 hardcode_libdir_flag_spec='-R$libdir'
7824 hardcode_direct=yes
7825 hardcode_shlibpath_var=no
7826 ;;
7827
7828 newsos6)
7829 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7830 hardcode_direct=yes
7831 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7832 hardcode_libdir_separator=:
7833 hardcode_shlibpath_var=no
7834 ;;
7835
7836 *nto* | *qnx*)
7837 ;;
7838
7839 openbsd*)
7840 hardcode_direct=yes
7841 hardcode_shlibpath_var=no
7842 hardcode_direct_absolute=yes
7843 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7844 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7845 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7846 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7847 export_dynamic_flag_spec='${wl}-E'
7848 else
7849 case $host_os in
7850 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7851 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7852 hardcode_libdir_flag_spec='-R$libdir'
7853 ;;
7854 *)
7855 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7856 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7857 ;;
7858 esac
7859 fi
7860 ;;
7861
7862 os2*)
7863 hardcode_libdir_flag_spec='-L$libdir'
7864 hardcode_minus_L=yes
7865 allow_undefined_flag=unsupported
7866 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'
7867 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7868 ;;
7869
7870 osf3*)
7871 if test "$GCC" = yes; then
7872 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7873 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'
7874 else
7875 allow_undefined_flag=' -expect_unresolved \*'
7876 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'
7877 fi
7878 archive_cmds_need_lc='no'
7879 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7880 hardcode_libdir_separator=:
7881 ;;
7882
7883 osf4* | osf5*) # as osf3* with the addition of -msym flag
7884 if test "$GCC" = yes; then
7885 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7886 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'
7887 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7888 else
7889 allow_undefined_flag=' -expect_unresolved \*'
7890 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'
7891 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~
7892 $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'
7893
7894 # Both c and cxx compiler support -rpath directly
7895 hardcode_libdir_flag_spec='-rpath $libdir'
7896 fi
7897 archive_cmds_need_lc='no'
7898 hardcode_libdir_separator=:
7899 ;;
7900
7901 solaris*)
7902 no_undefined_flag=' -z defs'
7903 if test "$GCC" = yes; then
7904 wlarc='${wl}'
7905 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7906 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7907 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7908 else
7909 case `$CC -V 2>&1` in
7910 *"Compilers 5.0"*)
7911 wlarc=''
7912 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7913 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7914 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
7915 ;;
7916 *)
7917 wlarc='${wl}'
7918 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
7919 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7920 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7921 ;;
7922 esac
7923 fi
7924 hardcode_libdir_flag_spec='-R$libdir'
7925 hardcode_shlibpath_var=no
7926 case $host_os in
7927 solaris2.[0-5] | solaris2.[0-5].*) ;;
7928 *)
7929 # The compiler driver will combine and reorder linker options,
7930 # but understands `-z linker_flag'. GCC discards it without `$wl',
7931 # but is careful enough not to reorder.
7932 # Supported since Solaris 2.6 (maybe 2.5.1?)
7933 if test "$GCC" = yes; then
7934 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7935 else
7936 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
7937 fi
7938 ;;
7939 esac
7940 link_all_deplibs=yes
7941 ;;
7942
7943 sunos4*)
7944 if test "x$host_vendor" = xsequent; then
7945 # Use $CC to link under sequent, because it throws in some extra .o
7946 # files that make .init and .fini sections work.
7947 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7948 else
7949 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7950 fi
7951 hardcode_libdir_flag_spec='-L$libdir'
7952 hardcode_direct=yes
7953 hardcode_minus_L=yes
7954 hardcode_shlibpath_var=no
7955 ;;
7956
7957 sysv4)
7958 case $host_vendor in
7959 sni)
7960 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7961 hardcode_direct=yes # is this really true???
7962 ;;
7963 siemens)
7964 ## LD is ld it makes a PLAMLIB
7965 ## CC just makes a GrossModule.
7966 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7967 reload_cmds='$CC -r -o $output$reload_objs'
7968 hardcode_direct=no
7969 ;;
7970 motorola)
7971 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7972 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7973 ;;
7974 esac
7975 runpath_var='LD_RUN_PATH'
7976 hardcode_shlibpath_var=no
7977 ;;
7978
7979 sysv4.3*)
7980 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7981 hardcode_shlibpath_var=no
7982 export_dynamic_flag_spec='-Bexport'
7983 ;;
7984
7985 sysv4*MP*)
7986 if test -d /usr/nec; then
7987 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7988 hardcode_shlibpath_var=no
7989 runpath_var=LD_RUN_PATH
7990 hardcode_runpath_var=yes
7991 ld_shlibs=yes
7992 fi
7993 ;;
7994
7995 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
7996 no_undefined_flag='${wl}-z,text'
7997 archive_cmds_need_lc=no
7998 hardcode_shlibpath_var=no
7999 runpath_var='LD_RUN_PATH'
8000
8001 if test "$GCC" = yes; then
8002 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8003 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8004 else
8005 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8006 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8007 fi
8008 ;;
8009
8010 sysv5* | sco3.2v5* | sco5v6*)
8011 # Note: We can NOT use -z defs as we might desire, because we do not
8012 # link with -lc, and that would cause any symbols used from libc to
8013 # always be unresolved, which means just about no library would
8014 # ever link correctly. If we're not using GNU ld we use -z text
8015 # though, which does catch some bad symbols but isn't as heavy-handed
8016 # as -z defs.
8017 no_undefined_flag='${wl}-z,text'
8018 allow_undefined_flag='${wl}-z,nodefs'
8019 archive_cmds_need_lc=no
8020 hardcode_shlibpath_var=no
8021 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8022 hardcode_libdir_separator=':'
8023 link_all_deplibs=yes
8024 export_dynamic_flag_spec='${wl}-Bexport'
8025 runpath_var='LD_RUN_PATH'
8026
8027 if test "$GCC" = yes; then
8028 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8029 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8030 else
8031 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8032 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8033 fi
8034 ;;
8035
8036 uts4*)
8037 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8038 hardcode_libdir_flag_spec='-L$libdir'
8039 hardcode_shlibpath_var=no
8040 ;;
8041
8042 *)
8043 ld_shlibs=no
8044 ;;
8045 esac
8046
8047 if test x$host_vendor = xsni; then
8048 case $host in
8049 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8050 export_dynamic_flag_spec='${wl}-Blargedynsym'
8051 ;;
8052 esac
8053 fi
8054 fi
8055
8056echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8057echo "${ECHO_T}$ld_shlibs" >&6
8058test "$ld_shlibs" = no && can_build_shared=no
8059
8060with_gnu_ld=$with_gnu_ld
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076#
8077# Do we need to explicitly link libc?
8078#
8079case "x$archive_cmds_need_lc" in
8080x|xyes)
8081 # Assume -lc should be added
8082 archive_cmds_need_lc=yes
8083
8084 if test "$enable_shared" = yes && test "$GCC" = yes; then
8085 case $archive_cmds in
8086 *'~'*)
8087 # FIXME: we may have to deal with multi-command sequences.
8088 ;;
8089 '$CC '*)
8090 # Test whether the compiler implicitly links with -lc since on some
8091 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8092 # to ld, don't add -lc before -lgcc.
8093 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8094echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8095 $RM conftest*
8096 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8097
8098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8099 (eval $ac_compile) 2>&5
8100 ac_status=$?
8101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8102 (exit $ac_status); } 2>conftest.err; then
8103 soname=conftest
8104 lib=conftest
8105 libobjs=conftest.$ac_objext
8106 deplibs=
8107 wl=$lt_prog_compiler_wl
8108 pic_flag=$lt_prog_compiler_pic
8109 compiler_flags=-v
8110 linker_flags=-v
8111 verstring=
8112 output_objdir=.
8113 libname=conftest
8114 lt_save_allow_undefined_flag=$allow_undefined_flag
8115 allow_undefined_flag=
8116 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8117 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8118 ac_status=$?
8119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120 (exit $ac_status); }
8121 then
8122 archive_cmds_need_lc=no
8123 else
8124 archive_cmds_need_lc=yes
8125 fi
8126 allow_undefined_flag=$lt_save_allow_undefined_flag
8127 else
8128 cat conftest.err 1>&5
8129 fi
8130 $RM conftest*
8131 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8132echo "${ECHO_T}$archive_cmds_need_lc" >&6
8133 ;;
8134 esac
8135 fi
8136 ;;
8137esac
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8296echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8297withGCC=$GCC
8298if test "$withGCC" = yes; then
8299 case $host_os in
8300 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8301 *) lt_awk_arg="/^libraries:/" ;;
8302 esac
8303 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8304 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8305 # if the path contains ";" then we assume it to be the separator
8306 # otherwise default to the standard path separator (i.e. ":") - it is
8307 # assumed that no part of a normal pathname contains ";" but that should
8308 # okay in the real world where ";" in dirpaths is itself problematic.
8309 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8310 else
8311 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8312 fi
8313 # Ok, now we have the path, separated by spaces, we can step through it
8314 # and add multilib dir if necessary.
8315 lt_tmp_lt_search_path_spec=
8316 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8317 for lt_sys_path in $lt_search_path_spec; do
8318 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8319 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8320 else
8321 test -d "$lt_sys_path" && \
8322 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8323 fi
8324 done
8325 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8326BEGIN {RS=" "; FS="/|\n";} {
8327 lt_foo="";
8328 lt_count=0;
8329 for (lt_i = NF; lt_i > 0; lt_i--) {
8330 if ($lt_i != "" && $lt_i != ".") {
8331 if ($lt_i == "..") {
8332 lt_count++;
8333 } else {
8334 if (lt_count == 0) {
8335 lt_foo="/" $lt_i lt_foo;
8336 } else {
8337 lt_count--;
8338 }
8339 }
8340 }
8341 }
8342 if (lt_foo != "") { lt_freq[lt_foo]++; }
8343 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8344}'`
8345 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8346else
8347 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8348fi
8349library_names_spec=
8350libname_spec='lib$name'
8351soname_spec=
8352shrext_cmds=".so"
8353postinstall_cmds=
8354postuninstall_cmds=
8355finish_cmds=
8356finish_eval=
8357shlibpath_var=
8358shlibpath_overrides_runpath=unknown
8359version_type=none
8360dynamic_linker="$host_os ld.so"
8361sys_lib_dlsearch_path_spec="/lib /usr/lib"
8362need_lib_prefix=unknown
8363hardcode_into_libs=no
8364
8365# when you set need_version to no, make sure it does not cause -set_version
8366# flags to be left without arguments
8367need_version=unknown
8368
8369case $host_os in
8370aix3*)
8371 version_type=linux
8372 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8373 shlibpath_var=LIBPATH
8374
8375 # AIX 3 has no versioning support, so we append a major version to the name.
8376 soname_spec='${libname}${release}${shared_ext}$major'
8377 ;;
8378
c8db569e 8379aix[4-9]*)
542f9784 8380 version_type=linux
8381 need_lib_prefix=no
8382 need_version=no
8383 hardcode_into_libs=yes
8384 if test "$host_cpu" = ia64; then
8385 # AIX 5 supports IA64
8386 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8387 shlibpath_var=LD_LIBRARY_PATH
8388 else
8389 # With GCC up to 2.95.x, collect2 would create an import file
8390 # for dependence libraries. The import file would start with
8391 # the line `#! .'. This would cause the generated library to
8392 # depend on `.', always an invalid library. This was fixed in
8393 # development snapshots of GCC prior to 3.0.
8394 case $host_os in
8395 aix4 | aix4.[01] | aix4.[01].*)
8396 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8397 echo ' yes '
8398 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8399 :
8400 else
8401 can_build_shared=no
8402 fi
8403 ;;
8404 esac
8405 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8406 # soname into executable. Probably we can add versioning support to
8407 # collect2, so additional links can be useful in future.
8408 if test "$aix_use_runtimelinking" = yes; then
8409 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8410 # instead of lib<name>.a to let people know that these are not
8411 # typical AIX shared libraries.
8412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8413 else
8414 # We preserve .a as extension for shared libraries through AIX4.2
8415 # and later when we are not doing run time linking.
8416 library_names_spec='${libname}${release}.a $libname.a'
8417 soname_spec='${libname}${release}${shared_ext}$major'
8418 fi
8419 shlibpath_var=LIBPATH
8420 fi
8421 ;;
8422
8423amigaos*)
8424 if test "$host_cpu" = m68k; then
8425 library_names_spec='$libname.ixlibrary $libname.a'
8426 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8427 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'
8428 else
8429 dynamic_linker=no
8430 fi
8431 ;;
8432
8433beos*)
8434 library_names_spec='${libname}${shared_ext}'
8435 dynamic_linker="$host_os ld.so"
8436 shlibpath_var=LIBRARY_PATH
8437 ;;
8438
8439bsdi[45]*)
8440 version_type=linux
8441 need_version=no
8442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8443 soname_spec='${libname}${release}${shared_ext}$major'
8444 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8445 shlibpath_var=LD_LIBRARY_PATH
8446 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8447 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8448 # the default ld.so.conf also contains /usr/contrib/lib and
8449 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8450 # libtool to hard-code these into programs
8451 ;;
8452
8453cygwin* | mingw* | pw32*)
8454 version_type=windows
8455 shrext_cmds=".dll"
8456 need_version=no
8457 need_lib_prefix=no
8458
8459 case $withGCC,$host_os in
8460 yes,cygwin* | yes,mingw* | yes,pw32*)
8461 library_names_spec='$libname.dll.a'
8462 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8463 postinstall_cmds='base_file=`basename \${file}`~
8464 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8465 dldir=$destdir/`dirname \$dlpath`~
8466 test -d \$dldir || mkdir -p \$dldir~
8467 $install_prog $dir/$dlname \$dldir/$dlname~
8468 chmod a+x \$dldir/$dlname~
8469 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8470 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8471 fi'
8472 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8473 dlpath=$dir/\$dldll~
8474 $RM \$dlpath'
8475 shlibpath_overrides_runpath=yes
8476
8477 case $host_os in
8478 cygwin*)
8479 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8480 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8481 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8482 ;;
8483 mingw*)
8484 # MinGW DLLs use traditional 'lib' prefix
8485 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8486 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8487 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8488 # It is most probably a Windows format PATH printed by
8489 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8490 # path with ; separators, and with drive letters. We can handle the
8491 # drive letters (cygwin fileutils understands them), so leave them,
8492 # especially as we might pass files found there to a mingw objdump,
8493 # which wouldn't understand a cygwinified path. Ahh.
8494 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8495 else
8496 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8497 fi
8498 ;;
8499 pw32*)
8500 # pw32 DLLs use 'pw' prefix rather than 'lib'
8501 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8502 ;;
8503 esac
8504 ;;
8505
8506 *)
8507 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8508 ;;
8509 esac
8510 dynamic_linker='Win32 ld.exe'
8511 # FIXME: first we should search . and the directory the executable is in
8512 shlibpath_var=PATH
8513 ;;
8514
8515darwin* | rhapsody*)
8516 dynamic_linker="$host_os dyld"
8517 version_type=darwin
8518 need_lib_prefix=no
8519 need_version=no
8520 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8521 soname_spec='${libname}${release}${major}$shared_ext'
8522 shlibpath_overrides_runpath=yes
8523 shlibpath_var=DYLD_LIBRARY_PATH
8524 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8525
8526 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8527 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8528 ;;
8529
8530dgux*)
8531 version_type=linux
8532 need_lib_prefix=no
8533 need_version=no
8534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8535 soname_spec='${libname}${release}${shared_ext}$major'
8536 shlibpath_var=LD_LIBRARY_PATH
8537 ;;
8538
8539freebsd1*)
8540 dynamic_linker=no
8541 ;;
8542
8543freebsd* | dragonfly*)
8544 # DragonFly does not have aout. When/if they implement a new
8545 # versioning mechanism, adjust this.
8546 if test -x /usr/bin/objformat; then
8547 objformat=`/usr/bin/objformat`
8548 else
8549 case $host_os in
8550 freebsd[123]*) objformat=aout ;;
8551 *) objformat=elf ;;
8552 esac
8553 fi
8554 version_type=freebsd-$objformat
8555 case $version_type in
8556 freebsd-elf*)
8557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8558 need_version=no
8559 need_lib_prefix=no
8560 ;;
8561 freebsd-*)
8562 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8563 need_version=yes
8564 ;;
8565 esac
8566 shlibpath_var=LD_LIBRARY_PATH
8567 case $host_os in
8568 freebsd2*)
8569 shlibpath_overrides_runpath=yes
8570 ;;
8571 freebsd3.[01]* | freebsdelf3.[01]*)
8572 shlibpath_overrides_runpath=yes
8573 hardcode_into_libs=yes
8574 ;;
8575 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8576 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8577 shlibpath_overrides_runpath=no
8578 hardcode_into_libs=yes
8579 ;;
8580 *) # from 4.6 on, and DragonFly
8581 shlibpath_overrides_runpath=yes
8582 hardcode_into_libs=yes
8583 ;;
8584 esac
8585 ;;
8586
8587gnu*)
8588 version_type=linux
8589 need_lib_prefix=no
8590 need_version=no
8591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8592 soname_spec='${libname}${release}${shared_ext}$major'
8593 shlibpath_var=LD_LIBRARY_PATH
8594 hardcode_into_libs=yes
8595 ;;
8596
8597hpux9* | hpux10* | hpux11*)
8598 # Give a soname corresponding to the major version so that dld.sl refuses to
8599 # link against other versions.
8600 version_type=sunos
8601 need_lib_prefix=no
8602 need_version=no
8603 case $host_cpu in
8604 ia64*)
8605 shrext_cmds='.so'
8606 hardcode_into_libs=yes
8607 dynamic_linker="$host_os dld.so"
8608 shlibpath_var=LD_LIBRARY_PATH
8609 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8611 soname_spec='${libname}${release}${shared_ext}$major'
8612 if test "X$HPUX_IA64_MODE" = X32; then
8613 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8614 else
8615 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8616 fi
8617 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8618 ;;
8619 hppa*64*)
8620 shrext_cmds='.sl'
8621 hardcode_into_libs=yes
8622 dynamic_linker="$host_os dld.sl"
8623 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8624 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8626 soname_spec='${libname}${release}${shared_ext}$major'
8627 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8628 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8629 ;;
8630 *)
8631 shrext_cmds='.sl'
8632 dynamic_linker="$host_os dld.sl"
8633 shlibpath_var=SHLIB_PATH
8634 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8636 soname_spec='${libname}${release}${shared_ext}$major'
8637 ;;
8638 esac
8639 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8640 postinstall_cmds='chmod 555 $lib'
8641 ;;
8642
8643interix[3-9]*)
8644 version_type=linux
8645 need_lib_prefix=no
8646 need_version=no
8647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8648 soname_spec='${libname}${release}${shared_ext}$major'
8649 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8650 shlibpath_var=LD_LIBRARY_PATH
8651 shlibpath_overrides_runpath=no
8652 hardcode_into_libs=yes
8653 ;;
8654
8655irix5* | irix6* | nonstopux*)
8656 case $host_os in
8657 nonstopux*) version_type=nonstopux ;;
8658 *)
8659 if test "$lt_cv_prog_gnu_ld" = yes; then
8660 version_type=linux
8661 else
8662 version_type=irix
8663 fi ;;
8664 esac
8665 need_lib_prefix=no
8666 need_version=no
8667 soname_spec='${libname}${release}${shared_ext}$major'
8668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8669 case $host_os in
8670 irix5* | nonstopux*)
8671 libsuff= shlibsuff=
8672 ;;
8673 *)
8674 case $LD in # libtool.m4 will add one of these switches to LD
8675 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8676 libsuff= shlibsuff= libmagic=32-bit;;
8677 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8678 libsuff=32 shlibsuff=N32 libmagic=N32;;
8679 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8680 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8681 *) libsuff= shlibsuff= libmagic=never-match;;
8682 esac
8683 ;;
8684 esac
8685 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8686 shlibpath_overrides_runpath=no
8687 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8688 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8689 hardcode_into_libs=yes
8690 ;;
8691
8692# No shared lib support for Linux oldld, aout, or coff.
8693linux*oldld* | linux*aout* | linux*coff*)
8694 dynamic_linker=no
8695 ;;
8696
8697# This must be Linux ELF.
8698linux* | k*bsd*-gnu)
8699 version_type=linux
8700 need_lib_prefix=no
8701 need_version=no
8702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8703 soname_spec='${libname}${release}${shared_ext}$major'
8704 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8705 shlibpath_var=LD_LIBRARY_PATH
8706 shlibpath_overrides_runpath=no
8707 # Some binutils ld are patched to set DT_RUNPATH
8708 save_LDFLAGS=$LDFLAGS
8709 save_libdir=$libdir
8710 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8711 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8712 cat >conftest.$ac_ext <<_ACEOF
8713/* confdefs.h. */
8714_ACEOF
8715cat confdefs.h >>conftest.$ac_ext
8716cat >>conftest.$ac_ext <<_ACEOF
8717/* end confdefs.h. */
8718
8719int
8720main ()
8721{
8722
8723 ;
8724 return 0;
8725}
8726_ACEOF
8727rm -f conftest.$ac_objext conftest$ac_exeext
8728if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8729 (eval $ac_link) 2>conftest.er1
8730 ac_status=$?
8731 grep -v '^ *+' conftest.er1 >conftest.err
8732 rm -f conftest.er1
8733 cat conftest.err >&5
8734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735 (exit $ac_status); } &&
8736 { ac_try='test -z "$ac_c_werror_flag"
8737 || test ! -s conftest.err'
8738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8739 (eval $ac_try) 2>&5
8740 ac_status=$?
8741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8742 (exit $ac_status); }; } &&
8743 { ac_try='test -s conftest$ac_exeext'
8744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8745 (eval $ac_try) 2>&5
8746 ac_status=$?
8747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8748 (exit $ac_status); }; }; then
8749 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
8750 shlibpath_overrides_runpath=yes
8751fi
8752
8753else
8754 echo "$as_me: failed program was:" >&5
8755sed 's/^/| /' conftest.$ac_ext >&5
8756
8757fi
8758rm -f conftest.err conftest.$ac_objext \
8759 conftest$ac_exeext conftest.$ac_ext
8760 LDFLAGS=$save_LDFLAGS
8761 libdir=$save_libdir
8762
8763 # This implies no fast_install, which is unacceptable.
8764 # Some rework will be needed to allow for fast_install
8765 # before this can be enabled.
8766 hardcode_into_libs=yes
8767
8768 # Append ld.so.conf contents to the search path
8769 if test -f /etc/ld.so.conf; then
8770 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8771 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8772 fi
8773
8774 # We used to test for /lib/ld.so.1 and disable shared libraries on
8775 # powerpc, because MkLinux only supported shared libraries with the
8776 # GNU dynamic linker. Since this was broken with cross compilers,
8777 # most powerpc-linux boxes support dynamic linking these days and
8778 # people can always --disable-shared, the test was removed, and we
8779 # assume the GNU/Linux dynamic linker is in use.
8780 dynamic_linker='GNU/Linux ld.so'
8781 ;;
8782
8783netbsd*)
8784 version_type=sunos
8785 need_lib_prefix=no
8786 need_version=no
8787 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8789 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8790 dynamic_linker='NetBSD (a.out) ld.so'
8791 else
8792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8793 soname_spec='${libname}${release}${shared_ext}$major'
8794 dynamic_linker='NetBSD ld.elf_so'
8795 fi
8796 shlibpath_var=LD_LIBRARY_PATH
8797 shlibpath_overrides_runpath=yes
8798 hardcode_into_libs=yes
8799 ;;
8800
8801newsos6)
8802 version_type=linux
8803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8804 shlibpath_var=LD_LIBRARY_PATH
8805 shlibpath_overrides_runpath=yes
8806 ;;
8807
8808*nto* | *qnx*)
8809 version_type=qnx
8810 need_lib_prefix=no
8811 need_version=no
8812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8813 soname_spec='${libname}${release}${shared_ext}$major'
8814 shlibpath_var=LD_LIBRARY_PATH
8815 shlibpath_overrides_runpath=no
8816 hardcode_into_libs=yes
8817 dynamic_linker='ldqnx.so'
8818 ;;
8819
8820openbsd*)
8821 version_type=sunos
8822 sys_lib_dlsearch_path_spec="/usr/lib"
8823 need_lib_prefix=no
8824 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8825 case $host_os in
8826 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8827 *) need_version=no ;;
8828 esac
8829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8830 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8831 shlibpath_var=LD_LIBRARY_PATH
8832 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8833 case $host_os in
8834 openbsd2.[89] | openbsd2.[89].*)
8835 shlibpath_overrides_runpath=no
8836 ;;
8837 *)
8838 shlibpath_overrides_runpath=yes
8839 ;;
8840 esac
8841 else
8842 shlibpath_overrides_runpath=yes
8843 fi
8844 ;;
8845
8846os2*)
8847 libname_spec='$name'
8848 shrext_cmds=".dll"
8849 need_lib_prefix=no
8850 library_names_spec='$libname${shared_ext} $libname.a'
8851 dynamic_linker='OS/2 ld.exe'
8852 shlibpath_var=LIBPATH
8853 ;;
8854
8855osf3* | osf4* | osf5*)
8856 version_type=osf
8857 need_lib_prefix=no
8858 need_version=no
8859 soname_spec='${libname}${release}${shared_ext}$major'
8860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8861 shlibpath_var=LD_LIBRARY_PATH
8862 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8863 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8864 ;;
8865
8866rdos*)
8867 dynamic_linker=no
8868 ;;
8869
8870solaris*)
8871 version_type=linux
8872 need_lib_prefix=no
8873 need_version=no
8874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8875 soname_spec='${libname}${release}${shared_ext}$major'
8876 shlibpath_var=LD_LIBRARY_PATH
8877 shlibpath_overrides_runpath=yes
8878 hardcode_into_libs=yes
8879 # ldd complains unless libraries are executable
8880 postinstall_cmds='chmod +x $lib'
8881 ;;
8882
8883sunos4*)
8884 version_type=sunos
8885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8886 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8887 shlibpath_var=LD_LIBRARY_PATH
8888 shlibpath_overrides_runpath=yes
8889 if test "$with_gnu_ld" = yes; then
8890 need_lib_prefix=no
8891 fi
8892 need_version=yes
8893 ;;
8894
8895sysv4 | sysv4.3*)
8896 version_type=linux
8897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8898 soname_spec='${libname}${release}${shared_ext}$major'
8899 shlibpath_var=LD_LIBRARY_PATH
8900 case $host_vendor in
8901 sni)
8902 shlibpath_overrides_runpath=no
8903 need_lib_prefix=no
8904 runpath_var=LD_RUN_PATH
8905 ;;
8906 siemens)
8907 need_lib_prefix=no
8908 ;;
8909 motorola)
8910 need_lib_prefix=no
8911 need_version=no
8912 shlibpath_overrides_runpath=no
8913 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8914 ;;
8915 esac
8916 ;;
8917
8918sysv4*MP*)
8919 if test -d /usr/nec ;then
8920 version_type=linux
8921 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8922 soname_spec='$libname${shared_ext}.$major'
8923 shlibpath_var=LD_LIBRARY_PATH
8924 fi
8925 ;;
8926
8927sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8928 version_type=freebsd-elf
8929 need_lib_prefix=no
8930 need_version=no
8931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8932 soname_spec='${libname}${release}${shared_ext}$major'
8933 shlibpath_var=LD_LIBRARY_PATH
8934 shlibpath_overrides_runpath=yes
8935 hardcode_into_libs=yes
8936 if test "$with_gnu_ld" = yes; then
8937 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8938 else
8939 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8940 case $host_os in
8941 sco3.2v5*)
8942 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8943 ;;
8944 esac
8945 fi
8946 sys_lib_dlsearch_path_spec='/usr/lib'
8947 ;;
8948
8949tpf*)
8950 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
8951 version_type=linux
8952 need_lib_prefix=no
8953 need_version=no
8954 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8955 shlibpath_var=LD_LIBRARY_PATH
8956 shlibpath_overrides_runpath=no
8957 hardcode_into_libs=yes
8958 ;;
8959
8960uts4*)
8961 version_type=linux
8962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8963 soname_spec='${libname}${release}${shared_ext}$major'
8964 shlibpath_var=LD_LIBRARY_PATH
8965 ;;
8966
8967*)
8968 dynamic_linker=no
8969 ;;
8970esac
8971echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8972echo "${ECHO_T}$dynamic_linker" >&6
8973test "$dynamic_linker" = no && can_build_shared=no
8974
8975variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8976if test "$GCC" = yes; then
8977 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8978fi
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9067echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9068hardcode_action=
9069if test -n "$hardcode_libdir_flag_spec" ||
9070 test -n "$runpath_var" ||
9071 test "X$hardcode_automatic" = "Xyes" ; then
9072
9073 # We can hardcode non-existent directories.
9074 if test "$hardcode_direct" != no &&
9075 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9076 # have to relink, otherwise we might link with an installed library
9077 # when we should be linking with a yet-to-be-installed one
9078 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9079 test "$hardcode_minus_L" != no; then
9080 # Linking always hardcodes the temporary library directory.
9081 hardcode_action=relink
9082 else
9083 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9084 hardcode_action=immediate
9085 fi
9086else
9087 # We cannot hardcode anything, or else we can only hardcode existing
9088 # directories.
9089 hardcode_action=unsupported
9090fi
9091echo "$as_me:$LINENO: result: $hardcode_action" >&5
9092echo "${ECHO_T}$hardcode_action" >&6
9093
9094if test "$hardcode_action" = relink ||
9095 test "$inherit_rpath" = yes; then
9096 # Fast installation is not supported
9097 enable_fast_install=no
9098elif test "$shlibpath_overrides_runpath" = yes ||
9099 test "$enable_shared" = no; then
9100 # Fast installation is not necessary
9101 enable_fast_install=needless
9102fi
9103
9104
9105
9106
9107
9108
9109 if test "x$enable_dlopen" != xyes; then
9110 enable_dlopen=unknown
9111 enable_dlopen_self=unknown
9112 enable_dlopen_self_static=unknown
9113else
9114 lt_cv_dlopen=no
9115 lt_cv_dlopen_libs=
9116
9117 case $host_os in
9118 beos*)
9119 lt_cv_dlopen="load_add_on"
9120 lt_cv_dlopen_libs=
9121 lt_cv_dlopen_self=yes
9122 ;;
9123
9124 mingw* | pw32*)
9125 lt_cv_dlopen="LoadLibrary"
9126 lt_cv_dlopen_libs=
9127 ;;
9128
9129 cygwin*)
9130 lt_cv_dlopen="dlopen"
9131 lt_cv_dlopen_libs=
9132 ;;
9133
9134 darwin*)
9135 # if libdl is installed we need to link against it
9136 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9137echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9138if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9139 echo $ECHO_N "(cached) $ECHO_C" >&6
9140else
9141 ac_check_lib_save_LIBS=$LIBS
9142LIBS="-ldl $LIBS"
9143cat >conftest.$ac_ext <<_ACEOF
9144/* confdefs.h. */
9145_ACEOF
9146cat confdefs.h >>conftest.$ac_ext
9147cat >>conftest.$ac_ext <<_ACEOF
9148/* end confdefs.h. */
9149
9150/* Override any gcc2 internal prototype to avoid an error. */
9151#ifdef __cplusplus
9152extern "C"
9153#endif
9154/* We use char because int might match the return type of a gcc2
9155 builtin and then its argument prototype would still apply. */
9156char dlopen ();
9157int
9158main ()
9159{
9160dlopen ();
9161 ;
9162 return 0;
9163}
9164_ACEOF
9165rm -f conftest.$ac_objext conftest$ac_exeext
9166if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9167 (eval $ac_link) 2>conftest.er1
9168 ac_status=$?
9169 grep -v '^ *+' conftest.er1 >conftest.err
9170 rm -f conftest.er1
9171 cat conftest.err >&5
9172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9173 (exit $ac_status); } &&
9174 { ac_try='test -z "$ac_c_werror_flag"
9175 || test ! -s conftest.err'
9176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9177 (eval $ac_try) 2>&5
9178 ac_status=$?
9179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9180 (exit $ac_status); }; } &&
9181 { ac_try='test -s conftest$ac_exeext'
9182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9183 (eval $ac_try) 2>&5
9184 ac_status=$?
9185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9186 (exit $ac_status); }; }; then
9187 ac_cv_lib_dl_dlopen=yes
9188else
9189 echo "$as_me: failed program was:" >&5
9190sed 's/^/| /' conftest.$ac_ext >&5
9191
9192ac_cv_lib_dl_dlopen=no
9193fi
9194rm -f conftest.err conftest.$ac_objext \
9195 conftest$ac_exeext conftest.$ac_ext
9196LIBS=$ac_check_lib_save_LIBS
9197fi
9198echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9199echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9200if test $ac_cv_lib_dl_dlopen = yes; then
9201 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9202else
9203
9204 lt_cv_dlopen="dyld"
9205 lt_cv_dlopen_libs=
9206 lt_cv_dlopen_self=yes
9207
9208fi
9209
9210 ;;
9211
9212 *)
9213 echo "$as_me:$LINENO: checking for shl_load" >&5
9214echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9215if test "${ac_cv_func_shl_load+set}" = set; then
9216 echo $ECHO_N "(cached) $ECHO_C" >&6
9217else
9218 cat >conftest.$ac_ext <<_ACEOF
9219/* confdefs.h. */
9220_ACEOF
9221cat confdefs.h >>conftest.$ac_ext
9222cat >>conftest.$ac_ext <<_ACEOF
9223/* end confdefs.h. */
9224/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9225 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9226#define shl_load innocuous_shl_load
9227
9228/* System header to define __stub macros and hopefully few prototypes,
9229 which can conflict with char shl_load (); below.
9230 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9231 <limits.h> exists even on freestanding compilers. */
9232
9233#ifdef __STDC__
9234# include <limits.h>
9235#else
9236# include <assert.h>
9237#endif
9238
9239#undef shl_load
9240
9241/* Override any gcc2 internal prototype to avoid an error. */
9242#ifdef __cplusplus
9243extern "C"
9244{
9245#endif
9246/* We use char because int might match the return type of a gcc2
9247 builtin and then its argument prototype would still apply. */
9248char shl_load ();
9249/* The GNU C library defines this for functions which it implements
9250 to always fail with ENOSYS. Some functions are actually named
9251 something starting with __ and the normal name is an alias. */
9252#if defined (__stub_shl_load) || defined (__stub___shl_load)
9253choke me
9254#else
9255char (*f) () = shl_load;
9256#endif
9257#ifdef __cplusplus
9258}
9259#endif
9260
9261int
9262main ()
9263{
9264return f != shl_load;
9265 ;
9266 return 0;
9267}
9268_ACEOF
9269rm -f conftest.$ac_objext conftest$ac_exeext
9270if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9271 (eval $ac_link) 2>conftest.er1
9272 ac_status=$?
9273 grep -v '^ *+' conftest.er1 >conftest.err
9274 rm -f conftest.er1
9275 cat conftest.err >&5
9276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9277 (exit $ac_status); } &&
9278 { ac_try='test -z "$ac_c_werror_flag"
9279 || test ! -s conftest.err'
9280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9281 (eval $ac_try) 2>&5
9282 ac_status=$?
9283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9284 (exit $ac_status); }; } &&
9285 { ac_try='test -s conftest$ac_exeext'
9286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9287 (eval $ac_try) 2>&5
9288 ac_status=$?
9289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9290 (exit $ac_status); }; }; then
9291 ac_cv_func_shl_load=yes
9292else
9293 echo "$as_me: failed program was:" >&5
9294sed 's/^/| /' conftest.$ac_ext >&5
9295
9296ac_cv_func_shl_load=no
9297fi
9298rm -f conftest.err conftest.$ac_objext \
9299 conftest$ac_exeext conftest.$ac_ext
9300fi
9301echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9302echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9303if test $ac_cv_func_shl_load = yes; then
9304 lt_cv_dlopen="shl_load"
9305else
9306 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9307echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9308if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9309 echo $ECHO_N "(cached) $ECHO_C" >&6
9310else
9311 ac_check_lib_save_LIBS=$LIBS
9312LIBS="-ldld $LIBS"
9313cat >conftest.$ac_ext <<_ACEOF
9314/* confdefs.h. */
9315_ACEOF
9316cat confdefs.h >>conftest.$ac_ext
9317cat >>conftest.$ac_ext <<_ACEOF
9318/* end confdefs.h. */
9319
9320/* Override any gcc2 internal prototype to avoid an error. */
9321#ifdef __cplusplus
9322extern "C"
9323#endif
9324/* We use char because int might match the return type of a gcc2
9325 builtin and then its argument prototype would still apply. */
9326char shl_load ();
9327int
9328main ()
9329{
9330shl_load ();
9331 ;
9332 return 0;
9333}
9334_ACEOF
9335rm -f conftest.$ac_objext conftest$ac_exeext
9336if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9337 (eval $ac_link) 2>conftest.er1
9338 ac_status=$?
9339 grep -v '^ *+' conftest.er1 >conftest.err
9340 rm -f conftest.er1
9341 cat conftest.err >&5
9342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9343 (exit $ac_status); } &&
9344 { ac_try='test -z "$ac_c_werror_flag"
9345 || test ! -s conftest.err'
9346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9347 (eval $ac_try) 2>&5
9348 ac_status=$?
9349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9350 (exit $ac_status); }; } &&
9351 { ac_try='test -s conftest$ac_exeext'
9352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9353 (eval $ac_try) 2>&5
9354 ac_status=$?
9355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356 (exit $ac_status); }; }; then
9357 ac_cv_lib_dld_shl_load=yes
9358else
9359 echo "$as_me: failed program was:" >&5
9360sed 's/^/| /' conftest.$ac_ext >&5
9361
9362ac_cv_lib_dld_shl_load=no
9363fi
9364rm -f conftest.err conftest.$ac_objext \
9365 conftest$ac_exeext conftest.$ac_ext
9366LIBS=$ac_check_lib_save_LIBS
9367fi
9368echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9369echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9370if test $ac_cv_lib_dld_shl_load = yes; then
9371 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9372else
9373 echo "$as_me:$LINENO: checking for dlopen" >&5
9374echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9375if test "${ac_cv_func_dlopen+set}" = set; then
9376 echo $ECHO_N "(cached) $ECHO_C" >&6
9377else
9378 cat >conftest.$ac_ext <<_ACEOF
9379/* confdefs.h. */
9380_ACEOF
9381cat confdefs.h >>conftest.$ac_ext
9382cat >>conftest.$ac_ext <<_ACEOF
9383/* end confdefs.h. */
9384/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9385 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9386#define dlopen innocuous_dlopen
9387
9388/* System header to define __stub macros and hopefully few prototypes,
9389 which can conflict with char dlopen (); below.
9390 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9391 <limits.h> exists even on freestanding compilers. */
9392
9393#ifdef __STDC__
9394# include <limits.h>
9395#else
9396# include <assert.h>
9397#endif
9398
9399#undef dlopen
9400
9401/* Override any gcc2 internal prototype to avoid an error. */
9402#ifdef __cplusplus
9403extern "C"
9404{
9405#endif
9406/* We use char because int might match the return type of a gcc2
9407 builtin and then its argument prototype would still apply. */
9408char dlopen ();
9409/* The GNU C library defines this for functions which it implements
9410 to always fail with ENOSYS. Some functions are actually named
9411 something starting with __ and the normal name is an alias. */
9412#if defined (__stub_dlopen) || defined (__stub___dlopen)
9413choke me
9414#else
9415char (*f) () = dlopen;
9416#endif
9417#ifdef __cplusplus
9418}
9419#endif
9420
9421int
9422main ()
9423{
9424return f != dlopen;
9425 ;
9426 return 0;
9427}
9428_ACEOF
9429rm -f conftest.$ac_objext conftest$ac_exeext
9430if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9431 (eval $ac_link) 2>conftest.er1
9432 ac_status=$?
9433 grep -v '^ *+' conftest.er1 >conftest.err
9434 rm -f conftest.er1
9435 cat conftest.err >&5
9436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9437 (exit $ac_status); } &&
9438 { ac_try='test -z "$ac_c_werror_flag"
9439 || test ! -s conftest.err'
9440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9441 (eval $ac_try) 2>&5
9442 ac_status=$?
9443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9444 (exit $ac_status); }; } &&
9445 { ac_try='test -s conftest$ac_exeext'
9446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9447 (eval $ac_try) 2>&5
9448 ac_status=$?
9449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9450 (exit $ac_status); }; }; then
9451 ac_cv_func_dlopen=yes
9452else
9453 echo "$as_me: failed program was:" >&5
9454sed 's/^/| /' conftest.$ac_ext >&5
9455
9456ac_cv_func_dlopen=no
9457fi
9458rm -f conftest.err conftest.$ac_objext \
9459 conftest$ac_exeext conftest.$ac_ext
9460fi
9461echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9462echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9463if test $ac_cv_func_dlopen = yes; then
9464 lt_cv_dlopen="dlopen"
9465else
9466 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9467echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9468if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9469 echo $ECHO_N "(cached) $ECHO_C" >&6
9470else
9471 ac_check_lib_save_LIBS=$LIBS
9472LIBS="-ldl $LIBS"
9473cat >conftest.$ac_ext <<_ACEOF
9474/* confdefs.h. */
9475_ACEOF
9476cat confdefs.h >>conftest.$ac_ext
9477cat >>conftest.$ac_ext <<_ACEOF
9478/* end confdefs.h. */
9479
9480/* Override any gcc2 internal prototype to avoid an error. */
9481#ifdef __cplusplus
9482extern "C"
9483#endif
9484/* We use char because int might match the return type of a gcc2
9485 builtin and then its argument prototype would still apply. */
9486char dlopen ();
9487int
9488main ()
9489{
9490dlopen ();
9491 ;
9492 return 0;
9493}
9494_ACEOF
9495rm -f conftest.$ac_objext conftest$ac_exeext
9496if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9497 (eval $ac_link) 2>conftest.er1
9498 ac_status=$?
9499 grep -v '^ *+' conftest.er1 >conftest.err
9500 rm -f conftest.er1
9501 cat conftest.err >&5
9502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9503 (exit $ac_status); } &&
9504 { ac_try='test -z "$ac_c_werror_flag"
9505 || test ! -s conftest.err'
9506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9507 (eval $ac_try) 2>&5
9508 ac_status=$?
9509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510 (exit $ac_status); }; } &&
9511 { ac_try='test -s conftest$ac_exeext'
9512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9513 (eval $ac_try) 2>&5
9514 ac_status=$?
9515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9516 (exit $ac_status); }; }; then
9517 ac_cv_lib_dl_dlopen=yes
9518else
9519 echo "$as_me: failed program was:" >&5
9520sed 's/^/| /' conftest.$ac_ext >&5
9521
9522ac_cv_lib_dl_dlopen=no
9523fi
9524rm -f conftest.err conftest.$ac_objext \
9525 conftest$ac_exeext conftest.$ac_ext
9526LIBS=$ac_check_lib_save_LIBS
9527fi
9528echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9529echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9530if test $ac_cv_lib_dl_dlopen = yes; then
9531 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9532else
9533 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9534echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9535if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9536 echo $ECHO_N "(cached) $ECHO_C" >&6
9537else
9538 ac_check_lib_save_LIBS=$LIBS
9539LIBS="-lsvld $LIBS"
9540cat >conftest.$ac_ext <<_ACEOF
9541/* confdefs.h. */
9542_ACEOF
9543cat confdefs.h >>conftest.$ac_ext
9544cat >>conftest.$ac_ext <<_ACEOF
9545/* end confdefs.h. */
9546
9547/* Override any gcc2 internal prototype to avoid an error. */
9548#ifdef __cplusplus
9549extern "C"
9550#endif
9551/* We use char because int might match the return type of a gcc2
9552 builtin and then its argument prototype would still apply. */
9553char dlopen ();
9554int
9555main ()
9556{
9557dlopen ();
9558 ;
9559 return 0;
9560}
9561_ACEOF
9562rm -f conftest.$ac_objext conftest$ac_exeext
9563if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9564 (eval $ac_link) 2>conftest.er1
9565 ac_status=$?
9566 grep -v '^ *+' conftest.er1 >conftest.err
9567 rm -f conftest.er1
9568 cat conftest.err >&5
9569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9570 (exit $ac_status); } &&
9571 { ac_try='test -z "$ac_c_werror_flag"
9572 || test ! -s conftest.err'
9573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9574 (eval $ac_try) 2>&5
9575 ac_status=$?
9576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577 (exit $ac_status); }; } &&
9578 { ac_try='test -s conftest$ac_exeext'
9579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9580 (eval $ac_try) 2>&5
9581 ac_status=$?
9582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583 (exit $ac_status); }; }; then
9584 ac_cv_lib_svld_dlopen=yes
9585else
9586 echo "$as_me: failed program was:" >&5
9587sed 's/^/| /' conftest.$ac_ext >&5
9588
9589ac_cv_lib_svld_dlopen=no
9590fi
9591rm -f conftest.err conftest.$ac_objext \
9592 conftest$ac_exeext conftest.$ac_ext
9593LIBS=$ac_check_lib_save_LIBS
9594fi
9595echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9596echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9597if test $ac_cv_lib_svld_dlopen = yes; then
9598 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9599else
9600 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9601echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9602if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9603 echo $ECHO_N "(cached) $ECHO_C" >&6
9604else
9605 ac_check_lib_save_LIBS=$LIBS
9606LIBS="-ldld $LIBS"
9607cat >conftest.$ac_ext <<_ACEOF
9608/* confdefs.h. */
9609_ACEOF
9610cat confdefs.h >>conftest.$ac_ext
9611cat >>conftest.$ac_ext <<_ACEOF
9612/* end confdefs.h. */
9613
9614/* Override any gcc2 internal prototype to avoid an error. */
9615#ifdef __cplusplus
9616extern "C"
9617#endif
9618/* We use char because int might match the return type of a gcc2
9619 builtin and then its argument prototype would still apply. */
9620char dld_link ();
9621int
9622main ()
9623{
9624dld_link ();
9625 ;
9626 return 0;
9627}
9628_ACEOF
9629rm -f conftest.$ac_objext conftest$ac_exeext
9630if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9631 (eval $ac_link) 2>conftest.er1
9632 ac_status=$?
9633 grep -v '^ *+' conftest.er1 >conftest.err
9634 rm -f conftest.er1
9635 cat conftest.err >&5
9636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9637 (exit $ac_status); } &&
9638 { ac_try='test -z "$ac_c_werror_flag"
9639 || test ! -s conftest.err'
9640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9641 (eval $ac_try) 2>&5
9642 ac_status=$?
9643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9644 (exit $ac_status); }; } &&
9645 { ac_try='test -s conftest$ac_exeext'
9646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9647 (eval $ac_try) 2>&5
9648 ac_status=$?
9649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9650 (exit $ac_status); }; }; then
9651 ac_cv_lib_dld_dld_link=yes
9652else
9653 echo "$as_me: failed program was:" >&5
9654sed 's/^/| /' conftest.$ac_ext >&5
9655
9656ac_cv_lib_dld_dld_link=no
9657fi
9658rm -f conftest.err conftest.$ac_objext \
9659 conftest$ac_exeext conftest.$ac_ext
9660LIBS=$ac_check_lib_save_LIBS
9661fi
9662echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9663echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9664if test $ac_cv_lib_dld_dld_link = yes; then
9665 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9666fi
9667
9668
9669fi
9670
9671
9672fi
9673
9674
9675fi
9676
9677
9678fi
9679
9680
9681fi
9682
9683 ;;
9684 esac
9685
9686 if test "x$lt_cv_dlopen" != xno; then
9687 enable_dlopen=yes
9688 else
9689 enable_dlopen=no
9690 fi
9691
9692 case $lt_cv_dlopen in
9693 dlopen)
9694 save_CPPFLAGS="$CPPFLAGS"
9695 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9696
9697 save_LDFLAGS="$LDFLAGS"
9698 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9699
9700 save_LIBS="$LIBS"
9701 LIBS="$lt_cv_dlopen_libs $LIBS"
9702
9703 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9704echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9705if test "${lt_cv_dlopen_self+set}" = set; then
9706 echo $ECHO_N "(cached) $ECHO_C" >&6
9707else
9708 if test "$cross_compiling" = yes; then :
9709 lt_cv_dlopen_self=cross
9710else
9711 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9712 lt_status=$lt_dlunknown
9713 cat > conftest.$ac_ext <<_LT_EOF
5b2c7553 9714#line 9714 "configure"
542f9784 9715#include "confdefs.h"
9716
9717#if HAVE_DLFCN_H
9718#include <dlfcn.h>
9719#endif
9720
9721#include <stdio.h>
9722
9723#ifdef RTLD_GLOBAL
9724# define LT_DLGLOBAL RTLD_GLOBAL
9725#else
9726# ifdef DL_GLOBAL
9727# define LT_DLGLOBAL DL_GLOBAL
9728# else
9729# define LT_DLGLOBAL 0
9730# endif
9731#endif
9732
9733/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9734 find out it does not work in some platform. */
9735#ifndef LT_DLLAZY_OR_NOW
9736# ifdef RTLD_LAZY
9737# define LT_DLLAZY_OR_NOW RTLD_LAZY
9738# else
9739# ifdef DL_LAZY
9740# define LT_DLLAZY_OR_NOW DL_LAZY
9741# else
9742# ifdef RTLD_NOW
9743# define LT_DLLAZY_OR_NOW RTLD_NOW
9744# else
9745# ifdef DL_NOW
9746# define LT_DLLAZY_OR_NOW DL_NOW
9747# else
9748# define LT_DLLAZY_OR_NOW 0
9749# endif
9750# endif
9751# endif
9752# endif
9753#endif
9754
9755#ifdef __cplusplus
9756extern "C" void exit (int);
9757#endif
9758
9759void fnord() { int i=42;}
9760int main ()
9761{
9762 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9763 int status = $lt_dlunknown;
9764
9765 if (self)
9766 {
9767 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9768 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9769 /* dlclose (self); */
9770 }
9771 else
9772 puts (dlerror ());
9773
9774 exit (status);
9775}
9776_LT_EOF
9777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9778 (eval $ac_link) 2>&5
9779 ac_status=$?
9780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9782 (./conftest; exit; ) >&5 2>/dev/null
9783 lt_status=$?
9784 case x$lt_status in
9785 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9786 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9787 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9788 esac
9789 else :
9790 # compilation failed
9791 lt_cv_dlopen_self=no
9792 fi
9793fi
9794rm -fr conftest*
9795
9796
9797fi
9798echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9799echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9800
9801 if test "x$lt_cv_dlopen_self" = xyes; then
9802 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9803 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9804echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9805if test "${lt_cv_dlopen_self_static+set}" = set; then
9806 echo $ECHO_N "(cached) $ECHO_C" >&6
9807else
9808 if test "$cross_compiling" = yes; then :
9809 lt_cv_dlopen_self_static=cross
9810else
9811 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9812 lt_status=$lt_dlunknown
9813 cat > conftest.$ac_ext <<_LT_EOF
5b2c7553 9814#line 9814 "configure"
542f9784 9815#include "confdefs.h"
9816
9817#if HAVE_DLFCN_H
9818#include <dlfcn.h>
9819#endif
9820
9821#include <stdio.h>
9822
9823#ifdef RTLD_GLOBAL
9824# define LT_DLGLOBAL RTLD_GLOBAL
9825#else
9826# ifdef DL_GLOBAL
9827# define LT_DLGLOBAL DL_GLOBAL
9828# else
9829# define LT_DLGLOBAL 0
9830# endif
9831#endif
9832
9833/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9834 find out it does not work in some platform. */
9835#ifndef LT_DLLAZY_OR_NOW
9836# ifdef RTLD_LAZY
9837# define LT_DLLAZY_OR_NOW RTLD_LAZY
9838# else
9839# ifdef DL_LAZY
9840# define LT_DLLAZY_OR_NOW DL_LAZY
9841# else
9842# ifdef RTLD_NOW
9843# define LT_DLLAZY_OR_NOW RTLD_NOW
9844# else
9845# ifdef DL_NOW
9846# define LT_DLLAZY_OR_NOW DL_NOW
9847# else
9848# define LT_DLLAZY_OR_NOW 0
9849# endif
9850# endif
9851# endif
9852# endif
9853#endif
9854
9855#ifdef __cplusplus
9856extern "C" void exit (int);
9857#endif
9858
9859void fnord() { int i=42;}
9860int main ()
9861{
9862 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9863 int status = $lt_dlunknown;
9864
9865 if (self)
9866 {
9867 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9868 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9869 /* dlclose (self); */
9870 }
9871 else
9872 puts (dlerror ());
9873
9874 exit (status);
9875}
9876_LT_EOF
9877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9878 (eval $ac_link) 2>&5
9879 ac_status=$?
9880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9881 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9882 (./conftest; exit; ) >&5 2>/dev/null
9883 lt_status=$?
9884 case x$lt_status in
9885 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9886 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9887 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9888 esac
9889 else :
9890 # compilation failed
9891 lt_cv_dlopen_self_static=no
9892 fi
9893fi
9894rm -fr conftest*
9895
9896
9897fi
9898echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9899echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9900 fi
9901
9902 CPPFLAGS="$save_CPPFLAGS"
9903 LDFLAGS="$save_LDFLAGS"
9904 LIBS="$save_LIBS"
9905 ;;
9906 esac
9907
9908 case $lt_cv_dlopen_self in
9909 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9910 *) enable_dlopen_self=unknown ;;
9911 esac
9912
9913 case $lt_cv_dlopen_self_static in
9914 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9915 *) enable_dlopen_self_static=unknown ;;
9916 esac
9917fi
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935striplib=
9936old_striplib=
9937echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9938echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9939if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9940 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9941 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9942 echo "$as_me:$LINENO: result: yes" >&5
9943echo "${ECHO_T}yes" >&6
9944else
9945# FIXME - insert some real tests, host_os isn't really good enough
9946 case $host_os in
9947 darwin*)
9948 if test -n "$STRIP" ; then
9949 striplib="$STRIP -x"
9950 old_striplib="$STRIP -S"
9951 echo "$as_me:$LINENO: result: yes" >&5
9952echo "${ECHO_T}yes" >&6
9953 else
9954 echo "$as_me:$LINENO: result: no" >&5
9955echo "${ECHO_T}no" >&6
9956 fi
9957 ;;
9958 *)
9959 echo "$as_me:$LINENO: result: no" >&5
9960echo "${ECHO_T}no" >&6
9961 ;;
9962 esac
9963fi
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976 # Report which library types will actually be built
9977 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9978echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9979 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9980echo "${ECHO_T}$can_build_shared" >&6
9981
9982 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9983echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9984 test "$can_build_shared" = "no" && enable_shared=no
9985
9986 # On AIX, shared libraries and static libraries use the same namespace, and
9987 # are all built from PIC.
9988 case $host_os in
9989 aix3*)
9990 test "$enable_shared" = yes && enable_static=no
9991 if test -n "$RANLIB"; then
9992 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9993 postinstall_cmds='$RANLIB $lib'
9994 fi
9995 ;;
9996
c8db569e 9997 aix[4-9]*)
542f9784 9998 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9999 test "$enable_shared" = yes && enable_static=no
10000 fi
10001 ;;
10002 esac
10003 echo "$as_me:$LINENO: result: $enable_shared" >&5
10004echo "${ECHO_T}$enable_shared" >&6
10005
10006 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10007echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10008 # Make sure either enable_shared or enable_static is yes.
10009 test "$enable_shared" = yes || enable_static=yes
10010 echo "$as_me:$LINENO: result: $enable_static" >&5
10011echo "${ECHO_T}$enable_static" >&6
10012
10013
10014
10015
10016fi
10017ac_ext=c
10018ac_cpp='$CPP $CPPFLAGS'
10019ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10020ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10021ac_compiler_gnu=$ac_cv_c_compiler_gnu
10022
10023CC="$lt_save_CC"
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037 ac_config_commands="$ac_config_commands libtool"
10038
10039
10040
10041
10042# Only expand once:
10043
10044
10045
10046
10047
10048echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
10049echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
10050 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
10051if test "${enable_maintainer_mode+set}" = set; then
10052 enableval="$enable_maintainer_mode"
10053 USE_MAINTAINER_MODE=$enableval
10054else
10055 USE_MAINTAINER_MODE=no
10056fi;
10057 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
10058echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
10059
10060
10061if test $USE_MAINTAINER_MODE = yes; then
10062 MAINTAINER_MODE_TRUE=
10063 MAINTAINER_MODE_FALSE='#'
10064else
10065 MAINTAINER_MODE_TRUE='#'
10066 MAINTAINER_MODE_FALSE=
10067fi
10068
10069 MAINT=$MAINTAINER_MODE_TRUE
10070
10071
10072
10073# We need gfortran to compile parts of the library
10074# We can't use AC_PROG_FC because it expects a fully working gfortran.
10075#AC_PROG_FC(gfortran)
10076FC="$GFORTRAN"
10077ac_ext=${FC_SRCEXT-f}
10078ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
10079ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
10080ac_compiler_gnu=$ac_cv_fc_compiler_gnu
10081if test -n "$ac_tool_prefix"; then
10082 for ac_prog in gfortran
10083 do
10084 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10085set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10086echo "$as_me:$LINENO: checking for $ac_word" >&5
10087echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10088if test "${ac_cv_prog_FC+set}" = set; then
10089 echo $ECHO_N "(cached) $ECHO_C" >&6
10090else
10091 if test -n "$FC"; then
10092 ac_cv_prog_FC="$FC" # Let the user override the test.
10093else
10094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10095for as_dir in $PATH
10096do
10097 IFS=$as_save_IFS
10098 test -z "$as_dir" && as_dir=.
10099 for ac_exec_ext in '' $ac_executable_extensions; do
10100 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10101 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
10102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10103 break 2
10104 fi
10105done
10106done
10107
10108fi
10109fi
10110FC=$ac_cv_prog_FC
10111if test -n "$FC"; then
10112 echo "$as_me:$LINENO: result: $FC" >&5
10113echo "${ECHO_T}$FC" >&6
10114else
10115 echo "$as_me:$LINENO: result: no" >&5
10116echo "${ECHO_T}no" >&6
10117fi
10118
10119 test -n "$FC" && break
10120 done
10121fi
10122if test -z "$FC"; then
10123 ac_ct_FC=$FC
10124 for ac_prog in gfortran
10125do
10126 # Extract the first word of "$ac_prog", so it can be a program name with args.
10127set dummy $ac_prog; ac_word=$2
10128echo "$as_me:$LINENO: checking for $ac_word" >&5
10129echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10130if test "${ac_cv_prog_ac_ct_FC+set}" = set; then
10131 echo $ECHO_N "(cached) $ECHO_C" >&6
10132else
10133 if test -n "$ac_ct_FC"; then
10134 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
10135else
10136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10137for as_dir in $PATH
10138do
10139 IFS=$as_save_IFS
10140 test -z "$as_dir" && as_dir=.
10141 for ac_exec_ext in '' $ac_executable_extensions; do
10142 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10143 ac_cv_prog_ac_ct_FC="$ac_prog"
10144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10145 break 2
10146 fi
10147done
10148done
10149
10150fi
10151fi
10152ac_ct_FC=$ac_cv_prog_ac_ct_FC
10153if test -n "$ac_ct_FC"; then
10154 echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
10155echo "${ECHO_T}$ac_ct_FC" >&6
10156else
10157 echo "$as_me:$LINENO: result: no" >&5
10158echo "${ECHO_T}no" >&6
10159fi
10160
10161 test -n "$ac_ct_FC" && break
10162done
10163
10164 FC=$ac_ct_FC
10165fi
10166
10167
10168# Provide some information about the compiler.
5b2c7553 10169echo "$as_me:10169:" \
542f9784 10170 "checking for Fortran compiler version" >&5
10171ac_compiler=`set X $ac_compile; echo $2`
10172{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10173 (eval $ac_compiler --version </dev/null >&5) 2>&5
10174 ac_status=$?
10175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176 (exit $ac_status); }
10177{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10178 (eval $ac_compiler -v </dev/null >&5) 2>&5
10179 ac_status=$?
10180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10181 (exit $ac_status); }
10182{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10183 (eval $ac_compiler -V </dev/null >&5) 2>&5
10184 ac_status=$?
10185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10186 (exit $ac_status); }
10187rm -f a.out
10188
10189# If we don't use `.F' as extension, the preprocessor is not run on the
10190# input file. (Note that this only needs to work for GNU compilers.)
10191ac_save_ext=$ac_ext
10192ac_ext=F
10193echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
10194echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6
10195if test "${ac_cv_fc_compiler_gnu+set}" = set; then
10196 echo $ECHO_N "(cached) $ECHO_C" >&6
10197else
10198 cat >conftest.$ac_ext <<_ACEOF
10199 program main
10200#ifndef __GNUC__
10201 choke me
10202#endif
10203
10204 end
10205_ACEOF
10206rm -f conftest.$ac_objext
10207if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10208 (eval $ac_compile) 2>conftest.er1
10209 ac_status=$?
10210 grep -v '^ *+' conftest.er1 >conftest.err
10211 rm -f conftest.er1
10212 cat conftest.err >&5
10213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214 (exit $ac_status); } &&
10215 { ac_try='test -z "$ac_fc_werror_flag"
10216 || test ! -s conftest.err'
10217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10218 (eval $ac_try) 2>&5
10219 ac_status=$?
10220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221 (exit $ac_status); }; } &&
10222 { ac_try='test -s conftest.$ac_objext'
10223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10224 (eval $ac_try) 2>&5
10225 ac_status=$?
10226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227 (exit $ac_status); }; }; then
10228 ac_compiler_gnu=yes
10229else
10230 echo "$as_me: failed program was:" >&5
10231sed 's/^/| /' conftest.$ac_ext >&5
10232
10233ac_compiler_gnu=no
10234fi
10235rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10236ac_cv_fc_compiler_gnu=$ac_compiler_gnu
10237
10238fi
10239echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
10240echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6
10241ac_ext=$ac_save_ext
10242ac_test_FFLAGS=${FCFLAGS+set}
10243ac_save_FFLAGS=$FCFLAGS
10244FCFLAGS=
10245echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
10246echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6
10247if test "${ac_cv_prog_fc_g+set}" = set; then
10248 echo $ECHO_N "(cached) $ECHO_C" >&6
10249else
10250 FCFLAGS=-g
10251cat >conftest.$ac_ext <<_ACEOF
10252 program main
10253
10254 end
10255_ACEOF
10256rm -f conftest.$ac_objext
10257if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10258 (eval $ac_compile) 2>conftest.er1
10259 ac_status=$?
10260 grep -v '^ *+' conftest.er1 >conftest.err
10261 rm -f conftest.er1
10262 cat conftest.err >&5
10263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10264 (exit $ac_status); } &&
10265 { ac_try='test -z "$ac_fc_werror_flag"
10266 || test ! -s conftest.err'
10267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10268 (eval $ac_try) 2>&5
10269 ac_status=$?
10270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10271 (exit $ac_status); }; } &&
10272 { ac_try='test -s conftest.$ac_objext'
10273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10274 (eval $ac_try) 2>&5
10275 ac_status=$?
10276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10277 (exit $ac_status); }; }; then
10278 ac_cv_prog_fc_g=yes
10279else
10280 echo "$as_me: failed program was:" >&5
10281sed 's/^/| /' conftest.$ac_ext >&5
10282
10283ac_cv_prog_fc_g=no
10284fi
10285rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10286
10287fi
10288echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
10289echo "${ECHO_T}$ac_cv_prog_fc_g" >&6
10290if test "$ac_test_FFLAGS" = set; then
10291 FCFLAGS=$ac_save_FFLAGS
10292elif test $ac_cv_prog_fc_g = yes; then
10293 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
10294 FCFLAGS="-g -O2"
10295 else
10296 FCFLAGS="-g"
10297 fi
10298else
10299 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
10300 FCFLAGS="-O2"
10301 else
10302 FCFLAGS=
10303 fi
10304fi
10305
10306ac_ext=c
10307ac_cpp='$CPP $CPPFLAGS'
10308ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10309ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10310ac_compiler_gnu=$ac_cv_c_compiler_gnu
10311
10312
10313ac_ext=${FC_SRCEXT-f}
10314ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
10315ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
10316ac_compiler_gnu=$ac_cv_fc_compiler_gnu
10317if test -n "$ac_tool_prefix"; then
10318 for ac_prog in f95 fort xlf95 ifc efc pgf95 lf95 gfortran f90 xlf90 pgf90 epcf90 g77 f77 xlf frt pgf77 fort77 fl32 af77
10319 do
10320 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10321set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10322echo "$as_me:$LINENO: checking for $ac_word" >&5
10323echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10324if test "${ac_cv_prog_FC+set}" = set; then
10325 echo $ECHO_N "(cached) $ECHO_C" >&6
10326else
10327 if test -n "$FC"; then
10328 ac_cv_prog_FC="$FC" # Let the user override the test.
10329else
10330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10331for as_dir in $PATH
10332do
10333 IFS=$as_save_IFS
10334 test -z "$as_dir" && as_dir=.
10335 for ac_exec_ext in '' $ac_executable_extensions; do
10336 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10337 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
10338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10339 break 2
10340 fi
10341done
10342done
10343
10344fi
10345fi
10346FC=$ac_cv_prog_FC
10347if test -n "$FC"; then
10348 echo "$as_me:$LINENO: result: $FC" >&5
10349echo "${ECHO_T}$FC" >&6
10350else
10351 echo "$as_me:$LINENO: result: no" >&5
10352echo "${ECHO_T}no" >&6
10353fi
10354
10355 test -n "$FC" && break
10356 done
10357fi
10358if test -z "$FC"; then
10359 ac_ct_FC=$FC
10360 for ac_prog in f95 fort xlf95 ifc efc pgf95 lf95 gfortran f90 xlf90 pgf90 epcf90 g77 f77 xlf frt pgf77 fort77 fl32 af77
10361do
10362 # Extract the first word of "$ac_prog", so it can be a program name with args.
10363set dummy $ac_prog; ac_word=$2
10364echo "$as_me:$LINENO: checking for $ac_word" >&5
10365echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10366if test "${ac_cv_prog_ac_ct_FC+set}" = set; then
10367 echo $ECHO_N "(cached) $ECHO_C" >&6
10368else
10369 if test -n "$ac_ct_FC"; then
10370 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
10371else
10372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10373for as_dir in $PATH
10374do
10375 IFS=$as_save_IFS
10376 test -z "$as_dir" && as_dir=.
10377 for ac_exec_ext in '' $ac_executable_extensions; do
10378 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10379 ac_cv_prog_ac_ct_FC="$ac_prog"
10380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10381 break 2
10382 fi
10383done
10384done
10385
10386fi
10387fi
10388ac_ct_FC=$ac_cv_prog_ac_ct_FC
10389if test -n "$ac_ct_FC"; then
10390 echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
10391echo "${ECHO_T}$ac_ct_FC" >&6
10392else
10393 echo "$as_me:$LINENO: result: no" >&5
10394echo "${ECHO_T}no" >&6
10395fi
10396
10397 test -n "$ac_ct_FC" && break
10398done
10399
10400 FC=$ac_ct_FC
10401fi
10402
10403
10404# Provide some information about the compiler.
5b2c7553 10405echo "$as_me:10405:" \
542f9784 10406 "checking for Fortran compiler version" >&5
10407ac_compiler=`set X $ac_compile; echo $2`
10408{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10409 (eval $ac_compiler --version </dev/null >&5) 2>&5
10410 ac_status=$?
10411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10412 (exit $ac_status); }
10413{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10414 (eval $ac_compiler -v </dev/null >&5) 2>&5
10415 ac_status=$?
10416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10417 (exit $ac_status); }
10418{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10419 (eval $ac_compiler -V </dev/null >&5) 2>&5
10420 ac_status=$?
10421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10422 (exit $ac_status); }
10423rm -f a.out
10424
10425# If we don't use `.F' as extension, the preprocessor is not run on the
10426# input file. (Note that this only needs to work for GNU compilers.)
10427ac_save_ext=$ac_ext
10428ac_ext=F
10429echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
10430echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6
10431if test "${ac_cv_fc_compiler_gnu+set}" = set; then
10432 echo $ECHO_N "(cached) $ECHO_C" >&6
10433else
10434 cat >conftest.$ac_ext <<_ACEOF
10435 program main
10436#ifndef __GNUC__
10437 choke me
10438#endif
10439
10440 end
10441_ACEOF
10442rm -f conftest.$ac_objext
10443if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10444 (eval $ac_compile) 2>conftest.er1
10445 ac_status=$?
10446 grep -v '^ *+' conftest.er1 >conftest.err
10447 rm -f conftest.er1
10448 cat conftest.err >&5
10449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450 (exit $ac_status); } &&
10451 { ac_try='test -z "$ac_fc_werror_flag"
10452 || test ! -s conftest.err'
10453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10454 (eval $ac_try) 2>&5
10455 ac_status=$?
10456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10457 (exit $ac_status); }; } &&
10458 { ac_try='test -s conftest.$ac_objext'
10459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10460 (eval $ac_try) 2>&5
10461 ac_status=$?
10462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10463 (exit $ac_status); }; }; then
10464 ac_compiler_gnu=yes
10465else
10466 echo "$as_me: failed program was:" >&5
10467sed 's/^/| /' conftest.$ac_ext >&5
10468
10469ac_compiler_gnu=no
10470fi
10471rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10472ac_cv_fc_compiler_gnu=$ac_compiler_gnu
10473
10474fi
10475echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
10476echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6
10477ac_ext=$ac_save_ext
10478ac_test_FFLAGS=${FCFLAGS+set}
10479ac_save_FFLAGS=$FCFLAGS
10480FCFLAGS=
10481echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
10482echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6
10483if test "${ac_cv_prog_fc_g+set}" = set; then
10484 echo $ECHO_N "(cached) $ECHO_C" >&6
10485else
10486 FCFLAGS=-g
10487cat >conftest.$ac_ext <<_ACEOF
10488 program main
10489
10490 end
10491_ACEOF
10492rm -f conftest.$ac_objext
10493if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10494 (eval $ac_compile) 2>conftest.er1
10495 ac_status=$?
10496 grep -v '^ *+' conftest.er1 >conftest.err
10497 rm -f conftest.er1
10498 cat conftest.err >&5
10499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10500 (exit $ac_status); } &&
10501 { ac_try='test -z "$ac_fc_werror_flag"
10502 || test ! -s conftest.err'
10503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10504 (eval $ac_try) 2>&5
10505 ac_status=$?
10506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10507 (exit $ac_status); }; } &&
10508 { ac_try='test -s conftest.$ac_objext'
10509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10510 (eval $ac_try) 2>&5
10511 ac_status=$?
10512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10513 (exit $ac_status); }; }; then
10514 ac_cv_prog_fc_g=yes
10515else
10516 echo "$as_me: failed program was:" >&5
10517sed 's/^/| /' conftest.$ac_ext >&5
10518
10519ac_cv_prog_fc_g=no
10520fi
10521rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10522
10523fi
10524echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
10525echo "${ECHO_T}$ac_cv_prog_fc_g" >&6
10526if test "$ac_test_FFLAGS" = set; then
10527 FCFLAGS=$ac_save_FFLAGS
10528elif test $ac_cv_prog_fc_g = yes; then
10529 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
10530 FCFLAGS="-g -O2"
10531 else
10532 FCFLAGS="-g"
10533 fi
10534else
10535 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
10536 FCFLAGS="-O2"
10537 else
10538 FCFLAGS=
10539 fi
10540fi
10541
10542ac_ext=c
10543ac_cpp='$CPP $CPPFLAGS'
10544ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10545ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10546ac_compiler_gnu=$ac_cv_c_compiler_gnu
10547
10548if test -z "$FC" || test "X$FC" = "Xno"; then
10549 _lt_disable_FC=yes
10550fi
10551
10552
10553
10554 ac_ext=${FC_SRCEXT-f}
10555ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
10556ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
10557ac_compiler_gnu=$ac_cv_fc_compiler_gnu
10558
10559
10560archive_cmds_need_lc_FC=no
10561allow_undefined_flag_FC=
10562always_export_symbols_FC=no
10563archive_expsym_cmds_FC=
10564export_dynamic_flag_spec_FC=
10565hardcode_direct_FC=no
10566hardcode_direct_absolute_FC=no
10567hardcode_libdir_flag_spec_FC=
10568hardcode_libdir_flag_spec_ld_FC=
10569hardcode_libdir_separator_FC=
10570hardcode_minus_L_FC=no
10571hardcode_automatic_FC=no
10572inherit_rpath_FC=no
10573module_cmds_FC=
10574module_expsym_cmds_FC=
10575link_all_deplibs_FC=unknown
10576old_archive_cmds_FC=$old_archive_cmds
10577no_undefined_flag_FC=
10578whole_archive_flag_spec_FC=
10579enable_shared_with_static_runtimes_FC=no
10580
10581# Source file extension for fc test sources.
10582ac_ext=${ac_fc_srcext-f}
10583
10584# Object file extension for compiled fc test sources.
10585objext=o
10586objext_FC=$objext
10587
10588# No sense in running all these tests if we already determined that
10589# the FC compiler isn't working. Some variables (like enable_shared)
10590# are currently assumed to apply to all compilers on this platform,
10591# and will be corrupted by setting them based on a non-working compiler.
10592if test "$_lt_disable_FC" != yes; then
10593 # Code to be used in simple compile tests
10594 lt_simple_compile_test_code="\
10595 subroutine t
10596 return
10597 end
10598"
10599
10600 # Code to be used in simple link tests
10601 lt_simple_link_test_code="\
10602 program t
10603 end
10604"
10605
10606 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10607
10608
10609
10610
10611
10612
10613# If no C compiler was specified, use CC.
10614LTCC=${LTCC-"$CC"}
10615
10616# If no C compiler flags were specified, use CFLAGS.
10617LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10618
10619# Allow CC to be a program name with arguments.
10620compiler=$CC
10621
10622
10623 # save warnings/boilerplate of simple test code
10624 ac_outfile=conftest.$ac_objext
10625echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10626eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10627_lt_compiler_boilerplate=`cat conftest.err`
10628$RM conftest*
10629
10630 ac_outfile=conftest.$ac_objext
10631echo "$lt_simple_link_test_code" >conftest.$ac_ext
10632eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10633_lt_linker_boilerplate=`cat conftest.err`
10634$RM conftest*
10635
10636
10637 # Allow CC to be a program name with arguments.
10638 lt_save_CC="$CC"
10639 CC=${FC-"f95"}
10640 compiler=$CC
10641 compiler_FC=$CC
10642 for cc_temp in $compiler""; do
10643 case $cc_temp in
10644 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10645 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10646 \-*) ;;
10647 *) break;;
10648 esac
10649done
10650cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10651
10652
10653 if test -n "$compiler"; then
10654 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10655echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10656 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10657echo "${ECHO_T}$can_build_shared" >&6
10658
10659 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10660echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10661 test "$can_build_shared" = "no" && enable_shared=no
10662
10663 # On AIX, shared libraries and static libraries use the same namespace, and
10664 # are all built from PIC.
10665 case $host_os in
10666 aix3*)
10667 test "$enable_shared" = yes && enable_static=no
10668 if test -n "$RANLIB"; then
10669 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10670 postinstall_cmds='$RANLIB $lib'
10671 fi
10672 ;;
c8db569e 10673 aix[4-9]*)
542f9784 10674 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10675 test "$enable_shared" = yes && enable_static=no
10676 fi
10677 ;;
10678 esac
10679 echo "$as_me:$LINENO: result: $enable_shared" >&5
10680echo "${ECHO_T}$enable_shared" >&6
10681
10682 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10683echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10684 # Make sure either enable_shared or enable_static is yes.
10685 test "$enable_shared" = yes || enable_static=yes
10686 echo "$as_me:$LINENO: result: $enable_static" >&5
10687echo "${ECHO_T}$enable_static" >&6
10688
10689 GCC_FC="$ac_cv_fc_compiler_gnu"
10690 LD_FC="$LD"
10691
10692 ## CAVEAT EMPTOR:
10693 ## There is no encapsulation within the following macros, do not change
10694 ## the running order or otherwise move them around unless you know exactly
10695 ## what you are doing...
10696 # Dependencies to place before and after the object being linked:
10697predep_objects_FC=
10698postdep_objects_FC=
10699predeps_FC=
10700postdeps_FC=
10701compiler_lib_search_path_FC=
10702
10703cat > conftest.$ac_ext <<_LT_EOF
10704 subroutine foo
10705 implicit none
10706 integer a
10707 a=0
10708 return
10709 end
10710_LT_EOF
10711
10712if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10713 (eval $ac_compile) 2>&5
10714 ac_status=$?
10715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716 (exit $ac_status); }; then
10717 # Parse the compiler output and extract the necessary
10718 # objects, libraries and library flags.
10719
10720 # Sentinel used to keep track of whether or not we are before
10721 # the conftest object file.
10722 pre_test_object_deps_done=no
10723
10724 # The `*' in the case matches for architectures that use `case' in
10725 # $output_verbose_cmd can trigger glob expansion during the loop
10726 # eval without this substitution.
10727 output_verbose_link_cmd=`$ECHO "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
10728
10729 for p in `eval $output_verbose_link_cmd`; do
10730 case $p in
10731
10732 -L* | -R* | -l*)
10733 # Some compilers place space between "-{L,R}" and the path.
10734 # Remove the space.
10735 if test $p = "-L" ||
10736 test $p = "-R"; then
10737 prev=$p
10738 continue
10739 else
10740 prev=
10741 fi
10742
10743 if test "$pre_test_object_deps_done" = no; then
10744 case $p in
10745 -L* | -R*)
10746 # Internal compiler library paths should come after those
10747 # provided the user. The postdeps already come after the
10748 # user supplied libs so there is no need to process them.
10749 if test -z "$compiler_lib_search_path_FC"; then
10750 compiler_lib_search_path_FC="${prev}${p}"
10751 else
10752 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
10753 fi
10754 ;;
10755 # The "-l" case would never come before the object being
10756 # linked, so don't bother handling this case.
10757 esac
10758 else
10759 if test -z "$postdeps_FC"; then
10760 postdeps_FC="${prev}${p}"
10761 else
10762 postdeps_FC="${postdeps_FC} ${prev}${p}"
10763 fi
10764 fi
10765 ;;
10766
10767 *.$objext)
10768 # This assumes that the test object file only shows up
10769 # once in the compiler output.
10770 if test "$p" = "conftest.$objext"; then
10771 pre_test_object_deps_done=yes
10772 continue
10773 fi
10774
10775 if test "$pre_test_object_deps_done" = no; then
10776 if test -z "$predep_objects_FC"; then
10777 predep_objects_FC="$p"
10778 else
10779 predep_objects_FC="$predep_objects_FC $p"
10780 fi
10781 else
10782 if test -z "$postdep_objects_FC"; then
10783 postdep_objects_FC="$p"
10784 else
10785 postdep_objects_FC="$postdep_objects_FC $p"
10786 fi
10787 fi
10788 ;;
10789
10790 *) ;; # Ignore the rest.
10791
10792 esac
10793 done
10794
10795 # Clean up.
10796 rm -f a.out a.exe
10797else
10798 echo "libtool.m4: error: problem compiling FC test program"
10799fi
10800
10801$RM -f confest.$objext
10802
10803# PORTME: override above test on systems where it is broken
10804
10805
10806case " $postdeps_FC " in
10807*" -lc "*) archive_cmds_need_lc_FC=no ;;
10808esac
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835 lt_prog_compiler_wl_FC=
10836lt_prog_compiler_pic_FC=
10837lt_prog_compiler_static_FC=
10838
10839echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10840echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10841
10842 if test "$GCC" = yes; then
10843 lt_prog_compiler_wl_FC='-Wl,'
10844 lt_prog_compiler_static_FC='-static'
10845
10846 case $host_os in
10847 aix*)
10848 # All AIX code is PIC.
10849 if test "$host_cpu" = ia64; then
10850 # AIX 5 now supports IA64 processor
10851 lt_prog_compiler_static_FC='-Bstatic'
10852 fi
10853 ;;
10854
10855 amigaos*)
10856 if test "$host_cpu" = m68k; then
10857 # FIXME: we need at least 68020 code to build shared libraries, but
10858 # adding the `-m68020' flag to GCC prevents building anything better,
10859 # like `-m68040'.
10860 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
10861 fi
10862 ;;
10863
10864 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10865 # PIC is the default for these OSes.
10866 ;;
10867
10868 mingw* | cygwin* | pw32* | os2*)
10869 # This hack is so that the source file can tell whether it is being
10870 # built for inclusion in a dll (and should export symbols for example).
10871 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10872 # (--disable-auto-import) libraries
10873 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
10874 ;;
10875
10876 darwin* | rhapsody*)
10877 # PIC is the default on this platform
10878 # Common symbols not allowed in MH_DYLIB files
10879 lt_prog_compiler_pic_FC='-fno-common'
10880 ;;
10881
10882 hpux*)
10883 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10884 # not for PA HP-UX.
10885 case $host_cpu in
10886 hppa*64*|ia64*)
10887 # +Z the default
10888 ;;
10889 *)
10890 lt_prog_compiler_pic_FC='-fPIC'
10891 ;;
10892 esac
10893 ;;
10894
10895 interix[3-9]*)
10896 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10897 # Instead, we relocate shared libraries at runtime.
10898 ;;
10899
10900 msdosdjgpp*)
10901 # Just because we use GCC doesn't mean we suddenly get shared libraries
10902 # on systems that don't support them.
10903 lt_prog_compiler_can_build_shared_FC=no
10904 enable_shared=no
10905 ;;
10906
10907 *nto* | *qnx*)
10908 # QNX uses GNU C++, but need to define -shared option too, otherwise
10909 # it will coredump.
10910 lt_prog_compiler_pic_FC='-fPIC -shared'
10911 ;;
10912
10913 sysv4*MP*)
10914 if test -d /usr/nec; then
10915 lt_prog_compiler_pic_FC=-Kconform_pic
10916 fi
10917 ;;
10918
10919 *)
10920 lt_prog_compiler_pic_FC='-fPIC'
10921 ;;
10922 esac
10923 else
10924 # PORTME Check for flag to pass linker flags through the system compiler.
10925 case $host_os in
10926 aix*)
10927 lt_prog_compiler_wl_FC='-Wl,'
10928 if test "$host_cpu" = ia64; then
10929 # AIX 5 now supports IA64 processor
10930 lt_prog_compiler_static_FC='-Bstatic'
10931 else
10932 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
10933 fi
10934 ;;
10935 darwin*)
10936 # PIC is the default on this platform
10937 # Common symbols not allowed in MH_DYLIB files
10938 case $cc_basename in
10939 xlc*)
10940 lt_prog_compiler_pic_FC='-qnocommon'
10941 lt_prog_compiler_wl_FC='-Wl,'
10942 ;;
10943 esac
10944 ;;
10945
10946 mingw* | cygwin* | pw32* | os2*)
10947 # This hack is so that the source file can tell whether it is being
10948 # built for inclusion in a dll (and should export symbols for example).
10949 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
10950 ;;
10951
10952 hpux9* | hpux10* | hpux11*)
10953 lt_prog_compiler_wl_FC='-Wl,'
10954 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10955 # not for PA HP-UX.
10956 case $host_cpu in
10957 hppa*64*|ia64*)
10958 # +Z the default
10959 ;;
10960 *)
10961 lt_prog_compiler_pic_FC='+Z'
10962 ;;
10963 esac
10964 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10965 lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
10966 ;;
10967
10968 irix5* | irix6* | nonstopux*)
10969 lt_prog_compiler_wl_FC='-Wl,'
10970 # PIC (with -KPIC) is the default.
10971 lt_prog_compiler_static_FC='-non_shared'
10972 ;;
10973
10974 linux* | k*bsd*-gnu)
10975 case $cc_basename in
10976 icc* | ecc*)
10977 lt_prog_compiler_wl_FC='-Wl,'
10978 lt_prog_compiler_pic_FC='-KPIC'
10979 lt_prog_compiler_static_FC='-static'
10980 ;;
10981 pgcc* | pgf77* | pgf90* | pgf95*)
10982 # Portland Group compilers (*not* the Pentium gcc compiler,
10983 # which looks to be a dead project)
10984 lt_prog_compiler_wl_FC='-Wl,'
10985 lt_prog_compiler_pic_FC='-fpic'
10986 lt_prog_compiler_static_FC='-Bstatic'
10987 ;;
10988 ccc*)
10989 lt_prog_compiler_wl_FC='-Wl,'
10990 # All Alpha code is PIC.
10991 lt_prog_compiler_static_FC='-non_shared'
10992 ;;
10993 *)
10994 case `$CC -V 2>&1 | sed 5q` in
10995 *Sun\ C*)
10996 # Sun C 5.9
10997 lt_prog_compiler_pic_FC='-KPIC'
10998 lt_prog_compiler_static_FC='-Bstatic'
10999 lt_prog_compiler_wl_FC='-Wl,'
11000 ;;
11001 *Sun\ F*)
11002 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11003 lt_prog_compiler_pic_FC='-KPIC'
11004 lt_prog_compiler_static_FC='-Bstatic'
11005 lt_prog_compiler_wl_FC=''
11006 ;;
11007 esac
11008 ;;
11009 esac
11010 ;;
11011
11012 newsos6)
11013 lt_prog_compiler_pic_FC='-KPIC'
11014 lt_prog_compiler_static_FC='-Bstatic'
11015 ;;
11016
11017 *nto* | *qnx*)
11018 # QNX uses GNU C++, but need to define -shared option too, otherwise
11019 # it will coredump.
11020 lt_prog_compiler_pic_FC='-fPIC -shared'
11021 ;;
11022
11023 osf3* | osf4* | osf5*)
11024 lt_prog_compiler_wl_FC='-Wl,'
11025 # All OSF/1 code is PIC.
11026 lt_prog_compiler_static_FC='-non_shared'
11027 ;;
11028
11029 rdos*)
11030 lt_prog_compiler_static_FC='-non_shared'
11031 ;;
11032
11033 solaris*)
11034 lt_prog_compiler_pic_FC='-KPIC'
11035 lt_prog_compiler_static_FC='-Bstatic'
11036 case $cc_basename in
11037 f77* | f90* | f95*)
11038 lt_prog_compiler_wl_FC='-Qoption ld ';;
11039 *)
11040 lt_prog_compiler_wl_FC='-Wl,';;
11041 esac
11042 ;;
11043
11044 sunos4*)
11045 lt_prog_compiler_wl_FC='-Qoption ld '
11046 lt_prog_compiler_pic_FC='-PIC'
11047 lt_prog_compiler_static_FC='-Bstatic'
11048 ;;
11049
11050 sysv4 | sysv4.2uw2* | sysv4.3*)
11051 lt_prog_compiler_wl_FC='-Wl,'
11052 lt_prog_compiler_pic_FC='-KPIC'
11053 lt_prog_compiler_static_FC='-Bstatic'
11054 ;;
11055
11056 sysv4*MP*)
11057 if test -d /usr/nec ;then
11058 lt_prog_compiler_pic_FC='-Kconform_pic'
11059 lt_prog_compiler_static_FC='-Bstatic'
11060 fi
11061 ;;
11062
11063 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11064 lt_prog_compiler_wl_FC='-Wl,'
11065 lt_prog_compiler_pic_FC='-KPIC'
11066 lt_prog_compiler_static_FC='-Bstatic'
11067 ;;
11068
11069 unicos*)
11070 lt_prog_compiler_wl_FC='-Wl,'
11071 lt_prog_compiler_can_build_shared_FC=no
11072 ;;
11073
11074 uts4*)
11075 lt_prog_compiler_pic_FC='-pic'
11076 lt_prog_compiler_static_FC='-Bstatic'
11077 ;;
11078
11079 *)
11080 lt_prog_compiler_can_build_shared_FC=no
11081 ;;
11082 esac
11083 fi
11084
11085case $host_os in
11086 # For platforms which do not support PIC, -DPIC is meaningless:
11087 *djgpp*)
11088 lt_prog_compiler_pic_FC=
11089 ;;
11090 *)
11091 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
11092 ;;
11093esac
11094echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_FC" >&5
11095echo "${ECHO_T}$lt_prog_compiler_pic_FC" >&6
11096
11097
11098
11099#
11100# Check to make sure the PIC flag actually works.
11101#
11102if test -n "$lt_prog_compiler_pic_FC"; then
11103 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
11104echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... $ECHO_C" >&6
11105if test "${lt_prog_compiler_pic_works_FC+set}" = set; then
11106 echo $ECHO_N "(cached) $ECHO_C" >&6
11107else
11108 lt_prog_compiler_pic_works_FC=no
11109 ac_outfile=conftest.$ac_objext
11110 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11111 lt_compiler_flag="$lt_prog_compiler_pic_FC"
11112 # Insert the option either (1) after the last *FLAGS variable, or
11113 # (2) before a word containing "conftest.", or (3) at the end.
11114 # Note that $ac_compile itself does not contain backslashes and begins
11115 # with a dollar sign (not a hyphen), so the echo should work correctly.
11116 # The option is referenced via a variable to avoid confusing sed.
11117 lt_compile=`echo "$ac_compile" | $SED \
11118 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11119 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11120 -e 's:$: $lt_compiler_flag:'`
5b2c7553 11121 (eval echo "\"\$as_me:11121: $lt_compile\"" >&5)
542f9784 11122 (eval "$lt_compile" 2>conftest.err)
11123 ac_status=$?
11124 cat conftest.err >&5
5b2c7553 11125 echo "$as_me:11125: \$? = $ac_status" >&5
542f9784 11126 if (exit $ac_status) && test -s "$ac_outfile"; then
11127 # The compiler can only warn and ignore the option if not recognized
11128 # So say no if there are warnings other than the usual output.
11129 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11130 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11131 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11132 lt_prog_compiler_pic_works_FC=yes
11133 fi
11134 fi
11135 $RM conftest*
11136
11137fi
11138echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_FC" >&5
11139echo "${ECHO_T}$lt_prog_compiler_pic_works_FC" >&6
11140
11141if test x"$lt_prog_compiler_pic_works_FC" = xyes; then
11142 case $lt_prog_compiler_pic_FC in
11143 "" | " "*) ;;
11144 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
11145 esac
11146else
11147 lt_prog_compiler_pic_FC=
11148 lt_prog_compiler_can_build_shared_FC=no
11149fi
11150
11151fi
11152
11153
11154
11155#
11156# Check to make sure the static flag actually works.
11157#
11158wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
11159echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11160echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11161if test "${lt_prog_compiler_static_works_FC+set}" = set; then
11162 echo $ECHO_N "(cached) $ECHO_C" >&6
11163else
11164 lt_prog_compiler_static_works_FC=no
11165 save_LDFLAGS="$LDFLAGS"
11166 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11167 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11168 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11169 # The linker can only warn and ignore the option if not recognized
11170 # So say no if there are warnings
11171 if test -s conftest.err; then
11172 # Append any errors to the config.log.
11173 cat conftest.err 1>&5
11174 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11175 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11176 if diff conftest.exp conftest.er2 >/dev/null; then
11177 lt_prog_compiler_static_works_FC=yes
11178 fi
11179 else
11180 lt_prog_compiler_static_works_FC=yes
11181 fi
11182 fi
11183 $RM conftest*
11184 LDFLAGS="$save_LDFLAGS"
11185
11186fi
11187echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_FC" >&5
11188echo "${ECHO_T}$lt_prog_compiler_static_works_FC" >&6
11189
11190if test x"$lt_prog_compiler_static_works_FC" = xyes; then
11191 :
11192else
11193 lt_prog_compiler_static_FC=
11194fi
11195
11196
11197
11198
11199 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11200echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11201if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then
11202 echo $ECHO_N "(cached) $ECHO_C" >&6
11203else
11204 lt_cv_prog_compiler_c_o_FC=no
11205 $RM -r conftest 2>/dev/null
11206 mkdir conftest
11207 cd conftest
11208 mkdir out
11209 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11210
11211 lt_compiler_flag="-o out/conftest2.$ac_objext"
11212 # Insert the option either (1) after the last *FLAGS variable, or
11213 # (2) before a word containing "conftest.", or (3) at the end.
11214 # Note that $ac_compile itself does not contain backslashes and begins
11215 # with a dollar sign (not a hyphen), so the echo should work correctly.
11216 lt_compile=`echo "$ac_compile" | $SED \
11217 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11218 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11219 -e 's:$: $lt_compiler_flag:'`
5b2c7553 11220 (eval echo "\"\$as_me:11220: $lt_compile\"" >&5)
542f9784 11221 (eval "$lt_compile" 2>out/conftest.err)
11222 ac_status=$?
11223 cat out/conftest.err >&5
5b2c7553 11224 echo "$as_me:11224: \$? = $ac_status" >&5
542f9784 11225 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11226 then
11227 # The compiler can only warn and ignore the option if not recognized
11228 # So say no if there are warnings
11229 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11230 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11231 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11232 lt_cv_prog_compiler_c_o_FC=yes
11233 fi
11234 fi
11235 chmod u+w . 2>&5
11236 $RM conftest*
11237 # SGI C++ compiler will create directory out/ii_files/ for
11238 # template instantiation
11239 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11240 $RM out/* && rmdir out
11241 cd ..
11242 $RM -r conftest
11243 $RM conftest*
11244
11245fi
11246echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_FC" >&5
11247echo "${ECHO_T}$lt_cv_prog_compiler_c_o_FC" >&6
11248
11249
11250
11251 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11252echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11253if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then
11254 echo $ECHO_N "(cached) $ECHO_C" >&6
11255else
11256 lt_cv_prog_compiler_c_o_FC=no
11257 $RM -r conftest 2>/dev/null
11258 mkdir conftest
11259 cd conftest
11260 mkdir out
11261 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11262
11263 lt_compiler_flag="-o out/conftest2.$ac_objext"
11264 # Insert the option either (1) after the last *FLAGS variable, or
11265 # (2) before a word containing "conftest.", or (3) at the end.
11266 # Note that $ac_compile itself does not contain backslashes and begins
11267 # with a dollar sign (not a hyphen), so the echo should work correctly.
11268 lt_compile=`echo "$ac_compile" | $SED \
11269 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11270 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11271 -e 's:$: $lt_compiler_flag:'`
5b2c7553 11272 (eval echo "\"\$as_me:11272: $lt_compile\"" >&5)
542f9784 11273 (eval "$lt_compile" 2>out/conftest.err)
11274 ac_status=$?
11275 cat out/conftest.err >&5
5b2c7553 11276 echo "$as_me:11276: \$? = $ac_status" >&5
542f9784 11277 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11278 then
11279 # The compiler can only warn and ignore the option if not recognized
11280 # So say no if there are warnings
11281 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11282 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11283 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11284 lt_cv_prog_compiler_c_o_FC=yes
11285 fi
11286 fi
11287 chmod u+w . 2>&5
11288 $RM conftest*
11289 # SGI C++ compiler will create directory out/ii_files/ for
11290 # template instantiation
11291 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11292 $RM out/* && rmdir out
11293 cd ..
11294 $RM -r conftest
11295 $RM conftest*
11296
11297fi
11298echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_FC" >&5
11299echo "${ECHO_T}$lt_cv_prog_compiler_c_o_FC" >&6
11300
11301
11302
11303
11304hard_links="nottested"
11305if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
11306 # do not overwrite the value of need_locks provided by the user
11307 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11308echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11309 hard_links=yes
11310 $RM conftest*
11311 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11312 touch conftest.a
11313 ln conftest.a conftest.b 2>&5 || hard_links=no
11314 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11315 echo "$as_me:$LINENO: result: $hard_links" >&5
11316echo "${ECHO_T}$hard_links" >&6
11317 if test "$hard_links" = no; then
11318 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11319echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11320 need_locks=warn
11321 fi
11322else
11323 need_locks=no
11324fi
11325
11326
11327
11328 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11329echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11330
11331 runpath_var=
11332 allow_undefined_flag_FC=
11333 always_export_symbols_FC=no
11334 archive_cmds_FC=
11335 archive_expsym_cmds_FC=
11336 compiler_needs_object_FC=no
11337 enable_shared_with_static_runtimes_FC=no
11338 export_dynamic_flag_spec_FC=
11339 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11340 hardcode_automatic_FC=no
11341 hardcode_direct_FC=no
11342 hardcode_direct_absolute_FC=no
11343 hardcode_libdir_flag_spec_FC=
11344 hardcode_libdir_flag_spec_ld_FC=
11345 hardcode_libdir_separator_FC=
11346 hardcode_minus_L_FC=no
11347 hardcode_shlibpath_var_FC=unsupported
11348 inherit_rpath_FC=no
11349 link_all_deplibs_FC=unknown
11350 module_cmds_FC=
11351 module_expsym_cmds_FC=
11352 old_archive_from_new_cmds_FC=
11353 old_archive_from_expsyms_cmds_FC=
11354 thread_safe_flag_spec_FC=
11355 whole_archive_flag_spec_FC=
11356 # include_expsyms should be a list of space-separated symbols to be *always*
11357 # included in the symbol list
11358 include_expsyms_FC=
11359 # exclude_expsyms can be an extended regexp of symbols to exclude
11360 # it will be wrapped by ` (' and `)$', so one must not match beginning or
11361 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11362 # as well as any symbol that contains `d'.
11363 exclude_expsyms_FC="_GLOBAL_OFFSET_TABLE_"
11364 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11365 # platforms (ab)use it in PIC code, but their linkers get confused if
11366 # the symbol is explicitly referenced. Since portable code cannot
11367 # rely on this symbol name, it's probably fine to never include it in
11368 # preloaded symbol tables.
11369 extract_expsyms_cmds=
11370
11371 case $host_os in
11372 cygwin* | mingw* | pw32*)
11373 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11374 # When not using gcc, we currently assume that we are using
11375 # Microsoft Visual C++.
11376 if test "$GCC" != yes; then
11377 with_gnu_ld=no
11378 fi
11379 ;;
11380 interix*)
11381 # we just hope/assume this is gcc and not c89 (= MSVC++)
11382 with_gnu_ld=yes
11383 ;;
11384 openbsd*)
11385 with_gnu_ld=no
11386 ;;
11387 esac
11388
11389 ld_shlibs_FC=yes
11390 if test "$with_gnu_ld" = yes; then
11391 # If archive_cmds runs LD, not CC, wlarc should be empty
11392 wlarc='${wl}'
11393
11394 # Set some defaults for GNU ld with shared library support. These
11395 # are reset later if shared libraries are not supported. Putting them
11396 # here allows them to be overridden if necessary.
11397 runpath_var=LD_RUN_PATH
11398 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
11399 export_dynamic_flag_spec_FC='${wl}--export-dynamic'
11400 # ancient GNU ld didn't support --whole-archive et. al.
11401 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11402 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11403 else
11404 whole_archive_flag_spec_FC=
11405 fi
11406 supports_anon_versioning=no
11407 case `$LD -v 2>&1` in
11408 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11409 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11410 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11411 *\ 2.11.*) ;; # other 2.11 versions
11412 *) supports_anon_versioning=yes ;;
11413 esac
11414
11415 # See if GNU ld supports shared libraries.
11416 case $host_os in
c8db569e 11417 aix[3-9]*)
542f9784 11418 # On AIX/PPC, the GNU linker is very broken
11419 if test "$host_cpu" != ia64; then
11420 ld_shlibs_FC=no
11421 cat <<_LT_EOF 1>&2
11422
11423*** Warning: the GNU linker, at least up to release 2.9.1, is reported
11424*** to be unable to reliably create shared libraries on AIX.
11425*** Therefore, libtool is disabling shared libraries support. If you
11426*** really care for shared libraries, you may want to modify your PATH
11427*** so that a non-GNU linker is found, and then restart.
11428
11429_LT_EOF
11430 fi
11431 ;;
11432
11433 amigaos*)
11434 if test "$host_cpu" = m68k; then
11435 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)'
11436 hardcode_libdir_flag_spec_FC='-L$libdir'
11437 hardcode_minus_L_FC=yes
11438 fi
11439
11440 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
11441 # that the semantics of dynamic libraries on AmigaOS, at least up
11442 # to version 4, is to share data among multiple programs linked
11443 # with the same dynamic library. Since this doesn't match the
11444 # behavior of shared libraries on other platforms, we can't use
11445 # them.
11446 ld_shlibs_FC=no
11447 ;;
11448
11449 beos*)
11450 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11451 allow_undefined_flag_FC=unsupported
11452 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11453 # support --undefined. This deserves some investigation. FIXME
11454 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11455 else
11456 ld_shlibs_FC=no
11457 fi
11458 ;;
11459
11460 cygwin* | mingw* | pw32*)
11461 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
11462 # as there is no search path for DLLs.
11463 hardcode_libdir_flag_spec_FC='-L$libdir'
11464 allow_undefined_flag_FC=unsupported
11465 always_export_symbols_FC=no
11466 enable_shared_with_static_runtimes_FC=yes
11467 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11468
11469 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11470 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11471 # If the export-symbols file already is a .def file (1st line
11472 # is EXPORTS), use it as is; otherwise, prepend...
11473 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11474 cp $export_symbols $output_objdir/$soname.def;
11475 else
11476 echo EXPORTS > $output_objdir/$soname.def;
11477 cat $export_symbols >> $output_objdir/$soname.def;
11478 fi~
11479 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11480 else
11481 ld_shlibs_FC=no
11482 fi
11483 ;;
11484
11485 interix[3-9]*)
11486 hardcode_direct_FC=no
11487 hardcode_shlibpath_var_FC=no
11488 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
11489 export_dynamic_flag_spec_FC='${wl}-E'
11490 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11491 # Instead, shared libraries are loaded at an image base (0x10000000 by
11492 # default) and relocated if they conflict, which is a slow very memory
11493 # consuming and fragmenting process. To avoid this, we pick a random,
11494 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11495 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11496 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'
11497 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'
11498 ;;
11499
11500 gnu* | linux* | tpf* | k*bsd*-gnu)
11501 tmp_diet=no
11502 if test "$host_os" = linux-dietlibc; then
11503 case $cc_basename in
11504 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11505 esac
11506 fi
11507 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11508 && test "$tmp_diet" = no
11509 then
11510 tmp_addflag=
11511 case $cc_basename,$host_cpu in
11512 pgcc*) # Portland Group C compiler
11513 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'
11514 tmp_addflag=' $pic_flag'
11515 ;;
11516 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
11517 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'
11518 tmp_addflag=' $pic_flag -Mnomain' ;;
11519 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11520 tmp_addflag=' -i_dynamic' ;;
11521 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11522 tmp_addflag=' -i_dynamic -nofor_main' ;;
11523 ifc* | ifort*) # Intel Fortran compiler
11524 tmp_addflag=' -nofor_main' ;;
11525 esac
11526 case `$CC -V 2>&1 | sed 5q` in
11527 *Sun\ C*) # Sun C 5.9
11528 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'
11529 compiler_needs_object_FC=yes
11530 tmp_sharedflag='-G' ;;
11531 *Sun\ F*) # Sun Fortran 8.3
11532 tmp_sharedflag='-G' ;;
11533 *)
11534 tmp_sharedflag='-shared' ;;
11535 esac
11536 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11537
11538 if test "x$supports_anon_versioning" = xyes; then
11539 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
11540 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11541 echo "local: *; };" >> $output_objdir/$libname.ver~
11542 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11543 fi
11544 else
11545 ld_shlibs_FC=no
11546 fi
11547 ;;
11548
11549 netbsd*)
11550 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11551 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11552 wlarc=
11553 else
11554 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11555 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11556 fi
11557 ;;
11558
11559 solaris*)
11560 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11561 ld_shlibs_FC=no
11562 cat <<_LT_EOF 1>&2
11563
11564*** Warning: The releases 2.8.* of the GNU linker cannot reliably
11565*** create shared libraries on Solaris systems. Therefore, libtool
11566*** is disabling shared libraries support. We urge you to upgrade GNU
11567*** binutils to release 2.9.1 or newer. Another option is to modify
11568*** your PATH or compiler configuration so that the native linker is
11569*** used, and then restart.
11570
11571_LT_EOF
11572 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11573 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11574 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11575 else
11576 ld_shlibs_FC=no
11577 fi
11578 ;;
11579
11580 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11581 case `$LD -v 2>&1` in
11582 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11583 ld_shlibs_FC=no
11584 cat <<_LT_EOF 1>&2
11585
11586*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11587*** reliably create shared libraries on SCO systems. Therefore, libtool
11588*** is disabling shared libraries support. We urge you to upgrade GNU
11589*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11590*** your PATH or compiler configuration so that the native linker is
11591*** used, and then restart.
11592
11593_LT_EOF
11594 ;;
11595 *)
11596 # For security reasons, it is highly recommended that you always
11597 # use absolute paths for naming shared libraries, and exclude the
11598 # DT_RUNPATH tag from executables and libraries. But doing so
11599 # requires that you compile everything twice, which is a pain.
11600 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11601 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
11602 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11603 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11604 else
11605 ld_shlibs_FC=no
11606 fi
11607 ;;
11608 esac
11609 ;;
11610
11611 sunos4*)
11612 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11613 wlarc=
11614 hardcode_direct_FC=yes
11615 hardcode_shlibpath_var_FC=no
11616 ;;
11617
11618 *)
11619 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11620 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11621 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11622 else
11623 ld_shlibs_FC=no
11624 fi
11625 ;;
11626 esac
11627
11628 if test "$ld_shlibs_FC" = no; then
11629 runpath_var=
11630 hardcode_libdir_flag_spec_FC=
11631 export_dynamic_flag_spec_FC=
11632 whole_archive_flag_spec_FC=
11633 fi
11634 else
11635 # PORTME fill in a description of your system's linker (not GNU ld)
11636 case $host_os in
11637 aix3*)
11638 allow_undefined_flag_FC=unsupported
11639 always_export_symbols_FC=yes
11640 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'
11641 # Note: this linker hardcodes the directories in LIBPATH if there
11642 # are no directories specified by -L.
11643 hardcode_minus_L_FC=yes
11644 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11645 # Neither direct hardcoding nor static linking is supported with a
11646 # broken collect2.
11647 hardcode_direct_FC=unsupported
11648 fi
11649 ;;
11650
c8db569e 11651 aix[4-9]*)
542f9784 11652 if test "$host_cpu" = ia64; then
11653 # On IA64, the linker does run time linking by default, so we don't
11654 # have to do anything special.
11655 aix_use_runtimelinking=no
11656 exp_sym_flag='-Bexport'
11657 no_entry_flag=""
11658 else
11659 # If we're using GNU nm, then we don't want the "-C" option.
11660 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11661 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11662 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'
11663 else
11664 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'
11665 fi
11666 aix_use_runtimelinking=no
11667
11668 # Test if we are trying to use run time linking or normal
11669 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11670 # need to do runtime linking.
c8db569e 11671 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
542f9784 11672 for ld_flag in $LDFLAGS; do
11673 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11674 aix_use_runtimelinking=yes
11675 break
11676 fi
11677 done
11678 ;;
11679 esac
11680
11681 exp_sym_flag='-bexport'
11682 no_entry_flag='-bnoentry'
11683 fi
11684
11685 # When large executables or shared objects are built, AIX ld can
11686 # have problems creating the table of contents. If linking a library
11687 # or program results in "error TOC overflow" add -mminimal-toc to
11688 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11689 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11690
11691 archive_cmds_FC=''
11692 hardcode_direct_FC=yes
11693 hardcode_direct_absolute_FC=yes
11694 hardcode_libdir_separator_FC=':'
11695 link_all_deplibs_FC=yes
11696 file_list_spec_FC='${wl}-f,'
11697
11698 if test "$GCC" = yes; then
11699 case $host_os in aix4.[012]|aix4.[012].*)
11700 # We only want to do this on AIX 4.2 and lower, the check
11701 # below for broken collect2 doesn't work under 4.3+
11702 collect2name=`${CC} -print-prog-name=collect2`
11703 if test -f "$collect2name" &&
11704 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11705 then
11706 # We have reworked collect2
11707 :
11708 else
11709 # We have old collect2
11710 hardcode_direct_FC=unsupported
11711 # It fails to find uninstalled libraries when the uninstalled
11712 # path is not listed in the libpath. Setting hardcode_minus_L
11713 # to unsupported forces relinking
11714 hardcode_minus_L_FC=yes
11715 hardcode_libdir_flag_spec_FC='-L$libdir'
11716 hardcode_libdir_separator_FC=
11717 fi
11718 ;;
11719 esac
11720 shared_flag='-shared'
11721 if test "$aix_use_runtimelinking" = yes; then
11722 shared_flag="$shared_flag "'${wl}-G'
11723 fi
11724 else
11725 # not using gcc
11726 if test "$host_cpu" = ia64; then
11727 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11728 # chokes on -Wl,-G. The following line is correct:
11729 shared_flag='-G'
11730 else
11731 if test "$aix_use_runtimelinking" = yes; then
11732 shared_flag='${wl}-G'
11733 else
11734 shared_flag='${wl}-bM:SRE'
11735 fi
11736 fi
11737 fi
11738
11739 # It seems that -bexpall does not export symbols beginning with
11740 # underscore (_), so it is better to generate a list of symbols to export.
11741 always_export_symbols_FC=yes
11742 if test "$aix_use_runtimelinking" = yes; then
11743 # Warning - without using the other runtime loading flags (-brtl),
11744 # -berok will link without error, but may produce a broken library.
11745 allow_undefined_flag_FC='-berok'
11746 # Determine the default libpath from the value encoded in an
11747 # empty executable.
11748 cat >conftest.$ac_ext <<_ACEOF
11749 program main
11750
11751 end
11752_ACEOF
11753rm -f conftest.$ac_objext conftest$ac_exeext
11754if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11755 (eval $ac_link) 2>conftest.er1
11756 ac_status=$?
11757 grep -v '^ *+' conftest.er1 >conftest.err
11758 rm -f conftest.er1
11759 cat conftest.err >&5
11760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11761 (exit $ac_status); } &&
11762 { ac_try='test -z "$ac_fc_werror_flag"
11763 || test ! -s conftest.err'
11764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11765 (eval $ac_try) 2>&5
11766 ac_status=$?
11767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11768 (exit $ac_status); }; } &&
11769 { ac_try='test -s conftest$ac_exeext'
11770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11771 (eval $ac_try) 2>&5
11772 ac_status=$?
11773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774 (exit $ac_status); }; }; then
11775
11776lt_aix_libpath_sed='
11777 /Import File Strings/,/^$/ {
11778 /^0/ {
11779 s/^0 *\(.*\)$/\1/
11780 p
11781 }
11782 }'
11783aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11784# Check for a 64-bit object if we didn't find anything.
11785if test -z "$aix_libpath"; then
11786 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11787fi
11788else
11789 echo "$as_me: failed program was:" >&5
11790sed 's/^/| /' conftest.$ac_ext >&5
11791
11792fi
11793rm -f conftest.err conftest.$ac_objext \
11794 conftest$ac_exeext conftest.$ac_ext
11795if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11796
11797 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
11798 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"
11799 else
11800 if test "$host_cpu" = ia64; then
11801 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
11802 allow_undefined_flag_FC="-z nodefs"
11803 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"
11804 else
11805 # Determine the default libpath from the value encoded in an
11806 # empty executable.
11807 cat >conftest.$ac_ext <<_ACEOF
11808 program main
11809
11810 end
11811_ACEOF
11812rm -f conftest.$ac_objext conftest$ac_exeext
11813if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11814 (eval $ac_link) 2>conftest.er1
11815 ac_status=$?
11816 grep -v '^ *+' conftest.er1 >conftest.err
11817 rm -f conftest.er1
11818 cat conftest.err >&5
11819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11820 (exit $ac_status); } &&
11821 { ac_try='test -z "$ac_fc_werror_flag"
11822 || test ! -s conftest.err'
11823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11824 (eval $ac_try) 2>&5
11825 ac_status=$?
11826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827 (exit $ac_status); }; } &&
11828 { ac_try='test -s conftest$ac_exeext'
11829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11830 (eval $ac_try) 2>&5
11831 ac_status=$?
11832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833 (exit $ac_status); }; }; then
11834
11835lt_aix_libpath_sed='
11836 /Import File Strings/,/^$/ {
11837 /^0/ {
11838 s/^0 *\(.*\)$/\1/
11839 p
11840 }
11841 }'
11842aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11843# Check for a 64-bit object if we didn't find anything.
11844if test -z "$aix_libpath"; then
11845 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11846fi
11847else
11848 echo "$as_me: failed program was:" >&5
11849sed 's/^/| /' conftest.$ac_ext >&5
11850
11851fi
11852rm -f conftest.err conftest.$ac_objext \
11853 conftest$ac_exeext conftest.$ac_ext
11854if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11855
11856 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
11857 # Warning - without using the other run time loading flags,
11858 # -berok will link without error, but may produce a broken library.
11859 no_undefined_flag_FC=' ${wl}-bernotok'
11860 allow_undefined_flag_FC=' ${wl}-berok'
11861 # Exported symbols can be pulled into shared objects from archives
11862 whole_archive_flag_spec_FC='$convenience'
11863 archive_cmds_need_lc_FC=yes
11864 # This is similar to how AIX traditionally builds its shared libraries.
11865 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'
11866 fi
11867 fi
1e8e9920 11868 ;;
542f9784 11869
11870 amigaos*)
11871 if test "$host_cpu" = m68k; then
11872 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)'
11873 hardcode_libdir_flag_spec_FC='-L$libdir'
11874 hardcode_minus_L_FC=yes
11875 fi
11876 # see comment about different semantics on the GNU ld section
11877 ld_shlibs_FC=no
1e8e9920 11878 ;;
542f9784 11879
11880 bsdi[45]*)
11881 export_dynamic_flag_spec_FC=-rdynamic
1e8e9920 11882 ;;
542f9784 11883
11884 cygwin* | mingw* | pw32*)
11885 # When not using gcc, we currently assume that we are using
11886 # Microsoft Visual C++.
11887 # hardcode_libdir_flag_spec is actually meaningless, as there is
11888 # no search path for DLLs.
11889 hardcode_libdir_flag_spec_FC=' '
11890 allow_undefined_flag_FC=unsupported
11891 # Tell ltmain to make .lib files, not .a files.
11892 libext=lib
11893 # Tell ltmain to make .dll files, not .so files.
11894 shrext_cmds=".dll"
11895 # FIXME: Setting linknames here is a bad hack.
11896 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
11897 # The linker will automatically build a .lib file if we build a DLL.
11898 old_archive_from_new_cmds_FC='true'
11899 # FIXME: Should let the user specify the lib program.
11900 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
11901 fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
11902 enable_shared_with_static_runtimes_FC=yes
1e8e9920 11903 ;;
542f9784 11904
11905 darwin* | rhapsody*)
11906 case $host_os in
11907 rhapsody* | darwin1.[012])
11908 allow_undefined_flag_FC='${wl}-undefined ${wl}suppress'
11909 ;;
11910 *) # Darwin 1.3 on
11911 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
11912 10.[012])
11913 allow_undefined_flag_FC='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11914 ;;
11915 10.*)
11916 allow_undefined_flag_FC='${wl}-undefined ${wl}dynamic_lookup'
11917 ;;
11918 esac
11919 ;;
11920 esac
11921 archive_cmds_need_lc_FC=no
11922 hardcode_direct_FC=no
11923 hardcode_automatic_FC=yes
11924 hardcode_shlibpath_var_FC=unsupported
11925 whole_archive_flag_spec_FC=''
11926 link_all_deplibs_FC=yes
11927 if test "$GCC" = yes ; then
11928 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
11929 echo $ECHO_N "(cached) $ECHO_C" >&6
11930else
11931 lt_cv_apple_cc_single_mod=no
11932 if test -z "${LT_MULTI_MODULE}"; then
11933 # By default we will add the -single_module flag. You can override
11934 # by either setting the environment variable LT_MULTI_MODULE
11935 # non-empty at configure time, or by adding -multi-module to the
11936 # link flags.
11937 echo "int foo(void){return 1;}" > conftest.c
11938 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11939 -dynamiclib ${wl}-single_module conftest.c
11940 if test -f libconftest.dylib; then
11941 lt_cv_apple_cc_single_mod=yes
11942 rm libconftest.dylib
11943 fi
11944 rm conftest.$ac_ext
11945 fi
11946fi
11947
11948 output_verbose_link_cmd=echo
11949 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
11950 archive_cmds_FC='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11951 archive_expsym_cmds_FC='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11952 else
11953 archive_cmds_FC='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11954 archive_expsym_cmds_FC='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11955 fi
11956 module_cmds_FC='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11957 module_expsym_cmds_FC='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11958 else
11959 case $cc_basename in
11960 xlc*)
11961 output_verbose_link_cmd=echo
11962 archive_cmds_FC='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
11963 module_cmds_FC='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11964 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11965 archive_expsym_cmds_FC='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11966 module_expsym_cmds_FC='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11967 ;;
11968 *)
11969 ld_shlibs_FC=no
11970 ;;
11971 esac
11972 fi
1e8e9920 11973 ;;
542f9784 11974
11975 dgux*)
11976 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11977 hardcode_libdir_flag_spec_FC='-L$libdir'
11978 hardcode_shlibpath_var_FC=no
1e8e9920 11979 ;;
1e8e9920 11980
542f9784 11981 freebsd1*)
11982 ld_shlibs_FC=no
1e8e9920 11983 ;;
542f9784 11984
11985 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11986 # support. Future versions do this automatically, but an explicit c++rt0.o
11987 # does not break anything, and helps significantly (at the cost of a little
11988 # extra space).
11989 freebsd2.2*)
11990 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11991 hardcode_libdir_flag_spec_FC='-R$libdir'
11992 hardcode_direct_FC=yes
11993 hardcode_shlibpath_var_FC=no
1e8e9920 11994 ;;
1e8e9920 11995
542f9784 11996 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11997 freebsd2*)
11998 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11999 hardcode_direct_FC=yes
12000 hardcode_minus_L_FC=yes
12001 hardcode_shlibpath_var_FC=no
12002 ;;
12003
12004 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12005 freebsd* | dragonfly*)
12006 archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12007 hardcode_libdir_flag_spec_FC='-R$libdir'
12008 hardcode_direct_FC=yes
12009 hardcode_shlibpath_var_FC=no
12010 ;;
12011
12012 hpux9*)
12013 if test "$GCC" = yes; then
12014 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'
12015 else
12016 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'
12017 fi
12018 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
12019 hardcode_libdir_separator_FC=:
12020 hardcode_direct_FC=yes
12021
12022 # hardcode_minus_L: Not really in the search PATH,
12023 # but as the default location of the library.
12024 hardcode_minus_L_FC=yes
12025 export_dynamic_flag_spec_FC='${wl}-E'
12026 ;;
12027
12028 hpux10*)
12029 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12030 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12031 else
12032 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12033 fi
12034 if test "$with_gnu_ld" = no; then
12035 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
12036 hardcode_libdir_flag_spec_ld_FC='+b $libdir'
12037 hardcode_libdir_separator_FC=:
12038 hardcode_direct_FC=yes
12039 hardcode_direct_absolute_FC=yes
12040 export_dynamic_flag_spec_FC='${wl}-E'
12041 # hardcode_minus_L: Not really in the search PATH,
12042 # but as the default location of the library.
12043 hardcode_minus_L_FC=yes
12044 fi
12045 ;;
12046
12047 hpux11*)
12048 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12049 case $host_cpu in
12050 hppa*64*)
12051 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12052 ;;
12053 ia64*)
12054 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12055 ;;
12056 *)
12057 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12058 ;;
12059 esac
12060 else
12061 case $host_cpu in
12062 hppa*64*)
12063 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12064 ;;
12065 ia64*)
12066 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12067 ;;
12068 *)
12069 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12070 ;;
12071 esac
12072 fi
12073 if test "$with_gnu_ld" = no; then
12074 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
12075 hardcode_libdir_separator_FC=:
12076
12077 case $host_cpu in
12078 hppa*64*|ia64*)
12079 hardcode_direct_FC=no
12080 hardcode_shlibpath_var_FC=no
12081 ;;
12082 *)
12083 hardcode_direct_FC=yes
12084 hardcode_direct_absolute_FC=yes
12085 export_dynamic_flag_spec_FC='${wl}-E'
12086
12087 # hardcode_minus_L: Not really in the search PATH,
12088 # but as the default location of the library.
12089 hardcode_minus_L_FC=yes
12090 ;;
12091 esac
12092 fi
12093 ;;
12094
12095 irix5* | irix6* | nonstopux*)
12096 if test "$GCC" = yes; then
12097 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'
12098 # Try to use the -exported_symbol ld option, if it does not
12099 # work, assume that -exports_file does not work either and
12100 # implicitly export all symbols.
12101 save_LDFLAGS="$LDFLAGS"
12102 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12103 cat >conftest.$ac_ext <<_ACEOF
12104int foo(void) {}
12105_ACEOF
12106rm -f conftest.$ac_objext conftest$ac_exeext
12107if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12108 (eval $ac_link) 2>conftest.er1
1e8e9920 12109 ac_status=$?
542f9784 12110 grep -v '^ *+' conftest.er1 >conftest.err
12111 rm -f conftest.er1
12112 cat conftest.err >&5
1e8e9920 12113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
542f9784 12114 (exit $ac_status); } &&
12115 { ac_try='test -z "$ac_fc_werror_flag"
12116 || test ! -s conftest.err'
12117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12118 (eval $ac_try) 2>&5
12119 ac_status=$?
12120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121 (exit $ac_status); }; } &&
12122 { ac_try='test -s conftest$ac_exeext'
12123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12124 (eval $ac_try) 2>&5
12125 ac_status=$?
12126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127 (exit $ac_status); }; }; then
12128 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'
12129
12130else
12131 echo "$as_me: failed program was:" >&5
12132sed 's/^/| /' conftest.$ac_ext >&5
12133
12134fi
12135rm -f conftest.err conftest.$ac_objext \
12136 conftest$ac_exeext conftest.$ac_ext
12137 LDFLAGS="$save_LDFLAGS"
12138 else
12139 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'
12140 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'
12141 fi
12142 archive_cmds_need_lc_FC='no'
12143 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12144 hardcode_libdir_separator_FC=:
12145 inherit_rpath_FC=yes
12146 link_all_deplibs_FC=yes
12147 ;;
12148
12149 netbsd*)
12150 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12151 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12152 else
12153 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12154 fi
12155 hardcode_libdir_flag_spec_FC='-R$libdir'
12156 hardcode_direct_FC=yes
12157 hardcode_shlibpath_var_FC=no
12158 ;;
12159
12160 newsos6)
12161 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12162 hardcode_direct_FC=yes
12163 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12164 hardcode_libdir_separator_FC=:
12165 hardcode_shlibpath_var_FC=no
12166 ;;
12167
12168 *nto* | *qnx*)
12169 ;;
12170
12171 openbsd*)
12172 hardcode_direct_FC=yes
12173 hardcode_shlibpath_var_FC=no
12174 hardcode_direct_absolute_FC=yes
12175 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12176 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12177 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12178 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
12179 export_dynamic_flag_spec_FC='${wl}-E'
12180 else
12181 case $host_os in
12182 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12183 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12184 hardcode_libdir_flag_spec_FC='-R$libdir'
12185 ;;
12186 *)
12187 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12188 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
12189 ;;
12190 esac
12191 fi
12192 ;;
12193
12194 os2*)
12195 hardcode_libdir_flag_spec_FC='-L$libdir'
12196 hardcode_minus_L_FC=yes
12197 allow_undefined_flag_FC=unsupported
12198 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'
12199 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12200 ;;
12201
12202 osf3*)
12203 if test "$GCC" = yes; then
12204 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
12205 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'
12206 else
12207 allow_undefined_flag_FC=' -expect_unresolved \*'
12208 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'
12209 fi
12210 archive_cmds_need_lc_FC='no'
12211 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12212 hardcode_libdir_separator_FC=:
12213 ;;
12214
12215 osf4* | osf5*) # as osf3* with the addition of -msym flag
12216 if test "$GCC" = yes; then
12217 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
12218 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'
12219 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12220 else
12221 allow_undefined_flag_FC=' -expect_unresolved \*'
12222 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'
12223 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~
12224 $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'
12225
12226 # Both c and cxx compiler support -rpath directly
12227 hardcode_libdir_flag_spec_FC='-rpath $libdir'
12228 fi
12229 archive_cmds_need_lc_FC='no'
12230 hardcode_libdir_separator_FC=:
12231 ;;
12232
12233 solaris*)
12234 no_undefined_flag_FC=' -z defs'
12235 if test "$GCC" = yes; then
12236 wlarc='${wl}'
12237 archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12238 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12239 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12240 else
12241 case `$CC -V 2>&1` in
12242 *"Compilers 5.0"*)
12243 wlarc=''
12244 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12245 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12246 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12247 ;;
12248 *)
12249 wlarc='${wl}'
12250 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12251 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12252 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12253 ;;
12254 esac
12255 fi
12256 hardcode_libdir_flag_spec_FC='-R$libdir'
12257 hardcode_shlibpath_var_FC=no
12258 case $host_os in
12259 solaris2.[0-5] | solaris2.[0-5].*) ;;
12260 *)
12261 # The compiler driver will combine and reorder linker options,
12262 # but understands `-z linker_flag'. GCC discards it without `$wl',
12263 # but is careful enough not to reorder.
12264 # Supported since Solaris 2.6 (maybe 2.5.1?)
12265 if test "$GCC" = yes; then
12266 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12267 else
12268 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
12269 fi
12270 ;;
12271 esac
12272 link_all_deplibs_FC=yes
12273 ;;
12274
12275 sunos4*)
12276 if test "x$host_vendor" = xsequent; then
12277 # Use $CC to link under sequent, because it throws in some extra .o
12278 # files that make .init and .fini sections work.
12279 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12280 else
12281 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12282 fi
12283 hardcode_libdir_flag_spec_FC='-L$libdir'
12284 hardcode_direct_FC=yes
12285 hardcode_minus_L_FC=yes
12286 hardcode_shlibpath_var_FC=no
12287 ;;
12288
12289 sysv4)
12290 case $host_vendor in
12291 sni)
12292 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12293 hardcode_direct_FC=yes # is this really true???
12294 ;;
12295 siemens)
12296 ## LD is ld it makes a PLAMLIB
12297 ## CC just makes a GrossModule.
12298 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12299 reload_cmds_FC='$CC -r -o $output$reload_objs'
12300 hardcode_direct_FC=no
12301 ;;
12302 motorola)
12303 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12304 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
12305 ;;
1e8e9920 12306 esac
542f9784 12307 runpath_var='LD_RUN_PATH'
12308 hardcode_shlibpath_var_FC=no
12309 ;;
12310
12311 sysv4.3*)
12312 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12313 hardcode_shlibpath_var_FC=no
12314 export_dynamic_flag_spec_FC='-Bexport'
12315 ;;
12316
12317 sysv4*MP*)
12318 if test -d /usr/nec; then
12319 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12320 hardcode_shlibpath_var_FC=no
12321 runpath_var=LD_RUN_PATH
12322 hardcode_runpath_var=yes
12323 ld_shlibs_FC=yes
12324 fi
12325 ;;
12326
12327 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12328 no_undefined_flag_FC='${wl}-z,text'
12329 archive_cmds_need_lc_FC=no
12330 hardcode_shlibpath_var_FC=no
12331 runpath_var='LD_RUN_PATH'
12332
12333 if test "$GCC" = yes; then
12334 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12335 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12336 else
12337 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12338 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12339 fi
12340 ;;
12341
12342 sysv5* | sco3.2v5* | sco5v6*)
12343 # Note: We can NOT use -z defs as we might desire, because we do not
12344 # link with -lc, and that would cause any symbols used from libc to
12345 # always be unresolved, which means just about no library would
12346 # ever link correctly. If we're not using GNU ld we use -z text
12347 # though, which does catch some bad symbols but isn't as heavy-handed
12348 # as -z defs.
12349 no_undefined_flag_FC='${wl}-z,text'
12350 allow_undefined_flag_FC='${wl}-z,nodefs'
12351 archive_cmds_need_lc_FC=no
12352 hardcode_shlibpath_var_FC=no
12353 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
12354 hardcode_libdir_separator_FC=':'
12355 link_all_deplibs_FC=yes
12356 export_dynamic_flag_spec_FC='${wl}-Bexport'
12357 runpath_var='LD_RUN_PATH'
12358
12359 if test "$GCC" = yes; then
12360 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12361 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12362 else
12363 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12364 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12365 fi
12366 ;;
12367
12368 uts4*)
12369 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12370 hardcode_libdir_flag_spec_FC='-L$libdir'
12371 hardcode_shlibpath_var_FC=no
12372 ;;
12373
12374 *)
12375 ld_shlibs_FC=no
1e8e9920 12376 ;;
542f9784 12377 esac
12378
12379 if test x$host_vendor = xsni; then
1e8e9920 12380 case $host in
542f9784 12381 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12382 export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
12383 ;;
1e8e9920 12384 esac
542f9784 12385 fi
1e8e9920 12386 fi
1e8e9920 12387
542f9784 12388echo "$as_me:$LINENO: result: $ld_shlibs_FC" >&5
12389echo "${ECHO_T}$ld_shlibs_FC" >&6
12390test "$ld_shlibs_FC" = no && can_build_shared=no
1e8e9920 12391
542f9784 12392with_gnu_ld_FC=$with_gnu_ld
1e8e9920 12393
1e8e9920 12394
1e8e9920 12395
1e8e9920 12396
542f9784 12397
12398
12399#
12400# Do we need to explicitly link libc?
12401#
12402case "x$archive_cmds_need_lc_FC" in
12403x|xyes)
12404 # Assume -lc should be added
12405 archive_cmds_need_lc_FC=yes
12406
12407 if test "$enable_shared" = yes && test "$GCC" = yes; then
12408 case $archive_cmds_FC in
12409 *'~'*)
12410 # FIXME: we may have to deal with multi-command sequences.
12411 ;;
12412 '$CC '*)
12413 # Test whether the compiler implicitly links with -lc since on some
12414 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12415 # to ld, don't add -lc before -lgcc.
12416 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12417echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12418 $RM conftest*
12419 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12420
12421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12422 (eval $ac_compile) 2>&5
1e8e9920 12423 ac_status=$?
12424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
542f9784 12425 (exit $ac_status); } 2>conftest.err; then
12426 soname=conftest
12427 lib=conftest
12428 libobjs=conftest.$ac_objext
12429 deplibs=
12430 wl=$lt_prog_compiler_wl_FC
12431 pic_flag=$lt_prog_compiler_pic_FC
12432 compiler_flags=-v
12433 linker_flags=-v
12434 verstring=
12435 output_objdir=.
12436 libname=conftest
12437 lt_save_allow_undefined_flag=$allow_undefined_flag_FC
12438 allow_undefined_flag_FC=
12439 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
12440 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
1e8e9920 12441 ac_status=$?
12442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
542f9784 12443 (exit $ac_status); }
12444 then
12445 archive_cmds_need_lc_FC=no
12446 else
12447 archive_cmds_need_lc_FC=yes
12448 fi
12449 allow_undefined_flag_FC=$lt_save_allow_undefined_flag
12450 else
12451 cat conftest.err 1>&5
12452 fi
12453 $RM conftest*
12454 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_FC" >&5
12455echo "${ECHO_T}$archive_cmds_need_lc_FC" >&6
12456 ;;
12457 esac
1e8e9920 12458 fi
12459 ;;
542f9784 12460esac
12461
1e8e9920 12462
12463
1e8e9920 12464
12465
1e8e9920 12466
1e8e9920 12467
1e8e9920 12468
1e8e9920 12469
1e8e9920 12470
12471
1e8e9920 12472
1e8e9920 12473
1e8e9920 12474
12475
12476
12477
12478
12479
12480
12481
12482
a263d1ab 12483
12484
a263d1ab 12485
a263d1ab 12486
12487
12488
1e8e9920 12489
1e8e9920 12490
1e8e9920 12491
1e8e9920 12492
1e8e9920 12493
1e8e9920 12494
12495
1e8e9920 12496
1e8e9920 12497
1e8e9920 12498
1e8e9920 12499
1e8e9920 12500
1e8e9920 12501
1e8e9920 12502
542f9784 12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12526echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12527withGCC=$ac_cv_fc_compiler_gnu
12528library_names_spec=
12529libname_spec='lib$name'
12530soname_spec=
12531shrext_cmds=".so"
12532postinstall_cmds=
12533postuninstall_cmds=
12534finish_cmds=
12535finish_eval=
12536shlibpath_var=
12537shlibpath_overrides_runpath=unknown
12538version_type=none
12539dynamic_linker="$host_os ld.so"
12540sys_lib_dlsearch_path_spec="/lib /usr/lib"
12541need_lib_prefix=unknown
12542hardcode_into_libs=no
12543
12544# when you set need_version to no, make sure it does not cause -set_version
12545# flags to be left without arguments
12546need_version=unknown
12547
12548case $host_os in
12549aix3*)
12550 version_type=linux
12551 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12552 shlibpath_var=LIBPATH
12553
12554 # AIX 3 has no versioning support, so we append a major version to the name.
12555 soname_spec='${libname}${release}${shared_ext}$major'
12556 ;;
12557
c8db569e 12558aix[4-9]*)
542f9784 12559 version_type=linux
12560 need_lib_prefix=no
12561 need_version=no
12562 hardcode_into_libs=yes
12563 if test "$host_cpu" = ia64; then
12564 # AIX 5 supports IA64
12565 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12566 shlibpath_var=LD_LIBRARY_PATH
1e8e9920 12567 else
542f9784 12568 # With GCC up to 2.95.x, collect2 would create an import file
12569 # for dependence libraries. The import file would start with
12570 # the line `#! .'. This would cause the generated library to
12571 # depend on `.', always an invalid library. This was fixed in
12572 # development snapshots of GCC prior to 3.0.
12573 case $host_os in
12574 aix4 | aix4.[01] | aix4.[01].*)
12575 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12576 echo ' yes '
12577 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12578 :
12579 else
12580 can_build_shared=no
12581 fi
12582 ;;
12583 esac
12584 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12585 # soname into executable. Probably we can add versioning support to
12586 # collect2, so additional links can be useful in future.
12587 if test "$aix_use_runtimelinking" = yes; then
12588 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12589 # instead of lib<name>.a to let people know that these are not
12590 # typical AIX shared libraries.
12591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12592 else
12593 # We preserve .a as extension for shared libraries through AIX4.2
12594 # and later when we are not doing run time linking.
12595 library_names_spec='${libname}${release}.a $libname.a'
12596 soname_spec='${libname}${release}${shared_ext}$major'
12597 fi
12598 shlibpath_var=LIBPATH
1e8e9920 12599 fi
542f9784 12600 ;;
12601
12602amigaos*)
12603 if test "$host_cpu" = m68k; then
12604 library_names_spec='$libname.ixlibrary $libname.a'
12605 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12606 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'
1e8e9920 12607 else
542f9784 12608 dynamic_linker=no
1e8e9920 12609 fi
542f9784 12610 ;;
1e8e9920 12611
542f9784 12612beos*)
12613 library_names_spec='${libname}${shared_ext}'
12614 dynamic_linker="$host_os ld.so"
12615 shlibpath_var=LIBRARY_PATH
12616 ;;
1e8e9920 12617
542f9784 12618bsdi[45]*)
12619 version_type=linux
12620 need_version=no
12621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12622 soname_spec='${libname}${release}${shared_ext}$major'
12623 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12624 shlibpath_var=LD_LIBRARY_PATH
12625 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12626 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12627 # the default ld.so.conf also contains /usr/contrib/lib and
12628 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12629 # libtool to hard-code these into programs
12630 ;;
1e8e9920 12631
542f9784 12632cygwin* | mingw* | pw32*)
12633 version_type=windows
12634 shrext_cmds=".dll"
12635 need_version=no
12636 need_lib_prefix=no
12637
12638 case $withGCC,$host_os in
12639 yes,cygwin* | yes,mingw* | yes,pw32*)
12640 library_names_spec='$libname.dll.a'
12641 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12642 postinstall_cmds='base_file=`basename \${file}`~
12643 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12644 dldir=$destdir/`dirname \$dlpath`~
12645 test -d \$dldir || mkdir -p \$dldir~
12646 $install_prog $dir/$dlname \$dldir/$dlname~
12647 chmod a+x \$dldir/$dlname~
12648 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12649 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12650 fi'
12651 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12652 dlpath=$dir/\$dldll~
12653 $RM \$dlpath'
12654 shlibpath_overrides_runpath=yes
12655
12656 case $host_os in
12657 cygwin*)
12658 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12659 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12660 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12661 ;;
12662 mingw*)
12663 # MinGW DLLs use traditional 'lib' prefix
12664 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12665 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12666 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12667 # It is most probably a Windows format PATH printed by
12668 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12669 # path with ; separators, and with drive letters. We can handle the
12670 # drive letters (cygwin fileutils understands them), so leave them,
12671 # especially as we might pass files found there to a mingw objdump,
12672 # which wouldn't understand a cygwinified path. Ahh.
12673 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12674 else
12675 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12676 fi
12677 ;;
12678 pw32*)
12679 # pw32 DLLs use 'pw' prefix rather than 'lib'
12680 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12681 ;;
12682 esac
12683 ;;
1e8e9920 12684
542f9784 12685 *)
12686 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12687 ;;
12688 esac
12689 dynamic_linker='Win32 ld.exe'
12690 # FIXME: first we should search . and the directory the executable is in
12691 shlibpath_var=PATH
12692 ;;
1e8e9920 12693
542f9784 12694darwin* | rhapsody*)
12695 dynamic_linker="$host_os dyld"
12696 version_type=darwin
12697 need_lib_prefix=no
12698 need_version=no
12699 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12700 soname_spec='${libname}${release}${major}$shared_ext'
12701 shlibpath_overrides_runpath=yes
12702 shlibpath_var=DYLD_LIBRARY_PATH
12703 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12704
12705 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12706 ;;
12707
12708dgux*)
12709 version_type=linux
12710 need_lib_prefix=no
12711 need_version=no
12712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12713 soname_spec='${libname}${release}${shared_ext}$major'
12714 shlibpath_var=LD_LIBRARY_PATH
12715 ;;
12716
12717freebsd1*)
12718 dynamic_linker=no
12719 ;;
12720
12721freebsd* | dragonfly*)
12722 # DragonFly does not have aout. When/if they implement a new
12723 # versioning mechanism, adjust this.
12724 if test -x /usr/bin/objformat; then
12725 objformat=`/usr/bin/objformat`
1e8e9920 12726 else
542f9784 12727 case $host_os in
12728 freebsd[123]*) objformat=aout ;;
12729 *) objformat=elf ;;
12730 esac
1e8e9920 12731 fi
542f9784 12732 version_type=freebsd-$objformat
12733 case $version_type in
12734 freebsd-elf*)
12735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12736 need_version=no
12737 need_lib_prefix=no
12738 ;;
12739 freebsd-*)
12740 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12741 need_version=yes
12742 ;;
12743 esac
12744 shlibpath_var=LD_LIBRARY_PATH
12745 case $host_os in
12746 freebsd2*)
12747 shlibpath_overrides_runpath=yes
12748 ;;
12749 freebsd3.[01]* | freebsdelf3.[01]*)
12750 shlibpath_overrides_runpath=yes
12751 hardcode_into_libs=yes
12752 ;;
12753 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12754 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12755 shlibpath_overrides_runpath=no
12756 hardcode_into_libs=yes
12757 ;;
12758 *) # from 4.6 on, and DragonFly
12759 shlibpath_overrides_runpath=yes
12760 hardcode_into_libs=yes
12761 ;;
12762 esac
12763 ;;
1e8e9920 12764
542f9784 12765gnu*)
12766 version_type=linux
12767 need_lib_prefix=no
12768 need_version=no
12769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12770 soname_spec='${libname}${release}${shared_ext}$major'
12771 shlibpath_var=LD_LIBRARY_PATH
12772 hardcode_into_libs=yes
12773 ;;
1e8e9920 12774
542f9784 12775hpux9* | hpux10* | hpux11*)
12776 # Give a soname corresponding to the major version so that dld.sl refuses to
12777 # link against other versions.
12778 version_type=sunos
12779 need_lib_prefix=no
12780 need_version=no
12781 case $host_cpu in
12782 ia64*)
12783 shrext_cmds='.so'
12784 hardcode_into_libs=yes
12785 dynamic_linker="$host_os dld.so"
12786 shlibpath_var=LD_LIBRARY_PATH
12787 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12789 soname_spec='${libname}${release}${shared_ext}$major'
12790 if test "X$HPUX_IA64_MODE" = X32; then
12791 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12792 else
12793 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12794 fi
12795 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12796 ;;
12797 hppa*64*)
12798 shrext_cmds='.sl'
12799 hardcode_into_libs=yes
12800 dynamic_linker="$host_os dld.sl"
12801 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12802 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12804 soname_spec='${libname}${release}${shared_ext}$major'
12805 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12806 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12807 ;;
12808 *)
12809 shrext_cmds='.sl'
12810 dynamic_linker="$host_os dld.sl"
12811 shlibpath_var=SHLIB_PATH
12812 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12814 soname_spec='${libname}${release}${shared_ext}$major'
12815 ;;
12816 esac
12817 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12818 postinstall_cmds='chmod 555 $lib'
12819 ;;
12820
12821interix[3-9]*)
12822 version_type=linux
12823 need_lib_prefix=no
12824 need_version=no
12825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12826 soname_spec='${libname}${release}${shared_ext}$major'
12827 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12828 shlibpath_var=LD_LIBRARY_PATH
12829 shlibpath_overrides_runpath=no
12830 hardcode_into_libs=yes
12831 ;;
12832
12833irix5* | irix6* | nonstopux*)
12834 case $host_os in
12835 nonstopux*) version_type=nonstopux ;;
12836 *)
12837 if test "$lt_cv_prog_gnu_ld" = yes; then
12838 version_type=linux
12839 else
12840 version_type=irix
12841 fi ;;
12842 esac
12843 need_lib_prefix=no
12844 need_version=no
12845 soname_spec='${libname}${release}${shared_ext}$major'
12846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12847 case $host_os in
12848 irix5* | nonstopux*)
12849 libsuff= shlibsuff=
12850 ;;
12851 *)
12852 case $LD in # libtool.m4 will add one of these switches to LD
12853 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12854 libsuff= shlibsuff= libmagic=32-bit;;
12855 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12856 libsuff=32 shlibsuff=N32 libmagic=N32;;
12857 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12858 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12859 *) libsuff= shlibsuff= libmagic=never-match;;
12860 esac
12861 ;;
12862 esac
12863 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12864 shlibpath_overrides_runpath=no
12865 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12866 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12867 hardcode_into_libs=yes
12868 ;;
12869
12870# No shared lib support for Linux oldld, aout, or coff.
12871linux*oldld* | linux*aout* | linux*coff*)
12872 dynamic_linker=no
12873 ;;
12874
12875# This must be Linux ELF.
12876linux* | k*bsd*-gnu)
12877 version_type=linux
12878 need_lib_prefix=no
12879 need_version=no
12880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12881 soname_spec='${libname}${release}${shared_ext}$major'
12882 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12883 shlibpath_var=LD_LIBRARY_PATH
12884 shlibpath_overrides_runpath=no
12885 # Some binutils ld are patched to set DT_RUNPATH
12886 save_LDFLAGS=$LDFLAGS
12887 save_libdir=$libdir
12888 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
12889 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
1e8e9920 12890 cat >conftest.$ac_ext <<_ACEOF
542f9784 12891 program main
12892
12893 end
1e8e9920 12894_ACEOF
542f9784 12895rm -f conftest.$ac_objext conftest$ac_exeext
12896if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12897 (eval $ac_link) 2>conftest.er1
1e8e9920 12898 ac_status=$?
12899 grep -v '^ *+' conftest.er1 >conftest.err
12900 rm -f conftest.er1
12901 cat conftest.err >&5
12902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
542f9784 12903 (exit $ac_status); } &&
12904 { ac_try='test -z "$ac_fc_werror_flag"
12905 || test ! -s conftest.err'
12906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12907 (eval $ac_try) 2>&5
12908 ac_status=$?
12909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910 (exit $ac_status); }; } &&
12911 { ac_try='test -s conftest$ac_exeext'
12912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12913 (eval $ac_try) 2>&5
12914 ac_status=$?
12915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12916 (exit $ac_status); }; }; then
12917 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
12918 shlibpath_overrides_runpath=yes
1e8e9920 12919fi
542f9784 12920
1e8e9920 12921else
12922 echo "$as_me: failed program was:" >&5
12923sed 's/^/| /' conftest.$ac_ext >&5
12924
1e8e9920 12925fi
542f9784 12926rm -f conftest.err conftest.$ac_objext \
12927 conftest$ac_exeext conftest.$ac_ext
12928 LDFLAGS=$save_LDFLAGS
12929 libdir=$save_libdir
12930
12931 # This implies no fast_install, which is unacceptable.
12932 # Some rework will be needed to allow for fast_install
12933 # before this can be enabled.
12934 hardcode_into_libs=yes
12935
12936 # Append ld.so.conf contents to the search path
12937 if test -f /etc/ld.so.conf; then
12938 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12939 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12940 fi
1e8e9920 12941
542f9784 12942 # We used to test for /lib/ld.so.1 and disable shared libraries on
12943 # powerpc, because MkLinux only supported shared libraries with the
12944 # GNU dynamic linker. Since this was broken with cross compilers,
12945 # most powerpc-linux boxes support dynamic linking these days and
12946 # people can always --disable-shared, the test was removed, and we
12947 # assume the GNU/Linux dynamic linker is in use.
12948 dynamic_linker='GNU/Linux ld.so'
12949 ;;
1e8e9920 12950
542f9784 12951netbsd*)
12952 version_type=sunos
12953 need_lib_prefix=no
12954 need_version=no
12955 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12957 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12958 dynamic_linker='NetBSD (a.out) ld.so'
12959 else
12960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12961 soname_spec='${libname}${release}${shared_ext}$major'
12962 dynamic_linker='NetBSD ld.elf_so'
12963 fi
12964 shlibpath_var=LD_LIBRARY_PATH
12965 shlibpath_overrides_runpath=yes
12966 hardcode_into_libs=yes
12967 ;;
1e8e9920 12968
542f9784 12969newsos6)
12970 version_type=linux
12971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12972 shlibpath_var=LD_LIBRARY_PATH
12973 shlibpath_overrides_runpath=yes
12974 ;;
12975
12976*nto* | *qnx*)
12977 version_type=qnx
12978 need_lib_prefix=no
12979 need_version=no
12980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12981 soname_spec='${libname}${release}${shared_ext}$major'
12982 shlibpath_var=LD_LIBRARY_PATH
12983 shlibpath_overrides_runpath=no
12984 hardcode_into_libs=yes
12985 dynamic_linker='ldqnx.so'
12986 ;;
12987
12988openbsd*)
12989 version_type=sunos
12990 sys_lib_dlsearch_path_spec="/usr/lib"
12991 need_lib_prefix=no
12992 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12993 case $host_os in
12994 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12995 *) need_version=no ;;
12996 esac
12997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12998 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12999 shlibpath_var=LD_LIBRARY_PATH
13000 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13001 case $host_os in
13002 openbsd2.[89] | openbsd2.[89].*)
13003 shlibpath_overrides_runpath=no
13004 ;;
13005 *)
13006 shlibpath_overrides_runpath=yes
13007 ;;
13008 esac
1e8e9920 13009 else
542f9784 13010 shlibpath_overrides_runpath=yes
1e8e9920 13011 fi
542f9784 13012 ;;
1e8e9920 13013
542f9784 13014os2*)
13015 libname_spec='$name'
13016 shrext_cmds=".dll"
13017 need_lib_prefix=no
13018 library_names_spec='$libname${shared_ext} $libname.a'
13019 dynamic_linker='OS/2 ld.exe'
13020 shlibpath_var=LIBPATH
13021 ;;
13022
13023osf3* | osf4* | osf5*)
13024 version_type=osf
13025 need_lib_prefix=no
13026 need_version=no
13027 soname_spec='${libname}${release}${shared_ext}$major'
13028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13029 shlibpath_var=LD_LIBRARY_PATH
13030 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13031 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13032 ;;
13033
13034rdos*)
13035 dynamic_linker=no
13036 ;;
13037
13038solaris*)
13039 version_type=linux
13040 need_lib_prefix=no
13041 need_version=no
13042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13043 soname_spec='${libname}${release}${shared_ext}$major'
13044 shlibpath_var=LD_LIBRARY_PATH
13045 shlibpath_overrides_runpath=yes
13046 hardcode_into_libs=yes
13047 # ldd complains unless libraries are executable
13048 postinstall_cmds='chmod +x $lib'
13049 ;;
13050
13051sunos4*)
13052 version_type=sunos
13053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13054 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13055 shlibpath_var=LD_LIBRARY_PATH
13056 shlibpath_overrides_runpath=yes
13057 if test "$with_gnu_ld" = yes; then
13058 need_lib_prefix=no
13059 fi
13060 need_version=yes
13061 ;;
13062
13063sysv4 | sysv4.3*)
13064 version_type=linux
13065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13066 soname_spec='${libname}${release}${shared_ext}$major'
13067 shlibpath_var=LD_LIBRARY_PATH
13068 case $host_vendor in
13069 sni)
13070 shlibpath_overrides_runpath=no
13071 need_lib_prefix=no
13072 runpath_var=LD_RUN_PATH
13073 ;;
13074 siemens)
13075 need_lib_prefix=no
13076 ;;
13077 motorola)
13078 need_lib_prefix=no
13079 need_version=no
13080 shlibpath_overrides_runpath=no
13081 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13082 ;;
13083 esac
13084 ;;
13085
13086sysv4*MP*)
13087 if test -d /usr/nec ;then
13088 version_type=linux
13089 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13090 soname_spec='$libname${shared_ext}.$major'
13091 shlibpath_var=LD_LIBRARY_PATH
13092 fi
13093 ;;
13094
13095sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13096 version_type=freebsd-elf
13097 need_lib_prefix=no
13098 need_version=no
13099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13100 soname_spec='${libname}${release}${shared_ext}$major'
13101 shlibpath_var=LD_LIBRARY_PATH
13102 shlibpath_overrides_runpath=yes
13103 hardcode_into_libs=yes
13104 if test "$with_gnu_ld" = yes; then
13105 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13106 else
13107 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13108 case $host_os in
13109 sco3.2v5*)
13110 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13111 ;;
13112 esac
13113 fi
13114 sys_lib_dlsearch_path_spec='/usr/lib'
13115 ;;
13116
13117tpf*)
13118 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13119 version_type=linux
13120 need_lib_prefix=no
13121 need_version=no
13122 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13123 shlibpath_var=LD_LIBRARY_PATH
13124 shlibpath_overrides_runpath=no
13125 hardcode_into_libs=yes
13126 ;;
13127
13128uts4*)
13129 version_type=linux
13130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13131 soname_spec='${libname}${release}${shared_ext}$major'
13132 shlibpath_var=LD_LIBRARY_PATH
13133 ;;
13134
13135*)
13136 dynamic_linker=no
13137 ;;
13138esac
13139echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13140echo "${ECHO_T}$dynamic_linker" >&6
13141test "$dynamic_linker" = no && can_build_shared=no
13142
13143variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13144if test "$GCC" = yes; then
13145 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
1e8e9920 13146fi
1e8e9920 13147
542f9784 13148
13149
13150
13151
13152
13153
13154
13155
13156
13157
13158
13159
13160
13161
13162
13163
13164
13165
13166
13167
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182
13183 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13184echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13185hardcode_action_FC=
13186if test -n "$hardcode_libdir_flag_spec_FC" ||
13187 test -n "$runpath_var_FC" ||
13188 test "X$hardcode_automatic_FC" = "Xyes" ; then
13189
13190 # We can hardcode non-existent directories.
13191 if test "$hardcode_direct_FC" != no &&
13192 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13193 # have to relink, otherwise we might link with an installed library
13194 # when we should be linking with a yet-to-be-installed one
13195 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
13196 test "$hardcode_minus_L_FC" != no; then
13197 # Linking always hardcodes the temporary library directory.
13198 hardcode_action_FC=relink
1e8e9920 13199 else
542f9784 13200 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13201 hardcode_action_FC=immediate
1e8e9920 13202 fi
13203else
542f9784 13204 # We cannot hardcode anything, or else we can only hardcode existing
13205 # directories.
13206 hardcode_action_FC=unsupported
1e8e9920 13207fi
542f9784 13208echo "$as_me:$LINENO: result: $hardcode_action_FC" >&5
13209echo "${ECHO_T}$hardcode_action_FC" >&6
1e8e9920 13210
542f9784 13211if test "$hardcode_action_FC" = relink ||
13212 test "$inherit_rpath_FC" = yes; then
13213 # Fast installation is not supported
13214 enable_fast_install=no
13215elif test "$shlibpath_overrides_runpath" = yes ||
13216 test "$enable_shared" = no; then
13217 # Fast installation is not necessary
13218 enable_fast_install=needless
1e8e9920 13219fi
1e8e9920 13220
542f9784 13221
13222
13223
13224
13225
13226
13227 fi # test -n "$compiler"
13228
13229 CC="$lt_save_CC"
13230fi # test "$_lt_disable_FC" != yes
1e8e9920 13231
13232ac_ext=c
13233ac_cpp='$CPP $CPPFLAGS'
13234ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13235ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13236ac_compiler_gnu=$ac_cv_c_compiler_gnu
13237
13238
542f9784 13239FCFLAGS="$FCFLAGS -Wall"
1e8e9920 13240
542f9784 13241# For libtool versioning info, format is CURRENT:REVISION:AGE
13242libtool_VERSION=1:0:0
1e8e9920 13243
542f9784 13244
13245# Check header files.
1e8e9920 13246echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13247echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13248if test "${ac_cv_header_stdc+set}" = set; then
13249 echo $ECHO_N "(cached) $ECHO_C" >&6
13250else
13251 cat >conftest.$ac_ext <<_ACEOF
13252/* confdefs.h. */
13253_ACEOF
13254cat confdefs.h >>conftest.$ac_ext
13255cat >>conftest.$ac_ext <<_ACEOF
13256/* end confdefs.h. */
13257#include <stdlib.h>
13258#include <stdarg.h>
13259#include <string.h>
13260#include <float.h>
13261
13262int
13263main ()
13264{
13265
13266 ;
13267 return 0;
13268}
13269_ACEOF
13270rm -f conftest.$ac_objext
13271if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13272 (eval $ac_compile) 2>conftest.er1
13273 ac_status=$?
13274 grep -v '^ *+' conftest.er1 >conftest.err
13275 rm -f conftest.er1
13276 cat conftest.err >&5
13277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13278 (exit $ac_status); } &&
59da30e1 13279 { ac_try='test -z "$ac_c_werror_flag"
13280 || test ! -s conftest.err'
1e8e9920 13281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13282 (eval $ac_try) 2>&5
13283 ac_status=$?
13284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13285 (exit $ac_status); }; } &&
13286 { ac_try='test -s conftest.$ac_objext'
13287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13288 (eval $ac_try) 2>&5
13289 ac_status=$?
13290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13291 (exit $ac_status); }; }; then
13292 ac_cv_header_stdc=yes
13293else
13294 echo "$as_me: failed program was:" >&5
13295sed 's/^/| /' conftest.$ac_ext >&5
13296
13297ac_cv_header_stdc=no
13298fi
13299rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13300
13301if test $ac_cv_header_stdc = yes; then
13302 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13303 cat >conftest.$ac_ext <<_ACEOF
13304/* confdefs.h. */
13305_ACEOF
13306cat confdefs.h >>conftest.$ac_ext
13307cat >>conftest.$ac_ext <<_ACEOF
13308/* end confdefs.h. */
13309#include <string.h>
13310
13311_ACEOF
13312if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13313 $EGREP "memchr" >/dev/null 2>&1; then
13314 :
13315else
13316 ac_cv_header_stdc=no
13317fi
13318rm -f conftest*
13319
13320fi
13321
13322if test $ac_cv_header_stdc = yes; then
13323 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13324 cat >conftest.$ac_ext <<_ACEOF
13325/* confdefs.h. */
13326_ACEOF
13327cat confdefs.h >>conftest.$ac_ext
13328cat >>conftest.$ac_ext <<_ACEOF
13329/* end confdefs.h. */
13330#include <stdlib.h>
13331
13332_ACEOF
13333if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13334 $EGREP "free" >/dev/null 2>&1; then
13335 :
13336else
13337 ac_cv_header_stdc=no
13338fi
13339rm -f conftest*
13340
13341fi
13342
13343if test $ac_cv_header_stdc = yes; then
13344 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13345 if test "$cross_compiling" = yes; then
13346 :
13347else
13348 cat >conftest.$ac_ext <<_ACEOF
13349/* confdefs.h. */
13350_ACEOF
13351cat confdefs.h >>conftest.$ac_ext
13352cat >>conftest.$ac_ext <<_ACEOF
13353/* end confdefs.h. */
13354#include <ctype.h>
13355#if ((' ' & 0x0FF) == 0x020)
13356# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13357# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13358#else
13359# define ISLOWER(c) \
13360 (('a' <= (c) && (c) <= 'i') \
13361 || ('j' <= (c) && (c) <= 'r') \
13362 || ('s' <= (c) && (c) <= 'z'))
13363# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13364#endif
13365
13366#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13367int
13368main ()
13369{
13370 int i;
13371 for (i = 0; i < 256; i++)
13372 if (XOR (islower (i), ISLOWER (i))
13373 || toupper (i) != TOUPPER (i))
13374 exit(2);
13375 exit (0);
13376}
13377_ACEOF
13378rm -f conftest$ac_exeext
13379if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13380 (eval $ac_link) 2>&5
13381 ac_status=$?
13382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13383 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13385 (eval $ac_try) 2>&5
13386 ac_status=$?
13387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13388 (exit $ac_status); }; }; then
13389 :
13390else
13391 echo "$as_me: program exited with status $ac_status" >&5
13392echo "$as_me: failed program was:" >&5
13393sed 's/^/| /' conftest.$ac_ext >&5
13394
13395( exit $ac_status )
13396ac_cv_header_stdc=no
13397fi
13398rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13399fi
13400fi
13401fi
13402echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13403echo "${ECHO_T}$ac_cv_header_stdc" >&6
13404if test $ac_cv_header_stdc = yes; then
13405
13406cat >>confdefs.h <<\_ACEOF
13407#define STDC_HEADERS 1
13408_ACEOF
13409
13410fi
13411
13412echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
13413echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
13414if test "${ac_cv_header_time+set}" = set; then
13415 echo $ECHO_N "(cached) $ECHO_C" >&6
13416else
13417 cat >conftest.$ac_ext <<_ACEOF
13418/* confdefs.h. */
13419_ACEOF
13420cat confdefs.h >>conftest.$ac_ext
13421cat >>conftest.$ac_ext <<_ACEOF
13422/* end confdefs.h. */
13423#include <sys/types.h>
13424#include <sys/time.h>
13425#include <time.h>
13426
13427int
13428main ()
13429{
13430if ((struct tm *) 0)
13431return 0;
13432 ;
13433 return 0;
13434}
13435_ACEOF
13436rm -f conftest.$ac_objext
13437if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13438 (eval $ac_compile) 2>conftest.er1
13439 ac_status=$?
13440 grep -v '^ *+' conftest.er1 >conftest.err
13441 rm -f conftest.er1
13442 cat conftest.err >&5
13443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13444 (exit $ac_status); } &&
59da30e1 13445 { ac_try='test -z "$ac_c_werror_flag"
13446 || test ! -s conftest.err'
1e8e9920 13447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13448 (eval $ac_try) 2>&5
13449 ac_status=$?
13450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13451 (exit $ac_status); }; } &&
13452 { ac_try='test -s conftest.$ac_objext'
13453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13454 (eval $ac_try) 2>&5
13455 ac_status=$?
13456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13457 (exit $ac_status); }; }; then
13458 ac_cv_header_time=yes
13459else
13460 echo "$as_me: failed program was:" >&5
13461sed 's/^/| /' conftest.$ac_ext >&5
13462
13463ac_cv_header_time=no
13464fi
13465rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13466fi
13467echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
13468echo "${ECHO_T}$ac_cv_header_time" >&6
13469if test $ac_cv_header_time = yes; then
13470
13471cat >>confdefs.h <<\_ACEOF
13472#define TIME_WITH_SYS_TIME 1
13473_ACEOF
13474
13475fi
13476
ab7cd804 13477echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
13478echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
13479if test "${gcc_cv_header_string+set}" = set; then
13480 echo $ECHO_N "(cached) $ECHO_C" >&6
13481else
13482 cat >conftest.$ac_ext <<_ACEOF
13483/* confdefs.h. */
13484_ACEOF
13485cat confdefs.h >>conftest.$ac_ext
13486cat >>conftest.$ac_ext <<_ACEOF
13487/* end confdefs.h. */
13488#include <string.h>
13489#include <strings.h>
13490int
13491main ()
13492{
13493
13494 ;
13495 return 0;
13496}
13497_ACEOF
13498rm -f conftest.$ac_objext
13499if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13500 (eval $ac_compile) 2>conftest.er1
13501 ac_status=$?
13502 grep -v '^ *+' conftest.er1 >conftest.err
13503 rm -f conftest.er1
13504 cat conftest.err >&5
13505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13506 (exit $ac_status); } &&
13507 { ac_try='test -z "$ac_c_werror_flag"
13508 || test ! -s conftest.err'
13509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13510 (eval $ac_try) 2>&5
13511 ac_status=$?
13512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13513 (exit $ac_status); }; } &&
13514 { ac_try='test -s conftest.$ac_objext'
13515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13516 (eval $ac_try) 2>&5
13517 ac_status=$?
13518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13519 (exit $ac_status); }; }; then
13520 gcc_cv_header_string=yes
13521else
13522 echo "$as_me: failed program was:" >&5
13523sed 's/^/| /' conftest.$ac_ext >&5
13524
13525gcc_cv_header_string=no
13526fi
13527rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13528fi
13529echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
13530echo "${ECHO_T}$gcc_cv_header_string" >&6
13531if test $gcc_cv_header_string = yes; then
13532
13533cat >>confdefs.h <<\_ACEOF
13534#define STRING_WITH_STRINGS 1
13535_ACEOF
13536
13537fi
13538
1e8e9920 13539
13540
13541
138f59be 13542
84f90f7d 13543
13544for ac_header in unistd.h semaphore.h sys/loadavg.h sys/time.h sys/time.h
1e8e9920 13545do
13546as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13547if eval "test \"\${$as_ac_Header+set}\" = set"; then
13548 echo "$as_me:$LINENO: checking for $ac_header" >&5
13549echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13550if eval "test \"\${$as_ac_Header+set}\" = set"; then
13551 echo $ECHO_N "(cached) $ECHO_C" >&6
13552fi
13553echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13554echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13555else
13556 # Is the header compilable?
13557echo "$as_me:$LINENO: checking $ac_header usability" >&5
13558echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13559cat >conftest.$ac_ext <<_ACEOF
13560/* confdefs.h. */
13561_ACEOF
13562cat confdefs.h >>conftest.$ac_ext
13563cat >>conftest.$ac_ext <<_ACEOF
13564/* end confdefs.h. */
13565$ac_includes_default
13566#include <$ac_header>
13567_ACEOF
13568rm -f conftest.$ac_objext
13569if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13570 (eval $ac_compile) 2>conftest.er1
13571 ac_status=$?
13572 grep -v '^ *+' conftest.er1 >conftest.err
13573 rm -f conftest.er1
13574 cat conftest.err >&5
13575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576 (exit $ac_status); } &&
59da30e1 13577 { ac_try='test -z "$ac_c_werror_flag"
13578 || test ! -s conftest.err'
1e8e9920 13579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13580 (eval $ac_try) 2>&5
13581 ac_status=$?
13582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583 (exit $ac_status); }; } &&
13584 { ac_try='test -s conftest.$ac_objext'
13585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13586 (eval $ac_try) 2>&5
13587 ac_status=$?
13588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589 (exit $ac_status); }; }; then
13590 ac_header_compiler=yes
13591else
13592 echo "$as_me: failed program was:" >&5
13593sed 's/^/| /' conftest.$ac_ext >&5
13594
13595ac_header_compiler=no
13596fi
13597rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13598echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13599echo "${ECHO_T}$ac_header_compiler" >&6
13600
13601# Is the header present?
13602echo "$as_me:$LINENO: checking $ac_header presence" >&5
13603echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13604cat >conftest.$ac_ext <<_ACEOF
13605/* confdefs.h. */
13606_ACEOF
13607cat confdefs.h >>conftest.$ac_ext
13608cat >>conftest.$ac_ext <<_ACEOF
13609/* end confdefs.h. */
13610#include <$ac_header>
13611_ACEOF
13612if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13613 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13614 ac_status=$?
13615 grep -v '^ *+' conftest.er1 >conftest.err
13616 rm -f conftest.er1
13617 cat conftest.err >&5
13618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13619 (exit $ac_status); } >/dev/null; then
13620 if test -s conftest.err; then
13621 ac_cpp_err=$ac_c_preproc_warn_flag
13622 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13623 else
13624 ac_cpp_err=
13625 fi
13626else
13627 ac_cpp_err=yes
13628fi
13629if test -z "$ac_cpp_err"; then
13630 ac_header_preproc=yes
13631else
13632 echo "$as_me: failed program was:" >&5
13633sed 's/^/| /' conftest.$ac_ext >&5
13634
13635 ac_header_preproc=no
13636fi
13637rm -f conftest.err conftest.$ac_ext
13638echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13639echo "${ECHO_T}$ac_header_preproc" >&6
13640
13641# So? What about this header?
13642case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13643 yes:no: )
13644 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13645echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13646 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13647echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13648 ac_header_preproc=yes
13649 ;;
13650 no:yes:* )
13651 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13652echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13653 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13654echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13655 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13656echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13657 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13658echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13659 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13660echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13661 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13662echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13663 (
13664 cat <<\_ASBOX
13665## ----------------------------------------------------- ##
13666## Report this to the GNU OpenMP Runtime Library lists. ##
13667## ----------------------------------------------------- ##
13668_ASBOX
13669 ) |
13670 sed "s/^/$as_me: WARNING: /" >&2
13671 ;;
13672esac
13673echo "$as_me:$LINENO: checking for $ac_header" >&5
13674echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13675if eval "test \"\${$as_ac_Header+set}\" = set"; then
13676 echo $ECHO_N "(cached) $ECHO_C" >&6
13677else
13678 eval "$as_ac_Header=\$ac_header_preproc"
13679fi
13680echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13681echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13682
13683fi
13684if test `eval echo '${'$as_ac_Header'}'` = yes; then
13685 cat >>confdefs.h <<_ACEOF
13686#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13687_ACEOF
13688
13689fi
13690
13691done
13692
1e8e9920 13693
01473a49 13694
13695
13696inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
13697
13698acx_cv_header_stdint=stddef.h
13699acx_cv_header_stdint_kind="(already complete)"
13700for i in stdint.h $inttype_headers; do
13701 unset ac_cv_type_uintptr_t
13702 unset ac_cv_type_uintmax_t
13703 unset ac_cv_type_int_least32_t
13704 unset ac_cv_type_int_fast32_t
13705 unset ac_cv_type_uint64_t
13706 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
13707 echo "$as_me:$LINENO: checking for uintmax_t" >&5
13708echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
13709if test "${ac_cv_type_uintmax_t+set}" = set; then
13710 echo $ECHO_N "(cached) $ECHO_C" >&6
13711else
13712 cat >conftest.$ac_ext <<_ACEOF
13713/* confdefs.h. */
13714_ACEOF
13715cat confdefs.h >>conftest.$ac_ext
13716cat >>conftest.$ac_ext <<_ACEOF
13717/* end confdefs.h. */
13718#include <sys/types.h>
13719#include <$i>
13720
13721int
13722main ()
13723{
13724if ((uintmax_t *) 0)
13725 return 0;
13726if (sizeof (uintmax_t))
13727 return 0;
13728 ;
13729 return 0;
13730}
13731_ACEOF
13732rm -f conftest.$ac_objext
13733if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13734 (eval $ac_compile) 2>conftest.er1
13735 ac_status=$?
13736 grep -v '^ *+' conftest.er1 >conftest.err
13737 rm -f conftest.er1
13738 cat conftest.err >&5
13739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13740 (exit $ac_status); } &&
59da30e1 13741 { ac_try='test -z "$ac_c_werror_flag"
13742 || test ! -s conftest.err'
01473a49 13743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13744 (eval $ac_try) 2>&5
13745 ac_status=$?
13746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13747 (exit $ac_status); }; } &&
13748 { ac_try='test -s conftest.$ac_objext'
13749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13750 (eval $ac_try) 2>&5
13751 ac_status=$?
13752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753 (exit $ac_status); }; }; then
13754 ac_cv_type_uintmax_t=yes
13755else
13756 echo "$as_me: failed program was:" >&5
13757sed 's/^/| /' conftest.$ac_ext >&5
13758
13759ac_cv_type_uintmax_t=no
13760fi
13761rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13762fi
13763echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
13764echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
13765if test $ac_cv_type_uintmax_t = yes; then
13766 acx_cv_header_stdint=$i
13767else
13768 continue
13769fi
13770
13771 echo "$as_me:$LINENO: checking for uintptr_t" >&5
13772echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
13773if test "${ac_cv_type_uintptr_t+set}" = set; then
13774 echo $ECHO_N "(cached) $ECHO_C" >&6
13775else
13776 cat >conftest.$ac_ext <<_ACEOF
13777/* confdefs.h. */
13778_ACEOF
13779cat confdefs.h >>conftest.$ac_ext
13780cat >>conftest.$ac_ext <<_ACEOF
13781/* end confdefs.h. */
13782#include <sys/types.h>
13783#include <$i>
13784
13785int
13786main ()
13787{
13788if ((uintptr_t *) 0)
13789 return 0;
13790if (sizeof (uintptr_t))
13791 return 0;
13792 ;
13793 return 0;
13794}
13795_ACEOF
13796rm -f conftest.$ac_objext
13797if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13798 (eval $ac_compile) 2>conftest.er1
13799 ac_status=$?
13800 grep -v '^ *+' conftest.er1 >conftest.err
13801 rm -f conftest.er1
13802 cat conftest.err >&5
13803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13804 (exit $ac_status); } &&
59da30e1 13805 { ac_try='test -z "$ac_c_werror_flag"
13806 || test ! -s conftest.err'
01473a49 13807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13808 (eval $ac_try) 2>&5
13809 ac_status=$?
13810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13811 (exit $ac_status); }; } &&
13812 { ac_try='test -s conftest.$ac_objext'
13813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13814 (eval $ac_try) 2>&5
13815 ac_status=$?
13816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13817 (exit $ac_status); }; }; then
13818 ac_cv_type_uintptr_t=yes
13819else
13820 echo "$as_me: failed program was:" >&5
13821sed 's/^/| /' conftest.$ac_ext >&5
13822
13823ac_cv_type_uintptr_t=no
13824fi
13825rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13826fi
13827echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
13828echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
13829if test $ac_cv_type_uintptr_t = yes; then
13830 :
13831else
13832 acx_cv_header_stdint_kind="(mostly complete)"
13833fi
13834
13835 echo "$as_me:$LINENO: checking for int_least32_t" >&5
13836echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
13837if test "${ac_cv_type_int_least32_t+set}" = set; then
13838 echo $ECHO_N "(cached) $ECHO_C" >&6
13839else
13840 cat >conftest.$ac_ext <<_ACEOF
13841/* confdefs.h. */
13842_ACEOF
13843cat confdefs.h >>conftest.$ac_ext
13844cat >>conftest.$ac_ext <<_ACEOF
13845/* end confdefs.h. */
13846#include <sys/types.h>
13847#include <$i>
13848
13849int
13850main ()
13851{
13852if ((int_least32_t *) 0)
13853 return 0;
13854if (sizeof (int_least32_t))
13855 return 0;
13856 ;
13857 return 0;
13858}
13859_ACEOF
13860rm -f conftest.$ac_objext
13861if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13862 (eval $ac_compile) 2>conftest.er1
13863 ac_status=$?
13864 grep -v '^ *+' conftest.er1 >conftest.err
13865 rm -f conftest.er1
13866 cat conftest.err >&5
13867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13868 (exit $ac_status); } &&
59da30e1 13869 { ac_try='test -z "$ac_c_werror_flag"
13870 || test ! -s conftest.err'
01473a49 13871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13872 (eval $ac_try) 2>&5
13873 ac_status=$?
13874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13875 (exit $ac_status); }; } &&
13876 { ac_try='test -s conftest.$ac_objext'
13877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13878 (eval $ac_try) 2>&5
13879 ac_status=$?
13880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881 (exit $ac_status); }; }; then
13882 ac_cv_type_int_least32_t=yes
13883else
13884 echo "$as_me: failed program was:" >&5
13885sed 's/^/| /' conftest.$ac_ext >&5
13886
13887ac_cv_type_int_least32_t=no
13888fi
13889rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13890fi
13891echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
13892echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
13893if test $ac_cv_type_int_least32_t = yes; then
13894 :
13895else
13896 acx_cv_header_stdint_kind="(mostly complete)"
13897fi
13898
13899 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
13900echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
13901if test "${ac_cv_type_int_fast32_t+set}" = set; then
13902 echo $ECHO_N "(cached) $ECHO_C" >&6
13903else
13904 cat >conftest.$ac_ext <<_ACEOF
13905/* confdefs.h. */
13906_ACEOF
13907cat confdefs.h >>conftest.$ac_ext
13908cat >>conftest.$ac_ext <<_ACEOF
13909/* end confdefs.h. */
13910#include <sys/types.h>
13911#include <$i>
13912
13913int
13914main ()
13915{
13916if ((int_fast32_t *) 0)
13917 return 0;
13918if (sizeof (int_fast32_t))
13919 return 0;
13920 ;
13921 return 0;
13922}
13923_ACEOF
13924rm -f conftest.$ac_objext
13925if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13926 (eval $ac_compile) 2>conftest.er1
13927 ac_status=$?
13928 grep -v '^ *+' conftest.er1 >conftest.err
13929 rm -f conftest.er1
13930 cat conftest.err >&5
13931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13932 (exit $ac_status); } &&
59da30e1 13933 { ac_try='test -z "$ac_c_werror_flag"
13934 || test ! -s conftest.err'
01473a49 13935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13936 (eval $ac_try) 2>&5
13937 ac_status=$?
13938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13939 (exit $ac_status); }; } &&
13940 { ac_try='test -s conftest.$ac_objext'
13941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13942 (eval $ac_try) 2>&5
13943 ac_status=$?
13944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945 (exit $ac_status); }; }; then
13946 ac_cv_type_int_fast32_t=yes
13947else
13948 echo "$as_me: failed program was:" >&5
13949sed 's/^/| /' conftest.$ac_ext >&5
13950
13951ac_cv_type_int_fast32_t=no
13952fi
13953rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13954fi
13955echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
13956echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
13957if test $ac_cv_type_int_fast32_t = yes; then
13958 :
13959else
13960 acx_cv_header_stdint_kind="(mostly complete)"
13961fi
13962
13963 echo "$as_me:$LINENO: checking for uint64_t" >&5
13964echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
13965if test "${ac_cv_type_uint64_t+set}" = set; then
13966 echo $ECHO_N "(cached) $ECHO_C" >&6
13967else
13968 cat >conftest.$ac_ext <<_ACEOF
13969/* confdefs.h. */
13970_ACEOF
13971cat confdefs.h >>conftest.$ac_ext
13972cat >>conftest.$ac_ext <<_ACEOF
13973/* end confdefs.h. */
13974#include <sys/types.h>
13975#include <$i>
13976
13977int
13978main ()
13979{
13980if ((uint64_t *) 0)
13981 return 0;
13982if (sizeof (uint64_t))
13983 return 0;
13984 ;
13985 return 0;
13986}
13987_ACEOF
13988rm -f conftest.$ac_objext
13989if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13990 (eval $ac_compile) 2>conftest.er1
13991 ac_status=$?
13992 grep -v '^ *+' conftest.er1 >conftest.err
13993 rm -f conftest.er1
13994 cat conftest.err >&5
13995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13996 (exit $ac_status); } &&
59da30e1 13997 { ac_try='test -z "$ac_c_werror_flag"
13998 || test ! -s conftest.err'
01473a49 13999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14000 (eval $ac_try) 2>&5
14001 ac_status=$?
14002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14003 (exit $ac_status); }; } &&
14004 { ac_try='test -s conftest.$ac_objext'
14005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14006 (eval $ac_try) 2>&5
14007 ac_status=$?
14008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14009 (exit $ac_status); }; }; then
14010 ac_cv_type_uint64_t=yes
14011else
14012 echo "$as_me: failed program was:" >&5
14013sed 's/^/| /' conftest.$ac_ext >&5
14014
14015ac_cv_type_uint64_t=no
14016fi
14017rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14018fi
14019echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
14020echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
14021if test $ac_cv_type_uint64_t = yes; then
14022 :
14023else
14024 acx_cv_header_stdint_kind="(lacks uint64_t)"
14025fi
14026
14027 break
14028done
14029if test "$acx_cv_header_stdint" = stddef.h; then
0b67f687 14030 acx_cv_header_stdint_kind="(lacks uintmax_t)"
01473a49 14031 for i in stdint.h $inttype_headers; do
0b67f687 14032 unset ac_cv_type_uintptr_t
01473a49 14033 unset ac_cv_type_uint32_t
14034 unset ac_cv_type_uint64_t
14035 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
14036 echo "$as_me:$LINENO: checking for uint32_t" >&5
14037echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
14038if test "${ac_cv_type_uint32_t+set}" = set; then
14039 echo $ECHO_N "(cached) $ECHO_C" >&6
14040else
14041 cat >conftest.$ac_ext <<_ACEOF
14042/* confdefs.h. */
14043_ACEOF
14044cat confdefs.h >>conftest.$ac_ext
14045cat >>conftest.$ac_ext <<_ACEOF
14046/* end confdefs.h. */
14047#include <sys/types.h>
14048#include <$i>
14049
14050int
14051main ()
14052{
14053if ((uint32_t *) 0)
14054 return 0;
14055if (sizeof (uint32_t))
14056 return 0;
14057 ;
14058 return 0;
14059}
14060_ACEOF
14061rm -f conftest.$ac_objext
14062if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14063 (eval $ac_compile) 2>conftest.er1
14064 ac_status=$?
14065 grep -v '^ *+' conftest.er1 >conftest.err
14066 rm -f conftest.er1
14067 cat conftest.err >&5
14068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14069 (exit $ac_status); } &&
59da30e1 14070 { ac_try='test -z "$ac_c_werror_flag"
14071 || test ! -s conftest.err'
01473a49 14072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14073 (eval $ac_try) 2>&5
14074 ac_status=$?
14075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14076 (exit $ac_status); }; } &&
14077 { ac_try='test -s conftest.$ac_objext'
14078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14079 (eval $ac_try) 2>&5
14080 ac_status=$?
14081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082 (exit $ac_status); }; }; then
14083 ac_cv_type_uint32_t=yes
14084else
14085 echo "$as_me: failed program was:" >&5
14086sed 's/^/| /' conftest.$ac_ext >&5
14087
14088ac_cv_type_uint32_t=no
14089fi
14090rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14091fi
14092echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
14093echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
14094if test $ac_cv_type_uint32_t = yes; then
14095 acx_cv_header_stdint=$i
14096else
14097 continue
14098fi
14099
14100 echo "$as_me:$LINENO: checking for uint64_t" >&5
14101echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
14102if test "${ac_cv_type_uint64_t+set}" = set; then
14103 echo $ECHO_N "(cached) $ECHO_C" >&6
14104else
14105 cat >conftest.$ac_ext <<_ACEOF
14106/* confdefs.h. */
14107_ACEOF
14108cat confdefs.h >>conftest.$ac_ext
14109cat >>conftest.$ac_ext <<_ACEOF
14110/* end confdefs.h. */
14111#include <sys/types.h>
14112#include <$i>
14113
14114int
14115main ()
14116{
14117if ((uint64_t *) 0)
14118 return 0;
14119if (sizeof (uint64_t))
14120 return 0;
14121 ;
14122 return 0;
14123}
14124_ACEOF
14125rm -f conftest.$ac_objext
14126if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14127 (eval $ac_compile) 2>conftest.er1
14128 ac_status=$?
14129 grep -v '^ *+' conftest.er1 >conftest.err
14130 rm -f conftest.er1
14131 cat conftest.err >&5
14132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14133 (exit $ac_status); } &&
59da30e1 14134 { ac_try='test -z "$ac_c_werror_flag"
14135 || test ! -s conftest.err'
01473a49 14136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14137 (eval $ac_try) 2>&5
14138 ac_status=$?
14139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140 (exit $ac_status); }; } &&
14141 { ac_try='test -s conftest.$ac_objext'
14142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14143 (eval $ac_try) 2>&5
14144 ac_status=$?
14145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14146 (exit $ac_status); }; }; then
14147 ac_cv_type_uint64_t=yes
14148else
14149 echo "$as_me: failed program was:" >&5
14150sed 's/^/| /' conftest.$ac_ext >&5
14151
14152ac_cv_type_uint64_t=no
14153fi
14154rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14155fi
14156echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
14157echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
0b67f687 14158
14159 echo "$as_me:$LINENO: checking for uintptr_t" >&5
14160echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
14161if test "${ac_cv_type_uintptr_t+set}" = set; then
14162 echo $ECHO_N "(cached) $ECHO_C" >&6
01473a49 14163else
0b67f687 14164 cat >conftest.$ac_ext <<_ACEOF
14165/* confdefs.h. */
14166_ACEOF
14167cat confdefs.h >>conftest.$ac_ext
14168cat >>conftest.$ac_ext <<_ACEOF
14169/* end confdefs.h. */
14170#include <sys/types.h>
14171#include <$i>
14172
14173int
14174main ()
14175{
14176if ((uintptr_t *) 0)
14177 return 0;
14178if (sizeof (uintptr_t))
14179 return 0;
14180 ;
14181 return 0;
14182}
14183_ACEOF
14184rm -f conftest.$ac_objext
14185if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14186 (eval $ac_compile) 2>conftest.er1
14187 ac_status=$?
14188 grep -v '^ *+' conftest.er1 >conftest.err
14189 rm -f conftest.er1
14190 cat conftest.err >&5
14191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14192 (exit $ac_status); } &&
14193 { ac_try='test -z "$ac_c_werror_flag"
14194 || test ! -s conftest.err'
14195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14196 (eval $ac_try) 2>&5
14197 ac_status=$?
14198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14199 (exit $ac_status); }; } &&
14200 { ac_try='test -s conftest.$ac_objext'
14201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14202 (eval $ac_try) 2>&5
14203 ac_status=$?
14204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14205 (exit $ac_status); }; }; then
14206 ac_cv_type_uintptr_t=yes
14207else
14208 echo "$as_me: failed program was:" >&5
14209sed 's/^/| /' conftest.$ac_ext >&5
14210
14211ac_cv_type_uintptr_t=no
14212fi
14213rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01473a49 14214fi
0b67f687 14215echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
14216echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
01473a49 14217
14218 break
14219 done
14220fi
14221if test "$acx_cv_header_stdint" = stddef.h; then
14222 acx_cv_header_stdint_kind="(u_intXX_t style)"
14223 for i in sys/types.h $inttype_headers; do
14224 unset ac_cv_type_u_int32_t
14225 unset ac_cv_type_u_int64_t
14226 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
14227 echo "$as_me:$LINENO: checking for u_int32_t" >&5
14228echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
14229if test "${ac_cv_type_u_int32_t+set}" = set; then
14230 echo $ECHO_N "(cached) $ECHO_C" >&6
14231else
14232 cat >conftest.$ac_ext <<_ACEOF
14233/* confdefs.h. */
14234_ACEOF
14235cat confdefs.h >>conftest.$ac_ext
14236cat >>conftest.$ac_ext <<_ACEOF
14237/* end confdefs.h. */
14238#include <sys/types.h>
14239#include <$i>
14240
14241int
14242main ()
14243{
14244if ((u_int32_t *) 0)
14245 return 0;
14246if (sizeof (u_int32_t))
14247 return 0;
14248 ;
14249 return 0;
14250}
14251_ACEOF
14252rm -f conftest.$ac_objext
14253if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14254 (eval $ac_compile) 2>conftest.er1
14255 ac_status=$?
14256 grep -v '^ *+' conftest.er1 >conftest.err
14257 rm -f conftest.er1
14258 cat conftest.err >&5
14259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260 (exit $ac_status); } &&
59da30e1 14261 { ac_try='test -z "$ac_c_werror_flag"
14262 || test ! -s conftest.err'
01473a49 14263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14264 (eval $ac_try) 2>&5
14265 ac_status=$?
14266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14267 (exit $ac_status); }; } &&
14268 { ac_try='test -s conftest.$ac_objext'
14269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14270 (eval $ac_try) 2>&5
14271 ac_status=$?
14272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14273 (exit $ac_status); }; }; then
14274 ac_cv_type_u_int32_t=yes
14275else
14276 echo "$as_me: failed program was:" >&5
14277sed 's/^/| /' conftest.$ac_ext >&5
14278
14279ac_cv_type_u_int32_t=no
14280fi
14281rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14282fi
14283echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
14284echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
14285if test $ac_cv_type_u_int32_t = yes; then
14286 acx_cv_header_stdint=$i
14287else
14288 continue
14289fi
14290
14291 echo "$as_me:$LINENO: checking for u_int64_t" >&5
14292echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
14293if test "${ac_cv_type_u_int64_t+set}" = set; then
14294 echo $ECHO_N "(cached) $ECHO_C" >&6
14295else
14296 cat >conftest.$ac_ext <<_ACEOF
14297/* confdefs.h. */
14298_ACEOF
14299cat confdefs.h >>conftest.$ac_ext
14300cat >>conftest.$ac_ext <<_ACEOF
14301/* end confdefs.h. */
14302#include <sys/types.h>
14303#include <$i>
14304
14305int
14306main ()
14307{
14308if ((u_int64_t *) 0)
14309 return 0;
14310if (sizeof (u_int64_t))
14311 return 0;
14312 ;
14313 return 0;
14314}
14315_ACEOF
14316rm -f conftest.$ac_objext
14317if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14318 (eval $ac_compile) 2>conftest.er1
14319 ac_status=$?
14320 grep -v '^ *+' conftest.er1 >conftest.err
14321 rm -f conftest.er1
14322 cat conftest.err >&5
14323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14324 (exit $ac_status); } &&
59da30e1 14325 { ac_try='test -z "$ac_c_werror_flag"
14326 || test ! -s conftest.err'
01473a49 14327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14328 (eval $ac_try) 2>&5
14329 ac_status=$?
14330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14331 (exit $ac_status); }; } &&
14332 { ac_try='test -s conftest.$ac_objext'
14333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14334 (eval $ac_try) 2>&5
14335 ac_status=$?
14336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14337 (exit $ac_status); }; }; then
14338 ac_cv_type_u_int64_t=yes
14339else
14340 echo "$as_me: failed program was:" >&5
14341sed 's/^/| /' conftest.$ac_ext >&5
14342
14343ac_cv_type_u_int64_t=no
14344fi
14345rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14346fi
14347echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
14348echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
01473a49 14349
14350 break
14351 done
14352fi
14353if test "$acx_cv_header_stdint" = stddef.h; then
14354 acx_cv_header_stdint_kind="(using manual detection)"
14355fi
14356
14357test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
14358test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
14359test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
14360test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
14361test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
14362
14363# ----------------- Summarize what we found so far
14364
14365echo "$as_me:$LINENO: checking what to include in gstdint.h" >&5
14366echo $ECHO_N "checking what to include in gstdint.h... $ECHO_C" >&6
14367
14368case `$as_basename gstdint.h ||
14369$as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
14370 Xgstdint.h : 'X\(//\)$' \| \
14371 Xgstdint.h : 'X\(/\)$' \| \
14372 . : '\(.\)' 2>/dev/null ||
14373echo X/gstdint.h |
14374 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14375 /^X\/\(\/\/\)$/{ s//\1/; q; }
14376 /^X\/\(\/\).*/{ s//\1/; q; }
14377 s/.*/./; q'` in
14378 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
14379echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14380 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
14381echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14382 *) ;;
14383esac
14384
14385echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
14386echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
14387
14388# ----------------- done included file, check C basic types --------
14389
14390# Lacking an uintptr_t? Test size of void *
14391case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
14392 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
14393echo $ECHO_N "checking for void *... $ECHO_C" >&6
14394if test "${ac_cv_type_void_p+set}" = set; then
14395 echo $ECHO_N "(cached) $ECHO_C" >&6
14396else
14397 cat >conftest.$ac_ext <<_ACEOF
14398/* confdefs.h. */
14399_ACEOF
14400cat confdefs.h >>conftest.$ac_ext
14401cat >>conftest.$ac_ext <<_ACEOF
14402/* end confdefs.h. */
14403$ac_includes_default
14404int
14405main ()
14406{
14407if ((void * *) 0)
14408 return 0;
14409if (sizeof (void *))
14410 return 0;
14411 ;
14412 return 0;
14413}
14414_ACEOF
14415rm -f conftest.$ac_objext
14416if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14417 (eval $ac_compile) 2>conftest.er1
14418 ac_status=$?
14419 grep -v '^ *+' conftest.er1 >conftest.err
14420 rm -f conftest.er1
14421 cat conftest.err >&5
14422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14423 (exit $ac_status); } &&
59da30e1 14424 { ac_try='test -z "$ac_c_werror_flag"
14425 || test ! -s conftest.err'
01473a49 14426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14427 (eval $ac_try) 2>&5
14428 ac_status=$?
14429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14430 (exit $ac_status); }; } &&
14431 { ac_try='test -s conftest.$ac_objext'
14432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14433 (eval $ac_try) 2>&5
14434 ac_status=$?
14435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14436 (exit $ac_status); }; }; then
14437 ac_cv_type_void_p=yes
14438else
14439 echo "$as_me: failed program was:" >&5
14440sed 's/^/| /' conftest.$ac_ext >&5
14441
14442ac_cv_type_void_p=no
14443fi
14444rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14445fi
14446echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14447echo "${ECHO_T}$ac_cv_type_void_p" >&6
14448
14449echo "$as_me:$LINENO: checking size of void *" >&5
14450echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14451if test "${ac_cv_sizeof_void_p+set}" = set; then
14452 echo $ECHO_N "(cached) $ECHO_C" >&6
14453else
14454 if test "$ac_cv_type_void_p" = yes; then
14455 # The cast to unsigned long works around a bug in the HP C Compiler
14456 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14457 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14458 # This bug is HP SR number 8606223364.
14459 if test "$cross_compiling" = yes; then
14460 # Depending upon the size, compute the lo and hi bounds.
14461cat >conftest.$ac_ext <<_ACEOF
14462/* confdefs.h. */
14463_ACEOF
14464cat confdefs.h >>conftest.$ac_ext
14465cat >>conftest.$ac_ext <<_ACEOF
14466/* end confdefs.h. */
14467$ac_includes_default
14468int
14469main ()
14470{
14471static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14472test_array [0] = 0
14473
14474 ;
14475 return 0;
14476}
14477_ACEOF
14478rm -f conftest.$ac_objext
14479if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14480 (eval $ac_compile) 2>conftest.er1
14481 ac_status=$?
14482 grep -v '^ *+' conftest.er1 >conftest.err
14483 rm -f conftest.er1
14484 cat conftest.err >&5
14485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14486 (exit $ac_status); } &&
59da30e1 14487 { ac_try='test -z "$ac_c_werror_flag"
14488 || test ! -s conftest.err'
01473a49 14489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14490 (eval $ac_try) 2>&5
14491 ac_status=$?
14492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14493 (exit $ac_status); }; } &&
14494 { ac_try='test -s conftest.$ac_objext'
14495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14496 (eval $ac_try) 2>&5
14497 ac_status=$?
14498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14499 (exit $ac_status); }; }; then
14500 ac_lo=0 ac_mid=0
14501 while :; do
14502 cat >conftest.$ac_ext <<_ACEOF
14503/* confdefs.h. */
14504_ACEOF
14505cat confdefs.h >>conftest.$ac_ext
14506cat >>conftest.$ac_ext <<_ACEOF
14507/* end confdefs.h. */
14508$ac_includes_default
14509int
14510main ()
14511{
14512static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14513test_array [0] = 0
14514
14515 ;
14516 return 0;
14517}
14518_ACEOF
14519rm -f conftest.$ac_objext
14520if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14521 (eval $ac_compile) 2>conftest.er1
14522 ac_status=$?
14523 grep -v '^ *+' conftest.er1 >conftest.err
14524 rm -f conftest.er1
14525 cat conftest.err >&5
14526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14527 (exit $ac_status); } &&
59da30e1 14528 { ac_try='test -z "$ac_c_werror_flag"
14529 || test ! -s conftest.err'
01473a49 14530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14531 (eval $ac_try) 2>&5
14532 ac_status=$?
14533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14534 (exit $ac_status); }; } &&
14535 { ac_try='test -s conftest.$ac_objext'
14536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14537 (eval $ac_try) 2>&5
14538 ac_status=$?
14539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14540 (exit $ac_status); }; }; then
14541 ac_hi=$ac_mid; break
14542else
14543 echo "$as_me: failed program was:" >&5
14544sed 's/^/| /' conftest.$ac_ext >&5
14545
14546ac_lo=`expr $ac_mid + 1`
14547 if test $ac_lo -le $ac_mid; then
14548 ac_lo= ac_hi=
14549 break
14550 fi
14551 ac_mid=`expr 2 '*' $ac_mid + 1`
14552fi
14553rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14554 done
14555else
14556 echo "$as_me: failed program was:" >&5
14557sed 's/^/| /' conftest.$ac_ext >&5
14558
14559cat >conftest.$ac_ext <<_ACEOF
14560/* confdefs.h. */
14561_ACEOF
14562cat confdefs.h >>conftest.$ac_ext
14563cat >>conftest.$ac_ext <<_ACEOF
14564/* end confdefs.h. */
14565$ac_includes_default
14566int
14567main ()
14568{
14569static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
14570test_array [0] = 0
14571
14572 ;
14573 return 0;
14574}
14575_ACEOF
14576rm -f conftest.$ac_objext
14577if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14578 (eval $ac_compile) 2>conftest.er1
14579 ac_status=$?
14580 grep -v '^ *+' conftest.er1 >conftest.err
14581 rm -f conftest.er1
14582 cat conftest.err >&5
14583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14584 (exit $ac_status); } &&
59da30e1 14585 { ac_try='test -z "$ac_c_werror_flag"
14586 || test ! -s conftest.err'
01473a49 14587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14588 (eval $ac_try) 2>&5
14589 ac_status=$?
14590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591 (exit $ac_status); }; } &&
14592 { ac_try='test -s conftest.$ac_objext'
14593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14594 (eval $ac_try) 2>&5
14595 ac_status=$?
14596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14597 (exit $ac_status); }; }; then
14598 ac_hi=-1 ac_mid=-1
14599 while :; do
14600 cat >conftest.$ac_ext <<_ACEOF
14601/* confdefs.h. */
14602_ACEOF
14603cat confdefs.h >>conftest.$ac_ext
14604cat >>conftest.$ac_ext <<_ACEOF
14605/* end confdefs.h. */
14606$ac_includes_default
14607int
14608main ()
14609{
14610static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
14611test_array [0] = 0
14612
14613 ;
14614 return 0;
14615}
14616_ACEOF
14617rm -f conftest.$ac_objext
14618if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14619 (eval $ac_compile) 2>conftest.er1
14620 ac_status=$?
14621 grep -v '^ *+' conftest.er1 >conftest.err
14622 rm -f conftest.er1
14623 cat conftest.err >&5
14624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14625 (exit $ac_status); } &&
59da30e1 14626 { ac_try='test -z "$ac_c_werror_flag"
14627 || test ! -s conftest.err'
01473a49 14628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14629 (eval $ac_try) 2>&5
14630 ac_status=$?
14631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14632 (exit $ac_status); }; } &&
14633 { ac_try='test -s conftest.$ac_objext'
14634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14635 (eval $ac_try) 2>&5
14636 ac_status=$?
14637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14638 (exit $ac_status); }; }; then
14639 ac_lo=$ac_mid; break
14640else
14641 echo "$as_me: failed program was:" >&5
14642sed 's/^/| /' conftest.$ac_ext >&5
14643
14644ac_hi=`expr '(' $ac_mid ')' - 1`
14645 if test $ac_mid -le $ac_hi; then
14646 ac_lo= ac_hi=
14647 break
14648 fi
14649 ac_mid=`expr 2 '*' $ac_mid`
14650fi
14651rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14652 done
14653else
14654 echo "$as_me: failed program was:" >&5
14655sed 's/^/| /' conftest.$ac_ext >&5
14656
14657ac_lo= ac_hi=
14658fi
14659rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14660fi
14661rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14662# Binary search between lo and hi bounds.
14663while test "x$ac_lo" != "x$ac_hi"; do
14664 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14665 cat >conftest.$ac_ext <<_ACEOF
14666/* confdefs.h. */
14667_ACEOF
14668cat confdefs.h >>conftest.$ac_ext
14669cat >>conftest.$ac_ext <<_ACEOF
14670/* end confdefs.h. */
14671$ac_includes_default
14672int
14673main ()
14674{
14675static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14676test_array [0] = 0
14677
14678 ;
14679 return 0;
14680}
14681_ACEOF
14682rm -f conftest.$ac_objext
14683if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14684 (eval $ac_compile) 2>conftest.er1
14685 ac_status=$?
14686 grep -v '^ *+' conftest.er1 >conftest.err
14687 rm -f conftest.er1
14688 cat conftest.err >&5
14689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14690 (exit $ac_status); } &&
59da30e1 14691 { ac_try='test -z "$ac_c_werror_flag"
14692 || test ! -s conftest.err'
01473a49 14693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14694 (eval $ac_try) 2>&5
14695 ac_status=$?
14696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14697 (exit $ac_status); }; } &&
14698 { ac_try='test -s conftest.$ac_objext'
14699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14700 (eval $ac_try) 2>&5
14701 ac_status=$?
14702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703 (exit $ac_status); }; }; then
14704 ac_hi=$ac_mid
14705else
14706 echo "$as_me: failed program was:" >&5
14707sed 's/^/| /' conftest.$ac_ext >&5
14708
14709ac_lo=`expr '(' $ac_mid ')' + 1`
14710fi
14711rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14712done
14713case $ac_lo in
14714?*) ac_cv_sizeof_void_p=$ac_lo;;
5b2c7553 14715'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14716echo "$as_me: error: in \`$ac_pwd':" >&2;}
14717{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
01473a49 14718See \`config.log' for more details." >&5
14719echo "$as_me: error: cannot compute sizeof (void *), 77
14720See \`config.log' for more details." >&2;}
5b2c7553 14721 { (exit 1); exit 1; }; }; } ;;
01473a49 14722esac
14723else
14724 if test "$cross_compiling" = yes; then
5b2c7553 14725 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14726echo "$as_me: error: in \`$ac_pwd':" >&2;}
14727{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
59da30e1 14728See \`config.log' for more details." >&5
14729echo "$as_me: error: cannot run test program while cross compiling
14730See \`config.log' for more details." >&2;}
5b2c7553 14731 { (exit 1); exit 1; }; }; }
01473a49 14732else
14733 cat >conftest.$ac_ext <<_ACEOF
14734/* confdefs.h. */
14735_ACEOF
14736cat confdefs.h >>conftest.$ac_ext
14737cat >>conftest.$ac_ext <<_ACEOF
14738/* end confdefs.h. */
14739$ac_includes_default
14740long longval () { return (long) (sizeof (void *)); }
14741unsigned long ulongval () { return (long) (sizeof (void *)); }
14742#include <stdio.h>
14743#include <stdlib.h>
14744int
14745main ()
14746{
14747
14748 FILE *f = fopen ("conftest.val", "w");
14749 if (! f)
14750 exit (1);
14751 if (((long) (sizeof (void *))) < 0)
14752 {
14753 long i = longval ();
14754 if (i != ((long) (sizeof (void *))))
14755 exit (1);
14756 fprintf (f, "%ld\n", i);
14757 }
14758 else
14759 {
14760 unsigned long i = ulongval ();
14761 if (i != ((long) (sizeof (void *))))
14762 exit (1);
14763 fprintf (f, "%lu\n", i);
14764 }
14765 exit (ferror (f) || fclose (f) != 0);
14766
14767 ;
14768 return 0;
14769}
14770_ACEOF
14771rm -f conftest$ac_exeext
14772if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14773 (eval $ac_link) 2>&5
14774 ac_status=$?
14775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14776 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14778 (eval $ac_try) 2>&5
14779 ac_status=$?
14780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14781 (exit $ac_status); }; }; then
14782 ac_cv_sizeof_void_p=`cat conftest.val`
14783else
14784 echo "$as_me: program exited with status $ac_status" >&5
14785echo "$as_me: failed program was:" >&5
14786sed 's/^/| /' conftest.$ac_ext >&5
14787
14788( exit $ac_status )
5b2c7553 14789{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14790echo "$as_me: error: in \`$ac_pwd':" >&2;}
01473a49 14791{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14792See \`config.log' for more details." >&5
14793echo "$as_me: error: cannot compute sizeof (void *), 77
14794See \`config.log' for more details." >&2;}
5b2c7553 14795 { (exit 1); exit 1; }; }; }
01473a49 14796fi
14797rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14798fi
14799fi
14800rm -f conftest.val
14801else
14802 ac_cv_sizeof_void_p=0
14803fi
14804fi
14805echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
14806echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
14807cat >>confdefs.h <<_ACEOF
14808#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14809_ACEOF
14810
14811 ;;
14812esac
14813
14814# Lacking an uint64_t? Test size of long
14815case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
14816 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
14817echo $ECHO_N "checking for long... $ECHO_C" >&6
14818if test "${ac_cv_type_long+set}" = set; then
14819 echo $ECHO_N "(cached) $ECHO_C" >&6
14820else
14821 cat >conftest.$ac_ext <<_ACEOF
14822/* confdefs.h. */
14823_ACEOF
14824cat confdefs.h >>conftest.$ac_ext
14825cat >>conftest.$ac_ext <<_ACEOF
14826/* end confdefs.h. */
14827$ac_includes_default
14828int
14829main ()
14830{
14831if ((long *) 0)
14832 return 0;
14833if (sizeof (long))
14834 return 0;
14835 ;
14836 return 0;
14837}
14838_ACEOF
14839rm -f conftest.$ac_objext
14840if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14841 (eval $ac_compile) 2>conftest.er1
14842 ac_status=$?
14843 grep -v '^ *+' conftest.er1 >conftest.err
14844 rm -f conftest.er1
14845 cat conftest.err >&5
14846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14847 (exit $ac_status); } &&
59da30e1 14848 { ac_try='test -z "$ac_c_werror_flag"
14849 || test ! -s conftest.err'
01473a49 14850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14851 (eval $ac_try) 2>&5
14852 ac_status=$?
14853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14854 (exit $ac_status); }; } &&
14855 { ac_try='test -s conftest.$ac_objext'
14856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14857 (eval $ac_try) 2>&5
14858 ac_status=$?
14859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14860 (exit $ac_status); }; }; then
14861 ac_cv_type_long=yes
14862else
14863 echo "$as_me: failed program was:" >&5
14864sed 's/^/| /' conftest.$ac_ext >&5
14865
14866ac_cv_type_long=no
14867fi
14868rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14869fi
14870echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
14871echo "${ECHO_T}$ac_cv_type_long" >&6
14872
14873echo "$as_me:$LINENO: checking size of long" >&5
14874echo $ECHO_N "checking size of long... $ECHO_C" >&6
14875if test "${ac_cv_sizeof_long+set}" = set; then
14876 echo $ECHO_N "(cached) $ECHO_C" >&6
14877else
14878 if test "$ac_cv_type_long" = yes; then
14879 # The cast to unsigned long works around a bug in the HP C Compiler
14880 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14881 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14882 # This bug is HP SR number 8606223364.
14883 if test "$cross_compiling" = yes; then
14884 # Depending upon the size, compute the lo and hi bounds.
14885cat >conftest.$ac_ext <<_ACEOF
14886/* confdefs.h. */
14887_ACEOF
14888cat confdefs.h >>conftest.$ac_ext
14889cat >>conftest.$ac_ext <<_ACEOF
14890/* end confdefs.h. */
14891$ac_includes_default
14892int
14893main ()
14894{
14895static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
14896test_array [0] = 0
14897
14898 ;
14899 return 0;
14900}
14901_ACEOF
14902rm -f conftest.$ac_objext
14903if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14904 (eval $ac_compile) 2>conftest.er1
14905 ac_status=$?
14906 grep -v '^ *+' conftest.er1 >conftest.err
14907 rm -f conftest.er1
14908 cat conftest.err >&5
14909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14910 (exit $ac_status); } &&
59da30e1 14911 { ac_try='test -z "$ac_c_werror_flag"
14912 || test ! -s conftest.err'
01473a49 14913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14914 (eval $ac_try) 2>&5
14915 ac_status=$?
14916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14917 (exit $ac_status); }; } &&
14918 { ac_try='test -s conftest.$ac_objext'
14919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14920 (eval $ac_try) 2>&5
14921 ac_status=$?
14922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14923 (exit $ac_status); }; }; then
14924 ac_lo=0 ac_mid=0
14925 while :; do
14926 cat >conftest.$ac_ext <<_ACEOF
14927/* confdefs.h. */
14928_ACEOF
14929cat confdefs.h >>conftest.$ac_ext
14930cat >>conftest.$ac_ext <<_ACEOF
14931/* end confdefs.h. */
14932$ac_includes_default
14933int
14934main ()
14935{
14936static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
14937test_array [0] = 0
14938
14939 ;
14940 return 0;
14941}
14942_ACEOF
14943rm -f conftest.$ac_objext
14944if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14945 (eval $ac_compile) 2>conftest.er1
14946 ac_status=$?
14947 grep -v '^ *+' conftest.er1 >conftest.err
14948 rm -f conftest.er1
14949 cat conftest.err >&5
14950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14951 (exit $ac_status); } &&
59da30e1 14952 { ac_try='test -z "$ac_c_werror_flag"
14953 || test ! -s conftest.err'
01473a49 14954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14955 (eval $ac_try) 2>&5
14956 ac_status=$?
14957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14958 (exit $ac_status); }; } &&
14959 { ac_try='test -s conftest.$ac_objext'
14960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14961 (eval $ac_try) 2>&5
14962 ac_status=$?
14963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14964 (exit $ac_status); }; }; then
14965 ac_hi=$ac_mid; break
14966else
14967 echo "$as_me: failed program was:" >&5
14968sed 's/^/| /' conftest.$ac_ext >&5
14969
14970ac_lo=`expr $ac_mid + 1`
14971 if test $ac_lo -le $ac_mid; then
14972 ac_lo= ac_hi=
14973 break
14974 fi
14975 ac_mid=`expr 2 '*' $ac_mid + 1`
14976fi
14977rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14978 done
14979else
14980 echo "$as_me: failed program was:" >&5
14981sed 's/^/| /' conftest.$ac_ext >&5
14982
14983cat >conftest.$ac_ext <<_ACEOF
14984/* confdefs.h. */
14985_ACEOF
14986cat confdefs.h >>conftest.$ac_ext
14987cat >>conftest.$ac_ext <<_ACEOF
14988/* end confdefs.h. */
14989$ac_includes_default
14990int
14991main ()
14992{
14993static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
14994test_array [0] = 0
14995
14996 ;
14997 return 0;
14998}
14999_ACEOF
15000rm -f conftest.$ac_objext
15001if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15002 (eval $ac_compile) 2>conftest.er1
15003 ac_status=$?
15004 grep -v '^ *+' conftest.er1 >conftest.err
15005 rm -f conftest.er1
15006 cat conftest.err >&5
15007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15008 (exit $ac_status); } &&
59da30e1 15009 { ac_try='test -z "$ac_c_werror_flag"
15010 || test ! -s conftest.err'
01473a49 15011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15012 (eval $ac_try) 2>&5
15013 ac_status=$?
15014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15015 (exit $ac_status); }; } &&
15016 { ac_try='test -s conftest.$ac_objext'
15017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15018 (eval $ac_try) 2>&5
15019 ac_status=$?
15020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15021 (exit $ac_status); }; }; then
15022 ac_hi=-1 ac_mid=-1
15023 while :; do
15024 cat >conftest.$ac_ext <<_ACEOF
15025/* confdefs.h. */
15026_ACEOF
15027cat confdefs.h >>conftest.$ac_ext
15028cat >>conftest.$ac_ext <<_ACEOF
15029/* end confdefs.h. */
15030$ac_includes_default
15031int
15032main ()
15033{
15034static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
15035test_array [0] = 0
15036
15037 ;
15038 return 0;
15039}
15040_ACEOF
15041rm -f conftest.$ac_objext
15042if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15043 (eval $ac_compile) 2>conftest.er1
15044 ac_status=$?
15045 grep -v '^ *+' conftest.er1 >conftest.err
15046 rm -f conftest.er1
15047 cat conftest.err >&5
15048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15049 (exit $ac_status); } &&
59da30e1 15050 { ac_try='test -z "$ac_c_werror_flag"
15051 || test ! -s conftest.err'
01473a49 15052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15053 (eval $ac_try) 2>&5
15054 ac_status=$?
15055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15056 (exit $ac_status); }; } &&
15057 { ac_try='test -s conftest.$ac_objext'
15058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15059 (eval $ac_try) 2>&5
15060 ac_status=$?
15061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15062 (exit $ac_status); }; }; then
15063 ac_lo=$ac_mid; break
15064else
15065 echo "$as_me: failed program was:" >&5
15066sed 's/^/| /' conftest.$ac_ext >&5
15067
15068ac_hi=`expr '(' $ac_mid ')' - 1`
15069 if test $ac_mid -le $ac_hi; then
15070 ac_lo= ac_hi=
15071 break
15072 fi
15073 ac_mid=`expr 2 '*' $ac_mid`
15074fi
15075rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15076 done
15077else
15078 echo "$as_me: failed program was:" >&5
15079sed 's/^/| /' conftest.$ac_ext >&5
15080
15081ac_lo= ac_hi=
15082fi
15083rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15084fi
15085rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15086# Binary search between lo and hi bounds.
15087while test "x$ac_lo" != "x$ac_hi"; do
15088 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15089 cat >conftest.$ac_ext <<_ACEOF
15090/* confdefs.h. */
15091_ACEOF
15092cat confdefs.h >>conftest.$ac_ext
15093cat >>conftest.$ac_ext <<_ACEOF
15094/* end confdefs.h. */
15095$ac_includes_default
15096int
15097main ()
15098{
15099static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15100test_array [0] = 0
15101
15102 ;
15103 return 0;
15104}
15105_ACEOF
15106rm -f conftest.$ac_objext
15107if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15108 (eval $ac_compile) 2>conftest.er1
15109 ac_status=$?
15110 grep -v '^ *+' conftest.er1 >conftest.err
15111 rm -f conftest.er1
15112 cat conftest.err >&5
15113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15114 (exit $ac_status); } &&
59da30e1 15115 { ac_try='test -z "$ac_c_werror_flag"
15116 || test ! -s conftest.err'
01473a49 15117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15118 (eval $ac_try) 2>&5
15119 ac_status=$?
15120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15121 (exit $ac_status); }; } &&
15122 { ac_try='test -s conftest.$ac_objext'
15123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15124 (eval $ac_try) 2>&5
15125 ac_status=$?
15126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15127 (exit $ac_status); }; }; then
15128 ac_hi=$ac_mid
15129else
15130 echo "$as_me: failed program was:" >&5
15131sed 's/^/| /' conftest.$ac_ext >&5
15132
15133ac_lo=`expr '(' $ac_mid ')' + 1`
15134fi
15135rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15136done
15137case $ac_lo in
15138?*) ac_cv_sizeof_long=$ac_lo;;
5b2c7553 15139'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15140echo "$as_me: error: in \`$ac_pwd':" >&2;}
15141{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
01473a49 15142See \`config.log' for more details." >&5
15143echo "$as_me: error: cannot compute sizeof (long), 77
15144See \`config.log' for more details." >&2;}
5b2c7553 15145 { (exit 1); exit 1; }; }; } ;;
01473a49 15146esac
15147else
15148 if test "$cross_compiling" = yes; then
5b2c7553 15149 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15150echo "$as_me: error: in \`$ac_pwd':" >&2;}
15151{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
59da30e1 15152See \`config.log' for more details." >&5
15153echo "$as_me: error: cannot run test program while cross compiling
15154See \`config.log' for more details." >&2;}
5b2c7553 15155 { (exit 1); exit 1; }; }; }
01473a49 15156else
15157 cat >conftest.$ac_ext <<_ACEOF
15158/* confdefs.h. */
15159_ACEOF
15160cat confdefs.h >>conftest.$ac_ext
15161cat >>conftest.$ac_ext <<_ACEOF
15162/* end confdefs.h. */
15163$ac_includes_default
15164long longval () { return (long) (sizeof (long)); }
15165unsigned long ulongval () { return (long) (sizeof (long)); }
15166#include <stdio.h>
15167#include <stdlib.h>
15168int
15169main ()
15170{
15171
15172 FILE *f = fopen ("conftest.val", "w");
15173 if (! f)
15174 exit (1);
15175 if (((long) (sizeof (long))) < 0)
15176 {
15177 long i = longval ();
15178 if (i != ((long) (sizeof (long))))
15179 exit (1);
15180 fprintf (f, "%ld\n", i);
15181 }
15182 else
15183 {
15184 unsigned long i = ulongval ();
15185 if (i != ((long) (sizeof (long))))
15186 exit (1);
15187 fprintf (f, "%lu\n", i);
15188 }
15189 exit (ferror (f) || fclose (f) != 0);
15190
15191 ;
15192 return 0;
15193}
15194_ACEOF
15195rm -f conftest$ac_exeext
15196if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15197 (eval $ac_link) 2>&5
15198 ac_status=$?
15199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15200 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15202 (eval $ac_try) 2>&5
15203 ac_status=$?
15204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15205 (exit $ac_status); }; }; then
15206 ac_cv_sizeof_long=`cat conftest.val`
15207else
15208 echo "$as_me: program exited with status $ac_status" >&5
15209echo "$as_me: failed program was:" >&5
15210sed 's/^/| /' conftest.$ac_ext >&5
15211
15212( exit $ac_status )
5b2c7553 15213{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15214echo "$as_me: error: in \`$ac_pwd':" >&2;}
01473a49 15215{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15216See \`config.log' for more details." >&5
15217echo "$as_me: error: cannot compute sizeof (long), 77
15218See \`config.log' for more details." >&2;}
5b2c7553 15219 { (exit 1); exit 1; }; }; }
01473a49 15220fi
15221rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15222fi
15223fi
15224rm -f conftest.val
15225else
15226 ac_cv_sizeof_long=0
15227fi
15228fi
15229echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
15230echo "${ECHO_T}$ac_cv_sizeof_long" >&6
15231cat >>confdefs.h <<_ACEOF
15232#define SIZEOF_LONG $ac_cv_sizeof_long
15233_ACEOF
15234
15235 ;;
15236esac
15237
15238if test $acx_cv_header_stdint = stddef.h; then
15239 # Lacking a good header? Test size of everything and deduce all types.
15240 echo "$as_me:$LINENO: checking for int" >&5
15241echo $ECHO_N "checking for int... $ECHO_C" >&6
15242if test "${ac_cv_type_int+set}" = set; then
15243 echo $ECHO_N "(cached) $ECHO_C" >&6
15244else
15245 cat >conftest.$ac_ext <<_ACEOF
15246/* confdefs.h. */
15247_ACEOF
15248cat confdefs.h >>conftest.$ac_ext
15249cat >>conftest.$ac_ext <<_ACEOF
15250/* end confdefs.h. */
15251$ac_includes_default
15252int
15253main ()
15254{
15255if ((int *) 0)
15256 return 0;
15257if (sizeof (int))
15258 return 0;
15259 ;
15260 return 0;
15261}
15262_ACEOF
15263rm -f conftest.$ac_objext
15264if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15265 (eval $ac_compile) 2>conftest.er1
15266 ac_status=$?
15267 grep -v '^ *+' conftest.er1 >conftest.err
15268 rm -f conftest.er1
15269 cat conftest.err >&5
15270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15271 (exit $ac_status); } &&
59da30e1 15272 { ac_try='test -z "$ac_c_werror_flag"
15273 || test ! -s conftest.err'
01473a49 15274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15275 (eval $ac_try) 2>&5
15276 ac_status=$?
15277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15278 (exit $ac_status); }; } &&
15279 { ac_try='test -s conftest.$ac_objext'
15280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15281 (eval $ac_try) 2>&5
15282 ac_status=$?
15283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15284 (exit $ac_status); }; }; then
15285 ac_cv_type_int=yes
15286else
15287 echo "$as_me: failed program was:" >&5
15288sed 's/^/| /' conftest.$ac_ext >&5
15289
15290ac_cv_type_int=no
15291fi
15292rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15293fi
15294echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15295echo "${ECHO_T}$ac_cv_type_int" >&6
15296
15297echo "$as_me:$LINENO: checking size of int" >&5
15298echo $ECHO_N "checking size of int... $ECHO_C" >&6
15299if test "${ac_cv_sizeof_int+set}" = set; then
15300 echo $ECHO_N "(cached) $ECHO_C" >&6
15301else
15302 if test "$ac_cv_type_int" = yes; then
15303 # The cast to unsigned long works around a bug in the HP C Compiler
15304 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15305 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15306 # This bug is HP SR number 8606223364.
15307 if test "$cross_compiling" = yes; then
15308 # Depending upon the size, compute the lo and hi bounds.
15309cat >conftest.$ac_ext <<_ACEOF
15310/* confdefs.h. */
15311_ACEOF
15312cat confdefs.h >>conftest.$ac_ext
15313cat >>conftest.$ac_ext <<_ACEOF
15314/* end confdefs.h. */
15315$ac_includes_default
15316int
15317main ()
15318{
15319static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15320test_array [0] = 0
15321
15322 ;
15323 return 0;
15324}
15325_ACEOF
15326rm -f conftest.$ac_objext
15327if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15328 (eval $ac_compile) 2>conftest.er1
15329 ac_status=$?
15330 grep -v '^ *+' conftest.er1 >conftest.err
15331 rm -f conftest.er1
15332 cat conftest.err >&5
15333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15334 (exit $ac_status); } &&
59da30e1 15335 { ac_try='test -z "$ac_c_werror_flag"
15336 || test ! -s conftest.err'
01473a49 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); }; } &&
15342 { ac_try='test -s conftest.$ac_objext'
15343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15344 (eval $ac_try) 2>&5
15345 ac_status=$?
15346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15347 (exit $ac_status); }; }; then
15348 ac_lo=0 ac_mid=0
15349 while :; do
15350 cat >conftest.$ac_ext <<_ACEOF
15351/* confdefs.h. */
15352_ACEOF
15353cat confdefs.h >>conftest.$ac_ext
15354cat >>conftest.$ac_ext <<_ACEOF
15355/* end confdefs.h. */
15356$ac_includes_default
15357int
15358main ()
15359{
15360static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15361test_array [0] = 0
15362
15363 ;
15364 return 0;
15365}
15366_ACEOF
15367rm -f conftest.$ac_objext
15368if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15369 (eval $ac_compile) 2>conftest.er1
15370 ac_status=$?
15371 grep -v '^ *+' conftest.er1 >conftest.err
15372 rm -f conftest.er1
15373 cat conftest.err >&5
15374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15375 (exit $ac_status); } &&
59da30e1 15376 { ac_try='test -z "$ac_c_werror_flag"
15377 || test ! -s conftest.err'
01473a49 15378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15379 (eval $ac_try) 2>&5
15380 ac_status=$?
15381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15382 (exit $ac_status); }; } &&
15383 { ac_try='test -s conftest.$ac_objext'
15384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15385 (eval $ac_try) 2>&5
15386 ac_status=$?
15387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15388 (exit $ac_status); }; }; then
15389 ac_hi=$ac_mid; break
15390else
15391 echo "$as_me: failed program was:" >&5
15392sed 's/^/| /' conftest.$ac_ext >&5
15393
15394ac_lo=`expr $ac_mid + 1`
15395 if test $ac_lo -le $ac_mid; then
15396 ac_lo= ac_hi=
15397 break
15398 fi
15399 ac_mid=`expr 2 '*' $ac_mid + 1`
15400fi
15401rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15402 done
15403else
15404 echo "$as_me: failed program was:" >&5
15405sed 's/^/| /' conftest.$ac_ext >&5
15406
15407cat >conftest.$ac_ext <<_ACEOF
15408/* confdefs.h. */
15409_ACEOF
15410cat confdefs.h >>conftest.$ac_ext
15411cat >>conftest.$ac_ext <<_ACEOF
15412/* end confdefs.h. */
15413$ac_includes_default
15414int
15415main ()
15416{
15417static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15418test_array [0] = 0
15419
15420 ;
15421 return 0;
15422}
15423_ACEOF
15424rm -f conftest.$ac_objext
15425if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15426 (eval $ac_compile) 2>conftest.er1
15427 ac_status=$?
15428 grep -v '^ *+' conftest.er1 >conftest.err
15429 rm -f conftest.er1
15430 cat conftest.err >&5
15431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15432 (exit $ac_status); } &&
59da30e1 15433 { ac_try='test -z "$ac_c_werror_flag"
15434 || test ! -s conftest.err'
01473a49 15435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15436 (eval $ac_try) 2>&5
15437 ac_status=$?
15438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15439 (exit $ac_status); }; } &&
15440 { ac_try='test -s conftest.$ac_objext'
15441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15442 (eval $ac_try) 2>&5
15443 ac_status=$?
15444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15445 (exit $ac_status); }; }; then
15446 ac_hi=-1 ac_mid=-1
15447 while :; do
15448 cat >conftest.$ac_ext <<_ACEOF
15449/* confdefs.h. */
15450_ACEOF
15451cat confdefs.h >>conftest.$ac_ext
15452cat >>conftest.$ac_ext <<_ACEOF
15453/* end confdefs.h. */
15454$ac_includes_default
15455int
15456main ()
15457{
15458static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15459test_array [0] = 0
15460
15461 ;
15462 return 0;
15463}
15464_ACEOF
15465rm -f conftest.$ac_objext
15466if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15467 (eval $ac_compile) 2>conftest.er1
15468 ac_status=$?
15469 grep -v '^ *+' conftest.er1 >conftest.err
15470 rm -f conftest.er1
15471 cat conftest.err >&5
15472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15473 (exit $ac_status); } &&
59da30e1 15474 { ac_try='test -z "$ac_c_werror_flag"
15475 || test ! -s conftest.err'
01473a49 15476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15477 (eval $ac_try) 2>&5
15478 ac_status=$?
15479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15480 (exit $ac_status); }; } &&
15481 { ac_try='test -s conftest.$ac_objext'
15482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15483 (eval $ac_try) 2>&5
15484 ac_status=$?
15485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15486 (exit $ac_status); }; }; then
15487 ac_lo=$ac_mid; break
15488else
15489 echo "$as_me: failed program was:" >&5
15490sed 's/^/| /' conftest.$ac_ext >&5
15491
15492ac_hi=`expr '(' $ac_mid ')' - 1`
15493 if test $ac_mid -le $ac_hi; then
15494 ac_lo= ac_hi=
15495 break
15496 fi
15497 ac_mid=`expr 2 '*' $ac_mid`
15498fi
15499rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15500 done
15501else
15502 echo "$as_me: failed program was:" >&5
15503sed 's/^/| /' conftest.$ac_ext >&5
15504
15505ac_lo= ac_hi=
15506fi
15507rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15508fi
15509rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15510# Binary search between lo and hi bounds.
15511while test "x$ac_lo" != "x$ac_hi"; do
15512 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15513 cat >conftest.$ac_ext <<_ACEOF
15514/* confdefs.h. */
15515_ACEOF
15516cat confdefs.h >>conftest.$ac_ext
15517cat >>conftest.$ac_ext <<_ACEOF
15518/* end confdefs.h. */
15519$ac_includes_default
15520int
15521main ()
15522{
15523static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15524test_array [0] = 0
15525
15526 ;
15527 return 0;
15528}
15529_ACEOF
15530rm -f conftest.$ac_objext
15531if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15532 (eval $ac_compile) 2>conftest.er1
15533 ac_status=$?
15534 grep -v '^ *+' conftest.er1 >conftest.err
15535 rm -f conftest.er1
15536 cat conftest.err >&5
15537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15538 (exit $ac_status); } &&
59da30e1 15539 { ac_try='test -z "$ac_c_werror_flag"
15540 || test ! -s conftest.err'
01473a49 15541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15542 (eval $ac_try) 2>&5
15543 ac_status=$?
15544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15545 (exit $ac_status); }; } &&
15546 { ac_try='test -s conftest.$ac_objext'
15547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15548 (eval $ac_try) 2>&5
15549 ac_status=$?
15550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15551 (exit $ac_status); }; }; then
15552 ac_hi=$ac_mid
15553else
15554 echo "$as_me: failed program was:" >&5
15555sed 's/^/| /' conftest.$ac_ext >&5
15556
15557ac_lo=`expr '(' $ac_mid ')' + 1`
15558fi
15559rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15560done
15561case $ac_lo in
15562?*) ac_cv_sizeof_int=$ac_lo;;
5b2c7553 15563'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15564echo "$as_me: error: in \`$ac_pwd':" >&2;}
15565{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
01473a49 15566See \`config.log' for more details." >&5
15567echo "$as_me: error: cannot compute sizeof (int), 77
15568See \`config.log' for more details." >&2;}
5b2c7553 15569 { (exit 1); exit 1; }; }; } ;;
01473a49 15570esac
15571else
15572 if test "$cross_compiling" = yes; then
5b2c7553 15573 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15574echo "$as_me: error: in \`$ac_pwd':" >&2;}
15575{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
59da30e1 15576See \`config.log' for more details." >&5
15577echo "$as_me: error: cannot run test program while cross compiling
15578See \`config.log' for more details." >&2;}
5b2c7553 15579 { (exit 1); exit 1; }; }; }
01473a49 15580else
15581 cat >conftest.$ac_ext <<_ACEOF
15582/* confdefs.h. */
15583_ACEOF
15584cat confdefs.h >>conftest.$ac_ext
15585cat >>conftest.$ac_ext <<_ACEOF
15586/* end confdefs.h. */
15587$ac_includes_default
15588long longval () { return (long) (sizeof (int)); }
15589unsigned long ulongval () { return (long) (sizeof (int)); }
15590#include <stdio.h>
15591#include <stdlib.h>
15592int
15593main ()
15594{
15595
15596 FILE *f = fopen ("conftest.val", "w");
15597 if (! f)
15598 exit (1);
15599 if (((long) (sizeof (int))) < 0)
15600 {
15601 long i = longval ();
15602 if (i != ((long) (sizeof (int))))
15603 exit (1);
15604 fprintf (f, "%ld\n", i);
15605 }
15606 else
15607 {
15608 unsigned long i = ulongval ();
15609 if (i != ((long) (sizeof (int))))
15610 exit (1);
15611 fprintf (f, "%lu\n", i);
15612 }
15613 exit (ferror (f) || fclose (f) != 0);
15614
15615 ;
15616 return 0;
15617}
15618_ACEOF
15619rm -f conftest$ac_exeext
15620if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15621 (eval $ac_link) 2>&5
15622 ac_status=$?
15623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15624 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15626 (eval $ac_try) 2>&5
15627 ac_status=$?
15628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15629 (exit $ac_status); }; }; then
15630 ac_cv_sizeof_int=`cat conftest.val`
15631else
15632 echo "$as_me: program exited with status $ac_status" >&5
15633echo "$as_me: failed program was:" >&5
15634sed 's/^/| /' conftest.$ac_ext >&5
15635
15636( exit $ac_status )
5b2c7553 15637{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15638echo "$as_me: error: in \`$ac_pwd':" >&2;}
01473a49 15639{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15640See \`config.log' for more details." >&5
15641echo "$as_me: error: cannot compute sizeof (int), 77
15642See \`config.log' for more details." >&2;}
5b2c7553 15643 { (exit 1); exit 1; }; }; }
01473a49 15644fi
15645rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15646fi
15647fi
15648rm -f conftest.val
15649else
15650 ac_cv_sizeof_int=0
15651fi
15652fi
15653echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15654echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15655cat >>confdefs.h <<_ACEOF
15656#define SIZEOF_INT $ac_cv_sizeof_int
15657_ACEOF
15658
15659
15660 echo "$as_me:$LINENO: checking for short" >&5
15661echo $ECHO_N "checking for short... $ECHO_C" >&6
15662if test "${ac_cv_type_short+set}" = set; then
15663 echo $ECHO_N "(cached) $ECHO_C" >&6
15664else
15665 cat >conftest.$ac_ext <<_ACEOF
15666/* confdefs.h. */
15667_ACEOF
15668cat confdefs.h >>conftest.$ac_ext
15669cat >>conftest.$ac_ext <<_ACEOF
15670/* end confdefs.h. */
15671$ac_includes_default
15672int
15673main ()
15674{
15675if ((short *) 0)
15676 return 0;
15677if (sizeof (short))
15678 return 0;
15679 ;
15680 return 0;
15681}
15682_ACEOF
15683rm -f conftest.$ac_objext
15684if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15685 (eval $ac_compile) 2>conftest.er1
15686 ac_status=$?
15687 grep -v '^ *+' conftest.er1 >conftest.err
15688 rm -f conftest.er1
15689 cat conftest.err >&5
15690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15691 (exit $ac_status); } &&
59da30e1 15692 { ac_try='test -z "$ac_c_werror_flag"
15693 || test ! -s conftest.err'
01473a49 15694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15695 (eval $ac_try) 2>&5
15696 ac_status=$?
15697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15698 (exit $ac_status); }; } &&
15699 { ac_try='test -s conftest.$ac_objext'
15700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15701 (eval $ac_try) 2>&5
15702 ac_status=$?
15703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15704 (exit $ac_status); }; }; then
15705 ac_cv_type_short=yes
15706else
15707 echo "$as_me: failed program was:" >&5
15708sed 's/^/| /' conftest.$ac_ext >&5
15709
15710ac_cv_type_short=no
15711fi
15712rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15713fi
15714echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
15715echo "${ECHO_T}$ac_cv_type_short" >&6
15716
15717echo "$as_me:$LINENO: checking size of short" >&5
15718echo $ECHO_N "checking size of short... $ECHO_C" >&6
15719if test "${ac_cv_sizeof_short+set}" = set; then
15720 echo $ECHO_N "(cached) $ECHO_C" >&6
15721else
15722 if test "$ac_cv_type_short" = yes; then
15723 # The cast to unsigned long works around a bug in the HP C Compiler
15724 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15725 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15726 # This bug is HP SR number 8606223364.
15727 if test "$cross_compiling" = yes; then
15728 # Depending upon the size, compute the lo and hi bounds.
15729cat >conftest.$ac_ext <<_ACEOF
15730/* confdefs.h. */
15731_ACEOF
15732cat confdefs.h >>conftest.$ac_ext
15733cat >>conftest.$ac_ext <<_ACEOF
15734/* end confdefs.h. */
15735$ac_includes_default
15736int
15737main ()
15738{
15739static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
15740test_array [0] = 0
15741
15742 ;
15743 return 0;
15744}
15745_ACEOF
15746rm -f conftest.$ac_objext
15747if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15748 (eval $ac_compile) 2>conftest.er1
15749 ac_status=$?
15750 grep -v '^ *+' conftest.er1 >conftest.err
15751 rm -f conftest.er1
15752 cat conftest.err >&5
15753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15754 (exit $ac_status); } &&
59da30e1 15755 { ac_try='test -z "$ac_c_werror_flag"
15756 || test ! -s conftest.err'
01473a49 15757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15758 (eval $ac_try) 2>&5
15759 ac_status=$?
15760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15761 (exit $ac_status); }; } &&
15762 { ac_try='test -s conftest.$ac_objext'
15763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15764 (eval $ac_try) 2>&5
15765 ac_status=$?
15766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15767 (exit $ac_status); }; }; then
15768 ac_lo=0 ac_mid=0
15769 while :; do
15770 cat >conftest.$ac_ext <<_ACEOF
15771/* confdefs.h. */
15772_ACEOF
15773cat confdefs.h >>conftest.$ac_ext
15774cat >>conftest.$ac_ext <<_ACEOF
15775/* end confdefs.h. */
15776$ac_includes_default
15777int
15778main ()
15779{
15780static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15781test_array [0] = 0
15782
15783 ;
15784 return 0;
15785}
15786_ACEOF
15787rm -f conftest.$ac_objext
15788if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15789 (eval $ac_compile) 2>conftest.er1
15790 ac_status=$?
15791 grep -v '^ *+' conftest.er1 >conftest.err
15792 rm -f conftest.er1
15793 cat conftest.err >&5
15794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15795 (exit $ac_status); } &&
59da30e1 15796 { ac_try='test -z "$ac_c_werror_flag"
15797 || test ! -s conftest.err'
01473a49 15798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15799 (eval $ac_try) 2>&5
15800 ac_status=$?
15801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15802 (exit $ac_status); }; } &&
15803 { ac_try='test -s conftest.$ac_objext'
15804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15805 (eval $ac_try) 2>&5
15806 ac_status=$?
15807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15808 (exit $ac_status); }; }; then
15809 ac_hi=$ac_mid; break
15810else
15811 echo "$as_me: failed program was:" >&5
15812sed 's/^/| /' conftest.$ac_ext >&5
15813
15814ac_lo=`expr $ac_mid + 1`
15815 if test $ac_lo -le $ac_mid; then
15816 ac_lo= ac_hi=
15817 break
15818 fi
15819 ac_mid=`expr 2 '*' $ac_mid + 1`
15820fi
15821rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15822 done
15823else
15824 echo "$as_me: failed program was:" >&5
15825sed 's/^/| /' conftest.$ac_ext >&5
15826
15827cat >conftest.$ac_ext <<_ACEOF
15828/* confdefs.h. */
15829_ACEOF
15830cat confdefs.h >>conftest.$ac_ext
15831cat >>conftest.$ac_ext <<_ACEOF
15832/* end confdefs.h. */
15833$ac_includes_default
15834int
15835main ()
15836{
15837static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
15838test_array [0] = 0
15839
15840 ;
15841 return 0;
15842}
15843_ACEOF
15844rm -f conftest.$ac_objext
15845if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15846 (eval $ac_compile) 2>conftest.er1
15847 ac_status=$?
15848 grep -v '^ *+' conftest.er1 >conftest.err
15849 rm -f conftest.er1
15850 cat conftest.err >&5
15851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15852 (exit $ac_status); } &&
59da30e1 15853 { ac_try='test -z "$ac_c_werror_flag"
15854 || test ! -s conftest.err'
01473a49 15855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15856 (eval $ac_try) 2>&5
15857 ac_status=$?
15858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15859 (exit $ac_status); }; } &&
15860 { ac_try='test -s conftest.$ac_objext'
15861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15862 (eval $ac_try) 2>&5
15863 ac_status=$?
15864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15865 (exit $ac_status); }; }; then
15866 ac_hi=-1 ac_mid=-1
15867 while :; do
15868 cat >conftest.$ac_ext <<_ACEOF
15869/* confdefs.h. */
15870_ACEOF
15871cat confdefs.h >>conftest.$ac_ext
15872cat >>conftest.$ac_ext <<_ACEOF
15873/* end confdefs.h. */
15874$ac_includes_default
15875int
15876main ()
15877{
15878static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
15879test_array [0] = 0
15880
15881 ;
15882 return 0;
15883}
15884_ACEOF
15885rm -f conftest.$ac_objext
15886if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15887 (eval $ac_compile) 2>conftest.er1
15888 ac_status=$?
15889 grep -v '^ *+' conftest.er1 >conftest.err
15890 rm -f conftest.er1
15891 cat conftest.err >&5
15892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15893 (exit $ac_status); } &&
59da30e1 15894 { ac_try='test -z "$ac_c_werror_flag"
15895 || test ! -s conftest.err'
01473a49 15896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15897 (eval $ac_try) 2>&5
15898 ac_status=$?
15899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15900 (exit $ac_status); }; } &&
15901 { ac_try='test -s conftest.$ac_objext'
15902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15903 (eval $ac_try) 2>&5
15904 ac_status=$?
15905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15906 (exit $ac_status); }; }; then
15907 ac_lo=$ac_mid; break
15908else
15909 echo "$as_me: failed program was:" >&5
15910sed 's/^/| /' conftest.$ac_ext >&5
15911
15912ac_hi=`expr '(' $ac_mid ')' - 1`
15913 if test $ac_mid -le $ac_hi; then
15914 ac_lo= ac_hi=
15915 break
15916 fi
15917 ac_mid=`expr 2 '*' $ac_mid`
15918fi
15919rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15920 done
15921else
15922 echo "$as_me: failed program was:" >&5
15923sed 's/^/| /' conftest.$ac_ext >&5
15924
15925ac_lo= ac_hi=
15926fi
15927rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15928fi
15929rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15930# Binary search between lo and hi bounds.
15931while test "x$ac_lo" != "x$ac_hi"; do
15932 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15933 cat >conftest.$ac_ext <<_ACEOF
15934/* confdefs.h. */
15935_ACEOF
15936cat confdefs.h >>conftest.$ac_ext
15937cat >>conftest.$ac_ext <<_ACEOF
15938/* end confdefs.h. */
15939$ac_includes_default
15940int
15941main ()
15942{
15943static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15944test_array [0] = 0
15945
15946 ;
15947 return 0;
15948}
15949_ACEOF
15950rm -f conftest.$ac_objext
15951if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15952 (eval $ac_compile) 2>conftest.er1
15953 ac_status=$?
15954 grep -v '^ *+' conftest.er1 >conftest.err
15955 rm -f conftest.er1
15956 cat conftest.err >&5
15957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15958 (exit $ac_status); } &&
59da30e1 15959 { ac_try='test -z "$ac_c_werror_flag"
15960 || test ! -s conftest.err'
01473a49 15961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15962 (eval $ac_try) 2>&5
15963 ac_status=$?
15964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15965 (exit $ac_status); }; } &&
15966 { ac_try='test -s conftest.$ac_objext'
15967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15968 (eval $ac_try) 2>&5
15969 ac_status=$?
15970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15971 (exit $ac_status); }; }; then
15972 ac_hi=$ac_mid
15973else
15974 echo "$as_me: failed program was:" >&5
15975sed 's/^/| /' conftest.$ac_ext >&5
15976
15977ac_lo=`expr '(' $ac_mid ')' + 1`
15978fi
15979rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15980done
15981case $ac_lo in
15982?*) ac_cv_sizeof_short=$ac_lo;;
5b2c7553 15983'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15984echo "$as_me: error: in \`$ac_pwd':" >&2;}
15985{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
01473a49 15986See \`config.log' for more details." >&5
15987echo "$as_me: error: cannot compute sizeof (short), 77
15988See \`config.log' for more details." >&2;}
5b2c7553 15989 { (exit 1); exit 1; }; }; } ;;
01473a49 15990esac
15991else
15992 if test "$cross_compiling" = yes; then
5b2c7553 15993 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15994echo "$as_me: error: in \`$ac_pwd':" >&2;}
15995{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
59da30e1 15996See \`config.log' for more details." >&5
15997echo "$as_me: error: cannot run test program while cross compiling
15998See \`config.log' for more details." >&2;}
5b2c7553 15999 { (exit 1); exit 1; }; }; }
01473a49 16000else
16001 cat >conftest.$ac_ext <<_ACEOF
16002/* confdefs.h. */
16003_ACEOF
16004cat confdefs.h >>conftest.$ac_ext
16005cat >>conftest.$ac_ext <<_ACEOF
16006/* end confdefs.h. */
16007$ac_includes_default
16008long longval () { return (long) (sizeof (short)); }
16009unsigned long ulongval () { return (long) (sizeof (short)); }
16010#include <stdio.h>
16011#include <stdlib.h>
16012int
16013main ()
16014{
16015
16016 FILE *f = fopen ("conftest.val", "w");
16017 if (! f)
16018 exit (1);
16019 if (((long) (sizeof (short))) < 0)
16020 {
16021 long i = longval ();
16022 if (i != ((long) (sizeof (short))))
16023 exit (1);
16024 fprintf (f, "%ld\n", i);
16025 }
16026 else
16027 {
16028 unsigned long i = ulongval ();
16029 if (i != ((long) (sizeof (short))))
16030 exit (1);
16031 fprintf (f, "%lu\n", i);
16032 }
16033 exit (ferror (f) || fclose (f) != 0);
16034
16035 ;
16036 return 0;
16037}
16038_ACEOF
16039rm -f conftest$ac_exeext
16040if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16041 (eval $ac_link) 2>&5
16042 ac_status=$?
16043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16044 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16046 (eval $ac_try) 2>&5
16047 ac_status=$?
16048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16049 (exit $ac_status); }; }; then
16050 ac_cv_sizeof_short=`cat conftest.val`
16051else
16052 echo "$as_me: program exited with status $ac_status" >&5
16053echo "$as_me: failed program was:" >&5
16054sed 's/^/| /' conftest.$ac_ext >&5
16055
16056( exit $ac_status )
5b2c7553 16057{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16058echo "$as_me: error: in \`$ac_pwd':" >&2;}
01473a49 16059{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16060See \`config.log' for more details." >&5
16061echo "$as_me: error: cannot compute sizeof (short), 77
16062See \`config.log' for more details." >&2;}
5b2c7553 16063 { (exit 1); exit 1; }; }; }
01473a49 16064fi
16065rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16066fi
16067fi
16068rm -f conftest.val
16069else
16070 ac_cv_sizeof_short=0
16071fi
16072fi
16073echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
16074echo "${ECHO_T}$ac_cv_sizeof_short" >&6
16075cat >>confdefs.h <<_ACEOF
16076#define SIZEOF_SHORT $ac_cv_sizeof_short
16077_ACEOF
16078
16079
16080 echo "$as_me:$LINENO: checking for char" >&5
16081echo $ECHO_N "checking for char... $ECHO_C" >&6
16082if test "${ac_cv_type_char+set}" = set; then
16083 echo $ECHO_N "(cached) $ECHO_C" >&6
16084else
16085 cat >conftest.$ac_ext <<_ACEOF
16086/* confdefs.h. */
16087_ACEOF
16088cat confdefs.h >>conftest.$ac_ext
16089cat >>conftest.$ac_ext <<_ACEOF
16090/* end confdefs.h. */
16091$ac_includes_default
16092int
16093main ()
16094{
16095if ((char *) 0)
16096 return 0;
16097if (sizeof (char))
16098 return 0;
16099 ;
16100 return 0;
16101}
16102_ACEOF
16103rm -f conftest.$ac_objext
16104if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16105 (eval $ac_compile) 2>conftest.er1
16106 ac_status=$?
16107 grep -v '^ *+' conftest.er1 >conftest.err
16108 rm -f conftest.er1
16109 cat conftest.err >&5
16110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16111 (exit $ac_status); } &&
59da30e1 16112 { ac_try='test -z "$ac_c_werror_flag"
16113 || test ! -s conftest.err'
01473a49 16114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16115 (eval $ac_try) 2>&5
16116 ac_status=$?
16117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16118 (exit $ac_status); }; } &&
16119 { ac_try='test -s conftest.$ac_objext'
16120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16121 (eval $ac_try) 2>&5
16122 ac_status=$?
16123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16124 (exit $ac_status); }; }; then
16125 ac_cv_type_char=yes
16126else
16127 echo "$as_me: failed program was:" >&5
16128sed 's/^/| /' conftest.$ac_ext >&5
16129
16130ac_cv_type_char=no
16131fi
16132rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16133fi
16134echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
16135echo "${ECHO_T}$ac_cv_type_char" >&6
16136
16137echo "$as_me:$LINENO: checking size of char" >&5
16138echo $ECHO_N "checking size of char... $ECHO_C" >&6
16139if test "${ac_cv_sizeof_char+set}" = set; then
16140 echo $ECHO_N "(cached) $ECHO_C" >&6
16141else
16142 if test "$ac_cv_type_char" = yes; then
16143 # The cast to unsigned long works around a bug in the HP C Compiler
16144 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16145 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16146 # This bug is HP SR number 8606223364.
16147 if test "$cross_compiling" = yes; then
16148 # Depending upon the size, compute the lo and hi bounds.
16149cat >conftest.$ac_ext <<_ACEOF
16150/* confdefs.h. */
16151_ACEOF
16152cat confdefs.h >>conftest.$ac_ext
16153cat >>conftest.$ac_ext <<_ACEOF
16154/* end confdefs.h. */
16155$ac_includes_default
16156int
16157main ()
16158{
16159static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
16160test_array [0] = 0
16161
16162 ;
16163 return 0;
16164}
16165_ACEOF
16166rm -f conftest.$ac_objext
16167if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16168 (eval $ac_compile) 2>conftest.er1
16169 ac_status=$?
16170 grep -v '^ *+' conftest.er1 >conftest.err
16171 rm -f conftest.er1
16172 cat conftest.err >&5
16173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16174 (exit $ac_status); } &&
59da30e1 16175 { ac_try='test -z "$ac_c_werror_flag"
16176 || test ! -s conftest.err'
01473a49 16177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16178 (eval $ac_try) 2>&5
16179 ac_status=$?
16180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16181 (exit $ac_status); }; } &&
16182 { ac_try='test -s conftest.$ac_objext'
16183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16184 (eval $ac_try) 2>&5
16185 ac_status=$?
16186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16187 (exit $ac_status); }; }; then
16188 ac_lo=0 ac_mid=0
16189 while :; do
16190 cat >conftest.$ac_ext <<_ACEOF
16191/* confdefs.h. */
16192_ACEOF
16193cat confdefs.h >>conftest.$ac_ext
16194cat >>conftest.$ac_ext <<_ACEOF
16195/* end confdefs.h. */
16196$ac_includes_default
16197int
16198main ()
16199{
16200static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16201test_array [0] = 0
16202
16203 ;
16204 return 0;
16205}
16206_ACEOF
16207rm -f conftest.$ac_objext
16208if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16209 (eval $ac_compile) 2>conftest.er1
16210 ac_status=$?
16211 grep -v '^ *+' conftest.er1 >conftest.err
16212 rm -f conftest.er1
16213 cat conftest.err >&5
16214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16215 (exit $ac_status); } &&
59da30e1 16216 { ac_try='test -z "$ac_c_werror_flag"
16217 || test ! -s conftest.err'
01473a49 16218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16219 (eval $ac_try) 2>&5
16220 ac_status=$?
16221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16222 (exit $ac_status); }; } &&
16223 { ac_try='test -s conftest.$ac_objext'
16224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16225 (eval $ac_try) 2>&5
16226 ac_status=$?
16227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16228 (exit $ac_status); }; }; then
16229 ac_hi=$ac_mid; break
16230else
16231 echo "$as_me: failed program was:" >&5
16232sed 's/^/| /' conftest.$ac_ext >&5
16233
16234ac_lo=`expr $ac_mid + 1`
16235 if test $ac_lo -le $ac_mid; then
16236 ac_lo= ac_hi=
16237 break
16238 fi
16239 ac_mid=`expr 2 '*' $ac_mid + 1`
16240fi
16241rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16242 done
16243else
16244 echo "$as_me: failed program was:" >&5
16245sed 's/^/| /' conftest.$ac_ext >&5
16246
16247cat >conftest.$ac_ext <<_ACEOF
16248/* confdefs.h. */
16249_ACEOF
16250cat confdefs.h >>conftest.$ac_ext
16251cat >>conftest.$ac_ext <<_ACEOF
16252/* end confdefs.h. */
16253$ac_includes_default
16254int
16255main ()
16256{
16257static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
16258test_array [0] = 0
16259
16260 ;
16261 return 0;
16262}
16263_ACEOF
16264rm -f conftest.$ac_objext
16265if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16266 (eval $ac_compile) 2>conftest.er1
16267 ac_status=$?
16268 grep -v '^ *+' conftest.er1 >conftest.err
16269 rm -f conftest.er1
16270 cat conftest.err >&5
16271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16272 (exit $ac_status); } &&
59da30e1 16273 { ac_try='test -z "$ac_c_werror_flag"
16274 || test ! -s conftest.err'
01473a49 16275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16276 (eval $ac_try) 2>&5
16277 ac_status=$?
16278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16279 (exit $ac_status); }; } &&
16280 { ac_try='test -s conftest.$ac_objext'
16281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16282 (eval $ac_try) 2>&5
16283 ac_status=$?
16284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16285 (exit $ac_status); }; }; then
16286 ac_hi=-1 ac_mid=-1
16287 while :; do
16288 cat >conftest.$ac_ext <<_ACEOF
16289/* confdefs.h. */
16290_ACEOF
16291cat confdefs.h >>conftest.$ac_ext
16292cat >>conftest.$ac_ext <<_ACEOF
16293/* end confdefs.h. */
16294$ac_includes_default
16295int
16296main ()
16297{
16298static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
16299test_array [0] = 0
16300
16301 ;
16302 return 0;
16303}
16304_ACEOF
16305rm -f conftest.$ac_objext
16306if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16307 (eval $ac_compile) 2>conftest.er1
16308 ac_status=$?
16309 grep -v '^ *+' conftest.er1 >conftest.err
16310 rm -f conftest.er1
16311 cat conftest.err >&5
16312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16313 (exit $ac_status); } &&
59da30e1 16314 { ac_try='test -z "$ac_c_werror_flag"
16315 || test ! -s conftest.err'
01473a49 16316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16317 (eval $ac_try) 2>&5
16318 ac_status=$?
16319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16320 (exit $ac_status); }; } &&
16321 { ac_try='test -s conftest.$ac_objext'
16322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16323 (eval $ac_try) 2>&5
16324 ac_status=$?
16325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16326 (exit $ac_status); }; }; then
16327 ac_lo=$ac_mid; break
16328else
16329 echo "$as_me: failed program was:" >&5
16330sed 's/^/| /' conftest.$ac_ext >&5
16331
16332ac_hi=`expr '(' $ac_mid ')' - 1`
16333 if test $ac_mid -le $ac_hi; then
16334 ac_lo= ac_hi=
16335 break
16336 fi
16337 ac_mid=`expr 2 '*' $ac_mid`
16338fi
16339rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16340 done
16341else
16342 echo "$as_me: failed program was:" >&5
16343sed 's/^/| /' conftest.$ac_ext >&5
16344
16345ac_lo= ac_hi=
16346fi
16347rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16348fi
16349rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16350# Binary search between lo and hi bounds.
16351while test "x$ac_lo" != "x$ac_hi"; do
16352 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16353 cat >conftest.$ac_ext <<_ACEOF
16354/* confdefs.h. */
16355_ACEOF
16356cat confdefs.h >>conftest.$ac_ext
16357cat >>conftest.$ac_ext <<_ACEOF
16358/* end confdefs.h. */
16359$ac_includes_default
16360int
16361main ()
16362{
16363static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16364test_array [0] = 0
16365
16366 ;
16367 return 0;
16368}
16369_ACEOF
16370rm -f conftest.$ac_objext
16371if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16372 (eval $ac_compile) 2>conftest.er1
16373 ac_status=$?
16374 grep -v '^ *+' conftest.er1 >conftest.err
16375 rm -f conftest.er1
16376 cat conftest.err >&5
16377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16378 (exit $ac_status); } &&
59da30e1 16379 { ac_try='test -z "$ac_c_werror_flag"
16380 || test ! -s conftest.err'
01473a49 16381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16382 (eval $ac_try) 2>&5
16383 ac_status=$?
16384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16385 (exit $ac_status); }; } &&
16386 { ac_try='test -s conftest.$ac_objext'
16387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16388 (eval $ac_try) 2>&5
16389 ac_status=$?
16390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16391 (exit $ac_status); }; }; then
16392 ac_hi=$ac_mid
16393else
16394 echo "$as_me: failed program was:" >&5
16395sed 's/^/| /' conftest.$ac_ext >&5
16396
16397ac_lo=`expr '(' $ac_mid ')' + 1`
16398fi
16399rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16400done
16401case $ac_lo in
16402?*) ac_cv_sizeof_char=$ac_lo;;
5b2c7553 16403'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16404echo "$as_me: error: in \`$ac_pwd':" >&2;}
16405{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
01473a49 16406See \`config.log' for more details." >&5
16407echo "$as_me: error: cannot compute sizeof (char), 77
16408See \`config.log' for more details." >&2;}
5b2c7553 16409 { (exit 1); exit 1; }; }; } ;;
01473a49 16410esac
16411else
16412 if test "$cross_compiling" = yes; then
5b2c7553 16413 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16414echo "$as_me: error: in \`$ac_pwd':" >&2;}
16415{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
59da30e1 16416See \`config.log' for more details." >&5
16417echo "$as_me: error: cannot run test program while cross compiling
16418See \`config.log' for more details." >&2;}
5b2c7553 16419 { (exit 1); exit 1; }; }; }
01473a49 16420else
16421 cat >conftest.$ac_ext <<_ACEOF
16422/* confdefs.h. */
16423_ACEOF
16424cat confdefs.h >>conftest.$ac_ext
16425cat >>conftest.$ac_ext <<_ACEOF
16426/* end confdefs.h. */
16427$ac_includes_default
16428long longval () { return (long) (sizeof (char)); }
16429unsigned long ulongval () { return (long) (sizeof (char)); }
16430#include <stdio.h>
16431#include <stdlib.h>
16432int
16433main ()
16434{
16435
16436 FILE *f = fopen ("conftest.val", "w");
16437 if (! f)
16438 exit (1);
16439 if (((long) (sizeof (char))) < 0)
16440 {
16441 long i = longval ();
16442 if (i != ((long) (sizeof (char))))
16443 exit (1);
16444 fprintf (f, "%ld\n", i);
16445 }
16446 else
16447 {
16448 unsigned long i = ulongval ();
16449 if (i != ((long) (sizeof (char))))
16450 exit (1);
16451 fprintf (f, "%lu\n", i);
16452 }
16453 exit (ferror (f) || fclose (f) != 0);
16454
16455 ;
16456 return 0;
16457}
16458_ACEOF
16459rm -f conftest$ac_exeext
16460if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16461 (eval $ac_link) 2>&5
16462 ac_status=$?
16463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16464 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16466 (eval $ac_try) 2>&5
16467 ac_status=$?
16468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16469 (exit $ac_status); }; }; then
16470 ac_cv_sizeof_char=`cat conftest.val`
16471else
16472 echo "$as_me: program exited with status $ac_status" >&5
16473echo "$as_me: failed program was:" >&5
16474sed 's/^/| /' conftest.$ac_ext >&5
16475
16476( exit $ac_status )
5b2c7553 16477{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16478echo "$as_me: error: in \`$ac_pwd':" >&2;}
01473a49 16479{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16480See \`config.log' for more details." >&5
16481echo "$as_me: error: cannot compute sizeof (char), 77
16482See \`config.log' for more details." >&2;}
5b2c7553 16483 { (exit 1); exit 1; }; }; }
01473a49 16484fi
16485rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16486fi
16487fi
16488rm -f conftest.val
16489else
16490 ac_cv_sizeof_char=0
16491fi
16492fi
16493echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
16494echo "${ECHO_T}$ac_cv_sizeof_char" >&6
16495cat >>confdefs.h <<_ACEOF
16496#define SIZEOF_CHAR $ac_cv_sizeof_char
16497_ACEOF
16498
16499
16500
16501 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
16502echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
16503 case "$ac_cv_sizeof_char" in
16504 1) acx_cv_type_int8_t=char ;;
16505 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
16506echo "$as_me: error: no 8-bit type" >&2;}
16507 { (exit please report a bug); exit please report a bug; }; }
16508 esac
16509 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
16510echo "${ECHO_T}$acx_cv_type_int8_t" >&6
16511
16512 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
16513echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
16514 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
16515 2:*) acx_cv_type_int16_t=int ;;
16516 *:2) acx_cv_type_int16_t=short ;;
16517 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
16518echo "$as_me: error: no 16-bit type" >&2;}
16519 { (exit please report a bug); exit please report a bug; }; }
16520 esac
16521 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
16522echo "${ECHO_T}$acx_cv_type_int16_t" >&6
16523
16524 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
16525echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
16526 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
16527 4:*) acx_cv_type_int32_t=int ;;
16528 *:4) acx_cv_type_int32_t=long ;;
16529 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
16530echo "$as_me: error: no 32-bit type" >&2;}
16531 { (exit please report a bug); exit please report a bug; }; }
16532 esac
16533 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
16534echo "${ECHO_T}$acx_cv_type_int32_t" >&6
16535fi
16536
16537# These tests are here to make the output prettier
16538
16539if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
16540 case "$ac_cv_sizeof_long" in
16541 8) acx_cv_type_int64_t=long ;;
16542 esac
16543 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
16544echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
16545 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
16546echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
16547fi
16548
16549# Now we can use the above types
16550
16551if test "$ac_cv_type_uintptr_t" != yes; then
16552 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
16553echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
16554 case $ac_cv_sizeof_void_p in
16555 2) acx_cv_type_intptr_t=int16_t ;;
16556 4) acx_cv_type_intptr_t=int32_t ;;
16557 8) acx_cv_type_intptr_t=int64_t ;;
16558 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
16559echo "$as_me: error: no equivalent for intptr_t" >&2;}
16560 { (exit please report a bug); exit please report a bug; }; }
16561 esac
16562 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
16563echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
16564fi
16565
16566# ----------------- done all checks, emit header -------------
16567 ac_config_commands="$ac_config_commands gstdint.h"
16568
16569
16570
16571
1e8e9920 16572# Check to see if -pthread or -lpthread is needed. Prefer the former.
b00e3183 16573# In case the pthread.h system header is not found, this test will fail.
1e8e9920 16574XPCFLAGS=""
cd7cbccd 16575CFLAGS="$CFLAGS -pthread"
1e8e9920 16576cat >conftest.$ac_ext <<_ACEOF
16577/* confdefs.h. */
16578_ACEOF
16579cat confdefs.h >>conftest.$ac_ext
16580cat >>conftest.$ac_ext <<_ACEOF
16581/* end confdefs.h. */
16582#include <pthread.h>
16583 void *g(void *d) { return NULL; }
16584int
16585main ()
16586{
16587pthread_t t; pthread_create(&t,NULL,g,NULL);
16588 ;
16589 return 0;
16590}
16591_ACEOF
16592rm -f conftest.$ac_objext conftest$ac_exeext
16593if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16594 (eval $ac_link) 2>conftest.er1
16595 ac_status=$?
16596 grep -v '^ *+' conftest.er1 >conftest.err
16597 rm -f conftest.er1
16598 cat conftest.err >&5
16599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16600 (exit $ac_status); } &&
59da30e1 16601 { ac_try='test -z "$ac_c_werror_flag"
16602 || test ! -s conftest.err'
1e8e9920 16603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16604 (eval $ac_try) 2>&5
16605 ac_status=$?
16606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16607 (exit $ac_status); }; } &&
16608 { ac_try='test -s conftest$ac_exeext'
16609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16610 (eval $ac_try) 2>&5
16611 ac_status=$?
16612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16613 (exit $ac_status); }; }; then
cd7cbccd 16614 XPCFLAGS=" -Wc,-pthread"
1e8e9920 16615else
16616 echo "$as_me: failed program was:" >&5
16617sed 's/^/| /' conftest.$ac_ext >&5
16618
16619CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
16620 cat >conftest.$ac_ext <<_ACEOF
16621/* confdefs.h. */
16622_ACEOF
16623cat confdefs.h >>conftest.$ac_ext
16624cat >>conftest.$ac_ext <<_ACEOF
16625/* end confdefs.h. */
16626#include <pthread.h>
16627 void *g(void *d) { return NULL; }
16628int
16629main ()
16630{
16631pthread_t t; pthread_create(&t,NULL,g,NULL);
16632 ;
16633 return 0;
16634}
16635_ACEOF
16636rm -f conftest.$ac_objext conftest$ac_exeext
16637if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16638 (eval $ac_link) 2>conftest.er1
16639 ac_status=$?
16640 grep -v '^ *+' conftest.er1 >conftest.err
16641 rm -f conftest.er1
16642 cat conftest.err >&5
16643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16644 (exit $ac_status); } &&
59da30e1 16645 { ac_try='test -z "$ac_c_werror_flag"
16646 || test ! -s conftest.err'
1e8e9920 16647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16648 (eval $ac_try) 2>&5
16649 ac_status=$?
16650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16651 (exit $ac_status); }; } &&
16652 { ac_try='test -s conftest$ac_exeext'
16653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16654 (eval $ac_try) 2>&5
16655 ac_status=$?
16656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16657 (exit $ac_status); }; }; then
16658 :
16659else
16660 echo "$as_me: failed program was:" >&5
16661sed 's/^/| /' conftest.$ac_ext >&5
16662
16663{ { echo "$as_me:$LINENO: error: Pthreads are required to build libgomp" >&5
16664echo "$as_me: error: Pthreads are required to build libgomp" >&2;}
16665 { (exit 1); exit 1; }; }
16666fi
16667rm -f conftest.err conftest.$ac_objext \
16668 conftest$ac_exeext conftest.$ac_ext
16669fi
16670rm -f conftest.err conftest.$ac_objext \
16671 conftest$ac_exeext conftest.$ac_ext
16672
16673# Check for functions needed.
16674
16675
17f4f6cb 16676
16677for ac_func in getloadavg clock_gettime strtoull
1e8e9920 16678do
16679as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16680echo "$as_me:$LINENO: checking for $ac_func" >&5
16681echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16682if eval "test \"\${$as_ac_var+set}\" = set"; then
16683 echo $ECHO_N "(cached) $ECHO_C" >&6
16684else
16685 cat >conftest.$ac_ext <<_ACEOF
16686/* confdefs.h. */
16687_ACEOF
16688cat confdefs.h >>conftest.$ac_ext
16689cat >>conftest.$ac_ext <<_ACEOF
16690/* end confdefs.h. */
16691/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16692 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16693#define $ac_func innocuous_$ac_func
16694
16695/* System header to define __stub macros and hopefully few prototypes,
16696 which can conflict with char $ac_func (); below.
16697 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16698 <limits.h> exists even on freestanding compilers. */
16699
16700#ifdef __STDC__
16701# include <limits.h>
16702#else
16703# include <assert.h>
16704#endif
16705
16706#undef $ac_func
16707
16708/* Override any gcc2 internal prototype to avoid an error. */
16709#ifdef __cplusplus
16710extern "C"
16711{
16712#endif
16713/* We use char because int might match the return type of a gcc2
16714 builtin and then its argument prototype would still apply. */
16715char $ac_func ();
16716/* The GNU C library defines this for functions which it implements
16717 to always fail with ENOSYS. Some functions are actually named
16718 something starting with __ and the normal name is an alias. */
16719#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16720choke me
16721#else
16722char (*f) () = $ac_func;
16723#endif
16724#ifdef __cplusplus
16725}
16726#endif
16727
16728int
16729main ()
16730{
16731return f != $ac_func;
16732 ;
16733 return 0;
16734}
16735_ACEOF
16736rm -f conftest.$ac_objext conftest$ac_exeext
16737if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16738 (eval $ac_link) 2>conftest.er1
16739 ac_status=$?
16740 grep -v '^ *+' conftest.er1 >conftest.err
16741 rm -f conftest.er1
16742 cat conftest.err >&5
16743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16744 (exit $ac_status); } &&
59da30e1 16745 { ac_try='test -z "$ac_c_werror_flag"
16746 || test ! -s conftest.err'
1e8e9920 16747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16748 (eval $ac_try) 2>&5
16749 ac_status=$?
16750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16751 (exit $ac_status); }; } &&
16752 { ac_try='test -s conftest$ac_exeext'
16753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16754 (eval $ac_try) 2>&5
16755 ac_status=$?
16756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16757 (exit $ac_status); }; }; then
16758 eval "$as_ac_var=yes"
16759else
16760 echo "$as_me: failed program was:" >&5
16761sed 's/^/| /' conftest.$ac_ext >&5
16762
16763eval "$as_ac_var=no"
16764fi
16765rm -f conftest.err conftest.$ac_objext \
16766 conftest$ac_exeext conftest.$ac_ext
16767fi
16768echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16769echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16770if test `eval echo '${'$as_ac_var'}'` = yes; then
16771 cat >>confdefs.h <<_ACEOF
16772#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16773_ACEOF
16774
16775fi
16776done
16777
16778
59da30e1 16779# Check for broken semaphore implementation on darwin.
16780# sem_init returns: sem_init error: Function not implemented.
16781case "$host" in
16782 *-darwin*)
16783
16784cat >>confdefs.h <<\_ACEOF
16785#define HAVE_BROKEN_POSIX_SEMAPHORES 1
16786_ACEOF
16787
2eca990d 16788 ;;
cfbdd7de 16789esac
16790
16791 # Check whether --enable-linux-futex or --disable-linux-futex was given.
16792if test "${enable_linux_futex+set}" = set; then
16793 enableval="$enable_linux_futex"
16794
16795 case "$enableval" in
16796 yes|no|default) ;;
16797 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable linux-futex" >&5
16798echo "$as_me: error: Unknown argument to enable/disable linux-futex" >&2;}
16799 { (exit 1); exit 1; }; } ;;
16800 esac
16801
16802else
16803 enable_linux_futex=default
16804fi;
16805
16806case "$target" in
2eca990d 16807 *-linux*)
16808 case "$enable_linux_futex" in
16809 default)
16810 # If headers don't have gettid/futex syscalls definition, then
16811 # default to no, otherwise there will be compile time failures.
16812 # Otherwise, default to yes. If we don't detect we are
16813 # compiled/linked against NPTL and not cross-compiling, check
16814 # if programs are run by default against NPTL and if not, issue
16815 # a warning.
16816 enable_linux_futex=no
16817 cat >conftest.$ac_ext <<_ACEOF
16818/* confdefs.h. */
16819_ACEOF
16820cat confdefs.h >>conftest.$ac_ext
16821cat >>conftest.$ac_ext <<_ACEOF
16822/* end confdefs.h. */
16823#include <sys/syscall.h>
16824 int lk;
16825int
16826main ()
16827{
16828syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
16829 ;
16830 return 0;
16831}
16832_ACEOF
16833rm -f conftest.$ac_objext conftest$ac_exeext
16834if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16835 (eval $ac_link) 2>conftest.er1
16836 ac_status=$?
16837 grep -v '^ *+' conftest.er1 >conftest.err
16838 rm -f conftest.er1
16839 cat conftest.err >&5
16840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16841 (exit $ac_status); } &&
16842 { ac_try='test -z "$ac_c_werror_flag"
16843 || test ! -s conftest.err'
16844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16845 (eval $ac_try) 2>&5
16846 ac_status=$?
16847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16848 (exit $ac_status); }; } &&
16849 { ac_try='test -s conftest$ac_exeext'
16850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16851 (eval $ac_try) 2>&5
16852 ac_status=$?
16853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16854 (exit $ac_status); }; }; then
cfbdd7de 16855 save_LIBS="$LIBS"
16856 LIBS="-lpthread $LIBS"
16857 cat >conftest.$ac_ext <<_ACEOF
2eca990d 16858/* confdefs.h. */
16859_ACEOF
16860cat confdefs.h >>conftest.$ac_ext
16861cat >>conftest.$ac_ext <<_ACEOF
16862/* end confdefs.h. */
16863#ifndef _GNU_SOURCE
16864 #define _GNU_SOURCE 1
16865 #endif
16866 #include <pthread.h>
16867 pthread_t th; void *status;
16868int
16869main ()
16870{
16871pthread_tryjoin_np (th, &status);
16872 ;
16873 return 0;
16874}
16875_ACEOF
16876rm -f conftest.$ac_objext conftest$ac_exeext
16877if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16878 (eval $ac_link) 2>conftest.er1
16879 ac_status=$?
16880 grep -v '^ *+' conftest.er1 >conftest.err
16881 rm -f conftest.er1
16882 cat conftest.err >&5
16883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16884 (exit $ac_status); } &&
16885 { ac_try='test -z "$ac_c_werror_flag"
16886 || test ! -s conftest.err'
16887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16888 (eval $ac_try) 2>&5
16889 ac_status=$?
16890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16891 (exit $ac_status); }; } &&
16892 { ac_try='test -s conftest$ac_exeext'
16893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16894 (eval $ac_try) 2>&5
16895 ac_status=$?
16896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16897 (exit $ac_status); }; }; then
16898 enable_linux_futex=yes
16899else
16900 echo "$as_me: failed program was:" >&5
16901sed 's/^/| /' conftest.$ac_ext >&5
16902
16903if test x$cross_compiling = xno; then
16904 if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
cfbdd7de 16905 | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else
2eca990d 16906 { echo "$as_me:$LINENO: WARNING: The kernel might not support futex or gettid syscalls.
16907If so, please configure with --disable-linux-futex" >&5
16908echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
16909If so, please configure with --disable-linux-futex" >&2;}
16910 fi
16911 fi
16912 enable_linux_futex=yes
16913fi
16914rm -f conftest.err conftest.$ac_objext \
16915 conftest$ac_exeext conftest.$ac_ext
cfbdd7de 16916 LIBS="$save_LIBS"
2eca990d 16917else
16918 echo "$as_me: failed program was:" >&5
16919sed 's/^/| /' conftest.$ac_ext >&5
16920
16921fi
16922rm -f conftest.err conftest.$ac_objext \
16923 conftest$ac_exeext conftest.$ac_ext
16924 ;;
ab7cd804 16925 yes)
2eca990d 16926 cat >conftest.$ac_ext <<_ACEOF
16927/* confdefs.h. */
16928_ACEOF
16929cat confdefs.h >>conftest.$ac_ext
16930cat >>conftest.$ac_ext <<_ACEOF
16931/* end confdefs.h. */
16932#include <sys/syscall.h>
16933 int lk;
16934int
16935main ()
16936{
16937syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
16938 ;
16939 return 0;
16940}
16941_ACEOF
16942rm -f conftest.$ac_objext conftest$ac_exeext
16943if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16944 (eval $ac_link) 2>conftest.er1
16945 ac_status=$?
16946 grep -v '^ *+' conftest.er1 >conftest.err
16947 rm -f conftest.er1
16948 cat conftest.err >&5
16949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16950 (exit $ac_status); } &&
16951 { ac_try='test -z "$ac_c_werror_flag"
16952 || test ! -s conftest.err'
16953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16954 (eval $ac_try) 2>&5
16955 ac_status=$?
16956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16957 (exit $ac_status); }; } &&
16958 { ac_try='test -s conftest$ac_exeext'
16959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16960 (eval $ac_try) 2>&5
16961 ac_status=$?
16962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16963 (exit $ac_status); }; }; then
16964 :
16965else
16966 echo "$as_me: failed program was:" >&5
16967sed 's/^/| /' conftest.$ac_ext >&5
16968
16969{ { echo "$as_me:$LINENO: error: SYS_gettid and SYS_futex required for --enable-linux-futex" >&5
16970echo "$as_me: error: SYS_gettid and SYS_futex required for --enable-linux-futex" >&2;}
16971 { (exit 1); exit 1; }; }
16972fi
16973rm -f conftest.err conftest.$ac_objext \
16974 conftest$ac_exeext conftest.$ac_ext
16975 ;;
16976 esac
59da30e1 16977 ;;
cfbdd7de 16978 *)
16979 enable_linux_futex=no
16980 ;;
59da30e1 16981esac
cfbdd7de 16982if test x$enable_linux_futex = xyes; then
16983 :
16984fi
16985
59da30e1 16986
8f697de6 16987# Check for pthread_{,attr_}[sg]etaffinity_np.
16988cat >conftest.$ac_ext <<_ACEOF
16989/* confdefs.h. */
16990_ACEOF
16991cat confdefs.h >>conftest.$ac_ext
16992cat >>conftest.$ac_ext <<_ACEOF
16993/* end confdefs.h. */
16994#define _GNU_SOURCE
16995 #include <pthread.h>
16996int
16997main ()
16998{
16999cpu_set_t cpuset;
17000 pthread_attr_t attr;
17001 pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
17002 if (CPU_ISSET (0, &cpuset))
17003 CPU_SET (1, &cpuset);
17004 else
17005 CPU_ZERO (&cpuset);
17006 pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
17007 pthread_attr_init (&attr);
17008 pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
17009 pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
17010 ;
17011 return 0;
17012}
17013_ACEOF
17014rm -f conftest.$ac_objext conftest$ac_exeext
17015if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17016 (eval $ac_link) 2>conftest.er1
17017 ac_status=$?
17018 grep -v '^ *+' conftest.er1 >conftest.err
17019 rm -f conftest.er1
17020 cat conftest.err >&5
17021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17022 (exit $ac_status); } &&
17023 { ac_try='test -z "$ac_c_werror_flag"
17024 || test ! -s conftest.err'
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); }; } &&
17030 { ac_try='test -s conftest$ac_exeext'
17031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17032 (eval $ac_try) 2>&5
17033 ac_status=$?
17034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17035 (exit $ac_status); }; }; then
17036
17037cat >>confdefs.h <<\_ACEOF
17038#define HAVE_PTHREAD_AFFINITY_NP 1
17039_ACEOF
17040
17041else
17042 echo "$as_me: failed program was:" >&5
17043sed 's/^/| /' conftest.$ac_ext >&5
17044
17045fi
17046rm -f conftest.err conftest.$ac_objext \
17047 conftest$ac_exeext conftest.$ac_ext
17048
1e8e9920 17049# At least for glibc, clock_gettime is in librt. But don't pull that
17050# in if it still doesn't give us the function we want.
17051if test $ac_cv_func_clock_gettime = no; then
17052 echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
17053echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
17054if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
17055 echo $ECHO_N "(cached) $ECHO_C" >&6
17056else
17057 ac_check_lib_save_LIBS=$LIBS
17058LIBS="-lrt $LIBS"
17059cat >conftest.$ac_ext <<_ACEOF
17060/* confdefs.h. */
17061_ACEOF
17062cat confdefs.h >>conftest.$ac_ext
17063cat >>conftest.$ac_ext <<_ACEOF
17064/* end confdefs.h. */
17065
17066/* Override any gcc2 internal prototype to avoid an error. */
17067#ifdef __cplusplus
17068extern "C"
17069#endif
17070/* We use char because int might match the return type of a gcc2
17071 builtin and then its argument prototype would still apply. */
17072char clock_gettime ();
17073int
17074main ()
17075{
17076clock_gettime ();
17077 ;
17078 return 0;
17079}
17080_ACEOF
17081rm -f conftest.$ac_objext conftest$ac_exeext
17082if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17083 (eval $ac_link) 2>conftest.er1
17084 ac_status=$?
17085 grep -v '^ *+' conftest.er1 >conftest.err
17086 rm -f conftest.er1
17087 cat conftest.err >&5
17088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17089 (exit $ac_status); } &&
59da30e1 17090 { ac_try='test -z "$ac_c_werror_flag"
17091 || test ! -s conftest.err'
1e8e9920 17092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17093 (eval $ac_try) 2>&5
17094 ac_status=$?
17095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17096 (exit $ac_status); }; } &&
17097 { ac_try='test -s conftest$ac_exeext'
17098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17099 (eval $ac_try) 2>&5
17100 ac_status=$?
17101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17102 (exit $ac_status); }; }; then
17103 ac_cv_lib_rt_clock_gettime=yes
17104else
17105 echo "$as_me: failed program was:" >&5
17106sed 's/^/| /' conftest.$ac_ext >&5
17107
17108ac_cv_lib_rt_clock_gettime=no
17109fi
17110rm -f conftest.err conftest.$ac_objext \
17111 conftest$ac_exeext conftest.$ac_ext
17112LIBS=$ac_check_lib_save_LIBS
17113fi
17114echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
17115echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
17116if test $ac_cv_lib_rt_clock_gettime = yes; then
17117 LIBS="-lrt $LIBS"
0b67f687 17118
17119cat >>confdefs.h <<\_ACEOF
17120#define HAVE_CLOCK_GETTIME 1
1e8e9920 17121_ACEOF
17122
17123fi
17124
17125fi
17126
17127# See if we support thread-local storage.
17128
17129 # Check whether --enable-tls or --disable-tls was given.
17130if test "${enable_tls+set}" = set; then
17131 enableval="$enable_tls"
17132
17133 case "$enableval" in
17134 yes|no) ;;
17135 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
17136echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
17137 { (exit 1); exit 1; }; } ;;
17138 esac
17139
17140else
17141 enable_tls=yes
17142fi;
17143
17144 echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
17145echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
23d7dd8c 17146if test "${gcc_cv_have_tls+set}" = set; then
1e8e9920 17147 echo $ECHO_N "(cached) $ECHO_C" >&6
17148else
17149
4d006f8a 17150 if test "$cross_compiling" = yes; then
542f9784 17151 cat >conftest.$ac_ext <<_ACEOF
67ba0753 17152__thread int a; int b; int main() { return a = b; }
1e8e9920 17153_ACEOF
67ba0753 17154rm -f conftest.$ac_objext conftest$ac_exeext
17155if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17156 (eval $ac_link) 2>conftest.er1
1e8e9920 17157 ac_status=$?
17158 grep -v '^ *+' conftest.er1 >conftest.err
17159 rm -f conftest.er1
17160 cat conftest.err >&5
17161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17162 (exit $ac_status); } &&
59da30e1 17163 { ac_try='test -z "$ac_c_werror_flag"
17164 || test ! -s conftest.err'
1e8e9920 17165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17166 (eval $ac_try) 2>&5
17167 ac_status=$?
17168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17169 (exit $ac_status); }; } &&
67ba0753 17170 { ac_try='test -s conftest$ac_exeext'
1e8e9920 17171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17172 (eval $ac_try) 2>&5
17173 ac_status=$?
17174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17175 (exit $ac_status); }; }; then
23d7dd8c 17176 gcc_cv_have_tls=yes
1e8e9920 17177else
17178 echo "$as_me: failed program was:" >&5
17179sed 's/^/| /' conftest.$ac_ext >&5
17180
23d7dd8c 17181gcc_cv_have_tls=no
1e8e9920 17182fi
67ba0753 17183rm -f conftest.err conftest.$ac_objext \
17184 conftest$ac_exeext conftest.$ac_ext
4d006f8a 17185
542f9784 17186
4d006f8a 17187else
17188 cat >conftest.$ac_ext <<_ACEOF
17189__thread int a; int b; int main() { return a = b; }
17190_ACEOF
17191rm -f conftest$ac_exeext
17192if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17193 (eval $ac_link) 2>&5
17194 ac_status=$?
17195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17196 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17198 (eval $ac_try) 2>&5
17199 ac_status=$?
17200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17201 (exit $ac_status); }; }; then
1196de9e 17202 chktls_save_LDFLAGS="$LDFLAGS"
4d006f8a 17203 LDFLAGS="-static $LDFLAGS"
72a430e4 17204 cat >conftest.$ac_ext <<_ACEOF
17205int main() { return 0; }
17206_ACEOF
17207rm -f conftest.$ac_objext conftest$ac_exeext
17208if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17209 (eval $ac_link) 2>conftest.er1
17210 ac_status=$?
17211 grep -v '^ *+' conftest.er1 >conftest.err
17212 rm -f conftest.er1
17213 cat conftest.err >&5
17214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17215 (exit $ac_status); } &&
17216 { ac_try='test -z "$ac_c_werror_flag"
17217 || test ! -s conftest.err'
17218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17219 (eval $ac_try) 2>&5
17220 ac_status=$?
17221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17222 (exit $ac_status); }; } &&
17223 { ac_try='test -s conftest$ac_exeext'
17224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17225 (eval $ac_try) 2>&5
17226 ac_status=$?
17227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17228 (exit $ac_status); }; }; then
17229 if test "$cross_compiling" = yes; then
5b2c7553 17230 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17231echo "$as_me: error: in \`$ac_pwd':" >&2;}
17232{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4d006f8a 17233See \`config.log' for more details." >&5
17234echo "$as_me: error: cannot run test program while cross compiling
17235See \`config.log' for more details." >&2;}
5b2c7553 17236 { (exit 1); exit 1; }; }; }
4d006f8a 17237else
17238 cat >conftest.$ac_ext <<_ACEOF
17239__thread int a; int b; int main() { return a = b; }
17240_ACEOF
17241rm -f conftest$ac_exeext
17242if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17243 (eval $ac_link) 2>&5
17244 ac_status=$?
17245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17246 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17248 (eval $ac_try) 2>&5
17249 ac_status=$?
17250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17251 (exit $ac_status); }; }; then
23d7dd8c 17252 gcc_cv_have_tls=yes
4d006f8a 17253else
17254 echo "$as_me: program exited with status $ac_status" >&5
17255echo "$as_me: failed program was:" >&5
17256sed 's/^/| /' conftest.$ac_ext >&5
17257
17258( exit $ac_status )
23d7dd8c 17259gcc_cv_have_tls=no
4d006f8a 17260fi
17261rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17262fi
72a430e4 17263else
17264 echo "$as_me: failed program was:" >&5
17265sed 's/^/| /' conftest.$ac_ext >&5
17266
23d7dd8c 17267gcc_cv_have_tls=yes
72a430e4 17268fi
17269rm -f conftest.err conftest.$ac_objext \
17270 conftest$ac_exeext conftest.$ac_ext
1196de9e 17271 LDFLAGS="$chktls_save_LDFLAGS"
23d7dd8c 17272 if test $gcc_cv_have_tls = yes; then
1196de9e 17273 chktls_save_CFLAGS="$CFLAGS"
17274 thread_CFLAGS=failed
17275 for flag in '' '-pthread' '-lpthread'; do
17276 CFLAGS="$flag $chktls_save_CFLAGS"
17277 cat >conftest.$ac_ext <<_ACEOF
17278/* confdefs.h. */
17279_ACEOF
17280cat confdefs.h >>conftest.$ac_ext
17281cat >>conftest.$ac_ext <<_ACEOF
17282/* end confdefs.h. */
17283#include <pthread.h>
17284 void *g(void *d) { return NULL; }
17285int
17286main ()
17287{
17288pthread_t t; pthread_create(&t,NULL,g,NULL);
17289 ;
17290 return 0;
17291}
17292_ACEOF
17293rm -f conftest.$ac_objext conftest$ac_exeext
17294if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17295 (eval $ac_link) 2>conftest.er1
17296 ac_status=$?
17297 grep -v '^ *+' conftest.er1 >conftest.err
17298 rm -f conftest.er1
17299 cat conftest.err >&5
17300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17301 (exit $ac_status); } &&
17302 { ac_try='test -z "$ac_c_werror_flag"
17303 || test ! -s conftest.err'
17304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17305 (eval $ac_try) 2>&5
17306 ac_status=$?
17307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17308 (exit $ac_status); }; } &&
17309 { ac_try='test -s conftest$ac_exeext'
17310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17311 (eval $ac_try) 2>&5
17312 ac_status=$?
17313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17314 (exit $ac_status); }; }; then
17315 thread_CFLAGS="$flag"
17316else
17317 echo "$as_me: failed program was:" >&5
17318sed 's/^/| /' conftest.$ac_ext >&5
17319
17320fi
17321rm -f conftest.err conftest.$ac_objext \
17322 conftest$ac_exeext conftest.$ac_ext
17323 if test "X$thread_CFLAGS" != Xfailed; then
17324 break
17325 fi
17326 done
17327 CFLAGS="$chktls_save_CFLAGS"
17328 if test "X$thread_CFLAGS" != Xfailed; then
17329 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
17330 if test "$cross_compiling" = yes; then
5b2c7553 17331 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17332echo "$as_me: error: in \`$ac_pwd':" >&2;}
17333{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
1196de9e 17334See \`config.log' for more details." >&5
17335echo "$as_me: error: cannot run test program while cross compiling
17336See \`config.log' for more details." >&2;}
5b2c7553 17337 { (exit 1); exit 1; }; }; }
1196de9e 17338else
17339 cat >conftest.$ac_ext <<_ACEOF
17340/* confdefs.h. */
17341_ACEOF
17342cat confdefs.h >>conftest.$ac_ext
17343cat >>conftest.$ac_ext <<_ACEOF
17344/* end confdefs.h. */
17345#include <pthread.h>
17346 __thread int a;
17347 static int *a_in_other_thread;
17348 static void *
17349 thread_func (void *arg)
17350 {
17351 a_in_other_thread = &a;
17352 return (void *)0;
17353 }
17354int
17355main ()
17356{
17357pthread_t thread;
17358 void *thread_retval;
17359 int *a_in_main_thread;
17360 if (pthread_create (&thread, (pthread_attr_t *)0,
17361 thread_func, (void *)0))
17362 return 0;
17363 a_in_main_thread = &a;
17364 if (pthread_join (thread, &thread_retval))
17365 return 0;
17366 return (a_in_other_thread == a_in_main_thread);
17367 ;
17368 return 0;
17369}
17370_ACEOF
17371rm -f conftest$ac_exeext
17372if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17373 (eval $ac_link) 2>&5
17374 ac_status=$?
17375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17376 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17378 (eval $ac_try) 2>&5
17379 ac_status=$?
17380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17381 (exit $ac_status); }; }; then
23d7dd8c 17382 gcc_cv_have_tls=yes
1196de9e 17383else
17384 echo "$as_me: program exited with status $ac_status" >&5
17385echo "$as_me: failed program was:" >&5
17386sed 's/^/| /' conftest.$ac_ext >&5
17387
17388( exit $ac_status )
23d7dd8c 17389gcc_cv_have_tls=no
1196de9e 17390fi
17391rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17392fi
17393 CFLAGS="$chktls_save_CFLAGS"
17394 fi
17395 fi
4d006f8a 17396else
17397 echo "$as_me: program exited with status $ac_status" >&5
17398echo "$as_me: failed program was:" >&5
17399sed 's/^/| /' conftest.$ac_ext >&5
17400
17401( exit $ac_status )
23d7dd8c 17402gcc_cv_have_tls=no
4d006f8a 17403fi
17404rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17405fi
1e8e9920 17406fi
23d7dd8c 17407echo "$as_me:$LINENO: result: $gcc_cv_have_tls" >&5
17408echo "${ECHO_T}$gcc_cv_have_tls" >&6
17409 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
1e8e9920 17410
17411cat >>confdefs.h <<\_ACEOF
17412#define HAVE_TLS 1
17413_ACEOF
17414
17415 fi
17416
17417# See what sort of export controls are availible.
17418
17419 echo "$as_me:$LINENO: checking whether the target supports hidden visibility" >&5
17420echo $ECHO_N "checking whether the target supports hidden visibility... $ECHO_C" >&6
6992582a 17421if test "${libgomp_cv_have_attribute_visibility+set}" = set; then
1e8e9920 17422 echo $ECHO_N "(cached) $ECHO_C" >&6
17423else
17424
17425 save_CFLAGS="$CFLAGS"
17426 CFLAGS="$CFLAGS -Werror"
17427 cat >conftest.$ac_ext <<_ACEOF
17428/* confdefs.h. */
17429_ACEOF
17430cat confdefs.h >>conftest.$ac_ext
17431cat >>conftest.$ac_ext <<_ACEOF
17432/* end confdefs.h. */
17433void __attribute__((visibility("hidden"))) foo(void) { }
17434int
17435main ()
17436{
17437
17438 ;
17439 return 0;
17440}
17441_ACEOF
17442rm -f conftest.$ac_objext
17443if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17444 (eval $ac_compile) 2>conftest.er1
17445 ac_status=$?
17446 grep -v '^ *+' conftest.er1 >conftest.err
17447 rm -f conftest.er1
17448 cat conftest.err >&5
17449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17450 (exit $ac_status); } &&
59da30e1 17451 { ac_try='test -z "$ac_c_werror_flag"
17452 || test ! -s conftest.err'
1e8e9920 17453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17454 (eval $ac_try) 2>&5
17455 ac_status=$?
17456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17457 (exit $ac_status); }; } &&
17458 { ac_try='test -s conftest.$ac_objext'
17459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17460 (eval $ac_try) 2>&5
17461 ac_status=$?
17462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17463 (exit $ac_status); }; }; then
6992582a 17464 libgomp_cv_have_attribute_visibility=yes
1e8e9920 17465else
17466 echo "$as_me: failed program was:" >&5
17467sed 's/^/| /' conftest.$ac_ext >&5
17468
6992582a 17469libgomp_cv_have_attribute_visibility=no
1e8e9920 17470fi
17471rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17472 CFLAGS="$save_CFLAGS"
17473fi
6992582a 17474echo "$as_me:$LINENO: result: $libgomp_cv_have_attribute_visibility" >&5
17475echo "${ECHO_T}$libgomp_cv_have_attribute_visibility" >&6
17476 if test $libgomp_cv_have_attribute_visibility = yes; then
1e8e9920 17477
17478cat >>confdefs.h <<\_ACEOF
17479#define HAVE_ATTRIBUTE_VISIBILITY 1
17480_ACEOF
17481
17482 fi
17483
17484 echo "$as_me:$LINENO: checking whether the target supports dllexport" >&5
17485echo $ECHO_N "checking whether the target supports dllexport... $ECHO_C" >&6
6992582a 17486if test "${libgomp_cv_have_attribute_dllexport+set}" = set; then
1e8e9920 17487 echo $ECHO_N "(cached) $ECHO_C" >&6
17488else
17489
17490 save_CFLAGS="$CFLAGS"
17491 CFLAGS="$CFLAGS -Werror"
17492 cat >conftest.$ac_ext <<_ACEOF
17493/* confdefs.h. */
17494_ACEOF
17495cat confdefs.h >>conftest.$ac_ext
17496cat >>conftest.$ac_ext <<_ACEOF
17497/* end confdefs.h. */
17498void __attribute__((dllexport)) foo(void) { }
17499int
17500main ()
17501{
17502
17503 ;
17504 return 0;
17505}
17506_ACEOF
17507rm -f conftest.$ac_objext
17508if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17509 (eval $ac_compile) 2>conftest.er1
17510 ac_status=$?
17511 grep -v '^ *+' conftest.er1 >conftest.err
17512 rm -f conftest.er1
17513 cat conftest.err >&5
17514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17515 (exit $ac_status); } &&
59da30e1 17516 { ac_try='test -z "$ac_c_werror_flag"
17517 || test ! -s conftest.err'
1e8e9920 17518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17519 (eval $ac_try) 2>&5
17520 ac_status=$?
17521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17522 (exit $ac_status); }; } &&
17523 { ac_try='test -s conftest.$ac_objext'
17524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17525 (eval $ac_try) 2>&5
17526 ac_status=$?
17527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17528 (exit $ac_status); }; }; then
6992582a 17529 libgomp_cv_have_attribute_dllexport=yes
1e8e9920 17530else
17531 echo "$as_me: failed program was:" >&5
17532sed 's/^/| /' conftest.$ac_ext >&5
17533
6992582a 17534libgomp_cv_have_attribute_dllexport=no
1e8e9920 17535fi
17536rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17537 CFLAGS="$save_CFLAGS"
17538fi
6992582a 17539echo "$as_me:$LINENO: result: $libgomp_cv_have_attribute_dllexport" >&5
17540echo "${ECHO_T}$libgomp_cv_have_attribute_dllexport" >&6
17541 if test $libgomp_cv_have_attribute_dllexport = yes; then
1e8e9920 17542
17543cat >>confdefs.h <<\_ACEOF
17544#define HAVE_ATTRIBUTE_DLLEXPORT 1
17545_ACEOF
17546
17547 fi
17548
17549 echo "$as_me:$LINENO: checking whether the target supports symbol aliases" >&5
17550echo $ECHO_N "checking whether the target supports symbol aliases... $ECHO_C" >&6
6992582a 17551if test "${libgomp_cv_have_attribute_alias+set}" = set; then
1e8e9920 17552 echo $ECHO_N "(cached) $ECHO_C" >&6
17553else
17554
17555 cat >conftest.$ac_ext <<_ACEOF
17556/* confdefs.h. */
17557_ACEOF
17558cat confdefs.h >>conftest.$ac_ext
17559cat >>conftest.$ac_ext <<_ACEOF
17560/* end confdefs.h. */
17561
1e8e9920 17562void foo(void) { }
c812091b 17563extern void bar(void) __attribute__((alias("foo")));
1e8e9920 17564int
17565main ()
17566{
17567bar();
17568 ;
17569 return 0;
17570}
17571_ACEOF
17572rm -f conftest.$ac_objext conftest$ac_exeext
17573if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17574 (eval $ac_link) 2>conftest.er1
17575 ac_status=$?
17576 grep -v '^ *+' conftest.er1 >conftest.err
17577 rm -f conftest.er1
17578 cat conftest.err >&5
17579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17580 (exit $ac_status); } &&
59da30e1 17581 { ac_try='test -z "$ac_c_werror_flag"
17582 || test ! -s conftest.err'
1e8e9920 17583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17584 (eval $ac_try) 2>&5
17585 ac_status=$?
17586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17587 (exit $ac_status); }; } &&
17588 { ac_try='test -s conftest$ac_exeext'
17589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17590 (eval $ac_try) 2>&5
17591 ac_status=$?
17592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17593 (exit $ac_status); }; }; then
6992582a 17594 libgomp_cv_have_attribute_alias=yes
1e8e9920 17595else
17596 echo "$as_me: failed program was:" >&5
17597sed 's/^/| /' conftest.$ac_ext >&5
17598
6992582a 17599libgomp_cv_have_attribute_alias=no
1e8e9920 17600fi
17601rm -f conftest.err conftest.$ac_objext \
17602 conftest$ac_exeext conftest.$ac_ext
17603fi
6992582a 17604echo "$as_me:$LINENO: result: $libgomp_cv_have_attribute_alias" >&5
17605echo "${ECHO_T}$libgomp_cv_have_attribute_alias" >&6
17606 if test $libgomp_cv_have_attribute_alias = yes; then
1e8e9920 17607
17608cat >>confdefs.h <<\_ACEOF
17609#define HAVE_ATTRIBUTE_ALIAS 1
17610_ACEOF
17611
17612 fi
17613
542f9784 17614
17615# Check whether --with-gnu-ld or --without-gnu-ld was given.
17616if test "${with_gnu_ld+set}" = set; then
17617 withval="$with_gnu_ld"
17618 test "$withval" = no || with_gnu_ld=yes
17619else
17620 with_gnu_ld=no
17621fi;
17622ac_prog=ld
17623if test "$GCC" = yes; then
17624 # Check if gcc -print-prog-name=ld gives a path.
17625 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
17626echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
17627 case $host in
17628 *-*-mingw*)
17629 # gcc leaves a trailing carriage return which upsets mingw
17630 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17631 *)
17632 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17633 esac
17634 case $ac_prog in
17635 # Accept absolute paths.
17636 [\\/]* | ?:[\\/]*)
17637 re_direlt='/[^/][^/]*/\.\./'
17638 # Canonicalize the pathname of ld
17639 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17640 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17641 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17642 done
17643 test -z "$LD" && LD="$ac_prog"
17644 ;;
17645 "")
17646 # If it fails, then pretend we aren't using GCC.
17647 ac_prog=ld
17648 ;;
17649 *)
17650 # If it is relative, then search for the first ld in PATH.
17651 with_gnu_ld=unknown
17652 ;;
17653 esac
17654elif test "$with_gnu_ld" = yes; then
17655 echo "$as_me:$LINENO: checking for GNU ld" >&5
17656echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
17657else
17658 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
17659echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
17660fi
17661if test "${lt_cv_path_LD+set}" = set; then
17662 echo $ECHO_N "(cached) $ECHO_C" >&6
17663else
17664 if test -z "$LD"; then
17665 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17666 for ac_dir in $PATH; do
17667 IFS="$lt_save_ifs"
17668 test -z "$ac_dir" && ac_dir=.
17669 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17670 lt_cv_path_LD="$ac_dir/$ac_prog"
17671 # Check to see if the program is GNU ld. I'd rather use --version,
17672 # but apparently some variants of GNU ld only accept -v.
17673 # Break only if it was the GNU/non-GNU ld that we prefer.
17674 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17675 *GNU* | *'with BFD'*)
17676 test "$with_gnu_ld" != no && break
17677 ;;
17678 *)
17679 test "$with_gnu_ld" != yes && break
17680 ;;
17681 esac
17682 fi
17683 done
17684 IFS="$lt_save_ifs"
17685else
17686 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17687fi
17688fi
17689
17690LD="$lt_cv_path_LD"
17691if test -n "$LD"; then
17692 echo "$as_me:$LINENO: result: $LD" >&5
17693echo "${ECHO_T}$LD" >&6
17694else
17695 echo "$as_me:$LINENO: result: no" >&5
17696echo "${ECHO_T}no" >&6
17697fi
17698test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
17699echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
17700 { (exit 1); exit 1; }; }
17701echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
17702echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
17703if test "${lt_cv_prog_gnu_ld+set}" = set; then
17704 echo $ECHO_N "(cached) $ECHO_C" >&6
17705else
17706 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17707case `$LD -v 2>&1 </dev/null` in
17708*GNU* | *'with BFD'*)
17709 lt_cv_prog_gnu_ld=yes
17710 ;;
17711*)
17712 lt_cv_prog_gnu_ld=no
17713 ;;
17714esac
17715fi
17716echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
17717echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
17718with_gnu_ld=$lt_cv_prog_gnu_ld
17719
17720
17721
17722
17723
17724
17725
1e8e9920 17726 # If we're not using GNU ld, then there's no point in even trying these
17727 # tests. Check for that first. We should have already tested for gld
17728 # by now (in libtool), but require it now just to be safe...
17729 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
17730 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
17731
17732
17733
17734 # The name set by libtool depends on the version of libtool. Shame on us
17735 # for depending on an impl detail, but c'est la vie. Older versions used
17736 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
17737 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
17738 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
17739 # set (hence we're using an older libtool), then set it.
17740 if test x${with_gnu_ld+set} != xset; then
17741 if test x${ac_cv_prog_gnu_ld+set} != xset; then
17742 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
17743 with_gnu_ld=no
17744 else
17745 with_gnu_ld=$ac_cv_prog_gnu_ld
17746 fi
17747 fi
17748
17749 # Start by getting the version number. I think the libtool test already
17750 # does some of this, but throws away the result.
17751
17752 ldver=`$LD --version 2>/dev/null | head -1 | \
20d905ca 17753 sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
1e8e9920 17754
17755 libgomp_gnu_ld_version=`echo $ldver | \
17756 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
17757
17758 # Set --gc-sections.
17759 if test "$with_gnu_ld" = "notbroken"; then
17760 # GNU ld it is! Joy and bunny rabbits!
17761
17762 # All these tests are for C++; save the language and the compiler flags.
17763 # Need to do this so that g++ won't try to link in libstdc++
17764 ac_test_CFLAGS="${CFLAGS+set}"
17765 ac_save_CFLAGS="$CFLAGS"
17766 CFLAGS='-x c++ -Wl,--gc-sections'
17767
17768 # Check for -Wl,--gc-sections
17769 # XXX This test is broken at the moment, as symbols required for linking
17770 # are now in libsupc++ (not built yet). In addition, this test has
17771 # cored on solaris in the past. In addition, --gc-sections doesn't
17772 # really work at the moment (keeps on discarding used sections, first
17773 # .eh_frame and now some of the glibc sections for iconv).
17774 # Bzzzzt. Thanks for playing, maybe next time.
17775 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
17776echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
17777 if test "$cross_compiling" = yes; then
17778 ac_sectionLDflags=yes
17779else
17780 cat >conftest.$ac_ext <<_ACEOF
17781/* confdefs.h. */
17782_ACEOF
17783cat confdefs.h >>conftest.$ac_ext
17784cat >>conftest.$ac_ext <<_ACEOF
17785/* end confdefs.h. */
17786
17787 int main(void)
17788 {
17789 try { throw 1; }
17790 catch (...) { };
17791 return 0;
17792 }
17793
17794_ACEOF
17795rm -f conftest$ac_exeext
17796if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17797 (eval $ac_link) 2>&5
17798 ac_status=$?
17799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17800 (exit $ac_status); } && { ac_try='./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_sectionLDflags=yes
17807else
17808 echo "$as_me: program exited with status $ac_status" >&5
17809echo "$as_me: failed program was:" >&5
17810sed 's/^/| /' conftest.$ac_ext >&5
17811
17812( exit $ac_status )
17813ac_sectionLDflags=no
17814fi
17815rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17816fi
17817 if test "$ac_test_CFLAGS" = set; then
17818 CFLAGS="$ac_save_CFLAGS"
17819 else
17820 # this is the suspicious part
17821 CFLAGS=''
17822 fi
17823 if test "$ac_sectionLDflags" = "yes"; then
17824 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
17825 fi
17826 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
17827echo "${ECHO_T}$ac_sectionLDflags" >&6
17828 fi
17829
17830 # Set linker optimization flags.
17831 if test x"$with_gnu_ld" = x"yes"; then
17832 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
17833 fi
17834
17835
17836
17837
17838
17839
17840 # Check whether --enable-symvers or --disable-symvers was given.
17841if test "${enable_symvers+set}" = set; then
17842 enableval="$enable_symvers"
17843
17844 case "$enableval" in
17845 yes|no|gnu) ;;
17846 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable symvers" >&5
17847echo "$as_me: error: Unknown argument to enable/disable symvers" >&2;}
17848 { (exit 1); exit 1; }; } ;;
17849 esac
17850
17851else
17852 enable_symvers=yes
17853fi;
17854
17855
17856# If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
17857# don't know enough about $LD to do tricks...
17858
17859# FIXME The following test is too strict, in theory.
17860if test $enable_shared = no ||
17861 test "x$LD" = x ||
17862 test x$libgomp_gnu_ld_version = x; then
17863 enable_symvers=no
17864fi
17865
17866# Check to see if libgcc_s exists, indicating that shared libgcc is possible.
17867if test $enable_symvers != no; then
17868 echo "$as_me:$LINENO: checking for shared libgcc" >&5
17869echo $ECHO_N "checking for shared libgcc... $ECHO_C" >&6
17870 ac_save_CFLAGS="$CFLAGS"
17871 CFLAGS=' -lgcc_s'
17872 cat >conftest.$ac_ext <<_ACEOF
17873/* confdefs.h. */
17874_ACEOF
17875cat confdefs.h >>conftest.$ac_ext
17876cat >>conftest.$ac_ext <<_ACEOF
17877/* end confdefs.h. */
17878
17879int
17880main ()
17881{
17882return 0;
17883 ;
17884 return 0;
17885}
17886_ACEOF
17887rm -f conftest.$ac_objext conftest$ac_exeext
17888if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17889 (eval $ac_link) 2>conftest.er1
17890 ac_status=$?
17891 grep -v '^ *+' conftest.er1 >conftest.err
17892 rm -f conftest.er1
17893 cat conftest.err >&5
17894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17895 (exit $ac_status); } &&
59da30e1 17896 { ac_try='test -z "$ac_c_werror_flag"
17897 || test ! -s conftest.err'
1e8e9920 17898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17899 (eval $ac_try) 2>&5
17900 ac_status=$?
17901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17902 (exit $ac_status); }; } &&
17903 { ac_try='test -s conftest$ac_exeext'
17904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17905 (eval $ac_try) 2>&5
17906 ac_status=$?
17907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17908 (exit $ac_status); }; }; then
17909 libgomp_shared_libgcc=yes
17910else
17911 echo "$as_me: failed program was:" >&5
17912sed 's/^/| /' conftest.$ac_ext >&5
17913
17914libgomp_shared_libgcc=no
17915fi
17916rm -f conftest.err conftest.$ac_objext \
17917 conftest$ac_exeext conftest.$ac_ext
17918 CFLAGS="$ac_save_CFLAGS"
17919 if test $libgomp_shared_libgcc = no; then
17920 cat > conftest.c <<EOF
17921int main (void) { return 0; }
17922EOF
17923 libgomp_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
17924 -shared -shared-libgcc -o conftest.so \
17925 conftest.c -v 2>&1 >/dev/null \
17926 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
17927 rm -f conftest.c conftest.so
17928 if test x${libgomp_libgcc_s_suffix+set} = xset; then
17929 CFLAGS=" -lgcc_s$libgomp_libgcc_s_suffix"
17930 cat >conftest.$ac_ext <<_ACEOF
17931/* confdefs.h. */
17932_ACEOF
17933cat confdefs.h >>conftest.$ac_ext
17934cat >>conftest.$ac_ext <<_ACEOF
17935/* end confdefs.h. */
17936
17937int
17938main ()
17939{
17940return 0;
17941 ;
17942 return 0;
17943}
17944_ACEOF
17945rm -f conftest.$ac_objext conftest$ac_exeext
17946if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17947 (eval $ac_link) 2>conftest.er1
17948 ac_status=$?
17949 grep -v '^ *+' conftest.er1 >conftest.err
17950 rm -f conftest.er1
17951 cat conftest.err >&5
17952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17953 (exit $ac_status); } &&
59da30e1 17954 { ac_try='test -z "$ac_c_werror_flag"
17955 || test ! -s conftest.err'
1e8e9920 17956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17957 (eval $ac_try) 2>&5
17958 ac_status=$?
17959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17960 (exit $ac_status); }; } &&
17961 { ac_try='test -s conftest$ac_exeext'
17962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17963 (eval $ac_try) 2>&5
17964 ac_status=$?
17965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17966 (exit $ac_status); }; }; then
17967 libgomp_shared_libgcc=yes
17968else
17969 echo "$as_me: failed program was:" >&5
17970sed 's/^/| /' conftest.$ac_ext >&5
17971
17972fi
17973rm -f conftest.err conftest.$ac_objext \
17974 conftest$ac_exeext conftest.$ac_ext
17975 CFLAGS="$ac_save_CFLAGS"
17976 fi
17977 fi
17978 echo "$as_me:$LINENO: result: $libgomp_shared_libgcc" >&5
17979echo "${ECHO_T}$libgomp_shared_libgcc" >&6
17980fi
17981
17982# For GNU ld, we need at least this version. The format is described in
17983# LIBGOMP_CHECK_LINKER_FEATURES above.
17984libgomp_min_gnu_ld_version=21400
17985# XXXXXXXXXXX libgomp_gnu_ld_version=21390
17986
17987# Check to see if unspecified "yes" value can win, given results above.
17988# Change "yes" into either "no" or a style name.
17989if test $enable_symvers = yes; then
17990 if test $with_gnu_ld = yes &&
17991 test $libgomp_shared_libgcc = yes;
17992 then
17993 if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
17994 enable_symvers=gnu
17995 else
17996 # The right tools, the right setup, but too old. Fallbacks?
17997 { echo "$as_me:$LINENO: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
17998echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
17999 { echo "$as_me:$LINENO: WARNING: === full symbol versioning support in this release of GCC." >&5
18000echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
18001 { echo "$as_me:$LINENO: WARNING: === You would need to upgrade your binutils to version" >&5
18002echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
18003 { echo "$as_me:$LINENO: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
18004echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
18005 if test $libgomp_gnu_ld_version -ge 21200 ; then
18006 # Globbing fix is present, proper block support is not.
18007 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
18008echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
18009 enable_symvers=no
18010 else
18011 # 2.11 or older.
18012 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
18013echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
18014 enable_symvers=no
18015 fi
18016 fi
18017 else
18018 # just fail for now
18019 { echo "$as_me:$LINENO: WARNING: === You have requested some kind of symbol versioning, but" >&5
18020echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
18021 { echo "$as_me:$LINENO: WARNING: === either you are not using a supported linker, or you are" >&5
18022echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
18023 { echo "$as_me:$LINENO: WARNING: === not building a shared libgcc_s (which is required)." >&5
18024echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
18025 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
18026echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
18027 enable_symvers=no
18028 fi
18029fi
18030
18031
18032
18033if test $enable_symvers != no; then
18034 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE=
18035 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE='#'
18036else
18037 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='#'
18038 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE=
18039fi
18040
18041{ echo "$as_me:$LINENO: versioning on shared library symbols is $enable_symvers" >&5
18042echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
18043
18044
fd6481cf 18045if test $enable_symvers = gnu; then
18046
18047cat >>confdefs.h <<\_ACEOF
18048#define LIBGOMP_GNU_SYMBOL_VERSIONING 1
18049_ACEOF
18050
18051fi
18052
1e8e9920 18053# Get target configury.
18054. ${srcdir}/configure.tgt
18055CFLAGS="$save_CFLAGS $XCFLAGS"
18056
18057# Check for __sync_val_compare_and_swap, but only after the target has
18058# had a chance to set XCFLAGS.
18059
18060 echo "$as_me:$LINENO: checking whether the target supports __sync_*_compare_and_swap" >&5
18061echo $ECHO_N "checking whether the target supports __sync_*_compare_and_swap... $ECHO_C" >&6
6992582a 18062if test "${libgomp_cv_have_sync_builtins+set}" = set; then
1e8e9920 18063 echo $ECHO_N "(cached) $ECHO_C" >&6
18064else
18065
18066 cat >conftest.$ac_ext <<_ACEOF
18067/* confdefs.h. */
18068_ACEOF
18069cat confdefs.h >>conftest.$ac_ext
18070cat >>conftest.$ac_ext <<_ACEOF
18071/* end confdefs.h. */
18072
18073int
18074main ()
18075{
18076int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
18077 ;
18078 return 0;
18079}
18080_ACEOF
18081rm -f conftest.$ac_objext conftest$ac_exeext
18082if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18083 (eval $ac_link) 2>conftest.er1
18084 ac_status=$?
18085 grep -v '^ *+' conftest.er1 >conftest.err
18086 rm -f conftest.er1
18087 cat conftest.err >&5
18088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18089 (exit $ac_status); } &&
59da30e1 18090 { ac_try='test -z "$ac_c_werror_flag"
18091 || test ! -s conftest.err'
1e8e9920 18092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18093 (eval $ac_try) 2>&5
18094 ac_status=$?
18095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18096 (exit $ac_status); }; } &&
18097 { ac_try='test -s conftest$ac_exeext'
18098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18099 (eval $ac_try) 2>&5
18100 ac_status=$?
18101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18102 (exit $ac_status); }; }; then
6992582a 18103 libgomp_cv_have_sync_builtins=yes
1e8e9920 18104else
18105 echo "$as_me: failed program was:" >&5
18106sed 's/^/| /' conftest.$ac_ext >&5
18107
6992582a 18108libgomp_cv_have_sync_builtins=no
1e8e9920 18109fi
18110rm -f conftest.err conftest.$ac_objext \
18111 conftest$ac_exeext conftest.$ac_ext
18112fi
6992582a 18113echo "$as_me:$LINENO: result: $libgomp_cv_have_sync_builtins" >&5
18114echo "${ECHO_T}$libgomp_cv_have_sync_builtins" >&6
18115 if test $libgomp_cv_have_sync_builtins = yes; then
1e8e9920 18116
18117cat >>confdefs.h <<\_ACEOF
18118#define HAVE_SYNC_BUILTINS 1
18119_ACEOF
18120
18121 fi
18122
18123XCFLAGS="$XCFLAGS$XPCFLAGS"
18124
18125
18126
18127
18128
18129# Cleanup and exit.
18130CFLAGS="$save_CFLAGS"
18131cat >confcache <<\_ACEOF
18132# This file is a shell script that caches the results of configure
18133# tests run on this system so they can be shared between configure
18134# scripts and configure runs, see configure's option --config-cache.
18135# It is not useful on other systems. If it contains results you don't
18136# want to keep, you may remove or edit it.
18137#
18138# config.status only pays attention to the cache file if you give it
18139# the --recheck option to rerun configure.
18140#
18141# `ac_cv_env_foo' variables (set or unset) will be overridden when
18142# loading this file, other *unset* `ac_cv_foo' will be assigned the
18143# following values.
18144
18145_ACEOF
18146
18147# The following way of writing the cache mishandles newlines in values,
18148# but we know of no workaround that is simple, portable, and efficient.
18149# So, don't put newlines in cache variables' values.
18150# Ultrix sh set writes to stderr and can't be redirected directly,
18151# and sets the high bit in the cache file unless we assign to the vars.
18152{
18153 (set) 2>&1 |
18154 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18155 *ac_space=\ *)
18156 # `set' does not quote correctly, so add quotes (double-quote
18157 # substitution turns \\\\ into \\, and sed turns \\ into \).
18158 sed -n \
18159 "s/'/'\\\\''/g;
18160 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18161 ;;
18162 *)
18163 # `set' quotes correctly as required by POSIX, so do not add quotes.
18164 sed -n \
18165 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18166 ;;
18167 esac;
18168} |
18169 sed '
18170 t clear
18171 : clear
18172 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18173 t end
18174 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18175 : end' >>confcache
18176if diff $cache_file confcache >/dev/null 2>&1; then :; else
18177 if test -w $cache_file; then
18178 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18179 cat confcache >$cache_file
18180 else
18181 echo "not updating unwritable cache $cache_file"
18182 fi
18183fi
18184rm -f confcache
18185
18186if test ${multilib} = yes; then
18187 multilib_arg="--enable-multilib"
18188else
18189 multilib_arg=
18190fi
18191
18192# Set up the set of libraries that we need to link against for libgomp.
138f59be 18193# Note that the GOMP_SELF_SPEC in gcc.c will force -pthread for -fopenmp,
1e8e9920 18194# which will force linkage against -lpthread (or equivalent for the system).
18195# That's not 100% ideal, but about the best we can do easily.
18196if test $enable_shared = yes; then
18197 link_gomp="-lgomp %{static: $LIBS}"
18198else
18199 link_gomp="-lgomp $LIBS"
18200fi
18201
18202
18203
18204
18205if test "$ac_cv_fc_compiler_gnu" = yes; then
18206 USE_FORTRAN_TRUE=
18207 USE_FORTRAN_FALSE='#'
18208else
18209 USE_FORTRAN_TRUE='#'
18210 USE_FORTRAN_FALSE=
18211fi
18212
18213
107c3bbf 18214# ??? 2006-01-24: Paulo committed to asking autoconf folk to document
18215# and export AC_COMPUTE_INT. If that happens, then we'll need to remove
18216# the underscore here and update the PREREQ. If it doesn't, then we'll
18217# need to copy this macro to our acinclude.m4.
18218save_CFLAGS="$CFLAGS"
18219for i in $config_path; do
18220 if test -f $srcdir/config/$i/omp-lock.h; then
fd6481cf 18221 CFLAGS="$CFLAGS -include confdefs.h -include $srcdir/config/$i/omp-lock.h"
107c3bbf 18222 break
18223 fi
18224done
18225
18226if test "$cross_compiling" = yes; then
18227 # Depending upon the size, compute the lo and hi bounds.
18228cat >conftest.$ac_ext <<_ACEOF
18229/* confdefs.h. */
18230_ACEOF
18231cat confdefs.h >>conftest.$ac_ext
18232cat >>conftest.$ac_ext <<_ACEOF
18233/* end confdefs.h. */
18234
18235int
18236main ()
18237{
18238static int test_array [1 - 2 * !((sizeof (omp_lock_t)) >= 0)];
18239test_array [0] = 0
18240
18241 ;
18242 return 0;
18243}
18244_ACEOF
18245rm -f conftest.$ac_objext
18246if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18247 (eval $ac_compile) 2>conftest.er1
18248 ac_status=$?
18249 grep -v '^ *+' conftest.er1 >conftest.err
18250 rm -f conftest.er1
18251 cat conftest.err >&5
18252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18253 (exit $ac_status); } &&
59da30e1 18254 { ac_try='test -z "$ac_c_werror_flag"
18255 || test ! -s conftest.err'
107c3bbf 18256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18257 (eval $ac_try) 2>&5
18258 ac_status=$?
18259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18260 (exit $ac_status); }; } &&
18261 { ac_try='test -s conftest.$ac_objext'
18262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18263 (eval $ac_try) 2>&5
18264 ac_status=$?
18265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18266 (exit $ac_status); }; }; then
18267 ac_lo=0 ac_mid=0
18268 while :; do
18269 cat >conftest.$ac_ext <<_ACEOF
18270/* confdefs.h. */
18271_ACEOF
18272cat confdefs.h >>conftest.$ac_ext
18273cat >>conftest.$ac_ext <<_ACEOF
18274/* end confdefs.h. */
18275
18276int
18277main ()
18278{
18279static int test_array [1 - 2 * !((sizeof (omp_lock_t)) <= $ac_mid)];
18280test_array [0] = 0
18281
18282 ;
18283 return 0;
18284}
18285_ACEOF
18286rm -f conftest.$ac_objext
18287if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18288 (eval $ac_compile) 2>conftest.er1
18289 ac_status=$?
18290 grep -v '^ *+' conftest.er1 >conftest.err
18291 rm -f conftest.er1
18292 cat conftest.err >&5
18293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18294 (exit $ac_status); } &&
59da30e1 18295 { ac_try='test -z "$ac_c_werror_flag"
18296 || test ! -s conftest.err'
107c3bbf 18297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18298 (eval $ac_try) 2>&5
18299 ac_status=$?
18300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18301 (exit $ac_status); }; } &&
18302 { ac_try='test -s conftest.$ac_objext'
18303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18304 (eval $ac_try) 2>&5
18305 ac_status=$?
18306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18307 (exit $ac_status); }; }; then
18308 ac_hi=$ac_mid; break
18309else
18310 echo "$as_me: failed program was:" >&5
18311sed 's/^/| /' conftest.$ac_ext >&5
18312
18313ac_lo=`expr $ac_mid + 1`
18314 if test $ac_lo -le $ac_mid; then
18315 ac_lo= ac_hi=
18316 break
18317 fi
18318 ac_mid=`expr 2 '*' $ac_mid + 1`
18319fi
18320rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18321 done
18322else
18323 echo "$as_me: failed program was:" >&5
18324sed 's/^/| /' conftest.$ac_ext >&5
18325
18326cat >conftest.$ac_ext <<_ACEOF
18327/* confdefs.h. */
18328_ACEOF
18329cat confdefs.h >>conftest.$ac_ext
18330cat >>conftest.$ac_ext <<_ACEOF
18331/* end confdefs.h. */
18332
18333int
18334main ()
18335{
18336static int test_array [1 - 2 * !((sizeof (omp_lock_t)) < 0)];
18337test_array [0] = 0
18338
18339 ;
18340 return 0;
18341}
18342_ACEOF
18343rm -f conftest.$ac_objext
18344if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18345 (eval $ac_compile) 2>conftest.er1
18346 ac_status=$?
18347 grep -v '^ *+' conftest.er1 >conftest.err
18348 rm -f conftest.er1
18349 cat conftest.err >&5
18350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18351 (exit $ac_status); } &&
59da30e1 18352 { ac_try='test -z "$ac_c_werror_flag"
18353 || test ! -s conftest.err'
107c3bbf 18354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18355 (eval $ac_try) 2>&5
18356 ac_status=$?
18357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18358 (exit $ac_status); }; } &&
18359 { ac_try='test -s conftest.$ac_objext'
18360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18361 (eval $ac_try) 2>&5
18362 ac_status=$?
18363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18364 (exit $ac_status); }; }; then
18365 ac_hi=-1 ac_mid=-1
18366 while :; do
18367 cat >conftest.$ac_ext <<_ACEOF
18368/* confdefs.h. */
18369_ACEOF
18370cat confdefs.h >>conftest.$ac_ext
18371cat >>conftest.$ac_ext <<_ACEOF
18372/* end confdefs.h. */
18373
18374int
18375main ()
18376{
18377static int test_array [1 - 2 * !((sizeof (omp_lock_t)) >= $ac_mid)];
18378test_array [0] = 0
18379
18380 ;
18381 return 0;
18382}
18383_ACEOF
18384rm -f conftest.$ac_objext
18385if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18386 (eval $ac_compile) 2>conftest.er1
18387 ac_status=$?
18388 grep -v '^ *+' conftest.er1 >conftest.err
18389 rm -f conftest.er1
18390 cat conftest.err >&5
18391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18392 (exit $ac_status); } &&
59da30e1 18393 { ac_try='test -z "$ac_c_werror_flag"
18394 || test ! -s conftest.err'
107c3bbf 18395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18396 (eval $ac_try) 2>&5
18397 ac_status=$?
18398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18399 (exit $ac_status); }; } &&
18400 { ac_try='test -s conftest.$ac_objext'
18401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18402 (eval $ac_try) 2>&5
18403 ac_status=$?
18404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18405 (exit $ac_status); }; }; then
18406 ac_lo=$ac_mid; break
18407else
18408 echo "$as_me: failed program was:" >&5
18409sed 's/^/| /' conftest.$ac_ext >&5
18410
18411ac_hi=`expr '(' $ac_mid ')' - 1`
18412 if test $ac_mid -le $ac_hi; then
18413 ac_lo= ac_hi=
18414 break
18415 fi
18416 ac_mid=`expr 2 '*' $ac_mid`
18417fi
18418rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18419 done
18420else
18421 echo "$as_me: failed program was:" >&5
18422sed 's/^/| /' conftest.$ac_ext >&5
18423
18424ac_lo= ac_hi=
18425fi
18426rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18427fi
18428rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18429# Binary search between lo and hi bounds.
18430while test "x$ac_lo" != "x$ac_hi"; do
18431 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18432 cat >conftest.$ac_ext <<_ACEOF
18433/* confdefs.h. */
18434_ACEOF
18435cat confdefs.h >>conftest.$ac_ext
18436cat >>conftest.$ac_ext <<_ACEOF
18437/* end confdefs.h. */
18438
18439int
18440main ()
18441{
18442static int test_array [1 - 2 * !((sizeof (omp_lock_t)) <= $ac_mid)];
18443test_array [0] = 0
18444
18445 ;
18446 return 0;
18447}
18448_ACEOF
18449rm -f conftest.$ac_objext
18450if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18451 (eval $ac_compile) 2>conftest.er1
18452 ac_status=$?
18453 grep -v '^ *+' conftest.er1 >conftest.err
18454 rm -f conftest.er1
18455 cat conftest.err >&5
18456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18457 (exit $ac_status); } &&
59da30e1 18458 { ac_try='test -z "$ac_c_werror_flag"
18459 || test ! -s conftest.err'
107c3bbf 18460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18461 (eval $ac_try) 2>&5
18462 ac_status=$?
18463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18464 (exit $ac_status); }; } &&
18465 { ac_try='test -s conftest.$ac_objext'
18466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18467 (eval $ac_try) 2>&5
18468 ac_status=$?
18469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18470 (exit $ac_status); }; }; then
18471 ac_hi=$ac_mid
18472else
18473 echo "$as_me: failed program was:" >&5
18474sed 's/^/| /' conftest.$ac_ext >&5
18475
18476ac_lo=`expr '(' $ac_mid ')' + 1`
18477fi
18478rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18479done
18480case $ac_lo in
18481?*) OMP_LOCK_SIZE=$ac_lo;;
18482'') { { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_t)" >&5
18483echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_t)" >&2;}
18484 { (exit 1); exit 1; }; } ;;
18485esac
18486else
18487 if test "$cross_compiling" = yes; then
5b2c7553 18488 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18489echo "$as_me: error: in \`$ac_pwd':" >&2;}
18490{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
59da30e1 18491See \`config.log' for more details." >&5
18492echo "$as_me: error: cannot run test program while cross compiling
18493See \`config.log' for more details." >&2;}
5b2c7553 18494 { (exit 1); exit 1; }; }; }
107c3bbf 18495else
18496 cat >conftest.$ac_ext <<_ACEOF
18497/* confdefs.h. */
18498_ACEOF
18499cat confdefs.h >>conftest.$ac_ext
18500cat >>conftest.$ac_ext <<_ACEOF
18501/* end confdefs.h. */
18502
18503long longval () { return sizeof (omp_lock_t); }
18504unsigned long ulongval () { return sizeof (omp_lock_t); }
18505#include <stdio.h>
18506#include <stdlib.h>
18507int
18508main ()
18509{
18510
18511 FILE *f = fopen ("conftest.val", "w");
18512 if (! f)
18513 exit (1);
18514 if ((sizeof (omp_lock_t)) < 0)
18515 {
18516 long i = longval ();
18517 if (i != (sizeof (omp_lock_t)))
18518 exit (1);
18519 fprintf (f, "%ld\n", i);
18520 }
18521 else
18522 {
18523 unsigned long i = ulongval ();
18524 if (i != (sizeof (omp_lock_t)))
18525 exit (1);
18526 fprintf (f, "%lu\n", i);
18527 }
18528 exit (ferror (f) || fclose (f) != 0);
18529
18530 ;
18531 return 0;
18532}
18533_ACEOF
18534rm -f conftest$ac_exeext
18535if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18536 (eval $ac_link) 2>&5
18537 ac_status=$?
18538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18539 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18541 (eval $ac_try) 2>&5
18542 ac_status=$?
18543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18544 (exit $ac_status); }; }; then
18545 OMP_LOCK_SIZE=`cat conftest.val`
18546else
18547 echo "$as_me: program exited with status $ac_status" >&5
18548echo "$as_me: failed program was:" >&5
18549sed 's/^/| /' conftest.$ac_ext >&5
18550
18551( exit $ac_status )
18552{ { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_t)" >&5
18553echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_t)" >&2;}
18554 { (exit 1); exit 1; }; }
18555fi
18556rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18557fi
18558fi
18559rm -f conftest.val
18560if test "$cross_compiling" = yes; then
18561 # Depending upon the size, compute the lo and hi bounds.
18562cat >conftest.$ac_ext <<_ACEOF
18563/* confdefs.h. */
18564_ACEOF
18565cat confdefs.h >>conftest.$ac_ext
18566cat >>conftest.$ac_ext <<_ACEOF
18567/* end confdefs.h. */
18568
18569int
18570main ()
18571{
18572static int test_array [1 - 2 * !((__alignof (omp_lock_t)) >= 0)];
18573test_array [0] = 0
18574
18575 ;
18576 return 0;
18577}
18578_ACEOF
18579rm -f conftest.$ac_objext
18580if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18581 (eval $ac_compile) 2>conftest.er1
18582 ac_status=$?
18583 grep -v '^ *+' conftest.er1 >conftest.err
18584 rm -f conftest.er1
18585 cat conftest.err >&5
18586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18587 (exit $ac_status); } &&
59da30e1 18588 { ac_try='test -z "$ac_c_werror_flag"
18589 || test ! -s conftest.err'
107c3bbf 18590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18591 (eval $ac_try) 2>&5
18592 ac_status=$?
18593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18594 (exit $ac_status); }; } &&
18595 { ac_try='test -s conftest.$ac_objext'
18596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18597 (eval $ac_try) 2>&5
18598 ac_status=$?
18599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18600 (exit $ac_status); }; }; then
18601 ac_lo=0 ac_mid=0
18602 while :; do
18603 cat >conftest.$ac_ext <<_ACEOF
18604/* confdefs.h. */
18605_ACEOF
18606cat confdefs.h >>conftest.$ac_ext
18607cat >>conftest.$ac_ext <<_ACEOF
18608/* end confdefs.h. */
18609
18610int
18611main ()
18612{
18613static int test_array [1 - 2 * !((__alignof (omp_lock_t)) <= $ac_mid)];
18614test_array [0] = 0
18615
18616 ;
18617 return 0;
18618}
18619_ACEOF
18620rm -f conftest.$ac_objext
18621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18622 (eval $ac_compile) 2>conftest.er1
18623 ac_status=$?
18624 grep -v '^ *+' conftest.er1 >conftest.err
18625 rm -f conftest.er1
18626 cat conftest.err >&5
18627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18628 (exit $ac_status); } &&
59da30e1 18629 { ac_try='test -z "$ac_c_werror_flag"
18630 || test ! -s conftest.err'
107c3bbf 18631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18632 (eval $ac_try) 2>&5
18633 ac_status=$?
18634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18635 (exit $ac_status); }; } &&
18636 { ac_try='test -s conftest.$ac_objext'
18637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18638 (eval $ac_try) 2>&5
18639 ac_status=$?
18640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18641 (exit $ac_status); }; }; then
18642 ac_hi=$ac_mid; break
18643else
18644 echo "$as_me: failed program was:" >&5
18645sed 's/^/| /' conftest.$ac_ext >&5
18646
18647ac_lo=`expr $ac_mid + 1`
18648 if test $ac_lo -le $ac_mid; then
18649 ac_lo= ac_hi=
18650 break
18651 fi
18652 ac_mid=`expr 2 '*' $ac_mid + 1`
18653fi
18654rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18655 done
18656else
18657 echo "$as_me: failed program was:" >&5
18658sed 's/^/| /' conftest.$ac_ext >&5
18659
18660cat >conftest.$ac_ext <<_ACEOF
18661/* confdefs.h. */
18662_ACEOF
18663cat confdefs.h >>conftest.$ac_ext
18664cat >>conftest.$ac_ext <<_ACEOF
18665/* end confdefs.h. */
18666
18667int
18668main ()
18669{
18670static int test_array [1 - 2 * !((__alignof (omp_lock_t)) < 0)];
18671test_array [0] = 0
18672
18673 ;
18674 return 0;
18675}
18676_ACEOF
18677rm -f conftest.$ac_objext
18678if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18679 (eval $ac_compile) 2>conftest.er1
18680 ac_status=$?
18681 grep -v '^ *+' conftest.er1 >conftest.err
18682 rm -f conftest.er1
18683 cat conftest.err >&5
18684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18685 (exit $ac_status); } &&
59da30e1 18686 { ac_try='test -z "$ac_c_werror_flag"
18687 || test ! -s conftest.err'
107c3bbf 18688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18689 (eval $ac_try) 2>&5
18690 ac_status=$?
18691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18692 (exit $ac_status); }; } &&
18693 { ac_try='test -s conftest.$ac_objext'
18694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18695 (eval $ac_try) 2>&5
18696 ac_status=$?
18697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18698 (exit $ac_status); }; }; then
18699 ac_hi=-1 ac_mid=-1
18700 while :; do
18701 cat >conftest.$ac_ext <<_ACEOF
18702/* confdefs.h. */
18703_ACEOF
18704cat confdefs.h >>conftest.$ac_ext
18705cat >>conftest.$ac_ext <<_ACEOF
18706/* end confdefs.h. */
18707
18708int
18709main ()
18710{
18711static int test_array [1 - 2 * !((__alignof (omp_lock_t)) >= $ac_mid)];
18712test_array [0] = 0
18713
18714 ;
18715 return 0;
18716}
18717_ACEOF
18718rm -f conftest.$ac_objext
18719if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18720 (eval $ac_compile) 2>conftest.er1
18721 ac_status=$?
18722 grep -v '^ *+' conftest.er1 >conftest.err
18723 rm -f conftest.er1
18724 cat conftest.err >&5
18725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18726 (exit $ac_status); } &&
59da30e1 18727 { ac_try='test -z "$ac_c_werror_flag"
18728 || test ! -s conftest.err'
107c3bbf 18729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18730 (eval $ac_try) 2>&5
18731 ac_status=$?
18732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18733 (exit $ac_status); }; } &&
18734 { ac_try='test -s conftest.$ac_objext'
18735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18736 (eval $ac_try) 2>&5
18737 ac_status=$?
18738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18739 (exit $ac_status); }; }; then
18740 ac_lo=$ac_mid; break
18741else
18742 echo "$as_me: failed program was:" >&5
18743sed 's/^/| /' conftest.$ac_ext >&5
18744
18745ac_hi=`expr '(' $ac_mid ')' - 1`
18746 if test $ac_mid -le $ac_hi; then
18747 ac_lo= ac_hi=
18748 break
18749 fi
18750 ac_mid=`expr 2 '*' $ac_mid`
18751fi
18752rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18753 done
18754else
18755 echo "$as_me: failed program was:" >&5
18756sed 's/^/| /' conftest.$ac_ext >&5
18757
18758ac_lo= ac_hi=
18759fi
18760rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18761fi
18762rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18763# Binary search between lo and hi bounds.
18764while test "x$ac_lo" != "x$ac_hi"; do
18765 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18766 cat >conftest.$ac_ext <<_ACEOF
18767/* confdefs.h. */
18768_ACEOF
18769cat confdefs.h >>conftest.$ac_ext
18770cat >>conftest.$ac_ext <<_ACEOF
18771/* end confdefs.h. */
18772
18773int
18774main ()
18775{
18776static int test_array [1 - 2 * !((__alignof (omp_lock_t)) <= $ac_mid)];
18777test_array [0] = 0
18778
18779 ;
18780 return 0;
18781}
18782_ACEOF
18783rm -f conftest.$ac_objext
18784if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18785 (eval $ac_compile) 2>conftest.er1
18786 ac_status=$?
18787 grep -v '^ *+' conftest.er1 >conftest.err
18788 rm -f conftest.er1
18789 cat conftest.err >&5
18790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18791 (exit $ac_status); } &&
59da30e1 18792 { ac_try='test -z "$ac_c_werror_flag"
18793 || test ! -s conftest.err'
107c3bbf 18794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18795 (eval $ac_try) 2>&5
18796 ac_status=$?
18797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18798 (exit $ac_status); }; } &&
18799 { ac_try='test -s conftest.$ac_objext'
18800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18801 (eval $ac_try) 2>&5
18802 ac_status=$?
18803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18804 (exit $ac_status); }; }; then
18805 ac_hi=$ac_mid
18806else
18807 echo "$as_me: failed program was:" >&5
18808sed 's/^/| /' conftest.$ac_ext >&5
18809
18810ac_lo=`expr '(' $ac_mid ')' + 1`
18811fi
18812rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18813done
18814case $ac_lo in
18815?*) OMP_LOCK_ALIGN=$ac_lo;;
18816'') ;;
18817esac
18818else
18819 if test "$cross_compiling" = yes; then
5b2c7553 18820 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18821echo "$as_me: error: in \`$ac_pwd':" >&2;}
18822{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
59da30e1 18823See \`config.log' for more details." >&5
18824echo "$as_me: error: cannot run test program while cross compiling
18825See \`config.log' for more details." >&2;}
5b2c7553 18826 { (exit 1); exit 1; }; }; }
107c3bbf 18827else
18828 cat >conftest.$ac_ext <<_ACEOF
18829/* confdefs.h. */
18830_ACEOF
18831cat confdefs.h >>conftest.$ac_ext
18832cat >>conftest.$ac_ext <<_ACEOF
18833/* end confdefs.h. */
18834
18835long longval () { return __alignof (omp_lock_t); }
18836unsigned long ulongval () { return __alignof (omp_lock_t); }
18837#include <stdio.h>
18838#include <stdlib.h>
18839int
18840main ()
18841{
18842
18843 FILE *f = fopen ("conftest.val", "w");
18844 if (! f)
18845 exit (1);
18846 if ((__alignof (omp_lock_t)) < 0)
18847 {
18848 long i = longval ();
18849 if (i != (__alignof (omp_lock_t)))
18850 exit (1);
18851 fprintf (f, "%ld\n", i);
18852 }
18853 else
18854 {
18855 unsigned long i = ulongval ();
18856 if (i != (__alignof (omp_lock_t)))
18857 exit (1);
18858 fprintf (f, "%lu\n", i);
18859 }
18860 exit (ferror (f) || fclose (f) != 0);
18861
18862 ;
18863 return 0;
18864}
18865_ACEOF
18866rm -f conftest$ac_exeext
18867if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18868 (eval $ac_link) 2>&5
18869 ac_status=$?
18870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18871 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18873 (eval $ac_try) 2>&5
18874 ac_status=$?
18875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18876 (exit $ac_status); }; }; then
18877 OMP_LOCK_ALIGN=`cat conftest.val`
18878else
18879 echo "$as_me: program exited with status $ac_status" >&5
18880echo "$as_me: failed program was:" >&5
18881sed 's/^/| /' conftest.$ac_ext >&5
18882
18883fi
18884rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18885fi
18886fi
18887rm -f conftest.val
18888if test "$cross_compiling" = yes; then
18889 # Depending upon the size, compute the lo and hi bounds.
18890cat >conftest.$ac_ext <<_ACEOF
18891/* confdefs.h. */
18892_ACEOF
18893cat confdefs.h >>conftest.$ac_ext
18894cat >>conftest.$ac_ext <<_ACEOF
18895/* end confdefs.h. */
18896
18897int
18898main ()
18899{
18900static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) >= 0)];
18901test_array [0] = 0
18902
18903 ;
18904 return 0;
18905}
18906_ACEOF
18907rm -f conftest.$ac_objext
18908if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18909 (eval $ac_compile) 2>conftest.er1
18910 ac_status=$?
18911 grep -v '^ *+' conftest.er1 >conftest.err
18912 rm -f conftest.er1
18913 cat conftest.err >&5
18914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18915 (exit $ac_status); } &&
59da30e1 18916 { ac_try='test -z "$ac_c_werror_flag"
18917 || test ! -s conftest.err'
107c3bbf 18918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18919 (eval $ac_try) 2>&5
18920 ac_status=$?
18921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18922 (exit $ac_status); }; } &&
18923 { ac_try='test -s conftest.$ac_objext'
18924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18925 (eval $ac_try) 2>&5
18926 ac_status=$?
18927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18928 (exit $ac_status); }; }; then
18929 ac_lo=0 ac_mid=0
18930 while :; do
18931 cat >conftest.$ac_ext <<_ACEOF
18932/* confdefs.h. */
18933_ACEOF
18934cat confdefs.h >>conftest.$ac_ext
18935cat >>conftest.$ac_ext <<_ACEOF
18936/* end confdefs.h. */
18937
18938int
18939main ()
18940{
18941static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) <= $ac_mid)];
18942test_array [0] = 0
18943
18944 ;
18945 return 0;
18946}
18947_ACEOF
18948rm -f conftest.$ac_objext
18949if { (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); } &&
59da30e1 18957 { ac_try='test -z "$ac_c_werror_flag"
18958 || test ! -s conftest.err'
107c3bbf 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_hi=$ac_mid; break
18971else
18972 echo "$as_me: failed program was:" >&5
18973sed 's/^/| /' conftest.$ac_ext >&5
18974
18975ac_lo=`expr $ac_mid + 1`
18976 if test $ac_lo -le $ac_mid; then
18977 ac_lo= ac_hi=
18978 break
18979 fi
18980 ac_mid=`expr 2 '*' $ac_mid + 1`
18981fi
18982rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18983 done
18984else
18985 echo "$as_me: failed program was:" >&5
18986sed 's/^/| /' conftest.$ac_ext >&5
18987
18988cat >conftest.$ac_ext <<_ACEOF
18989/* confdefs.h. */
18990_ACEOF
18991cat confdefs.h >>conftest.$ac_ext
18992cat >>conftest.$ac_ext <<_ACEOF
18993/* end confdefs.h. */
18994
18995int
18996main ()
18997{
18998static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) < 0)];
18999test_array [0] = 0
19000
19001 ;
19002 return 0;
19003}
19004_ACEOF
19005rm -f conftest.$ac_objext
19006if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19007 (eval $ac_compile) 2>conftest.er1
19008 ac_status=$?
19009 grep -v '^ *+' conftest.er1 >conftest.err
19010 rm -f conftest.er1
19011 cat conftest.err >&5
19012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19013 (exit $ac_status); } &&
59da30e1 19014 { ac_try='test -z "$ac_c_werror_flag"
19015 || test ! -s conftest.err'
107c3bbf 19016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19017 (eval $ac_try) 2>&5
19018 ac_status=$?
19019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19020 (exit $ac_status); }; } &&
19021 { ac_try='test -s conftest.$ac_objext'
19022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19023 (eval $ac_try) 2>&5
19024 ac_status=$?
19025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19026 (exit $ac_status); }; }; then
19027 ac_hi=-1 ac_mid=-1
19028 while :; do
19029 cat >conftest.$ac_ext <<_ACEOF
19030/* confdefs.h. */
19031_ACEOF
19032cat confdefs.h >>conftest.$ac_ext
19033cat >>conftest.$ac_ext <<_ACEOF
19034/* end confdefs.h. */
19035
19036int
19037main ()
19038{
19039static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) >= $ac_mid)];
19040test_array [0] = 0
19041
19042 ;
19043 return 0;
19044}
19045_ACEOF
19046rm -f conftest.$ac_objext
19047if { (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); } &&
59da30e1 19055 { ac_try='test -z "$ac_c_werror_flag"
19056 || test ! -s conftest.err'
107c3bbf 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_lo=$ac_mid; break
19069else
19070 echo "$as_me: failed program was:" >&5
19071sed 's/^/| /' conftest.$ac_ext >&5
19072
19073ac_hi=`expr '(' $ac_mid ')' - 1`
19074 if test $ac_mid -le $ac_hi; then
19075 ac_lo= ac_hi=
19076 break
19077 fi
19078 ac_mid=`expr 2 '*' $ac_mid`
19079fi
19080rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19081 done
19082else
19083 echo "$as_me: failed program was:" >&5
19084sed 's/^/| /' conftest.$ac_ext >&5
19085
19086ac_lo= ac_hi=
19087fi
19088rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19089fi
19090rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19091# Binary search between lo and hi bounds.
19092while test "x$ac_lo" != "x$ac_hi"; do
19093 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19094 cat >conftest.$ac_ext <<_ACEOF
19095/* confdefs.h. */
19096_ACEOF
19097cat confdefs.h >>conftest.$ac_ext
19098cat >>conftest.$ac_ext <<_ACEOF
19099/* end confdefs.h. */
19100
19101int
19102main ()
19103{
19104static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) <= $ac_mid)];
19105test_array [0] = 0
19106
19107 ;
19108 return 0;
19109}
19110_ACEOF
19111rm -f conftest.$ac_objext
19112if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19113 (eval $ac_compile) 2>conftest.er1
19114 ac_status=$?
19115 grep -v '^ *+' conftest.er1 >conftest.err
19116 rm -f conftest.er1
19117 cat conftest.err >&5
19118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19119 (exit $ac_status); } &&
59da30e1 19120 { ac_try='test -z "$ac_c_werror_flag"
19121 || test ! -s conftest.err'
107c3bbf 19122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19123 (eval $ac_try) 2>&5
19124 ac_status=$?
19125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19126 (exit $ac_status); }; } &&
19127 { ac_try='test -s conftest.$ac_objext'
19128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19129 (eval $ac_try) 2>&5
19130 ac_status=$?
19131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19132 (exit $ac_status); }; }; then
19133 ac_hi=$ac_mid
19134else
19135 echo "$as_me: failed program was:" >&5
19136sed 's/^/| /' conftest.$ac_ext >&5
19137
19138ac_lo=`expr '(' $ac_mid ')' + 1`
19139fi
19140rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19141done
19142case $ac_lo in
19143?*) OMP_NEST_LOCK_SIZE=$ac_lo;;
19144'') ;;
19145esac
19146else
19147 if test "$cross_compiling" = yes; then
5b2c7553 19148 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19149echo "$as_me: error: in \`$ac_pwd':" >&2;}
19150{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
59da30e1 19151See \`config.log' for more details." >&5
19152echo "$as_me: error: cannot run test program while cross compiling
19153See \`config.log' for more details." >&2;}
5b2c7553 19154 { (exit 1); exit 1; }; }; }
107c3bbf 19155else
19156 cat >conftest.$ac_ext <<_ACEOF
19157/* confdefs.h. */
19158_ACEOF
19159cat confdefs.h >>conftest.$ac_ext
19160cat >>conftest.$ac_ext <<_ACEOF
19161/* end confdefs.h. */
19162
19163long longval () { return sizeof (omp_nest_lock_t); }
19164unsigned long ulongval () { return sizeof (omp_nest_lock_t); }
19165#include <stdio.h>
19166#include <stdlib.h>
19167int
19168main ()
19169{
19170
19171 FILE *f = fopen ("conftest.val", "w");
19172 if (! f)
19173 exit (1);
19174 if ((sizeof (omp_nest_lock_t)) < 0)
19175 {
19176 long i = longval ();
19177 if (i != (sizeof (omp_nest_lock_t)))
19178 exit (1);
19179 fprintf (f, "%ld\n", i);
19180 }
19181 else
19182 {
19183 unsigned long i = ulongval ();
19184 if (i != (sizeof (omp_nest_lock_t)))
19185 exit (1);
19186 fprintf (f, "%lu\n", i);
19187 }
19188 exit (ferror (f) || fclose (f) != 0);
19189
19190 ;
19191 return 0;
19192}
19193_ACEOF
19194rm -f conftest$ac_exeext
19195if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19196 (eval $ac_link) 2>&5
19197 ac_status=$?
19198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19199 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19201 (eval $ac_try) 2>&5
19202 ac_status=$?
19203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19204 (exit $ac_status); }; }; then
19205 OMP_NEST_LOCK_SIZE=`cat conftest.val`
19206else
19207 echo "$as_me: program exited with status $ac_status" >&5
19208echo "$as_me: failed program was:" >&5
19209sed 's/^/| /' conftest.$ac_ext >&5
19210
19211fi
19212rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19213fi
19214fi
19215rm -f conftest.val
19216if test "$cross_compiling" = yes; then
19217 # Depending upon the size, compute the lo and hi bounds.
19218cat >conftest.$ac_ext <<_ACEOF
19219/* confdefs.h. */
19220_ACEOF
19221cat confdefs.h >>conftest.$ac_ext
19222cat >>conftest.$ac_ext <<_ACEOF
19223/* end confdefs.h. */
19224
19225int
19226main ()
19227{
19228static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) >= 0)];
19229test_array [0] = 0
19230
19231 ;
19232 return 0;
19233}
19234_ACEOF
19235rm -f conftest.$ac_objext
19236if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19237 (eval $ac_compile) 2>conftest.er1
19238 ac_status=$?
19239 grep -v '^ *+' conftest.er1 >conftest.err
19240 rm -f conftest.er1
19241 cat conftest.err >&5
19242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19243 (exit $ac_status); } &&
59da30e1 19244 { ac_try='test -z "$ac_c_werror_flag"
19245 || test ! -s conftest.err'
107c3bbf 19246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19247 (eval $ac_try) 2>&5
19248 ac_status=$?
19249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19250 (exit $ac_status); }; } &&
19251 { ac_try='test -s conftest.$ac_objext'
19252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19253 (eval $ac_try) 2>&5
19254 ac_status=$?
19255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19256 (exit $ac_status); }; }; then
19257 ac_lo=0 ac_mid=0
19258 while :; do
19259 cat >conftest.$ac_ext <<_ACEOF
19260/* confdefs.h. */
19261_ACEOF
19262cat confdefs.h >>conftest.$ac_ext
19263cat >>conftest.$ac_ext <<_ACEOF
19264/* end confdefs.h. */
19265
19266int
19267main ()
19268{
19269static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) <= $ac_mid)];
19270test_array [0] = 0
19271
19272 ;
19273 return 0;
19274}
19275_ACEOF
19276rm -f conftest.$ac_objext
19277if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19278 (eval $ac_compile) 2>conftest.er1
19279 ac_status=$?
19280 grep -v '^ *+' conftest.er1 >conftest.err
19281 rm -f conftest.er1
19282 cat conftest.err >&5
19283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19284 (exit $ac_status); } &&
59da30e1 19285 { ac_try='test -z "$ac_c_werror_flag"
19286 || test ! -s conftest.err'
107c3bbf 19287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19288 (eval $ac_try) 2>&5
19289 ac_status=$?
19290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19291 (exit $ac_status); }; } &&
19292 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19298 ac_hi=$ac_mid; break
19299else
19300 echo "$as_me: failed program was:" >&5
19301sed 's/^/| /' conftest.$ac_ext >&5
19302
19303ac_lo=`expr $ac_mid + 1`
19304 if test $ac_lo -le $ac_mid; then
19305 ac_lo= ac_hi=
19306 break
19307 fi
19308 ac_mid=`expr 2 '*' $ac_mid + 1`
19309fi
19310rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19311 done
19312else
19313 echo "$as_me: failed program was:" >&5
19314sed 's/^/| /' conftest.$ac_ext >&5
19315
19316cat >conftest.$ac_ext <<_ACEOF
19317/* confdefs.h. */
19318_ACEOF
19319cat confdefs.h >>conftest.$ac_ext
19320cat >>conftest.$ac_ext <<_ACEOF
19321/* end confdefs.h. */
19322
19323int
19324main ()
19325{
19326static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) < 0)];
19327test_array [0] = 0
19328
19329 ;
19330 return 0;
19331}
19332_ACEOF
19333rm -f conftest.$ac_objext
19334if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19335 (eval $ac_compile) 2>conftest.er1
19336 ac_status=$?
19337 grep -v '^ *+' conftest.er1 >conftest.err
19338 rm -f conftest.er1
19339 cat conftest.err >&5
19340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19341 (exit $ac_status); } &&
59da30e1 19342 { ac_try='test -z "$ac_c_werror_flag"
19343 || test ! -s conftest.err'
107c3bbf 19344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19345 (eval $ac_try) 2>&5
19346 ac_status=$?
19347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19348 (exit $ac_status); }; } &&
19349 { ac_try='test -s conftest.$ac_objext'
19350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19351 (eval $ac_try) 2>&5
19352 ac_status=$?
19353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19354 (exit $ac_status); }; }; then
19355 ac_hi=-1 ac_mid=-1
19356 while :; do
19357 cat >conftest.$ac_ext <<_ACEOF
19358/* confdefs.h. */
19359_ACEOF
19360cat confdefs.h >>conftest.$ac_ext
19361cat >>conftest.$ac_ext <<_ACEOF
19362/* end confdefs.h. */
19363
19364int
19365main ()
19366{
19367static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) >= $ac_mid)];
19368test_array [0] = 0
19369
19370 ;
19371 return 0;
19372}
19373_ACEOF
19374rm -f conftest.$ac_objext
19375if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19376 (eval $ac_compile) 2>conftest.er1
19377 ac_status=$?
19378 grep -v '^ *+' conftest.er1 >conftest.err
19379 rm -f conftest.er1
19380 cat conftest.err >&5
19381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19382 (exit $ac_status); } &&
59da30e1 19383 { ac_try='test -z "$ac_c_werror_flag"
19384 || test ! -s conftest.err'
107c3bbf 19385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19386 (eval $ac_try) 2>&5
19387 ac_status=$?
19388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19389 (exit $ac_status); }; } &&
19390 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19396 ac_lo=$ac_mid; break
19397else
19398 echo "$as_me: failed program was:" >&5
19399sed 's/^/| /' conftest.$ac_ext >&5
19400
19401ac_hi=`expr '(' $ac_mid ')' - 1`
19402 if test $ac_mid -le $ac_hi; then
19403 ac_lo= ac_hi=
19404 break
19405 fi
19406 ac_mid=`expr 2 '*' $ac_mid`
19407fi
19408rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19409 done
19410else
19411 echo "$as_me: failed program was:" >&5
19412sed 's/^/| /' conftest.$ac_ext >&5
19413
19414ac_lo= ac_hi=
19415fi
19416rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19417fi
19418rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19419# Binary search between lo and hi bounds.
19420while test "x$ac_lo" != "x$ac_hi"; do
19421 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19422 cat >conftest.$ac_ext <<_ACEOF
19423/* confdefs.h. */
19424_ACEOF
19425cat confdefs.h >>conftest.$ac_ext
19426cat >>conftest.$ac_ext <<_ACEOF
19427/* end confdefs.h. */
19428
19429int
19430main ()
19431{
19432static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) <= $ac_mid)];
19433test_array [0] = 0
19434
19435 ;
19436 return 0;
19437}
19438_ACEOF
19439rm -f conftest.$ac_objext
19440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19441 (eval $ac_compile) 2>conftest.er1
19442 ac_status=$?
19443 grep -v '^ *+' conftest.er1 >conftest.err
19444 rm -f conftest.er1
19445 cat conftest.err >&5
19446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19447 (exit $ac_status); } &&
59da30e1 19448 { ac_try='test -z "$ac_c_werror_flag"
19449 || test ! -s conftest.err'
107c3bbf 19450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19451 (eval $ac_try) 2>&5
19452 ac_status=$?
19453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19454 (exit $ac_status); }; } &&
19455 { ac_try='test -s conftest.$ac_objext'
19456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19457 (eval $ac_try) 2>&5
19458 ac_status=$?
19459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19460 (exit $ac_status); }; }; then
19461 ac_hi=$ac_mid
19462else
19463 echo "$as_me: failed program was:" >&5
19464sed 's/^/| /' conftest.$ac_ext >&5
19465
19466ac_lo=`expr '(' $ac_mid ')' + 1`
19467fi
19468rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19469done
19470case $ac_lo in
19471?*) OMP_NEST_LOCK_ALIGN=$ac_lo;;
19472'') ;;
19473esac
19474else
19475 if test "$cross_compiling" = yes; then
5b2c7553 19476 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19477echo "$as_me: error: in \`$ac_pwd':" >&2;}
19478{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
59da30e1 19479See \`config.log' for more details." >&5
19480echo "$as_me: error: cannot run test program while cross compiling
19481See \`config.log' for more details." >&2;}
5b2c7553 19482 { (exit 1); exit 1; }; }; }
107c3bbf 19483else
19484 cat >conftest.$ac_ext <<_ACEOF
19485/* confdefs.h. */
19486_ACEOF
19487cat confdefs.h >>conftest.$ac_ext
19488cat >>conftest.$ac_ext <<_ACEOF
19489/* end confdefs.h. */
19490
19491long longval () { return __alignof (omp_nest_lock_t); }
19492unsigned long ulongval () { return __alignof (omp_nest_lock_t); }
19493#include <stdio.h>
19494#include <stdlib.h>
19495int
19496main ()
19497{
19498
19499 FILE *f = fopen ("conftest.val", "w");
19500 if (! f)
19501 exit (1);
19502 if ((__alignof (omp_nest_lock_t)) < 0)
19503 {
19504 long i = longval ();
19505 if (i != (__alignof (omp_nest_lock_t)))
19506 exit (1);
19507 fprintf (f, "%ld\n", i);
19508 }
19509 else
19510 {
19511 unsigned long i = ulongval ();
19512 if (i != (__alignof (omp_nest_lock_t)))
19513 exit (1);
19514 fprintf (f, "%lu\n", i);
19515 }
19516 exit (ferror (f) || fclose (f) != 0);
19517
19518 ;
19519 return 0;
19520}
19521_ACEOF
19522rm -f conftest$ac_exeext
19523if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19524 (eval $ac_link) 2>&5
19525 ac_status=$?
19526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19527 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19529 (eval $ac_try) 2>&5
19530 ac_status=$?
19531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19532 (exit $ac_status); }; }; then
19533 OMP_NEST_LOCK_ALIGN=`cat conftest.val`
19534else
19535 echo "$as_me: program exited with status $ac_status" >&5
19536echo "$as_me: failed program was:" >&5
19537sed 's/^/| /' conftest.$ac_ext >&5
19538
19539fi
19540rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19541fi
19542fi
19543rm -f conftest.val
fd6481cf 19544if test "$cross_compiling" = yes; then
19545 # Depending upon the size, compute the lo and hi bounds.
19546cat >conftest.$ac_ext <<_ACEOF
19547/* confdefs.h. */
19548_ACEOF
19549cat confdefs.h >>conftest.$ac_ext
19550cat >>conftest.$ac_ext <<_ACEOF
19551/* end confdefs.h. */
107c3bbf 19552
fd6481cf 19553int
19554main ()
19555{
19556static int test_array [1 - 2 * !((sizeof (omp_lock_25_t)) >= 0)];
19557test_array [0] = 0
19558
19559 ;
19560 return 0;
19561}
19562_ACEOF
19563rm -f conftest.$ac_objext
19564if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19565 (eval $ac_compile) 2>conftest.er1
19566 ac_status=$?
19567 grep -v '^ *+' conftest.er1 >conftest.err
19568 rm -f conftest.er1
19569 cat conftest.err >&5
19570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19571 (exit $ac_status); } &&
19572 { ac_try='test -z "$ac_c_werror_flag"
19573 || test ! -s conftest.err'
19574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19575 (eval $ac_try) 2>&5
19576 ac_status=$?
19577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19578 (exit $ac_status); }; } &&
19579 { ac_try='test -s conftest.$ac_objext'
19580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19581 (eval $ac_try) 2>&5
19582 ac_status=$?
19583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19584 (exit $ac_status); }; }; then
19585 ac_lo=0 ac_mid=0
19586 while :; do
19587 cat >conftest.$ac_ext <<_ACEOF
19588/* confdefs.h. */
19589_ACEOF
19590cat confdefs.h >>conftest.$ac_ext
19591cat >>conftest.$ac_ext <<_ACEOF
19592/* end confdefs.h. */
19593
19594int
19595main ()
19596{
19597static int test_array [1 - 2 * !((sizeof (omp_lock_25_t)) <= $ac_mid)];
19598test_array [0] = 0
19599
19600 ;
19601 return 0;
19602}
19603_ACEOF
19604rm -f conftest.$ac_objext
19605if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19606 (eval $ac_compile) 2>conftest.er1
19607 ac_status=$?
19608 grep -v '^ *+' conftest.er1 >conftest.err
19609 rm -f conftest.er1
19610 cat conftest.err >&5
19611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19612 (exit $ac_status); } &&
19613 { ac_try='test -z "$ac_c_werror_flag"
19614 || test ! -s conftest.err'
19615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19616 (eval $ac_try) 2>&5
19617 ac_status=$?
19618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19619 (exit $ac_status); }; } &&
19620 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19626 ac_hi=$ac_mid; break
19627else
19628 echo "$as_me: failed program was:" >&5
19629sed 's/^/| /' conftest.$ac_ext >&5
19630
19631ac_lo=`expr $ac_mid + 1`
19632 if test $ac_lo -le $ac_mid; then
19633 ac_lo= ac_hi=
19634 break
19635 fi
19636 ac_mid=`expr 2 '*' $ac_mid + 1`
107c3bbf 19637fi
fd6481cf 19638rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19639 done
19640else
19641 echo "$as_me: failed program was:" >&5
19642sed 's/^/| /' conftest.$ac_ext >&5
19643
19644cat >conftest.$ac_ext <<_ACEOF
19645/* confdefs.h. */
19646_ACEOF
19647cat confdefs.h >>conftest.$ac_ext
19648cat >>conftest.$ac_ext <<_ACEOF
19649/* end confdefs.h. */
19650
19651int
19652main ()
19653{
19654static int test_array [1 - 2 * !((sizeof (omp_lock_25_t)) < 0)];
19655test_array [0] = 0
19656
19657 ;
19658 return 0;
19659}
19660_ACEOF
19661rm -f conftest.$ac_objext
19662if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19663 (eval $ac_compile) 2>conftest.er1
19664 ac_status=$?
19665 grep -v '^ *+' conftest.er1 >conftest.err
19666 rm -f conftest.er1
19667 cat conftest.err >&5
19668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19669 (exit $ac_status); } &&
19670 { ac_try='test -z "$ac_c_werror_flag"
19671 || test ! -s conftest.err'
19672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19673 (eval $ac_try) 2>&5
19674 ac_status=$?
19675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19676 (exit $ac_status); }; } &&
19677 { ac_try='test -s conftest.$ac_objext'
19678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19679 (eval $ac_try) 2>&5
19680 ac_status=$?
19681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19682 (exit $ac_status); }; }; then
19683 ac_hi=-1 ac_mid=-1
19684 while :; do
19685 cat >conftest.$ac_ext <<_ACEOF
19686/* confdefs.h. */
19687_ACEOF
19688cat confdefs.h >>conftest.$ac_ext
19689cat >>conftest.$ac_ext <<_ACEOF
19690/* end confdefs.h. */
19691
19692int
19693main ()
19694{
19695static int test_array [1 - 2 * !((sizeof (omp_lock_25_t)) >= $ac_mid)];
19696test_array [0] = 0
19697
19698 ;
19699 return 0;
19700}
19701_ACEOF
19702rm -f conftest.$ac_objext
19703if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19704 (eval $ac_compile) 2>conftest.er1
19705 ac_status=$?
19706 grep -v '^ *+' conftest.er1 >conftest.err
19707 rm -f conftest.er1
19708 cat conftest.err >&5
19709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19710 (exit $ac_status); } &&
19711 { ac_try='test -z "$ac_c_werror_flag"
19712 || test ! -s conftest.err'
19713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19714 (eval $ac_try) 2>&5
19715 ac_status=$?
19716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19717 (exit $ac_status); }; } &&
19718 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19724 ac_lo=$ac_mid; break
19725else
19726 echo "$as_me: failed program was:" >&5
19727sed 's/^/| /' conftest.$ac_ext >&5
19728
19729ac_hi=`expr '(' $ac_mid ')' - 1`
19730 if test $ac_mid -le $ac_hi; then
19731 ac_lo= ac_hi=
19732 break
19733 fi
19734 ac_mid=`expr 2 '*' $ac_mid`
19735fi
19736rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19737 done
19738else
19739 echo "$as_me: failed program was:" >&5
19740sed 's/^/| /' conftest.$ac_ext >&5
19741
19742ac_lo= ac_hi=
19743fi
19744rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
107c3bbf 19745fi
fd6481cf 19746rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19747# Binary search between lo and hi bounds.
19748while test "x$ac_lo" != "x$ac_hi"; do
19749 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19750 cat >conftest.$ac_ext <<_ACEOF
19751/* confdefs.h. */
19752_ACEOF
19753cat confdefs.h >>conftest.$ac_ext
19754cat >>conftest.$ac_ext <<_ACEOF
19755/* end confdefs.h. */
19756
19757int
19758main ()
19759{
19760static int test_array [1 - 2 * !((sizeof (omp_lock_25_t)) <= $ac_mid)];
19761test_array [0] = 0
19762
19763 ;
19764 return 0;
19765}
19766_ACEOF
19767rm -f conftest.$ac_objext
19768if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19769 (eval $ac_compile) 2>conftest.er1
19770 ac_status=$?
19771 grep -v '^ *+' conftest.er1 >conftest.err
19772 rm -f conftest.er1
19773 cat conftest.err >&5
19774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19775 (exit $ac_status); } &&
19776 { ac_try='test -z "$ac_c_werror_flag"
19777 || test ! -s conftest.err'
19778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19779 (eval $ac_try) 2>&5
19780 ac_status=$?
19781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19782 (exit $ac_status); }; } &&
19783 { ac_try='test -s conftest.$ac_objext'
19784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19785 (eval $ac_try) 2>&5
19786 ac_status=$?
19787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19788 (exit $ac_status); }; }; then
19789 ac_hi=$ac_mid
19790else
19791 echo "$as_me: failed program was:" >&5
19792sed 's/^/| /' conftest.$ac_ext >&5
19793
19794ac_lo=`expr '(' $ac_mid ')' + 1`
19795fi
19796rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19797done
19798case $ac_lo in
19799?*) OMP_LOCK_25_SIZE=$ac_lo;;
19800'') { { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_25_t)" >&5
19801echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_25_t)" >&2;}
19802 { (exit 1); exit 1; }; } ;;
19803esac
19804else
19805 if test "$cross_compiling" = yes; then
5b2c7553 19806 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19807echo "$as_me: error: in \`$ac_pwd':" >&2;}
19808{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
fd6481cf 19809See \`config.log' for more details." >&5
19810echo "$as_me: error: cannot run test program while cross compiling
19811See \`config.log' for more details." >&2;}
5b2c7553 19812 { (exit 1); exit 1; }; }; }
fd6481cf 19813else
19814 cat >conftest.$ac_ext <<_ACEOF
19815/* confdefs.h. */
19816_ACEOF
19817cat confdefs.h >>conftest.$ac_ext
19818cat >>conftest.$ac_ext <<_ACEOF
19819/* end confdefs.h. */
19820
19821long longval () { return sizeof (omp_lock_25_t); }
19822unsigned long ulongval () { return sizeof (omp_lock_25_t); }
19823#include <stdio.h>
19824#include <stdlib.h>
19825int
19826main ()
19827{
19828
19829 FILE *f = fopen ("conftest.val", "w");
19830 if (! f)
19831 exit (1);
19832 if ((sizeof (omp_lock_25_t)) < 0)
19833 {
19834 long i = longval ();
19835 if (i != (sizeof (omp_lock_25_t)))
19836 exit (1);
19837 fprintf (f, "%ld\n", i);
19838 }
19839 else
19840 {
19841 unsigned long i = ulongval ();
19842 if (i != (sizeof (omp_lock_25_t)))
19843 exit (1);
19844 fprintf (f, "%lu\n", i);
19845 }
19846 exit (ferror (f) || fclose (f) != 0);
19847
19848 ;
19849 return 0;
19850}
19851_ACEOF
19852rm -f conftest$ac_exeext
19853if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19854 (eval $ac_link) 2>&5
19855 ac_status=$?
19856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19857 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19859 (eval $ac_try) 2>&5
19860 ac_status=$?
19861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19862 (exit $ac_status); }; }; then
19863 OMP_LOCK_25_SIZE=`cat conftest.val`
19864else
19865 echo "$as_me: program exited with status $ac_status" >&5
19866echo "$as_me: failed program was:" >&5
19867sed 's/^/| /' conftest.$ac_ext >&5
19868
19869( exit $ac_status )
19870{ { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_25_t)" >&5
19871echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_25_t)" >&2;}
19872 { (exit 1); exit 1; }; }
19873fi
19874rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19875fi
19876fi
19877rm -f conftest.val
19878if test "$cross_compiling" = yes; then
19879 # Depending upon the size, compute the lo and hi bounds.
19880cat >conftest.$ac_ext <<_ACEOF
19881/* confdefs.h. */
19882_ACEOF
19883cat confdefs.h >>conftest.$ac_ext
19884cat >>conftest.$ac_ext <<_ACEOF
19885/* end confdefs.h. */
19886
19887int
19888main ()
19889{
19890static int test_array [1 - 2 * !((__alignof (omp_lock_25_t)) >= 0)];
19891test_array [0] = 0
19892
19893 ;
19894 return 0;
19895}
19896_ACEOF
19897rm -f conftest.$ac_objext
19898if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19899 (eval $ac_compile) 2>conftest.er1
19900 ac_status=$?
19901 grep -v '^ *+' conftest.er1 >conftest.err
19902 rm -f conftest.er1
19903 cat conftest.err >&5
19904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19905 (exit $ac_status); } &&
19906 { ac_try='test -z "$ac_c_werror_flag"
19907 || test ! -s conftest.err'
19908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19909 (eval $ac_try) 2>&5
19910 ac_status=$?
19911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19912 (exit $ac_status); }; } &&
19913 { ac_try='test -s conftest.$ac_objext'
19914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19915 (eval $ac_try) 2>&5
19916 ac_status=$?
19917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19918 (exit $ac_status); }; }; then
19919 ac_lo=0 ac_mid=0
19920 while :; do
19921 cat >conftest.$ac_ext <<_ACEOF
19922/* confdefs.h. */
19923_ACEOF
19924cat confdefs.h >>conftest.$ac_ext
19925cat >>conftest.$ac_ext <<_ACEOF
19926/* end confdefs.h. */
19927
19928int
19929main ()
19930{
19931static int test_array [1 - 2 * !((__alignof (omp_lock_25_t)) <= $ac_mid)];
19932test_array [0] = 0
19933
19934 ;
19935 return 0;
19936}
19937_ACEOF
19938rm -f conftest.$ac_objext
19939if { (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_hi=$ac_mid; break
19961else
19962 echo "$as_me: failed program was:" >&5
19963sed 's/^/| /' conftest.$ac_ext >&5
19964
19965ac_lo=`expr $ac_mid + 1`
19966 if test $ac_lo -le $ac_mid; then
19967 ac_lo= ac_hi=
19968 break
19969 fi
19970 ac_mid=`expr 2 '*' $ac_mid + 1`
19971fi
19972rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19973 done
19974else
19975 echo "$as_me: failed program was:" >&5
19976sed 's/^/| /' conftest.$ac_ext >&5
19977
19978cat >conftest.$ac_ext <<_ACEOF
19979/* confdefs.h. */
19980_ACEOF
19981cat confdefs.h >>conftest.$ac_ext
19982cat >>conftest.$ac_ext <<_ACEOF
19983/* end confdefs.h. */
19984
19985int
19986main ()
19987{
19988static int test_array [1 - 2 * !((__alignof (omp_lock_25_t)) < 0)];
19989test_array [0] = 0
19990
19991 ;
19992 return 0;
19993}
19994_ACEOF
19995rm -f conftest.$ac_objext
19996if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19997 (eval $ac_compile) 2>conftest.er1
19998 ac_status=$?
19999 grep -v '^ *+' conftest.er1 >conftest.err
20000 rm -f conftest.er1
20001 cat conftest.err >&5
20002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20003 (exit $ac_status); } &&
20004 { ac_try='test -z "$ac_c_werror_flag"
20005 || test ! -s conftest.err'
20006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20007 (eval $ac_try) 2>&5
20008 ac_status=$?
20009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20010 (exit $ac_status); }; } &&
20011 { ac_try='test -s conftest.$ac_objext'
20012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20013 (eval $ac_try) 2>&5
20014 ac_status=$?
20015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20016 (exit $ac_status); }; }; then
20017 ac_hi=-1 ac_mid=-1
20018 while :; do
20019 cat >conftest.$ac_ext <<_ACEOF
20020/* confdefs.h. */
20021_ACEOF
20022cat confdefs.h >>conftest.$ac_ext
20023cat >>conftest.$ac_ext <<_ACEOF
20024/* end confdefs.h. */
20025
20026int
20027main ()
20028{
20029static int test_array [1 - 2 * !((__alignof (omp_lock_25_t)) >= $ac_mid)];
20030test_array [0] = 0
20031
20032 ;
20033 return 0;
20034}
20035_ACEOF
20036rm -f conftest.$ac_objext
20037if { (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_lo=$ac_mid; break
20059else
20060 echo "$as_me: failed program was:" >&5
20061sed 's/^/| /' conftest.$ac_ext >&5
20062
20063ac_hi=`expr '(' $ac_mid ')' - 1`
20064 if test $ac_mid -le $ac_hi; then
20065 ac_lo= ac_hi=
20066 break
20067 fi
20068 ac_mid=`expr 2 '*' $ac_mid`
20069fi
20070rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20071 done
20072else
20073 echo "$as_me: failed program was:" >&5
20074sed 's/^/| /' conftest.$ac_ext >&5
20075
20076ac_lo= ac_hi=
20077fi
20078rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20079fi
20080rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20081# Binary search between lo and hi bounds.
20082while test "x$ac_lo" != "x$ac_hi"; do
20083 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20084 cat >conftest.$ac_ext <<_ACEOF
20085/* confdefs.h. */
20086_ACEOF
20087cat confdefs.h >>conftest.$ac_ext
20088cat >>conftest.$ac_ext <<_ACEOF
20089/* end confdefs.h. */
20090
20091int
20092main ()
20093{
20094static int test_array [1 - 2 * !((__alignof (omp_lock_25_t)) <= $ac_mid)];
20095test_array [0] = 0
20096
20097 ;
20098 return 0;
20099}
20100_ACEOF
20101rm -f conftest.$ac_objext
20102if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20103 (eval $ac_compile) 2>conftest.er1
20104 ac_status=$?
20105 grep -v '^ *+' conftest.er1 >conftest.err
20106 rm -f conftest.er1
20107 cat conftest.err >&5
20108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20109 (exit $ac_status); } &&
20110 { ac_try='test -z "$ac_c_werror_flag"
20111 || test ! -s conftest.err'
20112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20113 (eval $ac_try) 2>&5
20114 ac_status=$?
20115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20116 (exit $ac_status); }; } &&
20117 { ac_try='test -s conftest.$ac_objext'
20118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20119 (eval $ac_try) 2>&5
20120 ac_status=$?
20121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20122 (exit $ac_status); }; }; then
20123 ac_hi=$ac_mid
20124else
20125 echo "$as_me: failed program was:" >&5
20126sed 's/^/| /' conftest.$ac_ext >&5
20127
20128ac_lo=`expr '(' $ac_mid ')' + 1`
20129fi
20130rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20131done
20132case $ac_lo in
20133?*) OMP_LOCK_25_ALIGN=$ac_lo;;
20134'') ;;
20135esac
20136else
20137 if test "$cross_compiling" = yes; then
5b2c7553 20138 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20139echo "$as_me: error: in \`$ac_pwd':" >&2;}
20140{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
fd6481cf 20141See \`config.log' for more details." >&5
20142echo "$as_me: error: cannot run test program while cross compiling
20143See \`config.log' for more details." >&2;}
5b2c7553 20144 { (exit 1); exit 1; }; }; }
fd6481cf 20145else
20146 cat >conftest.$ac_ext <<_ACEOF
20147/* confdefs.h. */
20148_ACEOF
20149cat confdefs.h >>conftest.$ac_ext
20150cat >>conftest.$ac_ext <<_ACEOF
20151/* end confdefs.h. */
20152
20153long longval () { return __alignof (omp_lock_25_t); }
20154unsigned long ulongval () { return __alignof (omp_lock_25_t); }
20155#include <stdio.h>
20156#include <stdlib.h>
20157int
20158main ()
20159{
20160
20161 FILE *f = fopen ("conftest.val", "w");
20162 if (! f)
20163 exit (1);
20164 if ((__alignof (omp_lock_25_t)) < 0)
20165 {
20166 long i = longval ();
20167 if (i != (__alignof (omp_lock_25_t)))
20168 exit (1);
20169 fprintf (f, "%ld\n", i);
20170 }
20171 else
20172 {
20173 unsigned long i = ulongval ();
20174 if (i != (__alignof (omp_lock_25_t)))
20175 exit (1);
20176 fprintf (f, "%lu\n", i);
20177 }
20178 exit (ferror (f) || fclose (f) != 0);
20179
20180 ;
20181 return 0;
20182}
20183_ACEOF
20184rm -f conftest$ac_exeext
20185if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20186 (eval $ac_link) 2>&5
20187 ac_status=$?
20188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20189 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20191 (eval $ac_try) 2>&5
20192 ac_status=$?
20193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20194 (exit $ac_status); }; }; then
20195 OMP_LOCK_25_ALIGN=`cat conftest.val`
20196else
20197 echo "$as_me: program exited with status $ac_status" >&5
20198echo "$as_me: failed program was:" >&5
20199sed 's/^/| /' conftest.$ac_ext >&5
20200
20201fi
20202rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20203fi
20204fi
20205rm -f conftest.val
20206if test "$cross_compiling" = yes; then
20207 # Depending upon the size, compute the lo and hi bounds.
20208cat >conftest.$ac_ext <<_ACEOF
20209/* confdefs.h. */
20210_ACEOF
20211cat confdefs.h >>conftest.$ac_ext
20212cat >>conftest.$ac_ext <<_ACEOF
20213/* end confdefs.h. */
20214
20215int
20216main ()
20217{
20218static int test_array [1 - 2 * !((sizeof (omp_nest_lock_25_t)) >= 0)];
20219test_array [0] = 0
20220
20221 ;
20222 return 0;
20223}
20224_ACEOF
20225rm -f conftest.$ac_objext
20226if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20227 (eval $ac_compile) 2>conftest.er1
20228 ac_status=$?
20229 grep -v '^ *+' conftest.er1 >conftest.err
20230 rm -f conftest.er1
20231 cat conftest.err >&5
20232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20233 (exit $ac_status); } &&
20234 { ac_try='test -z "$ac_c_werror_flag"
20235 || test ! -s conftest.err'
20236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20237 (eval $ac_try) 2>&5
20238 ac_status=$?
20239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20240 (exit $ac_status); }; } &&
20241 { ac_try='test -s conftest.$ac_objext'
20242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20243 (eval $ac_try) 2>&5
20244 ac_status=$?
20245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20246 (exit $ac_status); }; }; then
20247 ac_lo=0 ac_mid=0
20248 while :; do
20249 cat >conftest.$ac_ext <<_ACEOF
20250/* confdefs.h. */
20251_ACEOF
20252cat confdefs.h >>conftest.$ac_ext
20253cat >>conftest.$ac_ext <<_ACEOF
20254/* end confdefs.h. */
20255
20256int
20257main ()
20258{
20259static int test_array [1 - 2 * !((sizeof (omp_nest_lock_25_t)) <= $ac_mid)];
20260test_array [0] = 0
20261
20262 ;
20263 return 0;
20264}
20265_ACEOF
20266rm -f conftest.$ac_objext
20267if { (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_hi=$ac_mid; break
20289else
20290 echo "$as_me: failed program was:" >&5
20291sed 's/^/| /' conftest.$ac_ext >&5
20292
20293ac_lo=`expr $ac_mid + 1`
20294 if test $ac_lo -le $ac_mid; then
20295 ac_lo= ac_hi=
20296 break
20297 fi
20298 ac_mid=`expr 2 '*' $ac_mid + 1`
20299fi
20300rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20301 done
20302else
20303 echo "$as_me: failed program was:" >&5
20304sed 's/^/| /' conftest.$ac_ext >&5
20305
20306cat >conftest.$ac_ext <<_ACEOF
20307/* confdefs.h. */
20308_ACEOF
20309cat confdefs.h >>conftest.$ac_ext
20310cat >>conftest.$ac_ext <<_ACEOF
20311/* end confdefs.h. */
20312
20313int
20314main ()
20315{
20316static int test_array [1 - 2 * !((sizeof (omp_nest_lock_25_t)) < 0)];
20317test_array [0] = 0
20318
20319 ;
20320 return 0;
20321}
20322_ACEOF
20323rm -f conftest.$ac_objext
20324if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20325 (eval $ac_compile) 2>conftest.er1
20326 ac_status=$?
20327 grep -v '^ *+' conftest.er1 >conftest.err
20328 rm -f conftest.er1
20329 cat conftest.err >&5
20330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20331 (exit $ac_status); } &&
20332 { ac_try='test -z "$ac_c_werror_flag"
20333 || test ! -s conftest.err'
20334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20335 (eval $ac_try) 2>&5
20336 ac_status=$?
20337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20338 (exit $ac_status); }; } &&
20339 { ac_try='test -s conftest.$ac_objext'
20340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20341 (eval $ac_try) 2>&5
20342 ac_status=$?
20343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20344 (exit $ac_status); }; }; then
20345 ac_hi=-1 ac_mid=-1
20346 while :; do
20347 cat >conftest.$ac_ext <<_ACEOF
20348/* confdefs.h. */
20349_ACEOF
20350cat confdefs.h >>conftest.$ac_ext
20351cat >>conftest.$ac_ext <<_ACEOF
20352/* end confdefs.h. */
20353
20354int
20355main ()
20356{
20357static int test_array [1 - 2 * !((sizeof (omp_nest_lock_25_t)) >= $ac_mid)];
20358test_array [0] = 0
20359
20360 ;
20361 return 0;
20362}
20363_ACEOF
20364rm -f conftest.$ac_objext
20365if { (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_lo=$ac_mid; break
20387else
20388 echo "$as_me: failed program was:" >&5
20389sed 's/^/| /' conftest.$ac_ext >&5
20390
20391ac_hi=`expr '(' $ac_mid ')' - 1`
20392 if test $ac_mid -le $ac_hi; then
20393 ac_lo= ac_hi=
20394 break
20395 fi
20396 ac_mid=`expr 2 '*' $ac_mid`
20397fi
20398rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20399 done
20400else
20401 echo "$as_me: failed program was:" >&5
20402sed 's/^/| /' conftest.$ac_ext >&5
20403
20404ac_lo= ac_hi=
20405fi
20406rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20407fi
20408rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20409# Binary search between lo and hi bounds.
20410while test "x$ac_lo" != "x$ac_hi"; do
20411 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20412 cat >conftest.$ac_ext <<_ACEOF
20413/* confdefs.h. */
20414_ACEOF
20415cat confdefs.h >>conftest.$ac_ext
20416cat >>conftest.$ac_ext <<_ACEOF
20417/* end confdefs.h. */
20418
20419int
20420main ()
20421{
20422static int test_array [1 - 2 * !((sizeof (omp_nest_lock_25_t)) <= $ac_mid)];
20423test_array [0] = 0
20424
20425 ;
20426 return 0;
20427}
20428_ACEOF
20429rm -f conftest.$ac_objext
20430if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20431 (eval $ac_compile) 2>conftest.er1
20432 ac_status=$?
20433 grep -v '^ *+' conftest.er1 >conftest.err
20434 rm -f conftest.er1
20435 cat conftest.err >&5
20436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20437 (exit $ac_status); } &&
20438 { ac_try='test -z "$ac_c_werror_flag"
20439 || test ! -s conftest.err'
20440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20441 (eval $ac_try) 2>&5
20442 ac_status=$?
20443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20444 (exit $ac_status); }; } &&
20445 { ac_try='test -s conftest.$ac_objext'
20446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20447 (eval $ac_try) 2>&5
20448 ac_status=$?
20449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20450 (exit $ac_status); }; }; then
20451 ac_hi=$ac_mid
20452else
20453 echo "$as_me: failed program was:" >&5
20454sed 's/^/| /' conftest.$ac_ext >&5
20455
20456ac_lo=`expr '(' $ac_mid ')' + 1`
20457fi
20458rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20459done
20460case $ac_lo in
20461?*) OMP_NEST_LOCK_25_SIZE=$ac_lo;;
20462'') ;;
20463esac
20464else
20465 if test "$cross_compiling" = yes; then
5b2c7553 20466 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20467echo "$as_me: error: in \`$ac_pwd':" >&2;}
20468{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
fd6481cf 20469See \`config.log' for more details." >&5
20470echo "$as_me: error: cannot run test program while cross compiling
20471See \`config.log' for more details." >&2;}
5b2c7553 20472 { (exit 1); exit 1; }; }; }
fd6481cf 20473else
20474 cat >conftest.$ac_ext <<_ACEOF
20475/* confdefs.h. */
20476_ACEOF
20477cat confdefs.h >>conftest.$ac_ext
20478cat >>conftest.$ac_ext <<_ACEOF
20479/* end confdefs.h. */
20480
20481long longval () { return sizeof (omp_nest_lock_25_t); }
20482unsigned long ulongval () { return sizeof (omp_nest_lock_25_t); }
20483#include <stdio.h>
20484#include <stdlib.h>
20485int
20486main ()
20487{
20488
20489 FILE *f = fopen ("conftest.val", "w");
20490 if (! f)
20491 exit (1);
20492 if ((sizeof (omp_nest_lock_25_t)) < 0)
20493 {
20494 long i = longval ();
20495 if (i != (sizeof (omp_nest_lock_25_t)))
20496 exit (1);
20497 fprintf (f, "%ld\n", i);
20498 }
20499 else
20500 {
20501 unsigned long i = ulongval ();
20502 if (i != (sizeof (omp_nest_lock_25_t)))
20503 exit (1);
20504 fprintf (f, "%lu\n", i);
20505 }
20506 exit (ferror (f) || fclose (f) != 0);
20507
20508 ;
20509 return 0;
20510}
20511_ACEOF
20512rm -f conftest$ac_exeext
20513if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20514 (eval $ac_link) 2>&5
20515 ac_status=$?
20516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20517 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20519 (eval $ac_try) 2>&5
20520 ac_status=$?
20521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20522 (exit $ac_status); }; }; then
20523 OMP_NEST_LOCK_25_SIZE=`cat conftest.val`
20524else
20525 echo "$as_me: program exited with status $ac_status" >&5
20526echo "$as_me: failed program was:" >&5
20527sed 's/^/| /' conftest.$ac_ext >&5
20528
20529fi
20530rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20531fi
20532fi
20533rm -f conftest.val
20534if test "$cross_compiling" = yes; then
20535 # Depending upon the size, compute the lo and hi bounds.
20536cat >conftest.$ac_ext <<_ACEOF
20537/* confdefs.h. */
20538_ACEOF
20539cat confdefs.h >>conftest.$ac_ext
20540cat >>conftest.$ac_ext <<_ACEOF
20541/* end confdefs.h. */
20542
20543int
20544main ()
20545{
20546static int test_array [1 - 2 * !((__alignof (omp_nest_lock_25_t)) >= 0)];
20547test_array [0] = 0
20548
20549 ;
20550 return 0;
20551}
20552_ACEOF
20553rm -f conftest.$ac_objext
20554if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20555 (eval $ac_compile) 2>conftest.er1
20556 ac_status=$?
20557 grep -v '^ *+' conftest.er1 >conftest.err
20558 rm -f conftest.er1
20559 cat conftest.err >&5
20560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20561 (exit $ac_status); } &&
20562 { ac_try='test -z "$ac_c_werror_flag"
20563 || test ! -s conftest.err'
20564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20565 (eval $ac_try) 2>&5
20566 ac_status=$?
20567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20568 (exit $ac_status); }; } &&
20569 { ac_try='test -s conftest.$ac_objext'
20570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20571 (eval $ac_try) 2>&5
20572 ac_status=$?
20573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20574 (exit $ac_status); }; }; then
20575 ac_lo=0 ac_mid=0
20576 while :; do
20577 cat >conftest.$ac_ext <<_ACEOF
20578/* confdefs.h. */
20579_ACEOF
20580cat confdefs.h >>conftest.$ac_ext
20581cat >>conftest.$ac_ext <<_ACEOF
20582/* end confdefs.h. */
20583
20584int
20585main ()
20586{
20587static int test_array [1 - 2 * !((__alignof (omp_nest_lock_25_t)) <= $ac_mid)];
20588test_array [0] = 0
20589
20590 ;
20591 return 0;
20592}
20593_ACEOF
20594rm -f conftest.$ac_objext
20595if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20596 (eval $ac_compile) 2>conftest.er1
20597 ac_status=$?
20598 grep -v '^ *+' conftest.er1 >conftest.err
20599 rm -f conftest.er1
20600 cat conftest.err >&5
20601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20602 (exit $ac_status); } &&
20603 { ac_try='test -z "$ac_c_werror_flag"
20604 || test ! -s conftest.err'
20605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20606 (eval $ac_try) 2>&5
20607 ac_status=$?
20608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20609 (exit $ac_status); }; } &&
20610 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
20616 ac_hi=$ac_mid; break
20617else
20618 echo "$as_me: failed program was:" >&5
20619sed 's/^/| /' conftest.$ac_ext >&5
20620
20621ac_lo=`expr $ac_mid + 1`
20622 if test $ac_lo -le $ac_mid; then
20623 ac_lo= ac_hi=
20624 break
20625 fi
20626 ac_mid=`expr 2 '*' $ac_mid + 1`
20627fi
20628rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20629 done
20630else
20631 echo "$as_me: failed program was:" >&5
20632sed 's/^/| /' conftest.$ac_ext >&5
20633
20634cat >conftest.$ac_ext <<_ACEOF
20635/* confdefs.h. */
20636_ACEOF
20637cat confdefs.h >>conftest.$ac_ext
20638cat >>conftest.$ac_ext <<_ACEOF
20639/* end confdefs.h. */
20640
20641int
20642main ()
20643{
20644static int test_array [1 - 2 * !((__alignof (omp_nest_lock_25_t)) < 0)];
20645test_array [0] = 0
20646
20647 ;
20648 return 0;
20649}
20650_ACEOF
20651rm -f conftest.$ac_objext
20652if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20653 (eval $ac_compile) 2>conftest.er1
20654 ac_status=$?
20655 grep -v '^ *+' conftest.er1 >conftest.err
20656 rm -f conftest.er1
20657 cat conftest.err >&5
20658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20659 (exit $ac_status); } &&
20660 { ac_try='test -z "$ac_c_werror_flag"
20661 || test ! -s conftest.err'
20662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20663 (eval $ac_try) 2>&5
20664 ac_status=$?
20665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20666 (exit $ac_status); }; } &&
20667 { ac_try='test -s conftest.$ac_objext'
20668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20669 (eval $ac_try) 2>&5
20670 ac_status=$?
20671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20672 (exit $ac_status); }; }; then
20673 ac_hi=-1 ac_mid=-1
20674 while :; do
20675 cat >conftest.$ac_ext <<_ACEOF
20676/* confdefs.h. */
20677_ACEOF
20678cat confdefs.h >>conftest.$ac_ext
20679cat >>conftest.$ac_ext <<_ACEOF
20680/* end confdefs.h. */
20681
20682int
20683main ()
20684{
20685static int test_array [1 - 2 * !((__alignof (omp_nest_lock_25_t)) >= $ac_mid)];
20686test_array [0] = 0
20687
20688 ;
20689 return 0;
20690}
20691_ACEOF
20692rm -f conftest.$ac_objext
20693if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20694 (eval $ac_compile) 2>conftest.er1
20695 ac_status=$?
20696 grep -v '^ *+' conftest.er1 >conftest.err
20697 rm -f conftest.er1
20698 cat conftest.err >&5
20699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20700 (exit $ac_status); } &&
20701 { ac_try='test -z "$ac_c_werror_flag"
20702 || test ! -s conftest.err'
20703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20704 (eval $ac_try) 2>&5
20705 ac_status=$?
20706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20707 (exit $ac_status); }; } &&
20708 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
20714 ac_lo=$ac_mid; break
20715else
20716 echo "$as_me: failed program was:" >&5
20717sed 's/^/| /' conftest.$ac_ext >&5
20718
20719ac_hi=`expr '(' $ac_mid ')' - 1`
20720 if test $ac_mid -le $ac_hi; then
20721 ac_lo= ac_hi=
20722 break
20723 fi
20724 ac_mid=`expr 2 '*' $ac_mid`
20725fi
20726rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20727 done
20728else
20729 echo "$as_me: failed program was:" >&5
20730sed 's/^/| /' conftest.$ac_ext >&5
20731
20732ac_lo= ac_hi=
20733fi
20734rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20735fi
20736rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20737# Binary search between lo and hi bounds.
20738while test "x$ac_lo" != "x$ac_hi"; do
20739 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20740 cat >conftest.$ac_ext <<_ACEOF
20741/* confdefs.h. */
20742_ACEOF
20743cat confdefs.h >>conftest.$ac_ext
20744cat >>conftest.$ac_ext <<_ACEOF
20745/* end confdefs.h. */
20746
20747int
20748main ()
20749{
20750static int test_array [1 - 2 * !((__alignof (omp_nest_lock_25_t)) <= $ac_mid)];
20751test_array [0] = 0
20752
20753 ;
20754 return 0;
20755}
20756_ACEOF
20757rm -f conftest.$ac_objext
20758if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20759 (eval $ac_compile) 2>conftest.er1
20760 ac_status=$?
20761 grep -v '^ *+' conftest.er1 >conftest.err
20762 rm -f conftest.er1
20763 cat conftest.err >&5
20764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20765 (exit $ac_status); } &&
20766 { ac_try='test -z "$ac_c_werror_flag"
20767 || test ! -s conftest.err'
20768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20769 (eval $ac_try) 2>&5
20770 ac_status=$?
20771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20772 (exit $ac_status); }; } &&
20773 { ac_try='test -s conftest.$ac_objext'
20774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20775 (eval $ac_try) 2>&5
20776 ac_status=$?
20777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20778 (exit $ac_status); }; }; then
20779 ac_hi=$ac_mid
20780else
20781 echo "$as_me: failed program was:" >&5
20782sed 's/^/| /' conftest.$ac_ext >&5
20783
20784ac_lo=`expr '(' $ac_mid ')' + 1`
20785fi
20786rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20787done
20788case $ac_lo in
20789?*) OMP_NEST_LOCK_25_ALIGN=$ac_lo;;
20790'') ;;
20791esac
20792else
20793 if test "$cross_compiling" = yes; then
5b2c7553 20794 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20795echo "$as_me: error: in \`$ac_pwd':" >&2;}
20796{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
fd6481cf 20797See \`config.log' for more details." >&5
20798echo "$as_me: error: cannot run test program while cross compiling
20799See \`config.log' for more details." >&2;}
5b2c7553 20800 { (exit 1); exit 1; }; }; }
fd6481cf 20801else
20802 cat >conftest.$ac_ext <<_ACEOF
20803/* confdefs.h. */
20804_ACEOF
20805cat confdefs.h >>conftest.$ac_ext
20806cat >>conftest.$ac_ext <<_ACEOF
20807/* end confdefs.h. */
20808
20809long longval () { return __alignof (omp_nest_lock_25_t); }
20810unsigned long ulongval () { return __alignof (omp_nest_lock_25_t); }
20811#include <stdio.h>
20812#include <stdlib.h>
20813int
20814main ()
20815{
20816
20817 FILE *f = fopen ("conftest.val", "w");
20818 if (! f)
20819 exit (1);
20820 if ((__alignof (omp_nest_lock_25_t)) < 0)
20821 {
20822 long i = longval ();
20823 if (i != (__alignof (omp_nest_lock_25_t)))
20824 exit (1);
20825 fprintf (f, "%ld\n", i);
20826 }
20827 else
20828 {
20829 unsigned long i = ulongval ();
20830 if (i != (__alignof (omp_nest_lock_25_t)))
20831 exit (1);
20832 fprintf (f, "%lu\n", i);
20833 }
20834 exit (ferror (f) || fclose (f) != 0);
20835
20836 ;
20837 return 0;
20838}
20839_ACEOF
20840rm -f conftest$ac_exeext
20841if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20842 (eval $ac_link) 2>&5
20843 ac_status=$?
20844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20845 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20847 (eval $ac_try) 2>&5
20848 ac_status=$?
20849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20850 (exit $ac_status); }; }; then
20851 OMP_NEST_LOCK_25_ALIGN=`cat conftest.val`
20852else
20853 echo "$as_me: program exited with status $ac_status" >&5
20854echo "$as_me: failed program was:" >&5
20855sed 's/^/| /' conftest.$ac_ext >&5
20856
20857fi
20858rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20859fi
20860fi
20861rm -f conftest.val
20862
20863# If the lock fits in an integer, then arrange for Fortran to use that
20864# integer. If it doesn't, then arrange for Fortran to use a pointer.
20865# Except that we don't have a way at present to multi-lib the installed
20866# Fortran modules, so we assume 8 bytes for pointers, regardless of the
20867# actual target.
20868OMP_LOCK_KIND=$OMP_LOCK_SIZE
20869OMP_NEST_LOCK_KIND=$OMP_NEST_LOCK_SIZE
20870if test $OMP_LOCK_SIZE -gt 8 || test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then
20871 OMP_LOCK_KIND=8
20872fi
20873if test $OMP_NEST_LOCK_SIZE -gt 8 || test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then
20874 OMP_NEST_LOCK_KIND=8
20875fi
20876OMP_LOCK_25_KIND=$OMP_LOCK_25_SIZE
20877OMP_NEST_LOCK_25_KIND=$OMP_NEST_LOCK_25_SIZE
20878if test $OMP_LOCK_25_SIZE -gt 8 || test $OMP_LOCK_25_ALIGN -gt $OMP_LOCK_25_SIZE; then
20879 OMP_LOCK_25_KIND=8
20880fi
20881if test $OMP_NEST_LOCK_25_SIZE -gt 8 || test $OMP_NEST_LOCK_25_ALIGN -gt $OMP_NEST_LOCK_25_SIZE; then
20882 OMP_NEST_LOCK_25_KIND=8
20883fi
20884
20885
20886
20887
20888
20889
107c3bbf 20890
20891
20892
20893
20894
20895
20896
20897CFLAGS="$save_CFLAGS"
20898
20899 ac_config_files="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h"
20900
1e8e9920 20901 ac_config_files="$ac_config_files Makefile testsuite/Makefile libgomp.spec"
20902
20903cat >confcache <<\_ACEOF
20904# This file is a shell script that caches the results of configure
20905# tests run on this system so they can be shared between configure
20906# scripts and configure runs, see configure's option --config-cache.
20907# It is not useful on other systems. If it contains results you don't
20908# want to keep, you may remove or edit it.
20909#
20910# config.status only pays attention to the cache file if you give it
20911# the --recheck option to rerun configure.
20912#
20913# `ac_cv_env_foo' variables (set or unset) will be overridden when
20914# loading this file, other *unset* `ac_cv_foo' will be assigned the
20915# following values.
20916
20917_ACEOF
20918
20919# The following way of writing the cache mishandles newlines in values,
20920# but we know of no workaround that is simple, portable, and efficient.
20921# So, don't put newlines in cache variables' values.
20922# Ultrix sh set writes to stderr and can't be redirected directly,
20923# and sets the high bit in the cache file unless we assign to the vars.
20924{
20925 (set) 2>&1 |
20926 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20927 *ac_space=\ *)
20928 # `set' does not quote correctly, so add quotes (double-quote
20929 # substitution turns \\\\ into \\, and sed turns \\ into \).
20930 sed -n \
20931 "s/'/'\\\\''/g;
20932 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20933 ;;
20934 *)
20935 # `set' quotes correctly as required by POSIX, so do not add quotes.
20936 sed -n \
20937 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20938 ;;
20939 esac;
20940} |
20941 sed '
20942 t clear
20943 : clear
20944 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20945 t end
20946 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20947 : end' >>confcache
20948if diff $cache_file confcache >/dev/null 2>&1; then :; else
20949 if test -w $cache_file; then
20950 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20951 cat confcache >$cache_file
20952 else
20953 echo "not updating unwritable cache $cache_file"
20954 fi
20955fi
20956rm -f confcache
20957
20958test "x$prefix" = xNONE && prefix=$ac_default_prefix
20959# Let make expand exec_prefix.
20960test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20961
20962# VPATH may cause trouble with some makes, so we remove $(srcdir),
20963# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20964# trailing colons and then remove the whole line if VPATH becomes empty
20965# (actually we leave an empty line to preserve line numbers).
20966if test "x$srcdir" = x.; then
20967 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20968s/:*\$(srcdir):*/:/;
20969s/:*\${srcdir}:*/:/;
20970s/:*@srcdir@:*/:/;
20971s/^\([^=]*=[ ]*\):*/\1/;
20972s/:*$//;
20973s/^[^=]*=[ ]*$//;
20974}'
20975fi
20976
20977DEFS=-DHAVE_CONFIG_H
20978
20979ac_libobjs=
20980ac_ltlibobjs=
20981for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20982 # 1. Remove the extension, and $U if already installed.
20983 ac_i=`echo "$ac_i" |
20984 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20985 # 2. Add them.
20986 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20987 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20988done
20989LIBOBJS=$ac_libobjs
20990
20991LTLIBOBJS=$ac_ltlibobjs
20992
20993
aeda7a78 20994if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
20995 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC\" was never defined.
20996Usually this means the macro was only invoked conditionally." >&5
20997echo "$as_me: error: conditional \"GENINSRC\" was never defined.
20998Usually this means the macro was only invoked conditionally." >&2;}
20999 { (exit 1); exit 1; }; }
21000fi
1e8e9920 21001if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21002 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21003Usually this means the macro was only invoked conditionally." >&5
21004echo "$as_me: error: conditional \"AMDEP\" was never defined.
21005Usually this means the macro was only invoked conditionally." >&2;}
21006 { (exit 1); exit 1; }; }
21007fi
21008if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21009 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21010Usually this means the macro was only invoked conditionally." >&5
21011echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21012Usually this means the macro was only invoked conditionally." >&2;}
21013 { (exit 1); exit 1; }; }
21014fi
439d698f 21015if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
21016 { { echo "$as_me:$LINENO: error: conditional \"BUILD_INFO\" was never defined.
21017Usually this means the macro was only invoked conditionally." >&5
21018echo "$as_me: error: conditional \"BUILD_INFO\" was never defined.
21019Usually this means the macro was only invoked conditionally." >&2;}
21020 { (exit 1); exit 1; }; }
21021fi
a263d1ab 21022if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21023 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21024Usually this means the macro was only invoked conditionally." >&5
21025echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21026Usually this means the macro was only invoked conditionally." >&2;}
21027 { (exit 1); exit 1; }; }
21028fi
1e8e9920 21029if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
21030 { { echo "$as_me:$LINENO: error: conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
21031Usually this means the macro was only invoked conditionally." >&5
21032echo "$as_me: error: conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
21033Usually this means the macro was only invoked conditionally." >&2;}
21034 { (exit 1); exit 1; }; }
21035fi
21036if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
21037 { { echo "$as_me:$LINENO: error: conditional \"USE_FORTRAN\" was never defined.
21038Usually this means the macro was only invoked conditionally." >&5
21039echo "$as_me: error: conditional \"USE_FORTRAN\" was never defined.
21040Usually this means the macro was only invoked conditionally." >&2;}
21041 { (exit 1); exit 1; }; }
21042fi
21043
21044: ${CONFIG_STATUS=./config.status}
21045ac_clean_files_save=$ac_clean_files
21046ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21047{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21048echo "$as_me: creating $CONFIG_STATUS" >&6;}
21049cat >$CONFIG_STATUS <<_ACEOF
21050#! $SHELL
21051# Generated by $as_me.
21052# Run this file to recreate the current configuration.
21053# Compiler output produced by configure, useful for debugging
21054# configure, is in config.log if it exists.
21055
21056debug=false
21057ac_cs_recheck=false
21058ac_cs_silent=false
21059SHELL=\${CONFIG_SHELL-$SHELL}
21060_ACEOF
21061
21062cat >>$CONFIG_STATUS <<\_ACEOF
21063## --------------------- ##
21064## M4sh Initialization. ##
21065## --------------------- ##
21066
21067# Be Bourne compatible
21068if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21069 emulate sh
21070 NULLCMD=:
21071 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21072 # is contrary to our usage. Disable this feature.
21073 alias -g '${1+"$@"}'='"$@"'
21074elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21075 set -o posix
21076fi
21077DUALCASE=1; export DUALCASE # for MKS sh
21078
21079# Support unset when possible.
21080if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21081 as_unset=unset
21082else
21083 as_unset=false
21084fi
21085
21086
21087# Work around bugs in pre-3.0 UWIN ksh.
21088$as_unset ENV MAIL MAILPATH
21089PS1='$ '
21090PS2='> '
21091PS4='+ '
21092
21093# NLS nuisances.
21094for as_var in \
21095 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21096 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21097 LC_TELEPHONE LC_TIME
21098do
21099 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21100 eval $as_var=C; export $as_var
21101 else
21102 $as_unset $as_var
21103 fi
21104done
21105
21106# Required to use basename.
21107if expr a : '\(a\)' >/dev/null 2>&1; then
21108 as_expr=expr
21109else
21110 as_expr=false
21111fi
21112
21113if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21114 as_basename=basename
21115else
21116 as_basename=false
21117fi
21118
21119
21120# Name of the executable.
21121as_me=`$as_basename "$0" ||
21122$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21123 X"$0" : 'X\(//\)$' \| \
21124 X"$0" : 'X\(/\)$' \| \
21125 . : '\(.\)' 2>/dev/null ||
21126echo X/"$0" |
21127 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21128 /^X\/\(\/\/\)$/{ s//\1/; q; }
21129 /^X\/\(\/\).*/{ s//\1/; q; }
21130 s/.*/./; q'`
21131
21132
21133# PATH needs CR, and LINENO needs CR and PATH.
21134# Avoid depending upon Character Ranges.
21135as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21136as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21137as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21138as_cr_digits='0123456789'
21139as_cr_alnum=$as_cr_Letters$as_cr_digits
21140
21141# The user is always right.
21142if test "${PATH_SEPARATOR+set}" != set; then
21143 echo "#! /bin/sh" >conf$$.sh
21144 echo "exit 0" >>conf$$.sh
21145 chmod +x conf$$.sh
21146 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21147 PATH_SEPARATOR=';'
21148 else
21149 PATH_SEPARATOR=:
21150 fi
21151 rm -f conf$$.sh
21152fi
21153
21154
21155 as_lineno_1=$LINENO
21156 as_lineno_2=$LINENO
21157 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21158 test "x$as_lineno_1" != "x$as_lineno_2" &&
21159 test "x$as_lineno_3" = "x$as_lineno_2" || {
21160 # Find who we are. Look in the path if we contain no path at all
21161 # relative or not.
21162 case $0 in
21163 *[\\/]* ) as_myself=$0 ;;
21164 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21165for as_dir in $PATH
21166do
21167 IFS=$as_save_IFS
21168 test -z "$as_dir" && as_dir=.
21169 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21170done
21171
21172 ;;
21173 esac
21174 # We did not find ourselves, most probably we were run as `sh COMMAND'
21175 # in which case we are not to be found in the path.
21176 if test "x$as_myself" = x; then
21177 as_myself=$0
21178 fi
21179 if test ! -f "$as_myself"; then
21180 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21181echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21182 { (exit 1); exit 1; }; }
21183 fi
21184 case $CONFIG_SHELL in
21185 '')
21186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21187for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21188do
21189 IFS=$as_save_IFS
21190 test -z "$as_dir" && as_dir=.
21191 for as_base in sh bash ksh sh5; do
21192 case $as_dir in
21193 /*)
21194 if ("$as_dir/$as_base" -c '
21195 as_lineno_1=$LINENO
21196 as_lineno_2=$LINENO
21197 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21198 test "x$as_lineno_1" != "x$as_lineno_2" &&
21199 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
21200 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21201 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21202 CONFIG_SHELL=$as_dir/$as_base
21203 export CONFIG_SHELL
21204 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21205 fi;;
21206 esac
21207 done
21208done
21209;;
21210 esac
21211
21212 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21213 # uniformly replaced by the line number. The first 'sed' inserts a
21214 # line-number line before each line; the second 'sed' does the real
21215 # work. The second script uses 'N' to pair each line-number line
21216 # with the numbered line, and appends trailing '-' during
21217 # substitution so that $LINENO is not a special case at line end.
21218 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21219 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21220 sed '=' <$as_myself |
21221 sed '
21222 N
21223 s,$,-,
21224 : loop
21225 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21226 t loop
21227 s,-$,,
21228 s,^['$as_cr_digits']*\n,,
21229 ' >$as_me.lineno &&
21230 chmod +x $as_me.lineno ||
21231 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21232echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21233 { (exit 1); exit 1; }; }
21234
21235 # Don't try to exec as it changes $[0], causing all sort of problems
21236 # (the dirname of $[0] is not the place where we might find the
21237 # original and so on. Autoconf is especially sensible to this).
21238 . ./$as_me.lineno
21239 # Exit status is that of the last command.
21240 exit
21241}
21242
21243
21244case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21245 *c*,-n*) ECHO_N= ECHO_C='
21246' ECHO_T=' ' ;;
21247 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21248 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21249esac
21250
21251if expr a : '\(a\)' >/dev/null 2>&1; then
21252 as_expr=expr
21253else
21254 as_expr=false
21255fi
21256
21257rm -f conf$$ conf$$.exe conf$$.file
21258echo >conf$$.file
21259if ln -s conf$$.file conf$$ 2>/dev/null; then
21260 # We could just check for DJGPP; but this test a) works b) is more generic
21261 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21262 if test -f conf$$.exe; then
21263 # Don't use ln at all; we don't have any links
21264 as_ln_s='cp -p'
21265 else
21266 as_ln_s='ln -s'
21267 fi
21268elif ln conf$$.file conf$$ 2>/dev/null; then
21269 as_ln_s=ln
21270else
21271 as_ln_s='cp -p'
21272fi
21273rm -f conf$$ conf$$.exe conf$$.file
21274
21275if mkdir -p . 2>/dev/null; then
21276 as_mkdir_p=:
21277else
21278 test -d ./-p && rmdir ./-p
21279 as_mkdir_p=false
21280fi
21281
21282as_executable_p="test -f"
21283
21284# Sed expression to map a string onto a valid CPP name.
21285as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21286
21287# Sed expression to map a string onto a valid variable name.
21288as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21289
21290
21291# IFS
21292# We need space, tab and new line, in precisely that order.
21293as_nl='
21294'
21295IFS=" $as_nl"
21296
21297# CDPATH.
21298$as_unset CDPATH
21299
21300exec 6>&1
21301
21302# Open the log real soon, to keep \$[0] and so on meaningful, and to
21303# report actual input values of CONFIG_FILES etc. instead of their
21304# values after options handling. Logging --version etc. is OK.
21305exec 5>>config.log
21306{
21307 echo
21308 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21309## Running $as_me. ##
21310_ASBOX
21311} >&5
21312cat >&5 <<_CSEOF
21313
21314This file was extended by GNU OpenMP Runtime Library $as_me 1.0, which was
21315generated by GNU Autoconf 2.59. Invocation command line was
21316
21317 CONFIG_FILES = $CONFIG_FILES
21318 CONFIG_HEADERS = $CONFIG_HEADERS
21319 CONFIG_LINKS = $CONFIG_LINKS
21320 CONFIG_COMMANDS = $CONFIG_COMMANDS
21321 $ $0 $@
21322
21323_CSEOF
21324echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21325echo >&5
21326_ACEOF
21327
21328# Files that config.status was made for.
21329if test -n "$ac_config_files"; then
21330 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21331fi
21332
21333if test -n "$ac_config_headers"; then
21334 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21335fi
21336
21337if test -n "$ac_config_links"; then
21338 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21339fi
21340
21341if test -n "$ac_config_commands"; then
21342 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21343fi
21344
21345cat >>$CONFIG_STATUS <<\_ACEOF
21346
21347ac_cs_usage="\
21348\`$as_me' instantiates files from templates according to the
21349current configuration.
21350
21351Usage: $0 [OPTIONS] [FILE]...
21352
21353 -h, --help print this help, then exit
21354 -V, --version print version number, then exit
21355 -q, --quiet do not print progress messages
21356 -d, --debug don't remove temporary files
21357 --recheck update $as_me by reconfiguring in the same conditions
21358 --file=FILE[:TEMPLATE]
21359 instantiate the configuration file FILE
21360 --header=FILE[:TEMPLATE]
21361 instantiate the configuration header FILE
21362
21363Configuration files:
21364$config_files
21365
21366Configuration headers:
21367$config_headers
21368
21369Configuration commands:
21370$config_commands
21371
21372Report bugs to <bug-autoconf@gnu.org>."
21373_ACEOF
21374
21375cat >>$CONFIG_STATUS <<_ACEOF
21376ac_cs_version="\\
21377GNU OpenMP Runtime Library config.status 1.0
21378configured by $0, generated by GNU Autoconf 2.59,
21379 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21380
21381Copyright (C) 2003 Free Software Foundation, Inc.
21382This config.status script is free software; the Free Software Foundation
21383gives unlimited permission to copy, distribute and modify it."
21384srcdir=$srcdir
21385INSTALL="$INSTALL"
21386_ACEOF
21387
21388cat >>$CONFIG_STATUS <<\_ACEOF
21389# If no file are specified by the user, then we need to provide default
21390# value. By we need to know if files were specified by the user.
21391ac_need_defaults=:
21392while test $# != 0
21393do
21394 case $1 in
21395 --*=*)
21396 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21397 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21398 ac_shift=:
21399 ;;
21400 -*)
21401 ac_option=$1
21402 ac_optarg=$2
21403 ac_shift=shift
21404 ;;
21405 *) # This is not an option, so the user has probably given explicit
21406 # arguments.
21407 ac_option=$1
21408 ac_need_defaults=false;;
21409 esac
21410
21411 case $ac_option in
21412 # Handling of the options.
21413_ACEOF
21414cat >>$CONFIG_STATUS <<\_ACEOF
21415 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21416 ac_cs_recheck=: ;;
21417 --version | --vers* | -V )
21418 echo "$ac_cs_version"; exit 0 ;;
21419 --he | --h)
21420 # Conflict between --help and --header
21421 { { echo "$as_me:$LINENO: error: ambiguous option: $1
21422Try \`$0 --help' for more information." >&5
21423echo "$as_me: error: ambiguous option: $1
21424Try \`$0 --help' for more information." >&2;}
21425 { (exit 1); exit 1; }; };;
21426 --help | --hel | -h )
21427 echo "$ac_cs_usage"; exit 0 ;;
21428 --debug | --d* | -d )
21429 debug=: ;;
21430 --file | --fil | --fi | --f )
21431 $ac_shift
21432 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21433 ac_need_defaults=false;;
21434 --header | --heade | --head | --hea )
21435 $ac_shift
21436 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21437 ac_need_defaults=false;;
21438 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21439 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21440 ac_cs_silent=: ;;
21441
21442 # This is an error.
21443 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21444Try \`$0 --help' for more information." >&5
21445echo "$as_me: error: unrecognized option: $1
21446Try \`$0 --help' for more information." >&2;}
21447 { (exit 1); exit 1; }; } ;;
21448
21449 *) ac_config_targets="$ac_config_targets $1" ;;
21450
21451 esac
21452 shift
21453done
21454
21455ac_configure_extra_args=
21456
21457if $ac_cs_silent; then
21458 exec 6>/dev/null
21459 ac_configure_extra_args="$ac_configure_extra_args --silent"
21460fi
21461
21462_ACEOF
21463cat >>$CONFIG_STATUS <<_ACEOF
21464if \$ac_cs_recheck; then
21465 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21466 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21467fi
21468
21469_ACEOF
21470
21471cat >>$CONFIG_STATUS <<_ACEOF
21472#
21473# INIT-COMMANDS section.
21474#
21475
21476
21477srcdir="$srcdir"
21478host="$host"
21479target="$target"
21480with_multisubdir="$with_multisubdir"
21481with_multisrctop="$with_multisrctop"
21482with_target_subdir="$with_target_subdir"
21483ac_configure_args="${multilib_arg} ${ac_configure_args}"
21484multi_basedir="$multi_basedir"
21485CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
21486CC="$CC"
21487AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21488
542f9784 21489
21490# The HP-UX ksh and POSIX shell print the target directory to stdout
21491# if CDPATH is set.
21492(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21493
21494sed_quote_subst='$sed_quote_subst'
21495double_quote_subst='$double_quote_subst'
21496delay_variable_subst='$delay_variable_subst'
21497macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
21498macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
21499enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
21500enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
21501pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
21502enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
21503host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
21504host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
21505host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
21506build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
21507build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
21508build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
21509SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
21510Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
21511GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
21512EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
21513FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
21514LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
21515NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
21516LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
21517max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
21518ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
21519exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
21520lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
21521lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
21522lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
21523reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
21524reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21525deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
21526file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
21527AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
21528AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
21529STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
21530RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
21531old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21532old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21533old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21534CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
21535CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
21536compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
21537GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
21538lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
21539lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
21540lt_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"`'
21541objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
21542SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
21543ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
21544MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
21545lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
21546lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
21547lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
21548lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
21549lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
21550need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
21551libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
21552shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21553extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21554archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
21555enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
21556export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21557whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21558compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
21559old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21560old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21561archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21562archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21563module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21564module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21565with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
21566allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
21567no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
21568hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21569hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
21570hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
21571hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
21572hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
21573hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
21574hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21575hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
21576inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
21577link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
21578fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
21579always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
21580export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21581exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
21582include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
21583prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21584file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
21585variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
21586need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
21587need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
21588version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
21589runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21590shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21591shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
21592libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
21593library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
21594soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
21595postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21596postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21597finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21598finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
21599hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
21600sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
21601sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
21602hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
21603enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
21604enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
21605enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
21606old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
21607striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
21608predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
21609postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
21610predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
21611postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
21612compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
21613LD_FC='`$ECHO "X$LD_FC" | $Xsed -e "$delay_single_quote_subst"`'
21614old_archive_cmds_FC='`$ECHO "X$old_archive_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
21615compiler_FC='`$ECHO "X$compiler_FC" | $Xsed -e "$delay_single_quote_subst"`'
21616GCC_FC='`$ECHO "X$GCC_FC" | $Xsed -e "$delay_single_quote_subst"`'
21617lt_prog_compiler_no_builtin_flag_FC='`$ECHO "X$lt_prog_compiler_no_builtin_flag_FC" | $Xsed -e "$delay_single_quote_subst"`'
21618lt_prog_compiler_wl_FC='`$ECHO "X$lt_prog_compiler_wl_FC" | $Xsed -e "$delay_single_quote_subst"`'
21619lt_prog_compiler_pic_FC='`$ECHO "X$lt_prog_compiler_pic_FC" | $Xsed -e "$delay_single_quote_subst"`'
21620lt_prog_compiler_static_FC='`$ECHO "X$lt_prog_compiler_static_FC" | $Xsed -e "$delay_single_quote_subst"`'
21621lt_cv_prog_compiler_c_o_FC='`$ECHO "X$lt_cv_prog_compiler_c_o_FC" | $Xsed -e "$delay_single_quote_subst"`'
21622archive_cmds_need_lc_FC='`$ECHO "X$archive_cmds_need_lc_FC" | $Xsed -e "$delay_single_quote_subst"`'
21623enable_shared_with_static_runtimes_FC='`$ECHO "X$enable_shared_with_static_runtimes_FC" | $Xsed -e "$delay_single_quote_subst"`'
21624export_dynamic_flag_spec_FC='`$ECHO "X$export_dynamic_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
21625whole_archive_flag_spec_FC='`$ECHO "X$whole_archive_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
21626compiler_needs_object_FC='`$ECHO "X$compiler_needs_object_FC" | $Xsed -e "$delay_single_quote_subst"`'
21627old_archive_from_new_cmds_FC='`$ECHO "X$old_archive_from_new_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
21628old_archive_from_expsyms_cmds_FC='`$ECHO "X$old_archive_from_expsyms_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
21629archive_cmds_FC='`$ECHO "X$archive_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
21630archive_expsym_cmds_FC='`$ECHO "X$archive_expsym_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
21631module_cmds_FC='`$ECHO "X$module_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
21632module_expsym_cmds_FC='`$ECHO "X$module_expsym_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
21633with_gnu_ld_FC='`$ECHO "X$with_gnu_ld_FC" | $Xsed -e "$delay_single_quote_subst"`'
21634allow_undefined_flag_FC='`$ECHO "X$allow_undefined_flag_FC" | $Xsed -e "$delay_single_quote_subst"`'
21635no_undefined_flag_FC='`$ECHO "X$no_undefined_flag_FC" | $Xsed -e "$delay_single_quote_subst"`'
21636hardcode_libdir_flag_spec_FC='`$ECHO "X$hardcode_libdir_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
21637hardcode_libdir_flag_spec_ld_FC='`$ECHO "X$hardcode_libdir_flag_spec_ld_FC" | $Xsed -e "$delay_single_quote_subst"`'
21638hardcode_libdir_separator_FC='`$ECHO "X$hardcode_libdir_separator_FC" | $Xsed -e "$delay_single_quote_subst"`'
21639hardcode_direct_FC='`$ECHO "X$hardcode_direct_FC" | $Xsed -e "$delay_single_quote_subst"`'
21640hardcode_direct_absolute_FC='`$ECHO "X$hardcode_direct_absolute_FC" | $Xsed -e "$delay_single_quote_subst"`'
21641hardcode_minus_L_FC='`$ECHO "X$hardcode_minus_L_FC" | $Xsed -e "$delay_single_quote_subst"`'
21642hardcode_shlibpath_var_FC='`$ECHO "X$hardcode_shlibpath_var_FC" | $Xsed -e "$delay_single_quote_subst"`'
21643hardcode_automatic_FC='`$ECHO "X$hardcode_automatic_FC" | $Xsed -e "$delay_single_quote_subst"`'
21644inherit_rpath_FC='`$ECHO "X$inherit_rpath_FC" | $Xsed -e "$delay_single_quote_subst"`'
21645link_all_deplibs_FC='`$ECHO "X$link_all_deplibs_FC" | $Xsed -e "$delay_single_quote_subst"`'
21646fix_srcfile_path_FC='`$ECHO "X$fix_srcfile_path_FC" | $Xsed -e "$delay_single_quote_subst"`'
21647always_export_symbols_FC='`$ECHO "X$always_export_symbols_FC" | $Xsed -e "$delay_single_quote_subst"`'
21648export_symbols_cmds_FC='`$ECHO "X$export_symbols_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
21649exclude_expsyms_FC='`$ECHO "X$exclude_expsyms_FC" | $Xsed -e "$delay_single_quote_subst"`'
21650include_expsyms_FC='`$ECHO "X$include_expsyms_FC" | $Xsed -e "$delay_single_quote_subst"`'
21651prelink_cmds_FC='`$ECHO "X$prelink_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
21652file_list_spec_FC='`$ECHO "X$file_list_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
21653hardcode_action_FC='`$ECHO "X$hardcode_action_FC" | $Xsed -e "$delay_single_quote_subst"`'
21654predep_objects_FC='`$ECHO "X$predep_objects_FC" | $Xsed -e "$delay_single_quote_subst"`'
21655postdep_objects_FC='`$ECHO "X$postdep_objects_FC" | $Xsed -e "$delay_single_quote_subst"`'
21656predeps_FC='`$ECHO "X$predeps_FC" | $Xsed -e "$delay_single_quote_subst"`'
21657postdeps_FC='`$ECHO "X$postdeps_FC" | $Xsed -e "$delay_single_quote_subst"`'
21658compiler_lib_search_path_FC='`$ECHO "X$compiler_lib_search_path_FC" | $Xsed -e "$delay_single_quote_subst"`'
21659
21660LTCC='$LTCC'
21661LTCFLAGS='$LTCFLAGS'
21662compiler='$compiler_DEFAULT'
21663
21664# Quote evaled strings.
21665for var in SED \
21666GREP \
21667EGREP \
21668FGREP \
21669LD \
21670NM \
21671LN_S \
21672lt_SP2NL \
21673lt_NL2SP \
21674reload_flag \
21675deplibs_check_method \
21676file_magic_cmd \
21677AR \
21678AR_FLAGS \
21679STRIP \
21680RANLIB \
21681CC \
21682CFLAGS \
21683compiler \
21684lt_cv_sys_global_symbol_pipe \
21685lt_cv_sys_global_symbol_to_cdecl \
21686lt_cv_sys_global_symbol_to_c_name_address \
21687SHELL \
21688ECHO \
21689lt_prog_compiler_no_builtin_flag \
21690lt_prog_compiler_wl \
21691lt_prog_compiler_pic \
21692lt_prog_compiler_static \
21693lt_cv_prog_compiler_c_o \
21694need_locks \
21695shrext_cmds \
21696export_dynamic_flag_spec \
21697whole_archive_flag_spec \
21698compiler_needs_object \
21699with_gnu_ld \
21700allow_undefined_flag \
21701no_undefined_flag \
21702hardcode_libdir_flag_spec \
21703hardcode_libdir_flag_spec_ld \
21704hardcode_libdir_separator \
21705fix_srcfile_path \
21706exclude_expsyms \
21707include_expsyms \
21708file_list_spec \
21709variables_saved_for_relink \
21710libname_spec \
21711library_names_spec \
21712soname_spec \
21713finish_eval \
21714old_striplib \
21715striplib \
21716predep_objects \
21717postdep_objects \
21718predeps \
21719postdeps \
21720compiler_lib_search_path \
21721LD_FC \
21722compiler_FC \
21723lt_prog_compiler_no_builtin_flag_FC \
21724lt_prog_compiler_wl_FC \
21725lt_prog_compiler_pic_FC \
21726lt_prog_compiler_static_FC \
21727lt_cv_prog_compiler_c_o_FC \
21728export_dynamic_flag_spec_FC \
21729whole_archive_flag_spec_FC \
21730compiler_needs_object_FC \
21731with_gnu_ld_FC \
21732allow_undefined_flag_FC \
21733no_undefined_flag_FC \
21734hardcode_libdir_flag_spec_FC \
21735hardcode_libdir_flag_spec_ld_FC \
21736hardcode_libdir_separator_FC \
21737fix_srcfile_path_FC \
21738exclude_expsyms_FC \
21739include_expsyms_FC \
21740file_list_spec_FC \
21741predep_objects_FC \
21742postdep_objects_FC \
21743predeps_FC \
21744postdeps_FC \
21745compiler_lib_search_path_FC; do
21746 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
21747 *[\\\\\\\`\\"\\\$]*)
21748 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
21749 ;;
21750 *)
21751 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21752 ;;
21753 esac
21754done
21755
21756# Double-quote double-evaled strings.
21757for var in reload_cmds \
21758old_postinstall_cmds \
21759old_postuninstall_cmds \
21760old_archive_cmds \
21761extract_expsyms_cmds \
21762old_archive_from_new_cmds \
21763old_archive_from_expsyms_cmds \
21764archive_cmds \
21765archive_expsym_cmds \
21766module_cmds \
21767module_expsym_cmds \
21768export_symbols_cmds \
21769prelink_cmds \
21770postinstall_cmds \
21771postuninstall_cmds \
21772finish_cmds \
21773sys_lib_search_path_spec \
21774sys_lib_dlsearch_path_spec \
21775old_archive_cmds_FC \
21776old_archive_from_new_cmds_FC \
21777old_archive_from_expsyms_cmds_FC \
21778archive_cmds_FC \
21779archive_expsym_cmds_FC \
21780module_cmds_FC \
21781module_expsym_cmds_FC \
21782export_symbols_cmds_FC \
21783prelink_cmds_FC; do
21784 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
21785 *[\\\\\\\`\\"\\\$]*)
21786 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
21787 ;;
21788 *)
21789 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21790 ;;
21791 esac
21792done
21793
21794# Fix-up fallback echo if it was mangled by the above quoting rules.
21795case \$lt_ECHO in
21796*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
21797 ;;
21798esac
21799
21800ac_aux_dir='$ac_aux_dir'
21801xsi_shell='$xsi_shell'
21802lt_shell_append='$lt_shell_append'
21803
21804# See if we are running on zsh, and set the options which allow our
21805# commands through without removal of \ escapes INIT.
21806if test -n "\${ZSH_VERSION+set}" ; then
21807 setopt NO_GLOB_SUBST
21808fi
21809
21810
21811 PACKAGE='$PACKAGE'
21812 VERSION='$VERSION'
21813 TIMESTAMP='$TIMESTAMP'
21814 RM='$RM'
21815 ofile='$ofile'
21816
21817
21818
21819
21820
21821
01473a49 21822GCC="$GCC"
21823CC="$CC"
21824acx_cv_header_stdint="$acx_cv_header_stdint"
21825acx_cv_type_int8_t="$acx_cv_type_int8_t"
21826acx_cv_type_int16_t="$acx_cv_type_int16_t"
21827acx_cv_type_int32_t="$acx_cv_type_int32_t"
21828acx_cv_type_int64_t="$acx_cv_type_int64_t"
21829acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
21830ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
21831ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
21832ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
21833ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
21834ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
21835ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
21836ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
21837ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
21838
21839
1e8e9920 21840_ACEOF
21841
21842
21843
21844cat >>$CONFIG_STATUS <<\_ACEOF
21845for ac_config_target in $ac_config_targets
21846do
21847 case "$ac_config_target" in
21848 # Handling of arguments.
107c3bbf 21849 "omp.h" ) CONFIG_FILES="$CONFIG_FILES omp.h" ;;
21850 "omp_lib.h" ) CONFIG_FILES="$CONFIG_FILES omp_lib.h" ;;
21851 "omp_lib.f90" ) CONFIG_FILES="$CONFIG_FILES omp_lib.f90" ;;
21852 "libgomp_f.h" ) CONFIG_FILES="$CONFIG_FILES libgomp_f.h" ;;
1e8e9920 21853 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21854 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
21855 "libgomp.spec" ) CONFIG_FILES="$CONFIG_FILES libgomp.spec" ;;
21856 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
21857 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
542f9784 21858 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
01473a49 21859 "gstdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
1e8e9920 21860 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21861 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21862echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21863 { (exit 1); exit 1; }; };;
21864 esac
21865done
21866
21867# If the user did not use the arguments to specify the items to instantiate,
21868# then the envvar interface is used. Set only those that are not.
21869# We use the long form for the default assignment because of an extremely
21870# bizarre bug on SunOS 4.1.3.
21871if $ac_need_defaults; then
21872 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21873 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21874 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21875fi
21876
21877# Have a temporary directory for convenience. Make it in the build tree
21878# simply because there is no reason to put it here, and in addition,
21879# creating and moving files from /tmp can sometimes cause problems.
21880# Create a temporary directory, and hook for its removal unless debugging.
21881$debug ||
21882{
21883 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21884 trap '{ (exit 1); exit 1; }' 1 2 13 15
21885}
21886
21887# Create a (secure) tmp directory for tmp files.
21888
21889{
21890 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21891 test -n "$tmp" && test -d "$tmp"
21892} ||
21893{
21894 tmp=./confstat$$-$RANDOM
21895 (umask 077 && mkdir $tmp)
21896} ||
21897{
21898 echo "$me: cannot create a temporary directory in ." >&2
21899 { (exit 1); exit 1; }
21900}
21901
21902_ACEOF
21903
21904cat >>$CONFIG_STATUS <<_ACEOF
21905
21906#
21907# CONFIG_FILES section.
21908#
21909
21910# No need to generate the scripts if there are no CONFIG_FILES.
21911# This happens for instance when ./config.status config.h
21912if test -n "\$CONFIG_FILES"; then
21913 # Protect against being on the right side of a sed subst in config.status.
21914 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21915 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21916s,@SHELL@,$SHELL,;t t
21917s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21918s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21919s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21920s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21921s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21922s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21923s,@exec_prefix@,$exec_prefix,;t t
21924s,@prefix@,$prefix,;t t
21925s,@program_transform_name@,$program_transform_name,;t t
21926s,@bindir@,$bindir,;t t
21927s,@sbindir@,$sbindir,;t t
21928s,@libexecdir@,$libexecdir,;t t
21929s,@datadir@,$datadir,;t t
21930s,@sysconfdir@,$sysconfdir,;t t
21931s,@sharedstatedir@,$sharedstatedir,;t t
21932s,@localstatedir@,$localstatedir,;t t
21933s,@libdir@,$libdir,;t t
21934s,@includedir@,$includedir,;t t
21935s,@oldincludedir@,$oldincludedir,;t t
21936s,@infodir@,$infodir,;t t
21937s,@mandir@,$mandir,;t t
21938s,@build_alias@,$build_alias,;t t
21939s,@host_alias@,$host_alias,;t t
21940s,@target_alias@,$target_alias,;t t
21941s,@DEFS@,$DEFS,;t t
21942s,@ECHO_C@,$ECHO_C,;t t
21943s,@ECHO_N@,$ECHO_N,;t t
21944s,@ECHO_T@,$ECHO_T,;t t
21945s,@LIBS@,$LIBS,;t t
aeda7a78 21946s,@GENINSRC_TRUE@,$GENINSRC_TRUE,;t t
21947s,@GENINSRC_FALSE@,$GENINSRC_FALSE,;t t
1e8e9920 21948s,@build@,$build,;t t
21949s,@build_cpu@,$build_cpu,;t t
21950s,@build_vendor@,$build_vendor,;t t
21951s,@build_os@,$build_os,;t t
21952s,@host@,$host,;t t
21953s,@host_cpu@,$host_cpu,;t t
21954s,@host_vendor@,$host_vendor,;t t
21955s,@host_os@,$host_os,;t t
21956s,@target@,$target,;t t
21957s,@target_cpu@,$target_cpu,;t t
21958s,@target_vendor@,$target_vendor,;t t
21959s,@target_os@,$target_os,;t t
21960s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21961s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21962s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21963s,@CYGPATH_W@,$CYGPATH_W,;t t
21964s,@PACKAGE@,$PACKAGE,;t t
21965s,@VERSION@,$VERSION,;t t
21966s,@ACLOCAL@,$ACLOCAL,;t t
21967s,@AUTOCONF@,$AUTOCONF,;t t
21968s,@AUTOMAKE@,$AUTOMAKE,;t t
21969s,@AUTOHEADER@,$AUTOHEADER,;t t
21970s,@MAKEINFO@,$MAKEINFO,;t t
21971s,@install_sh@,$install_sh,;t t
21972s,@STRIP@,$STRIP,;t t
21973s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21974s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
21975s,@mkdir_p@,$mkdir_p,;t t
21976s,@AWK@,$AWK,;t t
21977s,@SET_MAKE@,$SET_MAKE,;t t
21978s,@am__leading_dot@,$am__leading_dot,;t t
21979s,@AMTAR@,$AMTAR,;t t
21980s,@am__tar@,$am__tar,;t t
21981s,@am__untar@,$am__untar,;t t
21982s,@multi_basedir@,$multi_basedir,;t t
21983s,@toolexecdir@,$toolexecdir,;t t
21984s,@toolexeclibdir@,$toolexeclibdir,;t t
21985s,@CC@,$CC,;t t
21986s,@ac_ct_CC@,$ac_ct_CC,;t t
21987s,@EXEEXT@,$EXEEXT,;t t
21988s,@OBJEXT@,$OBJEXT,;t t
21989s,@DEPDIR@,$DEPDIR,;t t
21990s,@am__include@,$am__include,;t t
21991s,@am__quote@,$am__quote,;t t
21992s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21993s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21994s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
21995s,@CCDEPMODE@,$CCDEPMODE,;t t
21996s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
21997s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
21998s,@CFLAGS@,$CFLAGS,;t t
21999s,@AR@,$AR,;t t
22000s,@ac_ct_AR@,$ac_ct_AR,;t t
22001s,@RANLIB@,$RANLIB,;t t
22002s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22003s,@PERL@,$PERL,;t t
439d698f 22004s,@BUILD_INFO_TRUE@,$BUILD_INFO_TRUE,;t t
22005s,@BUILD_INFO_FALSE@,$BUILD_INFO_FALSE,;t t
1e8e9920 22006s,@LIBTOOL@,$LIBTOOL,;t t
542f9784 22007s,@SED@,$SED,;t t
22008s,@EGREP@,$EGREP,;t t
22009s,@FGREP@,$FGREP,;t t
22010s,@GREP@,$GREP,;t t
22011s,@LD@,$LD,;t t
22012s,@DUMPBIN@,$DUMPBIN,;t t
22013s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
22014s,@NM@,$NM,;t t
22015s,@LN_S@,$LN_S,;t t
22016s,@lt_ECHO@,$lt_ECHO,;t t
22017s,@CPP@,$CPP,;t t
22018s,@CPPFLAGS@,$CPPFLAGS,;t t
1e8e9920 22019s,@enable_shared@,$enable_shared,;t t
22020s,@enable_static@,$enable_static,;t t
a263d1ab 22021s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
22022s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
22023s,@MAINT@,$MAINT,;t t
1e8e9920 22024s,@FC@,$FC,;t t
22025s,@FCFLAGS@,$FCFLAGS,;t t
22026s,@LDFLAGS@,$LDFLAGS,;t t
22027s,@ac_ct_FC@,$ac_ct_FC,;t t
22028s,@libtool_VERSION@,$libtool_VERSION,;t t
1e8e9920 22029s,@SECTION_LDFLAGS@,$SECTION_LDFLAGS,;t t
22030s,@OPT_LDFLAGS@,$OPT_LDFLAGS,;t t
22031s,@LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE@,$LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE,;t t
22032s,@LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE@,$LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE,;t t
22033s,@config_path@,$config_path,;t t
22034s,@XCFLAGS@,$XCFLAGS,;t t
22035s,@XLDFLAGS@,$XLDFLAGS,;t t
22036s,@link_gomp@,$link_gomp,;t t
22037s,@USE_FORTRAN_TRUE@,$USE_FORTRAN_TRUE,;t t
22038s,@USE_FORTRAN_FALSE@,$USE_FORTRAN_FALSE,;t t
107c3bbf 22039s,@OMP_LOCK_SIZE@,$OMP_LOCK_SIZE,;t t
22040s,@OMP_LOCK_ALIGN@,$OMP_LOCK_ALIGN,;t t
22041s,@OMP_NEST_LOCK_SIZE@,$OMP_NEST_LOCK_SIZE,;t t
22042s,@OMP_NEST_LOCK_ALIGN@,$OMP_NEST_LOCK_ALIGN,;t t
22043s,@OMP_LOCK_KIND@,$OMP_LOCK_KIND,;t t
22044s,@OMP_NEST_LOCK_KIND@,$OMP_NEST_LOCK_KIND,;t t
fd6481cf 22045s,@OMP_LOCK_25_SIZE@,$OMP_LOCK_25_SIZE,;t t
22046s,@OMP_LOCK_25_ALIGN@,$OMP_LOCK_25_ALIGN,;t t
22047s,@OMP_NEST_LOCK_25_SIZE@,$OMP_NEST_LOCK_25_SIZE,;t t
22048s,@OMP_NEST_LOCK_25_ALIGN@,$OMP_NEST_LOCK_25_ALIGN,;t t
22049s,@OMP_LOCK_25_KIND@,$OMP_LOCK_25_KIND,;t t
22050s,@OMP_NEST_LOCK_25_KIND@,$OMP_NEST_LOCK_25_KIND,;t t
1e8e9920 22051s,@LIBOBJS@,$LIBOBJS,;t t
22052s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22053CEOF
22054
22055_ACEOF
22056
22057 cat >>$CONFIG_STATUS <<\_ACEOF
22058 # Split the substitutions into bite-sized pieces for seds with
22059 # small command number limits, like on Digital OSF/1 and HP-UX.
22060 ac_max_sed_lines=48
22061 ac_sed_frag=1 # Number of current file.
22062 ac_beg=1 # First line for current file.
22063 ac_end=$ac_max_sed_lines # Line after last line for current file.
22064 ac_more_lines=:
22065 ac_sed_cmds=
22066 while $ac_more_lines; do
22067 if test $ac_beg -gt 1; then
22068 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22069 else
22070 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22071 fi
22072 if test ! -s $tmp/subs.frag; then
22073 ac_more_lines=false
22074 else
22075 # The purpose of the label and of the branching condition is to
22076 # speed up the sed processing (if there are no `@' at all, there
22077 # is no need to browse any of the substitutions).
22078 # These are the two extra sed commands mentioned above.
22079 (echo ':t
22080 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22081 if test -z "$ac_sed_cmds"; then
22082 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22083 else
22084 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22085 fi
22086 ac_sed_frag=`expr $ac_sed_frag + 1`
22087 ac_beg=$ac_end
22088 ac_end=`expr $ac_end + $ac_max_sed_lines`
22089 fi
22090 done
22091 if test -z "$ac_sed_cmds"; then
22092 ac_sed_cmds=cat
22093 fi
22094fi # test -n "$CONFIG_FILES"
22095
22096_ACEOF
22097cat >>$CONFIG_STATUS <<\_ACEOF
22098for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22099 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22100 case $ac_file in
22101 - | *:- | *:-:* ) # input from stdin
22102 cat >$tmp/stdin
22103 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22104 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22105 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22106 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22107 * ) ac_file_in=$ac_file.in ;;
22108 esac
22109
22110 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22111 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22112$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22113 X"$ac_file" : 'X\(//\)[^/]' \| \
22114 X"$ac_file" : 'X\(//\)$' \| \
22115 X"$ac_file" : 'X\(/\)' \| \
22116 . : '\(.\)' 2>/dev/null ||
22117echo X"$ac_file" |
22118 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22119 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22120 /^X\(\/\/\)$/{ s//\1/; q; }
22121 /^X\(\/\).*/{ s//\1/; q; }
22122 s/.*/./; q'`
22123 { if $as_mkdir_p; then
22124 mkdir -p "$ac_dir"
22125 else
22126 as_dir="$ac_dir"
22127 as_dirs=
22128 while test ! -d "$as_dir"; do
22129 as_dirs="$as_dir $as_dirs"
22130 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22131$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22132 X"$as_dir" : 'X\(//\)[^/]' \| \
22133 X"$as_dir" : 'X\(//\)$' \| \
22134 X"$as_dir" : 'X\(/\)' \| \
22135 . : '\(.\)' 2>/dev/null ||
22136echo X"$as_dir" |
22137 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22138 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22139 /^X\(\/\/\)$/{ s//\1/; q; }
22140 /^X\(\/\).*/{ s//\1/; q; }
22141 s/.*/./; q'`
22142 done
22143 test ! -n "$as_dirs" || mkdir $as_dirs
22144 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22145echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22146 { (exit 1); exit 1; }; }; }
22147
22148 ac_builddir=.
22149
22150if test "$ac_dir" != .; then
22151 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22152 # A "../" for each directory in $ac_dir_suffix.
22153 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22154else
22155 ac_dir_suffix= ac_top_builddir=
22156fi
22157
22158case $srcdir in
22159 .) # No --srcdir option. We are building in place.
22160 ac_srcdir=.
22161 if test -z "$ac_top_builddir"; then
22162 ac_top_srcdir=.
22163 else
22164 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22165 fi ;;
22166 [\\/]* | ?:[\\/]* ) # Absolute path.
22167 ac_srcdir=$srcdir$ac_dir_suffix;
22168 ac_top_srcdir=$srcdir ;;
22169 *) # Relative path.
22170 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22171 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22172esac
22173
22174# Do not use `cd foo && pwd` to compute absolute paths, because
22175# the directories may not exist.
22176case `pwd` in
22177.) ac_abs_builddir="$ac_dir";;
22178*)
22179 case "$ac_dir" in
22180 .) ac_abs_builddir=`pwd`;;
22181 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22182 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22183 esac;;
22184esac
22185case $ac_abs_builddir in
22186.) ac_abs_top_builddir=${ac_top_builddir}.;;
22187*)
22188 case ${ac_top_builddir}. in
22189 .) ac_abs_top_builddir=$ac_abs_builddir;;
22190 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22191 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22192 esac;;
22193esac
22194case $ac_abs_builddir in
22195.) ac_abs_srcdir=$ac_srcdir;;
22196*)
22197 case $ac_srcdir in
22198 .) ac_abs_srcdir=$ac_abs_builddir;;
22199 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22200 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22201 esac;;
22202esac
22203case $ac_abs_builddir in
22204.) ac_abs_top_srcdir=$ac_top_srcdir;;
22205*)
22206 case $ac_top_srcdir in
22207 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22208 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22209 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22210 esac;;
22211esac
22212
22213
22214 case $INSTALL in
22215 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22216 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22217 esac
22218
59da30e1 22219 if test x"$ac_file" != x-; then
22220 { echo "$as_me:$LINENO: creating $ac_file" >&5
22221echo "$as_me: creating $ac_file" >&6;}
22222 rm -f "$ac_file"
22223 fi
1e8e9920 22224 # Let's still pretend it is `configure' which instantiates (i.e., don't
22225 # use $as_me), people would be surprised to read:
22226 # /* config.h. Generated by config.status. */
22227 if test x"$ac_file" = x-; then
22228 configure_input=
22229 else
22230 configure_input="$ac_file. "
22231 fi
22232 configure_input=$configure_input"Generated from `echo $ac_file_in |
22233 sed 's,.*/,,'` by configure."
22234
22235 # First look for the input files in the build tree, otherwise in the
22236 # src tree.
22237 ac_file_inputs=`IFS=:
22238 for f in $ac_file_in; do
22239 case $f in
22240 -) echo $tmp/stdin ;;
22241 [\\/$]*)
22242 # Absolute (can't be DOS-style, as IFS=:)
22243 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22244echo "$as_me: error: cannot find input file: $f" >&2;}
22245 { (exit 1); exit 1; }; }
22246 echo "$f";;
22247 *) # Relative
22248 if test -f "$f"; then
22249 # Build tree
22250 echo "$f"
22251 elif test -f "$srcdir/$f"; then
22252 # Source tree
22253 echo "$srcdir/$f"
22254 else
22255 # /dev/null tree
22256 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22257echo "$as_me: error: cannot find input file: $f" >&2;}
22258 { (exit 1); exit 1; }; }
22259 fi;;
22260 esac
22261 done` || { (exit 1); exit 1; }
22262_ACEOF
22263cat >>$CONFIG_STATUS <<_ACEOF
22264 sed "$ac_vpsub
22265$extrasub
22266_ACEOF
22267cat >>$CONFIG_STATUS <<\_ACEOF
22268:t
22269/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22270s,@configure_input@,$configure_input,;t t
22271s,@srcdir@,$ac_srcdir,;t t
22272s,@abs_srcdir@,$ac_abs_srcdir,;t t
22273s,@top_srcdir@,$ac_top_srcdir,;t t
22274s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22275s,@builddir@,$ac_builddir,;t t
22276s,@abs_builddir@,$ac_abs_builddir,;t t
22277s,@top_builddir@,$ac_top_builddir,;t t
22278s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22279s,@INSTALL@,$ac_INSTALL,;t t
22280" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22281 rm -f $tmp/stdin
22282 if test x"$ac_file" != x-; then
22283 mv $tmp/out $ac_file
22284 else
22285 cat $tmp/out
22286 rm -f $tmp/out
22287 fi
22288
22289done
22290_ACEOF
22291cat >>$CONFIG_STATUS <<\_ACEOF
22292
22293#
22294# CONFIG_HEADER section.
22295#
22296
22297# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22298# NAME is the cpp macro being defined and VALUE is the value it is being given.
22299#
22300# ac_d sets the value in "#define NAME VALUE" lines.
22301ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22302ac_dB='[ ].*$,\1#\2'
22303ac_dC=' '
22304ac_dD=',;t'
22305# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22306ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22307ac_uB='$,\1#\2define\3'
22308ac_uC=' '
22309ac_uD=',;t'
22310
22311for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22312 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22313 case $ac_file in
22314 - | *:- | *:-:* ) # input from stdin
22315 cat >$tmp/stdin
22316 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22317 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22318 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22319 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22320 * ) ac_file_in=$ac_file.in ;;
22321 esac
22322
22323 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22324echo "$as_me: creating $ac_file" >&6;}
22325
22326 # First look for the input files in the build tree, otherwise in the
22327 # src tree.
22328 ac_file_inputs=`IFS=:
22329 for f in $ac_file_in; do
22330 case $f in
22331 -) echo $tmp/stdin ;;
22332 [\\/$]*)
22333 # Absolute (can't be DOS-style, as IFS=:)
22334 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22335echo "$as_me: error: cannot find input file: $f" >&2;}
22336 { (exit 1); exit 1; }; }
22337 # Do quote $f, to prevent DOS paths from being IFS'd.
22338 echo "$f";;
22339 *) # Relative
22340 if test -f "$f"; then
22341 # Build tree
22342 echo "$f"
22343 elif test -f "$srcdir/$f"; then
22344 # Source tree
22345 echo "$srcdir/$f"
22346 else
22347 # /dev/null tree
22348 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22349echo "$as_me: error: cannot find input file: $f" >&2;}
22350 { (exit 1); exit 1; }; }
22351 fi;;
22352 esac
22353 done` || { (exit 1); exit 1; }
22354 # Remove the trailing spaces.
22355 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22356
22357_ACEOF
22358
22359# Transform confdefs.h into two sed scripts, `conftest.defines' and
22360# `conftest.undefs', that substitutes the proper values into
22361# config.h.in to produce config.h. The first handles `#define'
22362# templates, and the second `#undef' templates.
22363# And first: Protect against being on the right side of a sed subst in
22364# config.status. Protect against being in an unquoted here document
22365# in config.status.
22366rm -f conftest.defines conftest.undefs
22367# Using a here document instead of a string reduces the quoting nightmare.
22368# Putting comments in sed scripts is not portable.
22369#
22370# `end' is used to avoid that the second main sed command (meant for
22371# 0-ary CPP macros) applies to n-ary macro definitions.
22372# See the Autoconf documentation for `clear'.
22373cat >confdef2sed.sed <<\_ACEOF
22374s/[\\&,]/\\&/g
22375s,[\\$`],\\&,g
22376t clear
22377: clear
22378s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22379t end
22380s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22381: end
22382_ACEOF
22383# If some macros were called several times there might be several times
22384# the same #defines, which is useless. Nevertheless, we may not want to
22385# sort them, since we want the *last* AC-DEFINE to be honored.
22386uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22387sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22388rm -f confdef2sed.sed
22389
22390# This sed command replaces #undef with comments. This is necessary, for
22391# example, in the case of _POSIX_SOURCE, which is predefined and required
22392# on some systems where configure will not decide to define it.
22393cat >>conftest.undefs <<\_ACEOF
22394s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22395_ACEOF
22396
22397# Break up conftest.defines because some shells have a limit on the size
22398# of here documents, and old seds have small limits too (100 cmds).
22399echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22400echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22401echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22402echo ' :' >>$CONFIG_STATUS
22403rm -f conftest.tail
22404while grep . conftest.defines >/dev/null
22405do
22406 # Write a limited-size here document to $tmp/defines.sed.
22407 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22408 # Speed up: don't consider the non `#define' lines.
22409 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22410 # Work around the forget-to-reset-the-flag bug.
22411 echo 't clr' >>$CONFIG_STATUS
22412 echo ': clr' >>$CONFIG_STATUS
22413 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22414 echo 'CEOF
22415 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22416 rm -f $tmp/in
22417 mv $tmp/out $tmp/in
22418' >>$CONFIG_STATUS
22419 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22420 rm -f conftest.defines
22421 mv conftest.tail conftest.defines
22422done
22423rm -f conftest.defines
22424echo ' fi # grep' >>$CONFIG_STATUS
22425echo >>$CONFIG_STATUS
22426
22427# Break up conftest.undefs because some shells have a limit on the size
22428# of here documents, and old seds have small limits too (100 cmds).
22429echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22430rm -f conftest.tail
22431while grep . conftest.undefs >/dev/null
22432do
22433 # Write a limited-size here document to $tmp/undefs.sed.
22434 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22435 # Speed up: don't consider the non `#undef'
22436 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22437 # Work around the forget-to-reset-the-flag bug.
22438 echo 't clr' >>$CONFIG_STATUS
22439 echo ': clr' >>$CONFIG_STATUS
22440 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22441 echo 'CEOF
22442 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22443 rm -f $tmp/in
22444 mv $tmp/out $tmp/in
22445' >>$CONFIG_STATUS
22446 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22447 rm -f conftest.undefs
22448 mv conftest.tail conftest.undefs
22449done
22450rm -f conftest.undefs
22451
22452cat >>$CONFIG_STATUS <<\_ACEOF
22453 # Let's still pretend it is `configure' which instantiates (i.e., don't
22454 # use $as_me), people would be surprised to read:
22455 # /* config.h. Generated by config.status. */
22456 if test x"$ac_file" = x-; then
22457 echo "/* Generated by configure. */" >$tmp/config.h
22458 else
22459 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22460 fi
22461 cat $tmp/in >>$tmp/config.h
22462 rm -f $tmp/in
22463 if test x"$ac_file" != x-; then
22464 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22465 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22466echo "$as_me: $ac_file is unchanged" >&6;}
22467 else
22468 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22469$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22470 X"$ac_file" : 'X\(//\)[^/]' \| \
22471 X"$ac_file" : 'X\(//\)$' \| \
22472 X"$ac_file" : 'X\(/\)' \| \
22473 . : '\(.\)' 2>/dev/null ||
22474echo X"$ac_file" |
22475 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22476 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22477 /^X\(\/\/\)$/{ s//\1/; q; }
22478 /^X\(\/\).*/{ s//\1/; q; }
22479 s/.*/./; q'`
22480 { if $as_mkdir_p; then
22481 mkdir -p "$ac_dir"
22482 else
22483 as_dir="$ac_dir"
22484 as_dirs=
22485 while test ! -d "$as_dir"; do
22486 as_dirs="$as_dir $as_dirs"
22487 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22488$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22489 X"$as_dir" : 'X\(//\)[^/]' \| \
22490 X"$as_dir" : 'X\(//\)$' \| \
22491 X"$as_dir" : 'X\(/\)' \| \
22492 . : '\(.\)' 2>/dev/null ||
22493echo X"$as_dir" |
22494 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22495 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22496 /^X\(\/\/\)$/{ s//\1/; q; }
22497 /^X\(\/\).*/{ s//\1/; q; }
22498 s/.*/./; q'`
22499 done
22500 test ! -n "$as_dirs" || mkdir $as_dirs
22501 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22502echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22503 { (exit 1); exit 1; }; }; }
22504
22505 rm -f $ac_file
22506 mv $tmp/config.h $ac_file
22507 fi
22508 else
22509 cat $tmp/config.h
22510 rm -f $tmp/config.h
22511 fi
22512# Compute $ac_file's index in $config_headers.
22513_am_stamp_count=1
22514for _am_header in $config_headers :; do
22515 case $_am_header in
22516 $ac_file | $ac_file:* )
22517 break ;;
22518 * )
22519 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22520 esac
22521done
22522echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
22523$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22524 X$ac_file : 'X\(//\)[^/]' \| \
22525 X$ac_file : 'X\(//\)$' \| \
22526 X$ac_file : 'X\(/\)' \| \
22527 . : '\(.\)' 2>/dev/null ||
22528echo X$ac_file |
22529 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22530 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22531 /^X\(\/\/\)$/{ s//\1/; q; }
22532 /^X\(\/\).*/{ s//\1/; q; }
22533 s/.*/./; q'`/stamp-h$_am_stamp_count
22534done
22535_ACEOF
22536cat >>$CONFIG_STATUS <<\_ACEOF
22537
22538#
22539# CONFIG_COMMANDS section.
22540#
22541for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22542 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22543 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22544 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22545$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22546 X"$ac_dest" : 'X\(//\)[^/]' \| \
22547 X"$ac_dest" : 'X\(//\)$' \| \
22548 X"$ac_dest" : 'X\(/\)' \| \
22549 . : '\(.\)' 2>/dev/null ||
22550echo X"$ac_dest" |
22551 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22552 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22553 /^X\(\/\/\)$/{ s//\1/; q; }
22554 /^X\(\/\).*/{ s//\1/; q; }
22555 s/.*/./; q'`
22556 { if $as_mkdir_p; then
22557 mkdir -p "$ac_dir"
22558 else
22559 as_dir="$ac_dir"
22560 as_dirs=
22561 while test ! -d "$as_dir"; do
22562 as_dirs="$as_dir $as_dirs"
22563 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22564$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22565 X"$as_dir" : 'X\(//\)[^/]' \| \
22566 X"$as_dir" : 'X\(//\)$' \| \
22567 X"$as_dir" : 'X\(/\)' \| \
22568 . : '\(.\)' 2>/dev/null ||
22569echo X"$as_dir" |
22570 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22571 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22572 /^X\(\/\/\)$/{ s//\1/; q; }
22573 /^X\(\/\).*/{ s//\1/; q; }
22574 s/.*/./; q'`
22575 done
22576 test ! -n "$as_dirs" || mkdir $as_dirs
22577 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22578echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22579 { (exit 1); exit 1; }; }; }
22580
22581 ac_builddir=.
22582
22583if test "$ac_dir" != .; then
22584 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22585 # A "../" for each directory in $ac_dir_suffix.
22586 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22587else
22588 ac_dir_suffix= ac_top_builddir=
22589fi
22590
22591case $srcdir in
22592 .) # No --srcdir option. We are building in place.
22593 ac_srcdir=.
22594 if test -z "$ac_top_builddir"; then
22595 ac_top_srcdir=.
22596 else
22597 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22598 fi ;;
22599 [\\/]* | ?:[\\/]* ) # Absolute path.
22600 ac_srcdir=$srcdir$ac_dir_suffix;
22601 ac_top_srcdir=$srcdir ;;
22602 *) # Relative path.
22603 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22604 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22605esac
22606
22607# Do not use `cd foo && pwd` to compute absolute paths, because
22608# the directories may not exist.
22609case `pwd` in
22610.) ac_abs_builddir="$ac_dir";;
22611*)
22612 case "$ac_dir" in
22613 .) ac_abs_builddir=`pwd`;;
22614 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22615 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22616 esac;;
22617esac
22618case $ac_abs_builddir in
22619.) ac_abs_top_builddir=${ac_top_builddir}.;;
22620*)
22621 case ${ac_top_builddir}. in
22622 .) ac_abs_top_builddir=$ac_abs_builddir;;
22623 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22624 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22625 esac;;
22626esac
22627case $ac_abs_builddir in
22628.) ac_abs_srcdir=$ac_srcdir;;
22629*)
22630 case $ac_srcdir in
22631 .) ac_abs_srcdir=$ac_abs_builddir;;
22632 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22633 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22634 esac;;
22635esac
22636case $ac_abs_builddir in
22637.) ac_abs_top_srcdir=$ac_top_srcdir;;
22638*)
22639 case $ac_top_srcdir in
22640 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22641 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22642 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22643 esac;;
22644esac
22645
22646
22647 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22648echo "$as_me: executing $ac_dest commands" >&6;}
22649 case $ac_dest in
22650 default-1 )
22651# Only add multilib support code if we just rebuilt the top-level
22652# Makefile.
22653case " $CONFIG_FILES " in
22654 *" Makefile "*)
22655 ac_file=Makefile . ${multi_basedir}/config-ml.in
22656 ;;
22657esac ;;
22658 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22659 # Strip MF so we end up with the name of the file.
22660 mf=`echo "$mf" | sed -e 's/:.*$//'`
22661 # Check whether this is an Automake generated Makefile or not.
22662 # We used to match only the files named `Makefile.in', but
22663 # some people rename them; so instead we look at the file content.
22664 # Grep'ing the first line is not enough: some people post-process
22665 # each Makefile.in and add a new line on top of each file to say so.
22666 # So let's grep whole file.
22667 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22668 dirpart=`(dirname "$mf") 2>/dev/null ||
22669$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22670 X"$mf" : 'X\(//\)[^/]' \| \
22671 X"$mf" : 'X\(//\)$' \| \
22672 X"$mf" : 'X\(/\)' \| \
22673 . : '\(.\)' 2>/dev/null ||
22674echo X"$mf" |
22675 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22676 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22677 /^X\(\/\/\)$/{ s//\1/; q; }
22678 /^X\(\/\).*/{ s//\1/; q; }
22679 s/.*/./; q'`
22680 else
22681 continue
22682 fi
22683 # Extract the definition of DEPDIR, am__include, and am__quote
22684 # from the Makefile without running `make'.
22685 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22686 test -z "$DEPDIR" && continue
22687 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22688 test -z "am__include" && continue
22689 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22690 # When using ansi2knr, U may be empty or an underscore; expand it
22691 U=`sed -n 's/^U = //p' < "$mf"`
22692 # Find all dependency output files, they are included files with
22693 # $(DEPDIR) in their names. We invoke sed twice because it is the
22694 # simplest approach to changing $(DEPDIR) to its actual value in the
22695 # expansion.
22696 for file in `sed -n "
22697 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22698 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22699 # Make sure the directory exists.
22700 test -f "$dirpart/$file" && continue
22701 fdir=`(dirname "$file") 2>/dev/null ||
22702$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22703 X"$file" : 'X\(//\)[^/]' \| \
22704 X"$file" : 'X\(//\)$' \| \
22705 X"$file" : 'X\(/\)' \| \
22706 . : '\(.\)' 2>/dev/null ||
22707echo X"$file" |
22708 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22709 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22710 /^X\(\/\/\)$/{ s//\1/; q; }
22711 /^X\(\/\).*/{ s//\1/; q; }
22712 s/.*/./; q'`
22713 { if $as_mkdir_p; then
22714 mkdir -p $dirpart/$fdir
22715 else
22716 as_dir=$dirpart/$fdir
22717 as_dirs=
22718 while test ! -d "$as_dir"; do
22719 as_dirs="$as_dir $as_dirs"
22720 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22721$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22722 X"$as_dir" : 'X\(//\)[^/]' \| \
22723 X"$as_dir" : 'X\(//\)$' \| \
22724 X"$as_dir" : 'X\(/\)' \| \
22725 . : '\(.\)' 2>/dev/null ||
22726echo X"$as_dir" |
22727 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22728 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22729 /^X\(\/\/\)$/{ s//\1/; q; }
22730 /^X\(\/\).*/{ s//\1/; q; }
22731 s/.*/./; q'`
22732 done
22733 test ! -n "$as_dirs" || mkdir $as_dirs
22734 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
22735echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
22736 { (exit 1); exit 1; }; }; }
22737
22738 # echo "creating $dirpart/$file"
22739 echo '# dummy' > "$dirpart/$file"
22740 done
22741done
542f9784 22742 ;;
22743 libtool )
22744
22745 # See if we are running on zsh, and set the options which allow our
22746 # commands through without removal of \ escapes.
22747 if test -n "${ZSH_VERSION+set}" ; then
22748 setopt NO_GLOB_SUBST
22749 fi
22750
22751 cfgfile="${ofile}T"
22752 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22753 $RM "$cfgfile"
22754
22755 cat <<_LT_EOF >> "$cfgfile"
22756#! $SHELL
22757
22758# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
22759# Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
22760# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22761# NOTE: Changes made to this file will be lost: look at ltmain.sh.
22762#
22763# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
22764# 2006, 2007 Free Software Foundation, Inc.
22765#
22766# This file is part of GNU Libtool:
22767# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
22768#
22769# This program is free software; you can redistribute it and/or modify
22770# it under the terms of the GNU General Public License as published by
22771# the Free Software Foundation; either version 2 of the License, or
22772# (at your option) any later version.
22773#
22774# This program is distributed in the hope that it will be useful, but
22775# WITHOUT ANY WARRANTY; without even the implied warranty of
22776# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22777# General Public License for more details.
22778#
22779# You should have received a copy of the GNU General Public License
22780# along with this program; if not, a copy can be downloaded from
22781# http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
22782# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
22783# MA 02110-1301, USA.
22784#
22785# As a special exception to the GNU General Public License, if you
22786# distribute this file as part of a program that contains a
22787# configuration script generated by Autoconf, you may include it under
22788# the same distribution terms that you use for the rest of that program.
22789
22790
22791# The names of the tagged configurations supported by this script.
22792available_tags="FC "
22793
22794# ### BEGIN LIBTOOL CONFIG
22795
22796# Which release of libtool.m4 was used?
22797macro_version=$macro_version
22798macro_revision=$macro_revision
22799
22800# Whether or not to build shared libraries.
22801build_libtool_libs=$enable_shared
22802
22803# Whether or not to build static libraries.
22804build_old_libs=$enable_static
22805
22806# What type of objects to build.
22807pic_mode=$pic_mode
22808
22809# Whether or not to optimize for fast installation.
22810fast_install=$enable_fast_install
22811
22812# The host system.
22813host_alias=$host_alias
22814host=$host
22815host_os=$host_os
22816
22817# The build system.
22818build_alias=$build_alias
22819build=$build
22820build_os=$build_os
22821
22822# A sed program that does not truncate output.
22823SED=$lt_SED
22824
22825# Sed that helps us avoid accidentally triggering echo(1) options like -n.
22826Xsed="\$SED -e 1s/^X//"
22827
22828# A grep program that handles long lines.
22829GREP=$lt_GREP
22830
22831# An ERE matcher.
22832EGREP=$lt_EGREP
22833
22834# A literal string matcher.
22835FGREP=$lt_FGREP
22836
22837# A BSD- or MS-compatible name lister.
22838NM=$lt_NM
22839
22840# Whether we need soft or hard links.
22841LN_S=$lt_LN_S
22842
22843# What is the maximum length of a command?
22844max_cmd_len=$max_cmd_len
22845
22846# Object file suffix (normally "o").
22847objext=$ac_objext
22848
22849# Executable file suffix (normally "").
22850exeext=$exeext
22851
22852# whether the shell understands "unset".
22853lt_unset=$lt_unset
22854
22855# turn spaces into newlines.
22856SP2NL=$lt_lt_SP2NL
22857
22858# turn newlines into spaces.
22859NL2SP=$lt_lt_NL2SP
22860
22861# How to create reloadable object files.
22862reload_flag=$lt_reload_flag
22863reload_cmds=$lt_reload_cmds
22864
22865# Method to check whether dependent libraries are shared objects.
22866deplibs_check_method=$lt_deplibs_check_method
22867
22868# Command to use when deplibs_check_method == "file_magic".
22869file_magic_cmd=$lt_file_magic_cmd
22870
22871# The archiver.
22872AR=$lt_AR
22873AR_FLAGS=$lt_AR_FLAGS
22874
22875# A symbol stripping program.
22876STRIP=$lt_STRIP
22877
22878# Commands used to install an old-style archive.
22879RANLIB=$lt_RANLIB
22880old_postinstall_cmds=$lt_old_postinstall_cmds
22881old_postuninstall_cmds=$lt_old_postuninstall_cmds
22882
22883# A C compiler.
22884LTCC=$lt_CC
22885
22886# LTCC compiler flags.
22887LTCFLAGS=$lt_CFLAGS
22888
22889# Take the output of nm and produce a listing of raw symbols and C names.
22890global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22891
22892# Transform the output of nm in a proper C declaration.
22893global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22894
22895# Transform the output of nm in a C name address pair.
22896global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22897
22898# The name of the directory that contains temporary libtool files.
22899objdir=$objdir
22900
22901# Shell to use when invoking shell scripts.
22902SHELL=$lt_SHELL
22903
22904# An echo program that does not interpret backslashes.
22905ECHO=$lt_ECHO
22906
22907# Used to examine libraries when file_magic_cmd begins with "file".
22908MAGIC_CMD=$MAGIC_CMD
22909
22910# Must we lock files when doing compilation?
22911need_locks=$lt_need_locks
22912
22913# Old archive suffix (normally "a").
22914libext=$libext
22915
22916# Shared library suffix (normally ".so").
22917shrext_cmds=$lt_shrext_cmds
22918
22919# The commands to extract the exported symbol list from a shared archive.
22920extract_expsyms_cmds=$lt_extract_expsyms_cmds
22921
22922# Variables whose values should be saved in libtool wrapper scripts and
22923# restored at link time.
22924variables_saved_for_relink=$lt_variables_saved_for_relink
22925
22926# Do we need the "lib" prefix for modules?
22927need_lib_prefix=$need_lib_prefix
22928
22929# Do we need a version for libraries?
22930need_version=$need_version
22931
22932# Library versioning type.
22933version_type=$version_type
22934
22935# Shared library runtime path variable.
22936runpath_var=$runpath_var
22937
22938# Shared library path variable.
22939shlibpath_var=$shlibpath_var
22940
22941# Is shlibpath searched before the hard-coded library search path?
22942shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22943
22944# Format of library name prefix.
22945libname_spec=$lt_libname_spec
22946
22947# List of archive names. First name is the real one, the rest are links.
22948# The last name is the one that the linker finds with -lNAME
22949library_names_spec=$lt_library_names_spec
22950
22951# The coded name of the library, if different from the real name.
22952soname_spec=$lt_soname_spec
22953
22954# Command to use after installation of a shared archive.
22955postinstall_cmds=$lt_postinstall_cmds
22956
22957# Command to use after uninstallation of a shared archive.
22958postuninstall_cmds=$lt_postuninstall_cmds
22959
22960# Commands used to finish a libtool library installation in a directory.
22961finish_cmds=$lt_finish_cmds
22962
22963# As "finish_cmds", except a single script fragment to be evaled but
22964# not shown.
22965finish_eval=$lt_finish_eval
22966
22967# Whether we should hardcode library paths into libraries.
22968hardcode_into_libs=$hardcode_into_libs
22969
22970# Compile-time system search path for libraries.
22971sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22972
22973# Run-time system search path for libraries.
22974sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22975
22976# Whether dlopen is supported.
22977dlopen_support=$enable_dlopen
22978
22979# Whether dlopen of programs is supported.
22980dlopen_self=$enable_dlopen_self
22981
22982# Whether dlopen of statically linked programs is supported.
22983dlopen_self_static=$enable_dlopen_self_static
22984
22985# Commands to strip libraries.
22986old_striplib=$lt_old_striplib
22987striplib=$lt_striplib
22988
22989
22990# The linker used to build libraries.
22991LD=$lt_LD
22992
22993# Commands used to build an old-style archive.
22994old_archive_cmds=$lt_old_archive_cmds
22995
22996# A language specific compiler.
22997CC=$lt_compiler
22998
22999# Is the compiler the GNU compiler?
23000with_gcc=$GCC
23001
23002# Compiler flag to turn off builtin functions.
23003no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23004
23005# How to pass a linker flag through the compiler.
23006wl=$lt_lt_prog_compiler_wl
23007
23008# Additional compiler flags for building library objects.
23009pic_flag=$lt_lt_prog_compiler_pic
23010
23011# Compiler flag to prevent dynamic linking.
23012link_static_flag=$lt_lt_prog_compiler_static
23013
23014# Does compiler simultaneously support -c and -o options?
23015compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23016
23017# Whether or not to add -lc for building shared libraries.
23018build_libtool_need_lc=$archive_cmds_need_lc
23019
23020# Whether or not to disallow shared libs when runtime libs are static.
23021allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23022
23023# Compiler flag to allow reflexive dlopens.
23024export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23025
23026# Compiler flag to generate shared objects directly from archives.
23027whole_archive_flag_spec=$lt_whole_archive_flag_spec
23028
23029# Whether the compiler copes with passing no objects directly.
23030compiler_needs_object=$lt_compiler_needs_object
23031
23032# Create an old-style archive from a shared archive.
23033old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23034
23035# Create a temporary old-style archive to link instead of a shared archive.
23036old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23037
23038# Commands used to build a shared archive.
23039archive_cmds=$lt_archive_cmds
23040archive_expsym_cmds=$lt_archive_expsym_cmds
23041
23042# Commands used to build a loadable module if different from building
23043# a shared archive.
23044module_cmds=$lt_module_cmds
23045module_expsym_cmds=$lt_module_expsym_cmds
23046
23047# Whether we are building with GNU ld or not.
23048with_gnu_ld=$lt_with_gnu_ld
23049
23050# Flag that allows shared libraries with undefined symbols to be built.
23051allow_undefined_flag=$lt_allow_undefined_flag
23052
23053# Flag that enforces no undefined symbols.
23054no_undefined_flag=$lt_no_undefined_flag
23055
23056# Flag to hardcode \$libdir into a binary during linking.
23057# This must work even if \$libdir does not exist
23058hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23059
23060# If ld is used when linking, flag to hardcode \$libdir into a binary
23061# during linking. This must work even if \$libdir does not exist.
23062hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
23063
23064# Whether we need a single "-rpath" flag with a separated argument.
23065hardcode_libdir_separator=$lt_hardcode_libdir_separator
23066
23067# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23068# DIR into the resulting binary.
23069hardcode_direct=$hardcode_direct
23070
23071# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23072# DIR into the resulting binary and the resulting library dependency is
23073# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
23074# library is relocated.
23075hardcode_direct_absolute=$hardcode_direct_absolute
23076
23077# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23078# into the resulting binary.
23079hardcode_minus_L=$hardcode_minus_L
23080
23081# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23082# into the resulting binary.
23083hardcode_shlibpath_var=$hardcode_shlibpath_var
23084
23085# Set to "yes" if building a shared library automatically hardcodes DIR
23086# into the library and all subsequent libraries and executables linked
23087# against it.
23088hardcode_automatic=$hardcode_automatic
23089
23090# Set to yes if linker adds runtime paths of dependent libraries
23091# to runtime path list.
23092inherit_rpath=$inherit_rpath
23093
23094# Whether libtool must link a program against all its dependency libraries.
23095link_all_deplibs=$link_all_deplibs
23096
23097# Fix the shell variable \$srcfile for the compiler.
23098fix_srcfile_path=$lt_fix_srcfile_path
23099
23100# Set to "yes" if exported symbols are required.
23101always_export_symbols=$always_export_symbols
23102
23103# The commands to list exported symbols.
23104export_symbols_cmds=$lt_export_symbols_cmds
23105
23106# Symbols that should not be listed in the preloaded symbols.
23107exclude_expsyms=$lt_exclude_expsyms
23108
23109# Symbols that must always be exported.
23110include_expsyms=$lt_include_expsyms
23111
23112# Commands necessary for linking programs (against libraries) with templates.
23113prelink_cmds=$lt_prelink_cmds
23114
23115# Specify filename containing input files.
23116file_list_spec=$lt_file_list_spec
23117
23118# How to hardcode a shared library path into an executable.
23119hardcode_action=$hardcode_action
23120
23121# Dependencies to place before and after the objects being linked to
23122# create a shared library.
23123predep_objects=$lt_predep_objects
23124postdep_objects=$lt_postdep_objects
23125predeps=$lt_predeps
23126postdeps=$lt_postdeps
23127
23128# The library search path used internally by the compiler when linking
23129# a shared library.
23130compiler_lib_search_path=$lt_compiler_lib_search_path
23131
23132# ### END LIBTOOL CONFIG
23133
23134_LT_EOF
23135
23136 case $host_os in
23137 aix3*)
23138 cat <<\_LT_EOF >> "$cfgfile"
23139# AIX sometimes has problems with the GCC collect2 program. For some
23140# reason, if we set the COLLECT_NAMES environment variable, the problems
23141# vanish in a puff of smoke.
23142if test "X${COLLECT_NAMES+set}" != Xset; then
23143 COLLECT_NAMES=
23144 export COLLECT_NAMES
23145fi
23146_LT_EOF
23147 ;;
23148 esac
23149
23150
23151ltmain="$ac_aux_dir/ltmain.sh"
23152
23153
23154 # We use sed instead of cat because bash on DJGPP gets confused if
23155 # if finds mixed CR/LF and LF-only lines. Since sed operates in
23156 # text mode, it properly converts lines to CR/LF. This bash problem
23157 # is reportedly fixed, but why not run on old versions too?
23158 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
23159 || (rm -f "$cfgfile"; exit 1)
23160
23161 case $xsi_shell in
23162 yes)
23163 cat << \_LT_EOF >> "$cfgfile"
23164# func_dirname file append nondir_replacement
23165# Compute the dirname of FILE. If nonempty, add APPEND to the result,
23166# otherwise set result to NONDIR_REPLACEMENT.
23167func_dirname ()
23168{
23169 case ${1} in
23170 */*) func_dirname_result="${1%/*}${2}" ;;
23171 * ) func_dirname_result="${3}" ;;
23172 esac
23173}
23174
23175# func_basename file
23176func_basename ()
23177{
23178 func_basename_result="${1##*/}"
23179}
23180
23181# func_stripname prefix suffix name
23182# strip PREFIX and SUFFIX off of NAME.
23183# PREFIX and SUFFIX must not contain globbing or regex special
23184# characters, hashes, percent signs, but SUFFIX may contain a leading
23185# dot (in which case that matches only a dot).
23186func_stripname ()
23187{
23188 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
23189 # positional parameters, so assign one to ordinary parameter first.
23190 func_stripname_result=${3}
23191 func_stripname_result=${func_stripname_result#"${1}"}
23192 func_stripname_result=${func_stripname_result%"${2}"}
23193}
23194
23195# func_opt_split
23196func_opt_split ()
23197{
23198 func_opt_split_opt=${1%%=*}
23199 func_opt_split_arg=${1#*=}
23200}
23201
23202# func_lo2o object
23203func_lo2o ()
23204{
23205 case ${1} in
23206 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
23207 *) func_lo2o_result=${1} ;;
23208 esac
23209}
23210_LT_EOF
23211 ;;
23212 *) # Bourne compatible functions.
23213 cat << \_LT_EOF >> "$cfgfile"
23214# func_dirname file append nondir_replacement
23215# Compute the dirname of FILE. If nonempty, add APPEND to the result,
23216# otherwise set result to NONDIR_REPLACEMENT.
23217func_dirname ()
23218{
23219 # Extract subdirectory from the argument.
23220 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
23221 if test "X$func_dirname_result" = "X${1}"; then
23222 func_dirname_result="${3}"
23223 else
23224 func_dirname_result="$func_dirname_result${2}"
23225 fi
23226}
23227
23228# func_basename file
23229func_basename ()
23230{
23231 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
23232}
23233
23234# func_stripname prefix suffix name
23235# strip PREFIX and SUFFIX off of NAME.
23236# PREFIX and SUFFIX must not contain globbing or regex special
23237# characters, hashes, percent signs, but SUFFIX may contain a leading
23238# dot (in which case that matches only a dot).
23239# func_strip_suffix prefix name
23240func_stripname ()
23241{
23242 case ${2} in
23243 .*) func_stripname_result=`$ECHO "X${3}" \
23244 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
23245 *) func_stripname_result=`$ECHO "X${3}" \
23246 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
23247 esac
23248}
23249
23250# sed scripts:
23251my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
23252my_sed_long_arg='1s/^-[^=]*=//'
23253
23254# func_opt_split
23255func_opt_split ()
23256{
23257 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
23258 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
23259}
23260
23261# func_lo2o object
23262func_lo2o ()
23263{
23264 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
23265}
23266_LT_EOF
23267esac
23268
23269case $lt_shell_append in
23270 yes)
23271 cat << \_LT_EOF >> "$cfgfile"
23272
23273# func_append var value
23274# Append VALUE to the end of shell variable VAR.
23275func_append ()
23276{
23277 eval "$1+=\$2"
23278}
23279_LT_EOF
23280 ;;
23281 *)
23282 cat << \_LT_EOF >> "$cfgfile"
23283
23284# func_append var value
23285# Append VALUE to the end of shell variable VAR.
23286func_append ()
23287{
23288 eval "$1=\$$1\$2"
23289}
23290_LT_EOF
23291 ;;
23292 esac
23293
23294
23295 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
23296 || (rm -f "$cfgfile"; exit 1)
23297
23298 mv -f "$cfgfile" "$ofile" ||
23299 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23300 chmod +x "$ofile"
23301
23302
23303 cat <<_LT_EOF >> "$ofile"
23304
23305# ### BEGIN LIBTOOL TAG CONFIG: FC
23306
23307# The linker used to build libraries.
23308LD=$lt_LD_FC
23309
23310# Commands used to build an old-style archive.
23311old_archive_cmds=$lt_old_archive_cmds_FC
23312
23313# A language specific compiler.
23314CC=$lt_compiler_FC
23315
23316# Is the compiler the GNU compiler?
23317with_gcc=$GCC_FC
23318
23319# Compiler flag to turn off builtin functions.
23320no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
23321
23322# How to pass a linker flag through the compiler.
23323wl=$lt_lt_prog_compiler_wl_FC
23324
23325# Additional compiler flags for building library objects.
23326pic_flag=$lt_lt_prog_compiler_pic_FC
23327
23328# Compiler flag to prevent dynamic linking.
23329link_static_flag=$lt_lt_prog_compiler_static_FC
23330
23331# Does compiler simultaneously support -c and -o options?
23332compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
23333
23334# Whether or not to add -lc for building shared libraries.
23335build_libtool_need_lc=$archive_cmds_need_lc_FC
23336
23337# Whether or not to disallow shared libs when runtime libs are static.
23338allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
23339
23340# Compiler flag to allow reflexive dlopens.
23341export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
23342
23343# Compiler flag to generate shared objects directly from archives.
23344whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
23345
23346# Whether the compiler copes with passing no objects directly.
23347compiler_needs_object=$lt_compiler_needs_object_FC
23348
23349# Create an old-style archive from a shared archive.
23350old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
23351
23352# Create a temporary old-style archive to link instead of a shared archive.
23353old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
23354
23355# Commands used to build a shared archive.
23356archive_cmds=$lt_archive_cmds_FC
23357archive_expsym_cmds=$lt_archive_expsym_cmds_FC
23358
23359# Commands used to build a loadable module if different from building
23360# a shared archive.
23361module_cmds=$lt_module_cmds_FC
23362module_expsym_cmds=$lt_module_expsym_cmds_FC
23363
23364# Whether we are building with GNU ld or not.
23365with_gnu_ld=$lt_with_gnu_ld_FC
23366
23367# Flag that allows shared libraries with undefined symbols to be built.
23368allow_undefined_flag=$lt_allow_undefined_flag_FC
23369
23370# Flag that enforces no undefined symbols.
23371no_undefined_flag=$lt_no_undefined_flag_FC
23372
23373# Flag to hardcode \$libdir into a binary during linking.
23374# This must work even if \$libdir does not exist
23375hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
23376
23377# If ld is used when linking, flag to hardcode \$libdir into a binary
23378# during linking. This must work even if \$libdir does not exist.
23379hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
23380
23381# Whether we need a single "-rpath" flag with a separated argument.
23382hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
23383
23384# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23385# DIR into the resulting binary.
23386hardcode_direct=$hardcode_direct_FC
23387
23388# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23389# DIR into the resulting binary and the resulting library dependency is
23390# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
23391# library is relocated.
23392hardcode_direct_absolute=$hardcode_direct_absolute_FC
23393
23394# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23395# into the resulting binary.
23396hardcode_minus_L=$hardcode_minus_L_FC
23397
23398# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23399# into the resulting binary.
23400hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
23401
23402# Set to "yes" if building a shared library automatically hardcodes DIR
23403# into the library and all subsequent libraries and executables linked
23404# against it.
23405hardcode_automatic=$hardcode_automatic_FC
23406
23407# Set to yes if linker adds runtime paths of dependent libraries
23408# to runtime path list.
23409inherit_rpath=$inherit_rpath_FC
23410
23411# Whether libtool must link a program against all its dependency libraries.
23412link_all_deplibs=$link_all_deplibs_FC
23413
23414# Fix the shell variable \$srcfile for the compiler.
23415fix_srcfile_path=$lt_fix_srcfile_path_FC
23416
23417# Set to "yes" if exported symbols are required.
23418always_export_symbols=$always_export_symbols_FC
23419
23420# The commands to list exported symbols.
23421export_symbols_cmds=$lt_export_symbols_cmds_FC
23422
23423# Symbols that should not be listed in the preloaded symbols.
23424exclude_expsyms=$lt_exclude_expsyms_FC
23425
23426# Symbols that must always be exported.
23427include_expsyms=$lt_include_expsyms_FC
23428
23429# Commands necessary for linking programs (against libraries) with templates.
23430prelink_cmds=$lt_prelink_cmds_FC
23431
23432# Specify filename containing input files.
23433file_list_spec=$lt_file_list_spec_FC
23434
23435# How to hardcode a shared library path into an executable.
23436hardcode_action=$hardcode_action_FC
23437
23438# Dependencies to place before and after the objects being linked to
23439# create a shared library.
23440predep_objects=$lt_predep_objects_FC
23441postdep_objects=$lt_postdep_objects_FC
23442predeps=$lt_predeps_FC
23443postdeps=$lt_postdeps_FC
23444
23445# The library search path used internally by the compiler when linking
23446# a shared library.
23447compiler_lib_search_path=$lt_compiler_lib_search_path_FC
23448
23449# ### END LIBTOOL TAG CONFIG: FC
23450_LT_EOF
23451
01473a49 23452 ;;
23453 gstdint.h )
23454if test "$GCC" = yes; then
23455 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
23456else
23457 echo "/* generated for $CC */" > tmp-stdint.h
23458fi
23459
23460sed 's/^ *//' >> tmp-stdint.h <<EOF
23461
23462 #ifndef GCC_GENERATED_STDINT_H
23463 #define GCC_GENERATED_STDINT_H 1
23464
23465 #include <sys/types.h>
23466EOF
23467
23468if test "$acx_cv_header_stdint" != stdint.h; then
23469 echo "#include <stddef.h>" >> tmp-stdint.h
23470fi
23471if test "$acx_cv_header_stdint" != stddef.h; then
23472 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
23473fi
23474
23475sed 's/^ *//' >> tmp-stdint.h <<EOF
23476 /* glibc uses these symbols as guards to prevent redefinitions. */
23477 #ifdef __int8_t_defined
23478 #define _INT8_T
23479 #define _INT16_T
23480 #define _INT32_T
23481 #endif
23482 #ifdef __uint32_t_defined
23483 #define _UINT32_T
23484 #endif
23485
23486EOF
23487
23488# ----------------- done header, emit basic int types -------------
23489if test "$acx_cv_header_stdint" = stddef.h; then
23490 sed 's/^ *//' >> tmp-stdint.h <<EOF
23491
23492 #ifndef _UINT8_T
23493 #define _UINT8_T
542f9784 23494 #ifndef __uint8_t_defined
23495 #define __uint8_t_defined
01473a49 23496 typedef unsigned $acx_cv_type_int8_t uint8_t;
23497 #endif
542f9784 23498 #endif
01473a49 23499
23500 #ifndef _UINT16_T
23501 #define _UINT16_T
542f9784 23502 #ifndef __uint16_t_defined
23503 #define __uint16_t_defined
01473a49 23504 typedef unsigned $acx_cv_type_int16_t uint16_t;
23505 #endif
542f9784 23506 #endif
01473a49 23507
23508 #ifndef _UINT32_T
23509 #define _UINT32_T
542f9784 23510 #ifndef __uint32_t_defined
23511 #define __uint32_t_defined
01473a49 23512 typedef unsigned $acx_cv_type_int32_t uint32_t;
23513 #endif
542f9784 23514 #endif
01473a49 23515
23516 #ifndef _INT8_T
23517 #define _INT8_T
542f9784 23518 #ifndef __int8_t_defined
23519 #define __int8_t_defined
01473a49 23520 typedef $acx_cv_type_int8_t int8_t;
23521 #endif
542f9784 23522 #endif
01473a49 23523
23524 #ifndef _INT16_T
23525 #define _INT16_T
542f9784 23526 #ifndef __int16_t_defined
23527 #define __int16_t_defined
01473a49 23528 typedef $acx_cv_type_int16_t int16_t;
23529 #endif
542f9784 23530 #endif
01473a49 23531
23532 #ifndef _INT32_T
23533 #define _INT32_T
542f9784 23534 #ifndef __int32_t_defined
23535 #define __int32_t_defined
01473a49 23536 typedef $acx_cv_type_int32_t int32_t;
23537 #endif
542f9784 23538 #endif
01473a49 23539EOF
23540elif test "$ac_cv_type_u_int32_t" = yes; then
23541 sed 's/^ *//' >> tmp-stdint.h <<EOF
23542
23543 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
23544 #ifndef _INT8_T
23545 #define _INT8_T
23546 #endif
23547 #ifndef _INT16_T
23548 #define _INT16_T
23549 #endif
23550 #ifndef _INT32_T
23551 #define _INT32_T
23552 #endif
23553
23554 #ifndef _UINT8_T
23555 #define _UINT8_T
542f9784 23556 #ifndef __uint8_t_defined
23557 #define __uint8_t_defined
01473a49 23558 typedef u_int8_t uint8_t;
23559 #endif
542f9784 23560 #endif
01473a49 23561
23562 #ifndef _UINT16_T
23563 #define _UINT16_T
542f9784 23564 #ifndef __uint16_t_defined
23565 #define __uint16_t_defined
01473a49 23566 typedef u_int16_t uint16_t;
23567 #endif
542f9784 23568 #endif
01473a49 23569
23570 #ifndef _UINT32_T
23571 #define _UINT32_T
542f9784 23572 #ifndef __uint32_t_defined
23573 #define __uint32_t_defined
01473a49 23574 typedef u_int32_t uint32_t;
23575 #endif
542f9784 23576 #endif
01473a49 23577EOF
23578else
23579 sed 's/^ *//' >> tmp-stdint.h <<EOF
23580
23581 /* Some systems have guard macros to prevent redefinitions, define them. */
23582 #ifndef _INT8_T
23583 #define _INT8_T
23584 #endif
23585 #ifndef _INT16_T
23586 #define _INT16_T
23587 #endif
23588 #ifndef _INT32_T
23589 #define _INT32_T
23590 #endif
23591 #ifndef _UINT8_T
23592 #define _UINT8_T
23593 #endif
23594 #ifndef _UINT16_T
23595 #define _UINT16_T
23596 #endif
23597 #ifndef _UINT32_T
23598 #define _UINT32_T
23599 #endif
23600EOF
23601fi
23602
23603# ------------- done basic int types, emit int64_t types ------------
23604if test "$ac_cv_type_uint64_t" = yes; then
23605 sed 's/^ *//' >> tmp-stdint.h <<EOF
23606
23607 /* system headers have good uint64_t and int64_t */
23608 #ifndef _INT64_T
23609 #define _INT64_T
23610 #endif
23611 #ifndef _UINT64_T
23612 #define _UINT64_T
23613 #endif
23614EOF
23615elif test "$ac_cv_type_u_int64_t" = yes; then
23616 sed 's/^ *//' >> tmp-stdint.h <<EOF
23617
23618 /* system headers have an u_int64_t (and int64_t) */
23619 #ifndef _INT64_T
23620 #define _INT64_T
23621 #endif
23622 #ifndef _UINT64_T
23623 #define _UINT64_T
542f9784 23624 #ifndef __uint64_t_defined
23625 #define __uint64_t_defined
01473a49 23626 typedef u_int64_t uint64_t;
23627 #endif
542f9784 23628 #endif
01473a49 23629EOF
23630elif test -n "$acx_cv_type_int64_t"; then
23631 sed 's/^ *//' >> tmp-stdint.h <<EOF
23632
23633 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
23634 #ifndef _INT64_T
23635 #define _INT64_T
23636 typedef $acx_cv_type_int64_t int64_t;
23637 #endif
23638 #ifndef _UINT64_T
23639 #define _UINT64_T
542f9784 23640 #ifndef __uint64_t_defined
23641 #define __uint64_t_defined
01473a49 23642 typedef unsigned $acx_cv_type_int64_t uint64_t;
23643 #endif
542f9784 23644 #endif
01473a49 23645EOF
23646else
23647 sed 's/^ *//' >> tmp-stdint.h <<EOF
23648
23649 /* some common heuristics for int64_t, using compiler-specific tests */
23650 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
23651 #ifndef _INT64_T
23652 #define _INT64_T
542f9784 23653 #ifndef __int64_t_defined
01473a49 23654 typedef long long int64_t;
23655 #endif
542f9784 23656 #endif
01473a49 23657 #ifndef _UINT64_T
23658 #define _UINT64_T
23659 typedef unsigned long long uint64_t;
23660 #endif
23661
23662 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
23663 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
23664 does not implement __extension__. But that compiler doesn't define
23665 __GNUC_MINOR__. */
23666 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
23667 # define __extension__
23668 # endif
23669
23670 # ifndef _INT64_T
23671 # define _INT64_T
23672 __extension__ typedef long long int64_t;
23673 # endif
23674 # ifndef _UINT64_T
23675 # define _UINT64_T
23676 __extension__ typedef unsigned long long uint64_t;
23677 # endif
23678
23679 #elif !defined __STRICT_ANSI__
23680 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
23681
23682 # ifndef _INT64_T
23683 # define _INT64_T
23684 typedef __int64 int64_t;
23685 # endif
23686 # ifndef _UINT64_T
23687 # define _UINT64_T
23688 typedef unsigned __int64 uint64_t;
23689 # endif
23690 # endif /* compiler */
23691
23692 #endif /* ANSI version */
23693EOF
23694fi
23695
23696# ------------- done int64_t types, emit intptr types ------------
23697if test "$ac_cv_type_uintptr_t" != yes; then
23698 sed 's/^ *//' >> tmp-stdint.h <<EOF
23699
23700 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
542f9784 23701 #ifndef __uintptr_t_defined
01473a49 23702 typedef u$acx_cv_type_intptr_t uintptr_t;
542f9784 23703 #endif
23704 #ifndef __intptr_t_defined
01473a49 23705 typedef $acx_cv_type_intptr_t intptr_t;
542f9784 23706 #endif
01473a49 23707EOF
23708fi
23709
23710# ------------- done intptr types, emit int_least types ------------
23711if test "$ac_cv_type_int_least32_t" != yes; then
23712 sed 's/^ *//' >> tmp-stdint.h <<EOF
23713
23714 /* Define int_least types */
23715 typedef int8_t int_least8_t;
23716 typedef int16_t int_least16_t;
23717 typedef int32_t int_least32_t;
23718 #ifdef _INT64_T
23719 typedef int64_t int_least64_t;
23720 #endif
23721
23722 typedef uint8_t uint_least8_t;
23723 typedef uint16_t uint_least16_t;
23724 typedef uint32_t uint_least32_t;
23725 #ifdef _UINT64_T
23726 typedef uint64_t uint_least64_t;
23727 #endif
23728EOF
23729fi
23730
23731# ------------- done intptr types, emit int_fast types ------------
23732if test "$ac_cv_type_int_fast32_t" != yes; then
23733 sed 's/^ *//' >> tmp-stdint.h <<EOF
23734
23735 /* Define int_fast types. short is often slow */
23736 typedef int8_t int_fast8_t;
23737 typedef int int_fast16_t;
23738 typedef int32_t int_fast32_t;
23739 #ifdef _INT64_T
23740 typedef int64_t int_fast64_t;
23741 #endif
23742
23743 typedef uint8_t uint_fast8_t;
23744 typedef unsigned int uint_fast16_t;
23745 typedef uint32_t uint_fast32_t;
23746 #ifdef _UINT64_T
23747 typedef uint64_t uint_fast64_t;
23748 #endif
23749EOF
23750fi
23751
23752if test "$ac_cv_type_uintmax_t" != yes; then
23753 sed 's/^ *//' >> tmp-stdint.h <<EOF
23754
23755 /* Define intmax based on what we found */
23756 #ifdef _INT64_T
23757 typedef int64_t intmax_t;
23758 #else
23759 typedef long intmax_t;
23760 #endif
23761 #ifdef _UINT64_T
23762 typedef uint64_t uintmax_t;
23763 #else
23764 typedef unsigned long uintmax_t;
23765 #endif
23766EOF
23767fi
23768
23769sed 's/^ *//' >> tmp-stdint.h <<EOF
23770
23771 #endif /* GCC_GENERATED_STDINT_H */
23772EOF
23773
23774if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
23775 rm -f tmp-stdint.h
23776else
23777 mv -f tmp-stdint.h gstdint.h
23778fi
23779
1e8e9920 23780 ;;
23781 esac
23782done
23783_ACEOF
23784
23785cat >>$CONFIG_STATUS <<\_ACEOF
23786
23787{ (exit 0); exit 0; }
23788_ACEOF
23789chmod +x $CONFIG_STATUS
23790ac_clean_files=$ac_clean_files_save
23791
23792
23793# configure is writing to config.log, and then calls config.status.
23794# config.status does its own redirection, appending to config.log.
23795# Unfortunately, on DOS this fails, as config.log is still kept open
23796# by configure, so config.status won't be able to write to it; its
23797# output is simply discarded. So we exec the FD to /dev/null,
23798# effectively closing config.log, so it can be properly (re)opened and
23799# appended to by config.status. When coming back to configure, we
23800# need to make the FD available again.
23801if test "$no_create" != yes; then
23802 ac_cs_success=:
23803 ac_config_status_args=
23804 test "$silent" = yes &&
23805 ac_config_status_args="$ac_config_status_args --quiet"
23806 exec 5>/dev/null
23807 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23808 exec 5>>config.log
23809 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23810 # would make configure fail if this is the last instruction.
23811 $ac_cs_success || { (exit 1); exit 1; }
23812fi
23813